[vlc-devel] [PATCH] Support of Mxpeg codec

Antoine Cellerier dionoea at videolan.org
Mon Feb 6 16:08:25 CET 2012


On Mon, Feb 06, 2012, Laurent Aimar wrote:
> On Mon, Feb 06, 2012 at 03:59:55PM +0100, Antoine Cellerier wrote:
> > On Mon, Feb 06, 2012, Sébastien Escudier wrote:
> > > On Mon, 2012-02-06 at 15:29 +0100, Jean-Baptiste Kempf wrote:
> > > > 
> > > > > It will only work with a file with mxpeg codec inside (don't work
> > > > > directly with mobotix camera through http). And only with
> > > > > "--demux=ffmpeg"
> > > > 
> > > > This is not normal, it should take the avformat demuxer by itself. 
> > > 
> > > It uses the image demuxer by default.
> > > I think this is because mxpeg files contains JPEG image at the begining.
> > > Maybe we could use avformat demuxer for .mxg files ? (if this is
> > > possible)
> > 
> > Forcing a specific demux based on a filename's extension can be done in
> > src/input/demux.c .
>  Which MUST only be done when there is no way to mis-detect the file.
> Dunno if it is the case here.

it seems possible but it requires parsing jpeg headers and peeking quite
far in the file if I understand correctly.

-- 
Antoine Cellerier
dionoea



More information about the vlc-devel mailing list