[FFmpeg-user] Output frame with correct aspect ratio

Molly Millions mollyrazormillions at gmail.com
Tue Sep 10 12:13:38 CEST 2013


Hi!

I have anamorphic videos and would like to find a way to correctly output a
jpeg with proper aspect ratio.

*Video details:*

Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
smpte170m), *720x576 [SAR 118:81 DAR 295:162]*, 2366 kb/s, 25 fps, 25 tbr,
2500 tbn, 5k tbc (default)

*Command line used:*
ffmpeg -y -ss 00:00:55 -i MEREK.mov -v:frames 1 x.jpg

Using the following command line outputs a jpeg with 720x576 dimensions,
encoded with the proper aspect ratio. When I open the file in Photoshop it
recognizes and renders the image well, but its not an option here, since
none of the browsers support aspect ratio data inside image files, so they
render the image incorrectly. How can I output an image with the correct
aspect ratio? I have tried setsar, setdar but no success so far :O.

Thanks,

Molly


More information about the ffmpeg-user mailing list