I need to trim videos with a precise end frame, however,
ffmpeg seems to cut the video at the nearest first key-frame. So I don't have enough control over the ending frame.
I try to insert key-frame before trimming, but it doesn't work.
These are my command lines:
ffmpeg -i <sVideoFilename> -force_key_frames 00:00:1:520 -vcodec wmv1 -acodec wmav2 -q:a 0 -q:v 0 <sVideoFilenamekf> ffmpeg -i <sVideoFilenamekf> -ss 00:00:1:520 -to 00:00:3:640 -vcodec wmv1 -acodec wmav2 -q:v 0 -q:a 10 -r 30 <sVideoFilenameTrimmed>*
What's wrong with my command line ? Thanks for your answer