[FFmpeg-user] Output frame with correct aspect ratio

Francois Visagie francois.visagie at gmail.com
Tue Sep 10 12:52:14 CEST 2013

> -----Original Message-----
> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-
> bounces at ffmpeg.org] On Behalf Of Molly Millions
> Sent: 10 September 2013 12:14
> To: FFmpeg user questions
> Subject: [FFmpeg-user] Output frame with correct aspect ratio
> Hi!
> I have anamorphic videos and would like to find a way to correctly output
> 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
> of the browsers support aspect ratio data inside image files, so they
> the image incorrectly.

Therefore it seems your only option is to scale the image to the desired
display aspect ratio. I.e., then the pixel aspect ratio will be 1:1 and the
picture will no longer be anamorphic.

How can I output an image with the correct aspect
> ratio? I have tried setsar, setdar but no success so far :O.

More information about the ffmpeg-user mailing list