PDA

View Full Version : Problem with rtmpdump+rtmpsrv


Eric C.
02-21-2012, 07:56 AM
Hi

I'm using rtmpsrv to get the stream url for this stream
http://ec.europa.eu/avservices/ebs/live.cfm?page=1

I'm on Linux so I first start rtmpsrv, then (as root) do a
sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
Then load the above page

This gives me the stream URL
rtmpdump -r "rtmp://c14005-l.z.core.cdn.streamfarm.net/rtplive" -a "rtplive" -f "LNX 10,3,183,10" -W "http://ec.europa.eu/avservices/mediaplayer/player.swf" -p "http://ec.europa.eu/avservices/ebs/live.cfm?page=1" -y "14005dgcom/live/3916ebs/ebs_stream01.sdp" -o ebs_stream01.flv

running the above command fails with

ERROR: RTMP_Connect0, failed to connect socket. 111 (Connection refused)

Adding -c 80 (which helped in the past for "connection refused" errors
then gives me an

ERROR: rtmp server sent error
ERROR: rtmp server requested close


What can I do?

Bahman
02-21-2012, 08:05 AM
add "--live" :
rtmpdump -r "rtmp://46.18.240.72:80/rtplive/" -a "rtplive/" -W "http://ec.europa.eu/avservices/mediaplayer/player.swf" --live -y "14005dgcom/live/3916ebs/ebs_stream01.sdp" -o ebs_stream01.flv
RTMPDump v2.4 GIT-2011-12-22 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: width 512.00
INFO: height 288.00
INFO: audiochannels 1.00
INFO: audiosamplerate 22050.00
60.878 kB / 0.64 sec
;)

Eric C.
02-21-2012, 09:31 AM
Your command works, but there's more difference than just the "--live".

My problem starts with the IP adress adress you used. How do you get this? When I ping "c14005-l.z.core.cdn.streamfarm.net", I get "46.18.244.31" not the "46.18.240.72" you have

Bahman
02-21-2012, 12:53 PM
After getting Verbose from command:
DEBUG: (object begin)
DEBUG: Property: <Name: redirect, STRING: rtmp://46.18.240.44:80/rtplive>
DEBUG: Property: <Name: code, NUMBER: 302.00>
DEBUG: (object end)

And 2 first numbers are always certain/fix for Servers/Clients (Blue highlighted) but 2 last numbers change for each connection (Red highlighted)!! Unless they use/have Static IP!!
46.18.240.44

liumeiti
02-23-2012, 08:42 PM
how to using rtmpsrv to get the stream url for this stream ????:D :D :D :D :D :D :D :D

Eric C.
03-29-2012, 09:08 AM
Hey again (I'm the OP)

I'm having problems again with the stream, url is http://ec.europa.eu/avservices/ebs/live.cfm?page=1 .

The redirect seems to be gone, at least I don't see it in the verbose call

The error message I get is
ERROR: Closing connection: NetStream.Play.StreamNotFound

The call I'm using (which I got through rtmpsrv) is
rtmpdump -r "rtmp://x3916ebstdc14005.f.l.f.lb.core-cdn.net/14005dgcom" -a "14005dgcom" -f "LNX 11,1,102,63" -W "http://ec.europa.eu/avservices/mediaplayer/player.swf" -p "http://ec.europa.eu" -y "live/3916ebstd/ebs_or_500" -o ebs_or_500.flv

Any suggestions?

Bahman
03-29-2012, 09:37 AM
add --live or -v:
rtmpdump -r "rtmp://x3916ebstdc14005.f.l.f.lb.core-cdn.net/14005dgcom" -a "14005dgcom" -W "http://ec.europa.eu/avservices/mediaplayer/player.swf" -p "http://ec.europa.eu" --live -y "live/3916ebstd/ebs_or_500" -o ebs_or_500.flv
RTMPDump v2.4 GIT-2012-03-08 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: duration 0.00
INFO: width 512.00
INFO: height 288.00
INFO: videodatarate 0.00
INFO: framerate 90000.00
INFO: videocodecid 7.00
INFO: audiodatarate 31.25
INFO: audiosamplerate 48000.00
INFO: audiosamplesize 16.00
INFO: stereo FALSE
INFO: audiocodecid 10.00
INFO: encoder Lavf54.1.100
INFO: filesize 0.00
0.370 kB / 0.00 sec

erbe
03-31-2012, 12:15 PM
you simply need to remove the iptables reroute you put in there... I don't know how to do it so I just rebooted and ran the rtmpdump command rtmpsrv provided and it worked. if anyone knows the command for that I'd like to know :)

Hi

I'm using rtmpsrv to get the stream url for this stream
http://ec.europa.eu/avservices/ebs/live.cfm?page=1

I'm on Linux so I first start rtmpsrv, then (as root) do a
sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
Then load the above page

This gives me the stream URL
rtmpdump -r "rtmp://c14005-l.z.core.cdn.streamfarm.net/rtplive" -a "rtplive" -f "LNX 10,3,183,10" -W "http://ec.europa.eu/avservices/mediaplayer/player.swf" -p "http://ec.europa.eu/avservices/ebs/live.cfm?page=1" -y "14005dgcom/live/3916ebs/ebs_stream01.sdp" -o ebs_stream01.flv

running the above command fails with

ERROR: RTMP_Connect0, failed to connect socket. 111 (Connection refused)

Adding -c 80 (which helped in the past for "connection refused" errors
then gives me an

ERROR: rtmp server sent error
ERROR: rtmp server requested close


What can I do?