FORUMS: list search recent posts

Re: Encoding a Windows Media Player compatible DV25 .avi file

COW Forums : FFmpeg

VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


stephen dixonRe: Encoding a Windows Media Player compatible DV25 .avi file
by on Mar 2, 2012 at 12:14:47 pm

Have you used the -aspect option? I believe the parameters are just the ratio as x:y, e.g. 16:9 or 4:3.

You could find the aspect of the original source with ffprobe, a bit of regex hacking would return it as a variable:
AR=$(ffprobe source.mov 2>&1|sed "s/.*PAR[[:space:]]*([0-9]*):([0-9]*).*/1:2/")

then you can use the variable as a parameter in the -aspect option:
ffmpeg -i source.mov [whatever] -aspect $AR [whatever] output.avi

This is assuming you're in a POSIX environment of course.

Stephen Dixon
Editor, Animator, Motionographer
Museum Victoria


Posts IndexRead Thread


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]