[MPlayer-users] Bug in playing RTMP stream URL with space

Andrew Udvare audvare at gmail.com
Fri Feb 10 19:12:10 CET 2012


I can put a URL fine:
mplayer -v -ao pcm -vo null -vc dummy -cache 8192 -dumpaudio -dumpfile
"Track 19.mp3" "rtmp://blah.somecdn/somepath/mp3:flash/content/Track 19"

But this path loses the part after the space during parsing once passed to
ffmpeg, or so it seems.

Some output (search for /Track):
MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 13
CPU: AMD FX(tm)-8150 Eight-Core Processor            (Family: 21, Model: 1,
Stepping: 2)
extended cpuid-level: 30
extended cache-info: 134250816
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSSE3 CMOV
Compiled against libavutil version 51.34.101
Compiled against libavcodec version 53.60.100
Compiled against libavformat version 53.31.100
Compiled against libswscale version 2.1.100
Compiled against libpostproc version 52.0.100
get_path('codecs.conf') -> '/home/tatsh/.mplayer/codecs.conf'
Reading /home/tatsh/.mplayer/codecs.conf: Can't open
'/home/tatsh/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer2/codecs.conf: Can't open '/etc/mplayer2/codecs.conf':
No such file or directory
Using built-in default codecs.conf.
Configuration: --cc=x86_64-pc-linux-gnu-gcc
--host-cc=x86_64-pc-linux-gnu-gcc --prefix=/usr --bindir=/usr/bin
--libdir=/usr/lib64 --confdir=/etc/mplayer2 --datadir=/usr/share/mplayer2
--mandir=/usr/share/man --localedir=/usr/share/locale --enable-translation
--disable-svga --disable-arts --disable-kai --disable-tremor
--enable-networking --disable-joystick --disable-nemesi --disable-bl
--disable-inet6 --disable-libnut --disable-lirc --disable-lircc
--disable-apple-ir --disable-cddb --disable-libcdio --disable-cdparanoia
--disable-dvdread-internal --disable-libdvdcss-internal --charset=UTF-8
--disable-tv-bsdbt848 --disable-ivtv --disable-tv-v4l1 --disable-dvb
--disable-pvr --enable-radio --disable-radio-capture --disable-musepack
--disable-libbs2b --disable-xanim --disable-real --disable-win32dll
--disable-directfb --disable-fbdev --disable-mga --disable-xmga
--disable-3dfx --disable-tdfxvid --disable-tdfxfb --disable-xvr100
--disable-rsound --disable-esd --disable-jack --disable-ladspa
--disable-nas --disable-pulse --disable-dxr3 --disable-ggi --disable-dga1
--disable-dga2 --disable-vesa --disable-xss
CommandLine: '-vo' 'vdpau' '-v' '-ao' 'pcm' '-vo' 'null' '-vc' 'dummy'
'-cache' '8192' '-dumpaudio' '-dumpfile' '18-Track 19.mp3'
'rtmp://blah.somecdn/somepath/mp3:flash/content/Track 19'
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
init_freetype
get_path('fonts') -> '/home/tatsh/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/tatsh/.mplayer/input.conf'
Can't open input config file /home/tatsh/.mplayer/input.conf: No such file
or directory
Parsing input config file /etc/mplayer2/input.conf
Input config file /etc/mplayer2/input.conf parsed: 96 binds
get_path('Track 19.conf') -> '/home/tatsh/.mplayer/Track 19.conf'

Playing rtmp://blah.somecdn/somepath/mp3:flash/content/Track 19.
get_path('sub/') -> '/home/tatsh/.mplayer/sub/'
[ffmpeg] Opening rtmp://blah.somecdn/somepath/mp3:flash/content/Track 19
Using network protocols without global network initialization. Please use
avformat_network_init(), this will become mandatory later.
Parsing...
Parsed protocol: 0
Parsed host    : blah.somecdn
Parsed app     : somepath
RTMP_Connect1, ... connected, handshaking
HandShake: Type Answer   : 03
HandShake: Server Uptime : 1275629715
HandShake: FMS Version   : 3.5.7.1
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
Invoking connect
HandleServerBW: server BW = 1250000
HandleClientBW: client BW = 1250000 2
RTMP_ClientPacket, received: invoke 242 bytes
(object begin)
Property: <Name:           no-name., STRING:    _result>
Property: <Name:           no-name., NUMBER:    1.00>
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:             fmsVer, STRING:    FMS/3,5,7,7009>
Property: <Name:       capabilities, NUMBER:    127.00>
Property: <Name:               mode, NUMBER:    1.00>
(object end)
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:              level, STRING:    status>
Property: <Name:               code, STRING:
 NetConnection.Connect.Success>
