Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

mplayer and rtmp

(http://stream-recorder.com/forum/showthread.php?t=12907)

cicciocauro 06-25-2012 03:05 PM

mplayer and rtmp


 
Hello people,

there's an interesting conference at this page

http://www.radioradicale.it/scheda/3...deuropa-subito

From the page source I extracted this piece:

Code:

,streams: [{"url": 'mp4:roma/2010/01//FL610753.f4v',"duration": 14858,"start": 19}      ]
      ,netConnectionUrl: 'rtmp://video-3.radioradicale.it:1935/store-51/'
    };

but this command line doesn't work as the requested file seems to be non existent

Code:

mplayer -streamdump rtmp://video-3.radioradicale.it:1935/store-51/mp4:roma/2010/01//FL610753.f4v
I used wireshark to take a look at the two sessions (the one originating from Firefox and the one originated from the command line above) and they are slightly different

The working session, the one from Firefox, shows a couple of lines like this

play('mp4:roma/2010/01/FL610753.f4v')

instead the one from mplayer shows


connect('store-51/mp4:roma')
...
play('mp4/2010/01/FL.610753f')

the last one has no file extension and it misses the "roma" part after the colon. Also, the app URL (the one in the connect function) includes the "mp4:roma" part and it shouldn't

So I suppose that's why it doesn't find the file

How do I instruct mplayer to decompose the URL in the same way as the embedded flowplayer does ?

Or what else could I attempt ?

Thanks

chap 06-25-2012 03:27 PM

Re: mplayer and rtmp


 
try use
Code:

mplayer2 rtmp://video-3.radioradicale.it:1935/store-51/mp4:roma/2010/01//FL610753.f4v -dumpstream -dumpfile t.f4v

cicciocauro 06-25-2012 04:08 PM

Re: mplayer and rtmp


 
Thanks

but it doesn't work anyway

Only, I can't check with wireshark now

But this is it

Code:

me@linux-qeig:~> mplayer2 -v rtmp://video-3.radioradicale.it:1935/store-51/mp4:roma/2010/01//FL610753.f4v -dumpstream -dumpfile t.f4v
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 6
CPU: AMD E-350 Processor (Family: 20, Model: 1, Stepping: 0)
extended cpuid-level: 27
extended cache-info: 33587520
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled with runtime CPU detection.
Compiled against libavutil version 51.35.100
Compiled against libavcodec version 53.61.100
Compiled against libavformat version 53.32.100
Compiled against libswscale version 2.1.100
get_path('codecs.conf') -> '/home/me/.mplayer/codecs.conf'
Reading /home/me/.mplayer/codecs.conf: Can't open '/home/me/.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: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/mplayer2 --mandir=/usr/share/man --confdir=/etc/mplayer2 --libdir=/usr/lib64 --codecsdir=/usr/lib64/codecs --disable-arts --disable-bitmap-font --disable-directfb --disable-dvdread-internal --disable-esd --disable-libdvdcss-internal --disable-libvorbis --disable-mad --disable-openal --disable-svga --disable-termcap --disable-theora --disable-xmms --enable-bl --enable-debug --enable-joystick --enable-runtime-cpudetection --language=all
CommandLine: '-v' 'rtmp://video-3.radioradicale.it:1935/store-51/mp4:roma/2010/01//FL610753.f4v' '-dumpstream' '-dumpfile' 't.f4v'
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
init_freetype
get_path('fonts') -> '/home/me/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/me/.mplayer/input.conf'
Can't open input config file /home/me/.mplayer/input.conf: No such file or directory
Can't open input config file /etc/mplayer2/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
get_path('FL610753.f4v.conf') -> '/home/me/.mplayer/FL610753.f4v.conf'

