[FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

Ståle Kristoffersen staalebk at ifi.uio.no
Thu Oct 13 17:41:00 EEST 2016


On 2016-10-12 at 13:57, Carl Eugen Hoyos wrote:
> 2016-10-11 16:27 GMT+02:00 Michael Niedermayer <michael at niedermayer.cc>:
> 
> > also the img2 demuxer for mjpeg2000 from img2dec.c does not work
> > for this ?
> 
> We separated the jpg from the mjpeg probe, jpg makes sure that the
> sample starts like a jpg image and contains an end marker and can
> be decoded, mjpeg probe is less strict but requires more than one
> frame.
> Same could be argued for j2k or was our reasoning bad?

Since nobody chimed in on this, I have created two new patches, one
containing a separate mjpeg 2000 probe
(0001-libavf-Auto-detect-mjpeg-2000-in-mpeg-ts2.patch), and one that
incorporates it into the img2dec jpeg 2000 probe
(0001-libavf-Make-jpeg-2000-probe-work-for-mjpeg-2000.patch).

I think it is best to have them separated, as that matches the mjpeg
behaviour.

-- 
Ståle Kristoffersen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavf-Auto-detect-mjpeg-2000-in-mpeg-ts2.patch
Type: text/x-diff
Size: 5424 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161013/83d4d575/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavf-Make-jpeg-2000-probe-work-for-mjpeg-2000.patch
Type: text/x-diff
Size: 2419 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161013/83d4d575/attachment-0001.patch>


More information about the ffmpeg-devel mailing list