[MPlayer-users] Problems with join/cut/split video files
Hermann Himmelbauer
dusty at strike.wu-wien.ac.at
Fri Oct 4 12:17:02 CEST 2002
Hi,
I am looking for a way to join/cut a video-file. To make things clear, I'll
describe my special problem:
I have a video (video CD, MPEG1) that I want to burn on a CD, the video is
split in two files, both files don't have errors (at least I can not hear/see
them). The first file does not fit on a cd, so I want to first join the two
files and afterwards split them in two, so that they both fit on one CD.
After reading the mailinglist archives and the mplayer manpage I did it like
that:
1) join the 2 video files:
cat file1 file2 | mencoder -ovc copy -oac copy - -o tmpfile
This already causes problems: The problem is that after the "join point" the
video starts to flicker for about 10 seconds and the audio is completely out
of sync, later on it gets in sync again.
My MEncoder version is "CVS-020926-18:20-2.95.3".
At the join point mencoder tells me this:
Pos:4557.1s 113371f ( 0%) 742fps Trem: 0min 0mb A-V:-0.081 [1143:224]
duplicate 1 frame(s)!!!
Pos:4557.6s 113381f ( 0%) 742fps Trem: 0min 0mb A-V:-0.081 [1143:224]
duplicate 1 frame(s)!!!
After the joining procedure mencoder tells me this:
Video stream: 1146.379 kbit/s (143297 bps) size: 1117994793 bytes 7801.920
secs 194486 frames
Audio stream: 224.000 kbit/s (27999 bps) size: 211526216 bytes 7554.508
secs
This makes me wonder why the video and audio stream do not have the same
length?
Moreover at the end of the process mencoder outputs this:
DEMUXER: Too many (3654 in 8389584 bytes) video packets in the buffer!
Maybe you are playing a non-interleaved stream/file or the codec failed?
For .AVI files, try to force non-interleaved mode with the -ni option.
Pos:7801.9s 194486f ( 0%) 737fps Trem: 0min 0mb A-V:-0.063 [1146:224]
I tried to add "-ni" as an parameter but this changes nothing.
2) cut the two files in half :
mencoder -ovc copy -oac copy -forceidx -endpos 699mb tmpfile -o newfile1
mencoder -ovc copy -oac copy -forceidx -ss (endpos of first file - 10s)
tmpfile -o newfile2
This also basically works but there seems to be no index in the file although
mencoder builds the index at first.
Is this the right way to cut one video in 2?
Best Regads,
Hermann
--
x1 at aon.at
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
More information about the MPlayer-users
mailing list