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

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Oct 12 14:54:33 EEST 2016


2016-10-11 15:52 GMT+02:00 Ståle kristoffersen <staalebk at ifi.uio.no>:

> I have some transport streams with only one pid, containing MJPEG 2000
> video. Since the PMT/PAT is missing ffmpeg is unable to decode it.

Do you also have samples that can be decoded by FFmpeg? (We don't)
How are your samples produced? Do you have a way to playback the
samples now without FFmpeg? I ask because I would love to see this
patch tested:
https://ffmpeg.org/pipermail/ffmpeg-devel/2015-August/177303.html

> The attached patch makes ffmpeg able to guess that it does contain a
> stream of jpeg 2000, but I am not sure if this is the correct approach.

The approach is correct but if you want to improve the patch, it should
look more like the mjpeg probe function and return a higher score if
more valid frames can be found.

> Also, should LIBAVFORMAT_VERSION_MICRO

It should be MINOR since you add a new symbol to the library.

> and the Changelog be updated?

I don't Changelog should be updated for this patch.

Thank you, Carl Eugen


More information about the ffmpeg-devel mailing list