4 ms·
It will just start at the closest keyframe I believe. Certainly if the duration specified doesn't land you on a key frame it also ends at the closest keyframe.
by verst 7y ago
It will just start at the closest keyframe I believe.
Certainly if the duration specified doesn't land you on a key frame it also ends at the closest keyframe.
- cf100clunk 7y agoAs always, ffmpeg is terrific, but unfortunately the solution given here is not frame-exact editing, so to me it is just another quick-and-dirty solution when a re-encode is not desired, sort of like avidemux in that regard.
- verst 7y agoAgreed. The post was written for an audience that doesn't care about exact frame editing. Would the following work? # Calculate the exact start time (in s.msec format) via: START = start_frame_number/frames_per_second ffmpeg -ss $START -i video.mp4 -c copy -map 0 -frames 1400 output.mp4
- aasasd 7y agoAfaik ffmpeg requires a specific option to disable snapping to key frames. Don't remember which, but it can be easily found with a web search.
- ehsankia 7y agoAbsolutely. If you need something precise and quality, this isn't the tool. It's definitely for a very quick chop in the command-line, when you want to share some 30s clip in a 2 hour video with a friend or something.
- verst 7y agoA friend = lots of devs Screencasts don't need frame precision fortunately. A set up that isn't completely polished also feels more authentic.