Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 02-21-2012, 08:56 AM
Eric C. Eric C. is offline
Junior Member
 
Join Date: Feb 2012
Posts: 6
Eric C. is on a distinguished road
Default

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?
Reply With Quote
  #2  
Old 02-21-2012, 09:05 AM
Bahman Bahman is offline
t.A.T.u.'s fan forever
 
Join Date: Sep 2011
Location: Tehran, Iran
Posts: 381
Bahman is on a distinguished road
Default

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
Reply With Quote
  #3  
Old 02-21-2012, 10:31 AM
Eric C. Eric C. is offline
Junior Member
 
Join Date: Feb 2012
Posts: 6
Eric C. is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 02-21-2012, 01:53 PM
Bahman Bahman is offline
t.A.T.u.'s fan forever
 
Join Date: Sep 2011
Location: Tehran, Iran
Posts: 381
Bahman is on a distinguished road
Default

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
Reply With Quote
  #5  
Old 02-23-2012, 09:42 PM
liumeiti liumeiti is offline
Member
 
Join Date: Feb 2012
Posts: 52
liumeiti is on a distinguished road
Default

Re: Problem with rtmpdump+rtmpsrv


how to using rtmpsrv to get the stream url for this stream ????
Reply With Quote
  #6  
Old 03-29-2012, 10:08 AM
Eric C. Eric C. is offline
Junior Member
 
Join Date: Feb 2012
Posts: 6
Eric C. is on a distinguished road
Default

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?
Reply With Quote
  #7  
Old 03-29-2012, 10:37 AM
Bahman Bahman is offline
t.A.T.u.'s fan forever
 
Join Date: Sep 2011
Location: Tehran, Iran
Posts: 381
Bahman is on a distinguished road
Default

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
Reply With Quote
  #8  
Old 03-31-2012, 01:15 PM
erbe erbe is offline
Junior Member
 
Join Date: Mar 2012
Posts: 1
erbe is on a distinguished road
Default

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. View Post
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?
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 09:48 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons