[MPlayer-dev-eng] audio decoding questions

Alexander Neundorf neundorf at dellingsoft.de
Tue May 21 10:09:20 CEST 2002


Hi,

I'm still working on raw dv support (video and file format detection works 
already, sound partly).

Well, maybe my problems are very simple, caused by the fact that I usually 
hack in C++.

For the video stuff the decode_foo_init() functions can return a "context 
pointer", which I use to put the decoder (a dv_decoder_t) and some other 
things in. This "context" can be given to the decode_foo(...); function.

Such a context doesn't exist for the audio functions. Where should I put my 
stuff in these cases ? Simply put them globally into my source files ?

My second problem, sound stops after some seconds, and I don't know why.

main$ ./mplayer -vo xv crash68m.dv

MPlayer CVS-020517-15:44-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: Advanced Micro Devices Athlon TB Thunderbird (Type: 6, Stepping: 4)
extended cpuid-level: 6
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with features: MMX MMX2 3DNow 3DNowEx
Reading /home/neundorf/.mplayer/codecs.conf: can't open 
'/home/neundorf/.mplayer/codecs.conf': No such file or directory
Reading /opt/andi/share/mplayer/codecs.conf: 30 audio & 80 video codecs
font: can't open file: /home/neundorf/.mplayer/font/font.desc
font: can't open file: /opt/andi/share/mplayer/font/font.desc
Linux RTC init: ioctl (rtc_pie_on): Permission denied
Using usleep() timing
Can't open input config file /home/neundorf/.mplayer/input.conf : No such 
file or directory
Falling back on default (hardcoded) config
Playing crash68m.dv
Not an URL!
Detected RAWDV file format!
demux_open_rawdv()
demux_open_rawdv() frame_size: 144000 w: 720 h: 576 dif_seq: 12 system: 2
demux_open_rawdv() seek to 0, size: 144000, dv_dec->frame_size: 144000
[V] filefmt:18  fourcc:0x56444152  size:720x576  fps:25.00  ftime:=0.0400
Detected audio codec: [rawdvaudio] drv:20 (raw DV audio decoder)
AUDIO: srate=32000  chans=2  bps=2  sfmt=0x10  ratio: 192000->128000
Detected video codec: [rawdv] drv:22 prio:0 (Raw DV)
************** decode_rawdv_init()
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x576 => 720x576 Packed YUY2
vo: X11 running at 1400x1150 with depth 24 and 32 bits/pixel (":0.0" => local 
display)
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 55 for hw scaling
[xv] dcx: 50 dcy: 18 dx: 0 dy: 0 dw: 720 dh: 576
AO: [oss] 32000Hz Stereo Signed 16-bit (Little-Endian)
ao2: 32000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 
16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
*********** sample rate set to 0, requested was 32000
audio_setup: using 32000 Hz samplerate (requested: 32000)
audio_setup: frags:  64/64  (1024 bytes/frag)  free:  65536
Start playing...
mp_image: allocated 829440 bytes for 720x576x16 [0x32595559] image
decode_frame(start: 0x4058c008, size: 144000, w: 720, h: 576)
 a[xv] dcx: 50 dcy: 18 dx: 0 dy: 0 dw: 720 dh: 576
decode_frame(start: 0x405b0008, size: 144000, w: 720, h: 576).0% 0 0 0%
decode_frame(start: 0x4069f008, size: 144000, w: 720, h: 576) 0.0% 0 0 0%
decode_frame(start: 0x406c3008, size: 144000, w: 720, h: 576) 0.0% 0 0 0%
decode_frame(start: 0x406e7008, size: 144000, w: 720, h: 576) 0.0% 0 0 0%
decode_frame(start: 0x4070b008, size: 144000, w: 720, h: 576) 0.0% 0 0 0%
decode_frame(start: 0x4072f008, size: 144000, w: 720, h: 576) 0.0% 0 0 0%
decode_frame(start: 0x40753008, size: 144000, w: 720, h: 576) 0.0% 0 0 0%
decode_frame(start: 0x40777008, size: 144000, w: 720, h: 576) 0.0% 0 0 0%
...
decode_frame(start: 0x40bf7008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x408df008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x40a47008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x4058c008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x40d3b008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x40903008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x40c1b008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x40b1f008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x405b0008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x40927008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x40d5f008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
 aA:  10.7 V:   8.1 A-V:  2.596 ct:  0.812  204/204  60% 13%  9.8% 0 0 0%
DEMUXER: Too many (59 in 8496000 bytes) video packets in the buffer!
(maybe you play a non-interleaved stream/file or the codec failed)
decode_frame(start: 0x4069f008, size: 144000, w: 720, h: 576)
decode_frame(start: 0x40a6b008, size: 144000, w: 720, h: 576) 9.8% 0 0 0%
decode_frame(start: 0x40c3f008, size: 144000, w: 720, h: 576) 9.7% 0 0 0%
decode_frame(start: 0x40b43008, size: 144000, w: 720, h: 576) 9.7% 0 0 0%
decode_frame(start: 0x409b7008, size: 144000, w: 720, h: 576) 9.6% 0 0 0%
decode_frame(start: 0x40d83008, size: 144000, w: 720, h: 576) 9.6% 0 0 0%
decode_frame(start: 0x406c3008, size: 144000, w: 720, h: 576) 9.5% 0 0 0%
decode_frame(start: 0x406e7008, size: 144000, w: 720, h: 576) 9.5% 0 0 0%
decode_frame(start: 0x4070b008, size: 144000, w: 720, h: 576) 9.4% 0 0 0%
...
decode_frame(start: 0x4058c008, size: 144000, w: 720, h: 576) 6.4% 0 0 0%
decode_frame(start: 0x4058c008, size: 144000, w: 720, h: 576) 6.3% 0 0 0%
decode_frame(start: 0x4058c008, size: 144000, w: 720, h: 576) 6.3% 0 0 0%
decode_frame(start: 0x4058c008, size: 144000, w: 720, h: 576) 6.3% 0 0 0%
decode_frame(start: 0x4058c008, size: 144000, w: 720, h: 576) 6.3% 0 0 0%
decode_frame(start: 0x4058c008, size: 144000, w: 720, h: 576) 6.3% 0 0 0%
decode_frame(start: 0x4058c008, size: 144000, w: 720, h: 576) 6.3% 0 0 0%
decode_frame(start: 0x4058c008, size: 144000, w: 720, h: 576) 6.2% 0 0 0%
 aA:  11.2 V:  12.8 A-V: -1.612 ct:  0.958  322/322  59% 13%  6.2% 0 0 0%
DEMUXER: Too many (59 in 8496000 bytes) audio packets in the buffer!
(maybe you play a non-interleaved stream/file or the codec failed)

What's the reason for the "too many..." error message ?
After the first of them the sound stops, after the second one mplayer exits.

Bye
Alex



More information about the MPlayer-dev-eng mailing list