Playing rtmp://video-3.radioradicale.it:1935/store-51/mp4:roma/2010/01//FL610753.f4v.
get_path('sub/') -> '/home/me/.mplayer/sub/'
[ffmpeg] Opening rtmp://video-3.radioradicale.it:1935/store-51/mp4:roma/2010/01//FL610753.f4v
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Parsing...
Parsed protocol: 0
Parsed host    : video-3.radioradicale.it
Parsed app    : store-51/mp4:roma
RTMP_Connect1, ... connected, handshaking
HandShake: Type Answer  : 03
HandShake: Server Uptime : 96850052
HandShake: FMS Version  : 3.0.1.1
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
Invoking connect
HandleServerBW: server BW = 2500000
HandleClientBW: client BW = 2500000 2
HandleCtrl, received ctrl. type: 0, len: 6
HandleCtrl, Stream Begin 0
HandleChangeChunkSize, received: chunk size change to 512
RTMP_ClientPacket, received: invoke 261 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:        31.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:              data, OBJECT>
(object begin)
Property: <Name:            version, STRING:        3,5,7,7009>
(object end)
Property: <Name:          clientid, NUMBER:        1813309843.00>
Property: <Name:    objectEncoding, NUMBER:        0.00>
(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 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: mp4:2010/01//FL610753
Invoking play
sending ctrl. type: 0x0003
RTMP_ClientPacket, received: invoke 193 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 2010/01//FL610753; stream not found.>
Property: <Name:          clientid, NUMBER:        1813309843.00>
Property: <Name:            details, STRING:        2010/01//FL610753>
(object end)
(object end)
HandleInvoke, server invoking <onStatus>
HandleInvoke, onStatus: NetStream.Play.StreamNotFound
Closing connection: NetStream.Play.StreamNotFound
Failed to open rtmp://video-3.radioradicale.it:1935/store-51/mp4:roma/2010/01//FL610753.f4v.

vo: x11 uninit called but X11 not initialized..

Exiting... (End of file)
me@linux-qeig:~>

As you can see it parses the name f the application as

store-51/mp4:roma

but it should be

store-51/

and it parses the name of he file as

2010/01//FL610753

while it should be

2010/01/FL610753.f4v

I don't know...

chap 06-25-2012 04:18 PM

Re: mplayer and rtmp


 
Code:

C:\Program Files\MPlayer>mplayer2 -v rtmp://video-3.radioradicale.it:1935/store-
51/mp4:roma/2010/01//FL610753.f4v -dumpstream -dumpfile t.f4v
←[0;37mMPlayer2 2.0 (C) 2000-2011 MPlayer Team
←[0m←[0;32mCPU vendor name: GenuineIntel  max cpuid level: 10
←[0m←[0;32mCPU: Genuine Intel(R) CPU            2140  @ 1.60GHz ←[0m←[0;32m(Fami
ly: 6, Model: 15, Stepping: 2)
←[0m←[0;32mextended cpuid-level: 8
←[0m←[0;32mextended cache-info: 67125312
←[0m←[0;32mDetected cache-line size is 64 bytes
←[0m←[0;32mTesting OS support for SSE... ←[0m←[0;32myes.
←[0m←[0;32mCPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3:
1
←[0m←[0;32mCompiled with runtime CPU detection.
←[0m←[0;32mget_path('codecs.conf') -> 'C:/Program Files/MPlayer/mplayer/codecs.c
onf'
←[0m←[0;32mReading C:/Program Files/MPlayer/mplayer/codecs.conf: ←[0m←[0;31mpars
e error←[0m←[0;31m at line 876
←[0m←[0;32mReading /usr/i686-mingw32/etc/mplayer/codecs.conf: ←[0m←[0;32mCan't o
pen '/usr/i686-mingw32/etc/mplayer/codecs.conf': No such file or directory
←[0m←[0;32mUsing built-in default codecs.conf.
←[0m←[0;32mConfiguration: --extra-cflags=-I/Users/kovensky/mplayer2-build-2.0/bu
ild_libs/include --extra-ldflags=-L/Users/kovensky/mplayer2-build-2.0/build_libs
/lib --enable-cross-compile --host-cc=i686-apple-darwin10-gcc-4.2.1 --extra-cfla
gs=-DPTW32_STATIC_LIB -fno-common -O3 -march=pentium2 -mtune=i686 --extra-libs=-
lpthread -lws2_32 -lfontconfig -lexpat -lfreetype --prefix=/usr/i686-mingw32 --e
nable-menu --target=i686-mingw32 --enable-static --enable-fontconfig --ranlib=i6
86-mingw32-ranlib --ar=i686-mingw32-ar --windres=i686-mingw32-windres --enable-m
atrixview --enable-runtime-cpudetection --cc=i686-mingw32-gcc --as=i686-mingw32-
as --nm=i686-mingw32-nm
←[0m←[0;37mCommandLine:←[0m←[0;37m '-v'←[0m←[0;37m 'rtmp://video-3.radioradicale
.it:1935/store-51/mp4:roma/2010/01//FL610753.f4v'←[0m←[0;37m '-dumpstream'←[0m←[
0;37m '-dumpfile'←[0m←[0;37m 't.f4v'←[0m←[0;37m
←[0m←[0;37mUsing MMX (with tiny bit MMX2) Optimized OnScreenDisplay
←[0m←[0;32minit_freetype
←[0m←[0;32mget_path('fonts') -> 'C:/Program Files/MPlayer/mplayer/fonts'
←[0m←[0;32mUsing Windows native timing
←[0m←[0;32mget_path('input.conf') -> 'C:/Program Files/MPlayer/mplayer/input.con
f'
←[0m←[0;32mParsing input config file C:/Program Files/MPlayer/mplayer/input.conf

←[0m←[0;32mInput config file C:/Program Files/MPlayer/mplayer/input.conf parsed:
 90 binds
←[0m←[0;32mget_path('FL610753.f4v.conf') -> 'C:/Program Files/MPlayer/mplayer/FL
610753.f4v.conf'
←[0m←[0;37m
Playing rtmp://video-3.radioradicale.it:1935/store-51/mp4:roma/2010/01//FL610753
.f4v.
←[0m←[0;32mget_path('sub/') -> 'C:/Program Files/MPlayer/mplayer/sub/'
←[0m←[0;32mWINSOCK2 init: 0
←[0m←[0;32m[ffmpeg] Opening rtmp://video-3.radioradicale.it:1935/store-51/mp4:ro
ma/2010/01//FL610753.f4v
←[0m←[0;32mHandshaking...
←[0m←[0;32mServer version 3.0.1.1
←[0m←[0;32mProto = rtmp, path = /store-51/mp4:roma/2010/01//FL610753.f4v, app =
store-51, fname = mp4:roma/2010/01//FL610753.f4v
←[0m←[0;32mClient bandwidth = 2500000
←[0m←[0;32mNew chunk size = 4096
←[0m←[0;32mCreating stream...
←[0m←[0;32mSending play command for 'mp4:roma/2010/01//FL610753.f4v'
←[0m←[0;32m[ffmpeg] libavformat URL type: rtmp
←[0m←[0;32mSTREAM: [ffmpeg] rtmp://video-3.radioradicale.it:1935/store-51/mp4:ro
ma/2010/01//FL610753.f4v
←[0m←[0;32mSTREAM: Description: FFmpeg
←[0m←[0;32mSTREAM: Author:
←[0m←[0;32mSTREAM: Comment:
←[0m←[0;32mSending bytes read report
←[0m←[0;32mSending bytes read report
←[0m


cicciocauro 06-26-2012 01:17 AM

Re: mplayer and rtmp


 
I see

But you're on windows.

I tried on openSuse 12.1

One thing I could do is try on a Ubuntu machine

So this means that the mplayer2 package on openSuse is not that good ?

Thanks anyway

cicciocauro 06-26-2012 01:23 AM

Re: mplayer and rtmp


 
Yes, on Ubuntu it works.

Thanks, chap

cicciocauro 06-26-2012 03:27 AM

Re: mplayer and rtmp


 
the download hang up. Probably the net had a short void period.

But it had already downloaded 400 megs !

Do you know how to resume the download without loosing the chunck it already had got ?

Thanks

chap 06-26-2012 03:49 AM

Re: mplayer and rtmp


 
try use alternative(ffmpeg)
Code:

ffmpeg -i "http://video-3.radioradicale.it:1935/store-51/_definst_/mp4:roma/2010/01//FL610753.f4v/playlist.m3u8" -c copy t.ts

cicciocauro 06-26-2012 05:13 AM

Re: mplayer and rtmp


 
Thank you

this time it downloaded 835.2 megs and it's about 2 hours of footage

But the real size is about 4 hours

Can I resume with ffmpeg ? How ?

Thanks again

cicciocauro 06-26-2012 05:16 AM

Re: mplayer and rtmp


 
wait

the -ss switch has to do with it, right ?


All times are GMT -6. The time now is 05:07 PM.