I got a problem with ffmpeg video cutting. Videos not cut properly. 1 second between the first and second video is lost. Shred files from different servers to handle. Processed want to merge the files again. I know very little english.
part1.avi split code:
ffmpeg -i input.avi -ss 00:00:00 -t 00:01:00 -vcodec copy -acodec copy part1.avi
part2.avi split code
ffmpeg -i input.avi -ss 00:01:00 -t 00:01:00 -vcodec copy -acodec copy part2.avi
ffmpeg -i part1.avi = 00:01:00.02
ffmpeg -i part2.avi = 00:01:00.02
Part1 console output:tny.cz/ebf2cc00
Part2 console output:tny.cz/f1076518
Part1 mediainfo(mplayer):tny.cz/d34a2cf9
Part2 mediainfo(mplayer):tny.cz/bf4b56b4
+ Reply to Thread
Results 1 to 3 of 3
-
-
ffmpeg can only cut on keyframes (I-frames) .
So if your source xvid video used typical settings, that might be anywhere from 1-300 frames accuracy (that's the typical GOP size) . For a 24p framerate that is 0-12.5 seconds accuracy
Tools like vdub, avidemux can smart render xvid (meaning they re-encode the frames inbetween I-frames if you cut within a GOP, not at the end of a GOP, directly preceding an I-frame), so they are frame accurate, but it's more difficult to batch process . They do have CLI interface options, but not sure how to do it with them
Similar Threads
-
how to use very low frame rates with ffmpeg?
By Viivi in forum Capturing and VCRReplies: 3Last Post: 25th Nov 2012, 01:38 -
Can you split or save scene without having to do so at the key frame?
By johnharlin in forum EditingReplies: 2Last Post: 26th Sep 2012, 20:11 -
Missing options in FFMPEG ? ex: cartoon for libxvid .. Please help!
By hugzzz in forum Video ConversionReplies: 1Last Post: 23rd Feb 2012, 12:10 -
how to use ffmpeg to encrypt both the i-frame and p-frame?
By shredding in forum ProgrammingReplies: 2Last Post: 12th Jan 2012, 12:53 -
ffmpeg missing filters :(
By hotnoob in forum Video ConversionReplies: 1Last Post: 26th Aug 2011, 04:48