[MPlayer-users] Time accuracy problems with EDL.

Ian Westcott rakarra at pacbell.net
Sun Jun 6 06:49:24 CEST 2004


I've been having a problem with EDL lists, where it seems only those 
lists made with mplayer have time listings that fit the recording. 

Basically, I want to turn my mythtv cutlists in mplayer cutlists. 
The translation from frame numbers to timestamps is easy, the problem
is that mplayer is not cutting at the time mentioned in the EDL. I 
have an EDL file that has the line: 

0.00 33.00 0

According to the edl documentation, this means that mplayer ought to
be skipping from second 0 to second 33.. but instead it immediately 
starts at second 38:


lair:/usr/src/redhat/BUILD/MPlayer-20040602$ ./mplayer -edl ~/grape.edl ~/grape.nuv 
MPlayer dev-CVS-040601-21:00-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2005 MHz (Family: 8, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /etc/mplayer/mplayer.conf: No such file or directory
Reading config file /data/people/dragon/.mplayer/config
Reading /data/people/dragon/.mplayer/codecs.conf: Can't open '/data/people/dragon/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
EDL Records:
EDL: start [0.000000], stop [33.000000], action [0]
EDL: start [728.799988], stop [896.900024], action [0]
font: can't open file: /data/people/dragon/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /data/people/dragon/.mplayer/input.conf: No such file or directory
Can't open input config file /etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config

Playing /data/people/dragon/grape.nuv.
MPEG-PS file format detected.
VIDEO:  MPEG2  640x480  (aspect 2)  29.970 fps  8600.0 kbps (1075.0 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local display)
Disabling DPMS
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 640 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar YV12 
A:   0.4 V:   0.0 A-V:  0.394 ct:  0.000    1/  1   0%  0%  0.0% 0 0 0%
EDL_SKIP: start [0.000000], stop [33.000000], length [33.000000]
A:  38.0 V:   0.4 A-V: 37.592 ct:  0.100    2/  2   0%  0%  0.0% 0 0 0%



Also, when I create an EDL file with the -edlout option, some of the values are negative!
Do the values in an edl file not correspond to the actual time positions of the file? Is
there an offset I don't know about? Am I totally confusing the role of the edl?

Thanks in advance.
Ian




More information about the MPlayer-users mailing list