Property: <Name:        description, STRING:    Connection succeeded.>
Property: <Name:     objectEncoding, NUMBER:    0.00>
Property: <Name:               data, OBJECT>
(object begin)
Property: <Name:            version, STRING:    3,5,7,7009>
(object end)
(object end)
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <connect>
sending ctrl. type: 0x0003
Invoking createStream
RTMP_ClientPacket, received: invoke 21 bytes
(object begin)
Property: <Name:           no-name., STRING:    onBWDone>
Property: <Name:           no-name., NUMBER:    0.00>
Property: NULL
(object end)
HandleInvoke, server invoking <onBWDone>
Invoking _checkbw
RTMP_ClientPacket, received: invoke 29 bytes
(object begin)
Property: <Name:           no-name., STRING:    _result>
Property: <Name:           no-name., NUMBER:    2.00>
Property: NULL
Property: <Name:           no-name., NUMBER:    1.00>
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <createStream>
SendPlay, seekTime=0, stopTime=0, sending play: mp3:flash/content/Track
Invoking play
sending ctrl. type: 0x0003
RTMP_ClientPacket, received: invoke 10275 bytes
(object begin)
Property: <Name:           no-name., STRING:    _onbwcheck>
Property: <Name:           no-name., NUMBER:    2147484914.00>
Property: NULL
Property: <Name:           no-name., STRING:    i | + & C " ! 6 / D 5 r ; X
9 . g 4 % 6 - 0 Q & a L c b U X i " 7 > U F } B A * o d 3 R { 8 ) 2 Y , = V
S 0 o : ? , = B + x W B w d k f # ` ? J Q & M 2 E 8 ' R ' L ; v m P 1 Z A ,
} " 7 : ) b I D 5 ( c @ A j / | s 2 ; ( Y r ; l E 8 3 p q z A 4 C >
Property: <Name:           no-name., NUMBER:    0.00>
(object end)
HandleInvoke, server invoking <_onbwcheck>
Invoking _result
RTMP_ClientPacket, received: invoke 57 bytes
(object begin)
Property: <Name:           no-name., STRING:    onBWDone>
Property: <Name:           no-name., NUMBER:    0.00>
Property: NULL
Property: <Name:           no-name., NUMBER:    0.00>
Property: <Name:           no-name., NUMBER:    0.00>
Property: <Name:           no-name., NUMBER:    0.00>
Property: <Name:           no-name., NUMBER:    0.00>
(object end)
HandleInvoke, server invoking <onBWDone>
RTMP_ClientPacket, received: invoke 20 bytes
(object begin)
Property: <Name:           no-name., STRING:    _result>
Property: <Name:           no-name., NUMBER:    0.00>
Property: NULL
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result id 0 without matching request
RTMP_ClientPacket, received: invoke 237 bytes
(object begin)
Property: <Name:           no-name., STRING:    onStatus>
Property: <Name:           no-name., NUMBER:    0.00>
Property: NULL
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:              level, STRING:    error>
Property: <Name:               code, STRING:
 NetStream.Play.StreamNotFound>
Property: <Name:        description, STRING:    Failed to
play flash/content/Track; stream not found.>
Property: <Name:            details, STRING:    flash/content/Track>
Property: <Name:           clientid, STRING:    5SDoYD1w>
(object end)
(object end)
HandleInvoke, server invoking <onStatus>
HandleInvoke, onStatus: NetStream.Play.StreamNotFound
Closing connection: NetStream.Play.StreamNotFound
Failed to open rtmp://blah.somecdn/somepath/mp3:flash/content/Track 19.

vo: x11 uninit called but X11 not initialized..

Exiting... (End of file)

On Gentoo, this is version 2.0_p20111126.


More information about the MPlayer-users mailing list