[FFmpeg-user] Probing jpg, png and tiff images without decoding frames

Nicolas George nicolas.george at normalesup.org
Wed Aug 7 16:15:26 CEST 2013

Le decadi 20 thermidor, an CCXXI, Paul B Mahol a écrit :
> Yes, it is currently not possible, but I guess one could hack something
> which will just add some private option to interested decoder(s) to just fetch
> headers - without actual uncompressing of frames.

That is an interesting idea. It does not even need to be a private option,
since it makes sense for a lot of codecs, and would be of use for lavf too.

If the feature is implemented in the codec, it just returns immediately when
it has the format properties, before allocating a frame. If it is not
implemented, the frame is decoded and then discarded, that wastes time just
as it does now.

In fact, I half expected AVDISCARD_ALL to have this effect. It seems it does
not, or I did not test properly.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20130807/e6c4c685/attachment.asc>

More information about the ffmpeg-user mailing list