Log in

View Full Version : FFmpeg video split frame missing


mrahmet
6th December 2012, 04:44
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 :thanks:.


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:http://tny.cz/ebf2cc00
Part2 console output:http://tny.cz/f1076518
Part1 mediainfo(mplayer):http://tny.cz/d34a2cf9
Part2 mediainfo(mplayer):http://tny.cz/bf4b56b4

Selur
6th December 2012, 15:42
wild guess: 00:01:00 is just in the middle between two key frames, so what happens is that the first cut stops at the key frame before the cut-start of part1 and the second cut starts at the first key frame after the cut-start of part2.
-> What does mediaInfo (http://mediainfo.sourceforge.net) say about your files regarding their length?