[FFmpeg-devel] [PATCH] MJPEG encoder to write aspect ratio information

Niobos niobos at dest-unreach.be
Wed Apr 20 14:10:32 CEST 2011


I'm trying to use ffmpeg to extract frames from a live TV signal. The TV
signal can have both 4:3 or 16:9 aspect ratio, and can even switch
during the day.

I was trying to figure out how the current aspect ratio is encoded in
the JPG I asked ffmpeg to output, but found out that it's not.

The attached patch solves that issue for me. I'm sure I broke a dozen
coding rules in there, but wanted to share my findings anyway...

Niobos
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jpeg-ar.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110420/41883fb5/attachment.ksh>


More information about the ffmpeg-devel mailing list