[MPlayer-users] Cannot play ogg-vorbis stream
Thomas Koeller
thomas at koeller.dyndns.org
Sat Aug 22 14:04:36 CEST 2009
Hi,
I am encountering an annoying problem with mplayer: it refuses to play ogg-vorbis streams.
Here is an example (sorry for the german text, as you can see, mplayer ignores locale settings):
bash-3.2$ LANG=C mplayer http://he3.magnatune.com/all/01-Sarajevo%20Nights-AlmaNova.ogg
MPlayer UNKNOWN-4.3.3 (C) 2000-2009 MPlayer Team
Spiele http://he3.magnatune.com/all/01-Sarajevo%20Nights-AlmaNova.ogg.
Löse he3.magnatune.com auf für AF_INET...
Verbinde mit Server he3.magnatune.com[64.62.148.2]:80 ...
Cache-Größe auf 320 KByte gesetzt.
Fülle Zwischenpuffer: 12.50% (40960 Bytes)
[Ogg] stream 0: audio (Vorbis), -aid 0
Stream not seekable!
Stream not seekable!
EOF while trying to get the first page !!!!
Ogg demuxer error!, fixup_vorbis_wf: bad packet n. 0
Ogg-Dateiformat erkannt!
==========================================================================
Öffne Audiodecoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[vorbis @ 0x28363d0]Extradata corrupt.
Konnte Codec nicht öffnen.
Initialisierung des Audiodecoders fehlgeschlagen :(
Initialisierung des Audiodecoders fehlgeschlagen :(
Erforderliche Audiocodec-Familie [vorbis] (afm=libvorbis) nicht verfügbar.
Aktiviere sie beim Kompilieren.
Öffne Audiodecoder: [tremor] Ogg/Vorbis audio decoder
ad_vorbis, extradata seems to be absent! exit
Initialisierung des Audiodecoders fehlgeschlagen :(
Initialisierung des Audiodecoders fehlgeschlagen :(
Kann Codec für Audioformat 0x73627276 nicht finden!
Audio: kein Ton!
Video: kein Video
Beenden... (Dateiende erreicht)
bash-3.2$
It seems that mplayer thinks the data received is corrupt. Now for the funny part: if I write
the stream to a file, mplayer plays it just fine (like all other local files):
bash-3.2$ curl -o xxx.ogg http://he3.magnatune.com/all/01-Sarajevo%20Nights-AlmaNova.ogg
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2378k 100 2378k 0 0 149k 0 0:00:15 0:00:15 --:--:-- 146k
bash-3.2$ mplayer xxx.ogg
MPlayer UNKNOWN-4.3.3 (C) 2000-2009 MPlayer Team
Spiele xxx.ogg.
[Ogg] stream 0: audio (Vorbis), -aid 0
Ogg-Dateiformat erkannt!
Clip-Info:
Title: Sarajevo Nights (PREVIEW: buy it at www.magnatune.com)
Artist: AlmaNova (PREVIEW: buy it at www.magnatune.com)
Album: Debut (PREVIEW: buy it at www.magnatune.com)
==========================================================================
Öffne Audiodecoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 80.0 kbit/5.67% (ratio: 10000->176400)
Ausgewählter Audiocodec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: kein Video
Starte Wiedergabe...
A: 9.1 (09.0) of 255.1 (04:15.0) 0.5%
MPlayer wurde durch Signal 2 im Modul play_audio unterbrochen.
A: 9.1 (09.1) of 255.1 (04:15.0) 0.5%
Beenden... (Ende)
bash-3.2$
I therefore suspect a problem with mplayers networking code. Hope anyone can help!
Thomas
#####################################################
System information:
bash-3.2$ gcc --version
gcc (GCC) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bash-3.2$ as --version
GNU assembler (GNU Binutils) 2.19
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-unknown-linux-gnu'.
bash-3.2$ uname -a
Linux sarkovy 2.6.29.2 #1 PREEMPT Tue Apr 28 23:12:01 CEST 2009 x86_64 GNU/Linux
bash-3.2$ ls -l /lib64/libc-*
-rwxr-xr-x 1 root root 1771644 2009-02-12 23:19 /lib64/libc-2.9.so
#####################################################
Build information:
I am running mplayer compiled from sources obtained from svn:
bash-3.2$ svn log -l 1
------------------------------------------------------------------------
r29544 | reimar | 2009-08-21 18:54:57 +0200 (Fri, 21 Aug 2009) | 2 lines
Add suport for detecting and demuxing DVB teletext streams (nothing beyond that though).
------------------------------------------------------------------------
The build finished without errors; this is the output generated by the 'configure command':
Config files successfully generated by ./configure --prefix=/usr --libdir=/usr/lib64 --enable-gui --disable-tv-v4l1 --disable-ossaudio --disable-arts --
extra-cflags=-I/usr/X11R7/include --extra-ldflags=-L/usr/X11R7/lib64 !
Install prefix: /usr
Data directory: /usr/share/mplayer
Config direct.: /usr/etc/mplayer
Byte order: little-endian
Optimizing for:
Languages:
Messages/GUI: de
Manual pages: de
Documentation: de
Enabled optional drivers:
Input: dvdnav(internal) ftp pvr tv-teletext tv-v4l2 tv cddb cdda libdvdcss(internal) dvdread(internal) vcd dvb smb network
Codecs: x264 libavcodec(internal) real xanim faad2(internal) faac libmpeg2(internal) liba52(internal) mp3lib(internal) libtheora speex
tremor(internal) libmad liblzo gif
Audio output: alsa pulse v4l2 sdl mpegpes(dvb)
Video output: v4l2 sdl gif89a pnm jpeg png mpegpes(dvb) fbdev xvidix cvidix opengl dga xv x11 xover yuv4mpeg md5sum tga
Disabled optional drivers:
Input: vstream radio tv-v4l1 tv-dshow live555 nemesi
Codecs: libschroedinger libdirac xvid libdv libopencore_amrwb libopencore_amrnb qtx win32 musepack libdca toolame twolame
Audio output: sun openal jack nas esd arts oss ivtv dxr2
Video output: zr zr2 ivtv dxr3 dxr2 vesa svga caca aa ggi xmga mga winvidix 3dfx vdpau xvmc dfbmga directfb bl xvr100 tdfx_vid wii s3fb tdfxfb
'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
compile *** DO NOT REPORT BUGS if you tweak these files ***
'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.
Please check mtrr settings at /proc/mtrr (see DOCS/HTML//video.html#mtrr)
NOTE: Win32 codec DLLs are not supported on your CPU (x86_64) or your
operating system (Linux). You may encounter a few files that cannot
be played due to missing open source video/audio codec support.
Check configure.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).
NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This greater
level of control comes at a price. You may have to provide the correct compiler
and linker flags yourself.
If you used one of these options (except --enable-gui and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.
If you suspect a bug, please read DOCS/HTML//bugreports.html.
MPlayer compilation will use the CPPFLAGS/CFLAGS/LDFLAGS/YASMFLAGS set by you,
but:
*** *** DO NOT REPORT BUGS IF IT DOES NOT COMPILE/WORK! *** ***
It is strongly recommended to let MPlayer choose the correct CFLAGS!
To do so, execute 'CFLAGS= ./configure <options>'
As for the CFLAGS/LDFLAGS warning, this is what i am using:
bash-3.2$ echo $CFLAGS
-pipe -O3 -fomit-frame-pointer -march=native -m64
bash-3.2$ echo $LDFLAGS
-O3 -Wl,--enable-new-dtags,--hash-style=gnu
bash-3.2$
More information about the MPlayer-users
mailing list