From (other) encoding GUIs I know that I can specify (for AVC/H.264 encoding) a maximum key frame interval (e.g. max 200).
How do I do this at the ffmpeg command line?
Furthermore I would like to resize the output video to lets say 640*400 pixel.
How do I specify this new resolution at the cmdline for ffmpeg?
+ Reply to Thread
Results 1 to 6 of 6
-
-
-
Ok, thank you.
Do I have to enter these option in a two-pass encoding (for H.264) in BOTH steps or only the last (second pass) command? -
Thank you but sorry I have still a special question:
Assume I have a source video with an unknown resolution and unknown aspect ratio.
Now I want to shrink the video to a width of 800. The height should be automatically adjusted so that the aspect ratio of the source is kept.
How can I specify that?
Would
-s 800x
work (mind the missing height value)? -
It gets tricky with different PAR (pixel aspect ratio) values (also called SAR, or sample aspect ratio), you need some equations with padding (for letterbox/pillarbox) , I'm not sure how to do it exactly in ffmpeg . Selur probably knows , he probably has something implemented in his hybrid GUI program
But for simple square pixel example , use "-1" to calculate dimension from source
e.g.
-vf scale=w=800:h=-1
EDIT: maybe this will help for the different AR examples, but it needs to be modified
http://ffmpeg.org/pipermail/ffmpeg-user/2011-July/001746.htmlLast edited by poisondeathray; 17th Sep 2013 at 11:18.
Similar Threads
-
Avidemux: The beginning frame is not a key frame. Please move the A marker
By devilcoelhodog in forum EditingReplies: 13Last Post: 8th Jun 2015, 12:38 -
Maximum and best resolution this DVD player can support
By Chaffee in forum Video ConversionReplies: 13Last Post: 13th Feb 2013, 19:44 -
Maximum 16:9 resolution for DVD?
By Paul Hetherington in forum Newbie / General discussionsReplies: 8Last Post: 19th Mar 2012, 04:29 -
Key frame editing?
By vato76 in forum EditingReplies: 3Last Post: 7th Jun 2011, 12:55 -
Xvid4PSP key frame interval setting?
By x2x3x2 in forum Video ConversionReplies: 0Last Post: 30th Dec 2010, 23:19