At work, we routinely use ffmpeg for conversion of various video formats into flv. Recently, one of the things we wanted to do was manually set the keyframes.
If you search for the command line switch that is used to set keyframes, then you will get a lot of odd results that won't work.
After a little research, it turns out that ffmpeg refers to keyframes as GOP or group of pictures. You can set the keyframe encoding rate simply by using the command line switch -g.
So in order to convert an uncompressed .mov file into a flv of the same quality with a keyframe at every frame, I used the following command:
Comments
Thank you very much! This is exactly what we needed to fix a major bug in our system!
-sameq does not mean 'same quality', it means 'same quantizers'
http://ffmpeg.org/trac/ffmpeg/wiki/Option%20%27-sameq%27%20does%20NOT%20mean%20%27same%20quality%27
File will be very large!
Save my end of day, first in google! Thank you!
That was helpful. We are about to change that and check. Found this in 1 minute and could save 29 like you said.
Yep! Saved me some googling time too! Thanks!
still saving people time 3 years later! tks!
Yes, thank you! Saved me hours.
thankyou!
Thanks a bunch!
Thank you very much!
THANKS :)
thanks ) now my ffm problem is solved in case anyone else came across the same problem the 'ffm' file *should* start with a keyframe!
Many thanks. First page I searched. DONE!
great, thanks for your time!!
Thanks !
Saved me half an hour. Cheers!
Thanks!
Your welcome everyone. Who would have ever thought it would be called "Group of Pictures"...right? I have worked with video editing for several years and never heard that term.
save a lot of time to me too, thanks
Saved me time too
Thank you, it saved me time
Great hint! Lotsa thanks!
Wow, Thanks for posting this. I would have never thought it was so simple (and undocumented). I have been trying this for days.
Yes it saved me time.. first result on google :D thanks
yep, same here, thank you! :)
Thank you! I've been searching for "keyframe" info for at least half an hour. Definitely saved me time.
Comments are currently disabled.