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

Problem with rtmpdump+rtmpsrv

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

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

Problem with rtmpdump+rtmpsrv


 
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
Code:

sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
Then load the above page

This gives me the stream URL
Code:

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
Code:

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
Code:

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

What can I do?

Bahman 02-21-2012 08:05 AM

Re: Problem with rtmpdump+rtmpsrv


 
add "--live" :
Code:

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
Code:

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

Re: Problem with rtmpdump+rtmpsrv


 
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

Re: Problem with rtmpdump+rtmpsrv


 
After getting Verbose from command:
Code:

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

Re: Problem with rtmpdump+rtmpsrv


 
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

Re: Problem with rtmpdump+rtmpsrv


 
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
Code:

ERROR: Closing connection: NetStream.Play.StreamNotFound
The call I'm using (which I got through rtmpsrv) is
Code:

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

Re: Problem with rtmpdump+rtmpsrv


 
add --live or -v:
Code:

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
Code:

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

Re: Problem with rtmpdump+rtmpsrv


 
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 :)

Quote:

Originally Posted by Eric C. (Post 40645)
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
Code:

sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
Then load the above page

This gives me the stream URL
Code:

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
Code:

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
Code:

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

What can I do?



All times are GMT -6. The time now is 12:26 PM.