[MEncoder-users] Removing Commercials with Mencoder and EDL
Gary C. New
garycnew at yahoo.com
Thu Mar 30 04:10:52 CEST 2006
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
More information about the MEncoder-users
mailing list