[FFmpeg-devel] Controlling the Pixel Aspect Ratio (PAR)

Michael Niedermayer michaelni at gmx.at
Fri Apr 1 02:32:09 CEST 2011

On Mon, Mar 14, 2011 at 01:39:36PM -0400, Tony Strauss wrote:
> I originally posted this to ffmpeg-user, but I'm now contemplating
> writing a patch:
> I need to break videos up into frames (.tga, TARGA format frames).
> These videos are uploaded by users and can come in a variety of
> formats.  I can accomplish this with a command like:
> ffmpeg -i movie.wmv -r 24 -f image2 images%05d.tga
> I run into issues, however, when the pixel aspect ratio (PAR) of a
> movie is not 1:1.  For example, a movie with a resolution of
> 1440x1080, a PAR of 4:3, and thus an aspect resolution (DAR) of 16:9
> results in incorrect .tga frames.  The frames have resolution
> 1440x1080 and a PAR of 1:1.  It's not clear whether ffmpeg's .tga
> encoder understands pixel aspect resolution, but, in any case, I need
> frames with a pixel aspect ratio of 1:1 for my purposes.  As far as I
> can tell, the only way to force ffmpeg to encode the frames with a PAR
> of 1:1 is to specify the frame resolution.

get latest ffmpeg git
use -vf setsar=1


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- 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-devel/attachments/20110401/35ccd98d/attachment.asc>

More information about the ffmpeg-devel mailing list