[MPlayer-users] cuting ads
Jindrich Makovicka
makovick at kmlinux.fjfi.cvut.cz
Thu Oct 24 15:05:02 CEST 2002
Emmanuel Anne wrote:
>[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
>In case someone is interested :
>I wanted to cut ads from videos captured from the tv using mencoder.
>I tried avidemux (linux), but it can't read msmpeg4v2 video codec and
>that's what I use for recording.
>I tried Virtual Dub, but it can't record in this format (it can only
>read, then you have to save in a much less compressed format
>apparently, and then recompress everything).
>
>
You have to set "Direct stream copy" in both Video and Audio menus. Then
vd doesn't touch the data, it only cuts the ads out.
>So the best solution that I found : just read the video with mplayer,
>write the time where the ads start and the time where they stop. And
>then use something like :
>
>mencoder -frames <frame where ads start> -oac copy -ovc copy -o \
>video1.avi video.avi
>mencoder -ss <time where ads end> -oac copy -ovc copy -o video2.avi \
>video.avi
>avicat -o newvideo.avi video1.avi video2.avi
>
>It works fine with mp3 cbr, and msmpeg4v2 video codec.
>Just a very little problem : the sequences are cut at keyframes, so they
>don't start exactly at the time given, but it's fast, and you don't
>loose quality in the process.
>(avicat comes from libavifile, avifile-utils package in debian).
>
>
--
Jindrich Makovicka
More information about the MPlayer-users
mailing list