I am using the lastest binaries of mplayer and mencoder for Windows. I am trying to remove commercials from an mpeg2 file using edl information created by Show Analyzer. Here are the cli arguments that I am using: "c:\Program Files\mplayer\mencoder" "test.mpg" -edl "test.edl" -oac copy -ovc copy -of mpeg -o "test_clean.mpg" Here is the edl file contents: 0 88.8555 0 266.333 400.834 0 746.18 895.696 0 1256.02 1430.26 0 1781.75 1978.61 0 And here is the mencoder process output: MEncoder 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 4) Detected cache-line size is 64 bytes CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0 Compiled with runtime CPU detection - WARNING - this is not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection. File not found: 'frameno.avi' Failed to open frameno.avi success: format: 0 data: 0x0 - 0x39822c28 MPEG-PS file format detected. VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 3500.0 kbps (437.5 kbyte/s) [V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334 ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000) Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== PACKET SIZE: 2048 bytes videocodec: framecopy (720x480 24bpp fourcc=10000002) audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 bps=28000 sample-1) Writing AVI header... Limiting audio preload to 0.4s Increasing audio density to 4 Read 5 EDL actions. AUDIO FRAME SIZE: 672, DELTA_PTS: 2211840 (-0.000) INITIAL DELAY of 2 frames 0fps Trem: 0min 0mb A-V:0.047 [0:0] Pos: 0.7s 22f ( 4%) 0fps Trem: 0min 5mb A-V:0.070 [0:224] Skipping frame! Pos: 1.0s 32f ( 4%) 0fps Trem: 0min 9mb A-V:0.070 [3774:224] Skipping frame! Pos: 1.4s 44f ( 4%) 0fps Trem: 0min 9mb A-V:0.068 [3634:224] Skipping frame! Pos:1889.5s 56631f (100%) 562fps Trem: 0min 853mb A-V:0.062 [3492:224] Writing AVI index... Overhead: 2.036% (17872784 / 877670512) Fixing AVI header... Video stream: 3492.518 kbit/s (436564 bps) size: 824884608 bytes 1889.490 sec s 56631 frames Audio stream: 224.000 kbit/s (28000 bps) size: 52904712 bytes 1889.454 secs The process seems to recognize the EDL actions, but the final output only shows the first commercial removed. Your assistance is greatly appreciated. Respectfully, Gary
Hi, On Wed, Mar 29, 2006 at 06:10:52PM -0800, Gary C. New wrote:
"c:\Program Files\mplayer\mencoder" "test.mpg" -edl "test.edl" -oac copy -ovc copy -of mpeg -o "test_clean.mpg"
edl can not really work properly with -ovc copy and -oac copy. Try reencoding and using the -hr-edl-seek option Greetings, Reimar Döffinger
--- Reimar Döffinger <Reimar.Doeffinger@stud.uni-karlsruhe.de> wrote:
Hi, On Wed, Mar 29, 2006 at 06:10:52PM -0800, Gary C. New wrote:
"c:\Program Files\mplayer\mencoder" "test.mpg" -edl "test.edl" -oac copy -ovc copy -of mpeg -o "test_clean.mpg"
edl can not really work properly with -ovc copy and -oac copy. Try reencoding and using the -hr-edl-seek option
Greetings, Reimar Döffinger
Thank you for your reply. Would you mind providing a sample command line example with the necessary options to re-encode an MPEG2 stream that will remove the EDL segments? Thank You. Gary
I am still having difficulty getting edl to remove the commercials from my mpeg2 encoded file. Here is the line I am trying to use with mencoder: mencoder "That 70s Show.mpg" -edl "That 70s Show.edl" -hr-edl-seek -of mpeg -mpegopts format=dvd -oac lavc -ovc lavc -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:acodec=ac3 -o "That 70s Show_clean.mpg" It is an NTSC MPEG2 Stream off of my Comcast Cable. Any suggestions as to why it is not removing the commercials? Is this the best method for removing commercials while recoding the file back to its original format? Thank you for your help. Respectfully, Gary --- Reimar Döffinger <Reimar.Doeffinger@stud.uni-karlsruhe.de> wrote:
Hi, On Wed, Mar 29, 2006 at 06:10:52PM -0800, Gary C. New wrote:
"c:\Program Files\mplayer\mencoder" "test.mpg" -edl "test.edl" -oac copy -ovc copy -of mpeg -o "test_clean.mpg"
edl can not really work properly with -ovc copy and -oac copy. Try reencoding and using the -hr-edl-seek option
Greetings, Reimar Döffinger
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
participants (2)
-
Gary C. New -
Reimar Döffinger