Opened 15 years ago

Last modified 13 years ago

#1433 new defect

mplayer hangs in demuxer with certain REAL/COOK codecs

Reported by: ulysses_1966@… Owned by: reimar
Priority: normal Component: demuxer
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Mplayer (version SVN-r29105-4.3.2) reproducably hangs during the initialisation phase - immediately after the buffer is filled - when streaming rtsp://real.nrcu.gov.ua:7553/encoder/ru1channel.rm ,
rtsp://real2.nrcu.gov.ua:7555/encoder/ru3channel.rm and
rtsp://real.nrcu.gov.ua:7554/encoder/rui.rm

The demuxer (I tried several demuxers, including live555, without success) prompts

demux_real: invalid chunksize! (0)

Then mplayer hangs.

After interruption with Ctrl-C, the program continues, but terminates after some seconds without any audio output.

One might assume that the stream is buggy; but I can listen to it with RealPlayer and with several hardware internet radios.

It is possible to dump the stream with the options

-dumpstream -dumpfile ur1.ra

mplayer (versions SVN-r29105-4.3.2, SVN-r28519-4.3.2 and also the "official" win-32 executable 1.0.rc2-4.2.1) don't give any audio output with these dumpfiles, but - surprisingly - MPlayer 0.90rc4-3.3 (year 2003, on SUSE linux) does. So, the dumpfiles are okay, but the modern versions of mplayer can't handle them.

The output of mplayer -v follows. I will attach the log of the gdb and one example of the ur1.ra streamdump file.
=======================================================
MPlayer SVN-r29105-4.3.2 (C) 2000-2009 MPlayer Team
CPU vendor name: GenuineIntel max cpuid level: 2
CPU: Intel(R) Xeon(TM) CPU 3.06GHz (Family: 15, Model: 2, Stepping: 9)
extended cpuid-level: 4
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/user/me/.mplayer/codecs.conf'
Reading /user/me/.mplayer/codecs.conf: Can't open '/user/me/.mplayer/codecs.conf': No such file or directory
Reading /cluster1/usr/local/etc/mplayer/codecs.conf: Can't open '/cluster1/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --prefix=/cluster1/usr/local --codecsdir=/cluster1/usr/local/lib/codecs --enable-gui --enable-runtime-cpudetection --enable-debug=3
CommandLine: '-v' 'rtsp://real.nrcu.gov.ua:7553/encoder/ru1channel.rm'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/user/me/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/user/me/.mplayer/input.conf'
Can't open input config file /user/me/.mplayer/input.conf: No such file or directory
Can't open input config file /cluster1/usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('ru1channel.rm.conf') -> '/user/me/.mplayer/ru1channel.rm.conf'

Playing rtsp://real.nrcu.gov.ua:7553/encoder/ru1channel.rm.
get_path('sub/') -> '/user/me/.mplayer/sub/'
STREAM_RTSP, URL: rtsp://real.nrcu.gov.ua:7553/encoder/ru1channel.rm
Filename for url is now rtsp://real.nrcu.gov.ua:7553/encoder/ru1channel.rm
Filename for url is now rtsp://real.nrcu.gov.ua:7553/encoder/ru1channel.rm
Resolving real.nrcu.gov.ua for AF_INET6...
Couldn't resolve name for AF_INET6: real.nrcu.gov.ua
Resolving real.nrcu.gov.ua for AF_INET...
Connecting to server real.nrcu.gov.ua[212.26.129.196]: 7553...
Cache size set to 640 KBytes
STREAM: [rtsp] rtsp://real.nrcu.gov.ua:7553/encoder/ru1channel.rm
STREAM: Description: RTSP streaming
STREAM: Author: Benjamin Zores, Roberto Togni
STREAM: Comment: ported from xine
CACHE_PRE_INIT: 0 [0] 0 pre:131072 eof:0
Cache fill: 18.75% (122880 bytes)
LAVF_check: RealMedia format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
REAL file format detected.
real: Header size: 18
real: Header object version: 0
real: File version: 0
Chunk: PROP (504f5250) (size: 0x32, offset: 0x12)
First index chunk offset: 0x0
First data chunk offset: 0x132
Flags (2): [perfect play (more buffers)]
Chunk: CONT (544e4f43) (size: 0x31, offset: 0x44)
Chunk: MDPR (5250444d) (size: 0xb3, offset: 0x75)
Found new stream (id: 0)
Stream description: Audio Stream
Stream mimetype: audio/x-pn-multirate-realaudio-live
==> Found audio stream: 0
[real] Audio stream found, -aid 0
Found audio stream!
version: 5

