[MPlayer-users] Merging/manipulating video streams

Vladimir Niksic vniksic at inet.hr
Tue Mar 18 23:35:47 CET 2003


I have an Mpeg2 file from satellite broadcast. I'd like to remove the
commercials and encode it to divx. I know I can use mencoder's -ss and
-endpos to split the final AVI into several files and get rid of the
commercial, but I don't know how to merge the pre- and post-commercial
sections back into one AVI. I tried the recommended trick of using cat
*.avi | mencoder -ovc copy -oac copy -o merged.avi -forceidx, but it
didn't work -- there's a noticable A/V desync after the part where the
second file begins. I also tried using transcode's avimerge, but with it
the desync is even worse. Does anyone know of a utility that allows one
to merge AVI files, or even better, to manipulate (dissect and merge)
MPEG2 files?  Linux would be preferred, but Windows will also do if it
can't be done under Linux.

Thanks in advance.



More information about the MPlayer-users mailing list