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

Antoine Cellerier dionoea at videolan.org
Mon Feb 6 15:59:55 CET 2012


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 . It doesn't seem possible to change the jpeg demux
code (modules/demux/image.c) easily to automatically detect such files
since they just look like regular jpeg files with some extra headers
according to http://developer.mobotix.com/docs/mxpeg_frame.html .

-- 
Antoine Cellerier
dionoea



More information about the vlc-devel mailing list