00 00
2E 72 61 35
40 26 70 FC
00 05

header size: 70
coded_frame_size: 600

00 00 00 00
00 02 5D 9F
00 00 00 00

sub_packet_h: 9
frame_size: 600
sub_packet_size: 60

00 00
00 00 AC 44 00 00
00 00

samplerate: 44100, channels: 1

01 02 00
00

audio fourcc: cook (6b6f6f63)
======= WAVE Format =======
Format Tag: 28515 (0x6F63)
Channels: 1
Samplerate: 44100
avg byte/sec: 2584
Block align: 60
bits/sample: 16
cbSize: 8
Unknown extra header dump: [1] [0] [0] [2] [4] [0] [0] [2f]
==========================================================================
### skipping 0 bytes of codec info
Chunk: DATA (41544144) (size: 0x0, offset: 0x128)
demux_real: invalid chunksize! (0)
Packets in file: 0
Auto-selected RM audio ID = 0

MPlayer interrupted by signal 2 in module: enable_cache
rtsp: read error.

MPlayer interrupted by signal 2 in module: demux_open
realrtsp: rdt chunk not recognized: got 0xa9
realrtsp: rdt chunk not recognized: got 0x05
ds_fill_buffer: EOF reached (stream: audio)
RM: No audio stream found -> no sound.
AUDIO: cook [6B6F6F63]
Clip info:

name: Radio Ukraine The First Channel

==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 65536 = 257536 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
ds_fill_buffer: EOF reached (stream: audio)
AUDIO: 44100 Hz, 1 ch, s16le, 20.7 kbit/2.93% (ratio: 2584->88200)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio)
==========================================================================
Building audio filter chain for 44100Hz/1ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/1ch/s16le
[dummy] Was reinitialized: 44100Hz/1ch/s16le
Trying every known audio driver...
ao2: 44100 Hz 1 chans s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Permission denied
ao2: 44100 Hz 1 chans s16le
ao_nas: init(): Using audioserver 172.24.51.204:2.0
ao_nas: init(): Can't open nas audio server -> nosound
DVB card number must be between 1 and 4
AO: [null] 44100Hz 1ch s16le (2 bytes per sample)
AO: Description: Null audio output
AO: Author: Tobias Diedrich <ranma+mplayer@…>
Building audio filter chain for 44100Hz/1ch/s16le -> 44100Hz/1ch/s16le...
[dummy] Was reinitialized: 44100Hz/1ch/s16le
[dummy] Was reinitialized: 44100Hz/1ch/s16le
Video: no video
Freeing 0 unused video chunks.
Starting playback...
ds_fill_buffer: EOF reached (stream: audio)
Uninit audio filters....0 (unknown) ??,?% 0%
[libaf] Removing filter dummy
Uninit audio: ffmpeg
vo: x11 uninit called but X11 not initialized..

Exiting... (Quit)
========================================
Kind regards,
Matthias

Attachments (3)

ur1_gdb.log (7.9 KB ) - added by ulysses_1966@… 15 years ago.
logging file of gnu debugger gdb
ur1_gdb.2.log (7.9 KB ) - added by ulysses_1966@… 15 years ago.
logging file of gnu debugger gdb
ur1.ra (407.9 KB ) - added by ulysses_1966@… 15 years ago.
dumpstream sample

Download all attachments as: .zip

Change History (8)

by ulysses_1966@…, 15 years ago

Attachment: ur1_gdb.log added

logging file of gnu debugger gdb

comment:1 by ulysses_1966@…, 15 years ago

by ulysses_1966@…, 15 years ago

Attachment: ur1_gdb.2.log added

logging file of gnu debugger gdb

comment:2 by ulysses_1966@…, 15 years ago

by ulysses_1966@…, 15 years ago

Attachment: ur1.ra added

dumpstream sample

comment:3 by ulysses_1966@…, 15 years ago

attachments.isobsolete: 01

Recorded with the actial version of mplayer. I can only replay it with the "historical" version 0.90rc4-3.3.

comment:4 by compn, 15 years ago

reproduced with stream (didnt test dump).

comment:5 by compn, 13 years ago

Owner: changed from r_togni@… to reimar
Note: See TracTickets for help on using tickets.