23
12
I'm trying to use ffmpeg to cut video files at precise times. The ffmpeg help shows an option -timecode_frame_start to specify the starting frame but I am unable to get this command to work. The resulting video always starts at the beginning of the original video. Here's an example of the command I'm running:
ffmpeg -i input.mpg -acodec copy -vcodec copy -timecode_frame_start 200 -vframes 210 -n ouput.mpg
I've moved the timecode_frame_start option before and after the other options with no change in results. Is there an additional option I need to specify? I've tried various file formats, mkv, avi, mp4, and it doesn't appear the problem is codec related. Here is one file I've tried:
http://www.seaotter.com/marine/movies/hermit-long-01.mpg
Am I missing something?
Just wanted to note that I found a method for cutting at exact frames using
– sdaau – 2018-01-26T02:26:31.440melt, see Accurately cut video files from command line - Super Userappears this was answered on the mailing list (and NB that with -vcodec copy you can't "really" get frame specific cutting, since it can only resynchronize on i-frames – rogerdpack – 2012-08-09T11:46:17.080
@user39364 I asked on the mailing list and it turns out that this option doesn't do what the OP wants. I also learned something new :) – slhck – 2012-08-09T11:46:52.363