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 10-28-2010, 02:29 AM
any ANONYMOUS forum user any ANONYMOUS forum user is offline
any user of the forum who preferred to post anonymously
 
Join Date: Aug 2011
Location: Server of stream-recorder.com
Posts: 211
any ANONYMOUS forum user is on a distinguished road
Default

How to use rtmpdump with rtmpsrv in Mac OS X


rtmpsrv allows you to get all parameters that are required by rtmpdump. You don't need packet sniffers or complex analysis to use rtmpdump when using rtmpsrv. The only problem you may have is when a video consists of several segments (chapters). In such cases just skip to the next chapter.

First of all you need compile rtmpdump, rtmpsrv for Mac. Or you can download a binary filed (which is compiled already).

How to use rtmpsrv in Mac OS X:
Configure your firewall to redirect RTMP traffic through a local port:
Code:
sudo ipfw add 40 fwd 127.0.0.1,1935 tcp from any to any 1935
sudo ipfw add 40 fwd 127.0.0.1,1935 tcp from any to any 1935 not uid RTMP
Note that you need to create the RTMP user before using redirecting traffic to it

Then just start rtmpsrv:
Code:
./rtmpsrv
rtmpsrv will be analyzing data from your local port. It will output an rtmpdump command that can be used to download videos.

When you get the rtmpdump command, press CTRL+C. This will stop rtmpsrv.

You may also delete the firewall redirect created above.

Since rtmpsrv produces rtmpdump command, the only thing you need to do is copy-paste it to download the video. Simple as it is
Reply With Quote
  #2  
Old 10-30-2010, 04:53 PM
Skeeve Skeeve is offline
Junior Member
 
Join Date: Oct 2010
Posts: 5
Skeeve is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Okay... I tried that.

First question: What is the purpose of the "RTMP" user?

Second Question: Why do I get a "Bus error" as soon as the film starts?
Reply With Quote
  #3  
Old 12-25-2010, 05:50 PM
jcj2002 jcj2002 is offline
Junior Member
 
Join Date: Dec 2010
Posts: 10
jcj2002 is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Three questions:

- what signify creating a rtmp user?

- what is the syntaxis for deleting these two firewall rules?

- Are necesary all two rules or might work with only the second?

Thank you in advance
Reply With Quote
  #4  
Old 01-04-2011, 07:56 PM
jcj2002 jcj2002 is offline
Junior Member
 
Join Date: Dec 2010
Posts: 10
jcj2002 is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Quote:
Originally Posted by Skeeve View Post
Okay... I tried that.

First question: What is the purpose of the "RTMP" user?

Second Question: Why do I get a "Bus error" as soon as the film starts?
I also obtain a bus error with rtmpe (mac osx 10.6.5), but using other method for redirecting instead of changing firewall ipfw rules, by with terminal editing the hosts file as follows:

Terminal
$ sudo nano etc/hosts
change in window to:
#127.0.0.1 local host
127.0.0.1 <domain of your stream-server URL, e.g. sss.aaa.com, in my example rt.fms.visionip.tv>
Ctrl O + enter (save); Ctrl X (go out of editor)

Then run: $./rtmpsuck

After this editing, rtmpsuck (v. 2.3) works well when re-open the stream-video. I used a trick: in firefox one tab I left the video always running from before hosts file editing, in a second tab with same URL, I test with play and pause and rtmpsuck or rtmpsrv listening). In these conditions, rtmpsuck works well, but rtmprv give the bus error same of you.

I have tested as example with http://actualidad.rt.com/mas/envivo/...UkhfAodF0HskQ). RTMPSUCK gives all information you can need in rtmpdump

Quote:
e.g. rtmpdump -r "rtmp://rt.fms.visionip.tv/live/" -a "live/" -f "WIN 10,2,151,49" -W "http://actualidad.rt.com/swf/player.swf" -p "http://actualidad.rt.com/mas/envivo/?gclid=COfbgf7UkqYCPUkhfAodF0HskQ" -y "RT_Spanish_3" -o RT_Spanish_3.flv)
Note that after running rtmpsuck (or rtmpsrv), you must edit the hosts file to its original values (127.0.0.1 localhost without #) before running downloader rtmpdump.

Hope this help
Reply With Quote
  #5  
Old 01-04-2011, 08:02 PM
jcj2002 jcj2002 is offline
Junior Member
 
Join Date: Dec 2010
Posts: 10
jcj2002 is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Quote:
Originally Posted by Skeeve View Post
Okay... I tried that.

First question: What is the purpose of the "RTMP" user?

Second Question: Why do I get a "Bus error" as soon as the film starts?
I also obtain a bus error with rtmpsrv (mac osx 10.6.5), but using other method for redirecting instead of changing firewall ipfw rules, using terminal for editing the hosts file as follows:

Terminal
$ sudo nano /etc/hosts
change in window to:
#127.0.0.1 local host
127.0.0.1 <domain of your stream-server URL, e.g. sss.aaa.com, in my example rt.fms.visionip.tv>
Ctrl O + enter (save); Ctrl X (go out of editor)

Then run: $./rtmpsuck

After this editing, rtmpsuck (v. 2.3) works well when re-open the stream-video. I used a trick: in firefox one tab I left the video always running from before hosts file editing, in a second tab with same URL, I test with play and pause and rtmpsuck or rtmpsrv listening). In these conditions, rtmpsuck works well, but rtmprv give the bus error same of you.

I have tested as example with http://actualidad.rt.com/mas/envivo/...UkhfAodF0HskQ). RTMPSUCK gives all information you can need in rtmpdump

Quote:
e.g. rtmpdump -r "rtmp://rt.fms.visionip.tv/live/" -a "live/" -f "WIN 10,2,151,49" -W "http://actualidad.rt.com/swf/player.swf" -p "http://actualidad.rt.com/mas/envivo/?gclid=COfbgf7UkqYCPUkhfAodF0HskQ" -y "RT_Spanish_3" -o RT_Spanish_3.flv)
Note that after running rtmpsuck (or rtmpsrv), you must edit the hosts file to its original values (127.0.0.1 localhost without #) before running downloader rtmpdump.

Hope this help
Reply With Quote
  #6  
Old 01-05-2011, 09:37 PM
jcj2002 jcj2002 is offline
Junior Member
 
Join Date: Dec 2010
Posts: 10
jcj2002 is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Quote:
Originally Posted by any ANONYMOUS forum user View Post
rtmpsrv allows you to get all parameters that are required by rtmpdump. You don't need packet sniffers or complex analysis to use rtmpdump when using rtmpsrv. The only problem you may have is when a video consists of several segments (chapters). In such cases just skip to the next chapter.

First of all you need compile rtmpdump, rtmpsrv for Mac. Or you can download a binary filed (which is compiled already).

How to use rtmpsrv in Mac OS X:
Configure your firewall to redirect RTMP traffic through a local port:
Code:
sudo ipfw add 40 fwd 127.0.0.1,1935 tcp from any to any 1935
sudo ipfw add 40 fwd 127.0.0.1,1935 tcp from any to any 1935 not uid RTMP
Note that you need to create the RTMP user before using redirecting traffic to it

Then just start rtmpsrv:
Code:
./rtmpsrv
rtmpsrv will be analyzing data from your local port. It will output an rtmpdump command that can be used to download videos.

When you get the rtmpdump command, press CTRL+C. This will stop rtmpsrv.

You may also delete the firewall redirect created above.

Since rtmpsrv produces rtmpdump command, the only thing you need to do is copy-paste it to download the video. Simple as it is
Three questions from your procedure:

1) Is it necessary only the second redirecting (sudo ipfw ... not uid RTMP") or are necessary both the two sudo´s of ipfw add´s?

2) From what of the two users (original-user OR RTMP-user) the command ./rtmpsrv is run?

3) From what of the two users the video (explorer, firefox, ....) is run?

I would appreciate very much the answers.

I have tryed with two terminal windows your procedure of rtmpsrv (one for each user) but the system hangs (Mac OSX 10.6.5). (Notes: ipfw configurations can be seen with: sudo /sbin/ipfw list; they are deleted with rebooting, or manually changing add by delete. Question: What signify the number 40 in this sudo?).

I have also tryed redirecting by editing /etc/host, as explained in my previous post in this thread, but only I get information from ./rtmpsuck (rtmpsrv gaves me a bus error).

Thanks in advance for answers.
Reply With Quote
  #7  
Old 01-06-2011, 02:22 AM
Stream Recorder
 
Posts: n/a
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Quote:
Originally Posted by jcj2002 View Post
2) From what of the two users (original-user OR RTMP-user) the command ./rtmpsrv is run?

3) From what of the two users the video (explorer, firefox, ....) is run?
In Linux rtmpsrv and rtmpsuck are run from the RTMP user. And web-browser is run from a regular user. Everything should be identical in Mac OS
Reply With Quote
  #8  
Old 01-07-2011, 04:16 PM
jcj2002 jcj2002 is offline
Junior Member
 
Join Date: Dec 2010
Posts: 10
jcj2002 is on a distinguished road
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Quote:
Originally Posted by Stream Recorder View Post
In Linux rtmpsrv and rtmpsuck are run from the RTMP user. And web-browser is run from a regular user. Everything should be identical in Mac OS
Thanks stream recorder for your info. I think linux and unix (mac osx - terminal) will not significantly differ for this task.

I am trying, but after sudo´s ipfw changes (and listening rtmpsrv from the second user), system hangs when reloading video from the main first user. I am working with two different terminal windows, in one the main user (ipfw configurations and browser), and a second window from the second user (listening rtmpsrv). What is wrong?.

I have also one doubt: the two sudo´s of ipfw´s are quite similar, the only difference is "... not uid second-user" at final. Are both necesary or only the second?

I would appreciate very much your answers. Perhaps explaining all the steps you make for succesful rtmpsrv listening in linux.

Many thanks in advance. Regards.
Reply With Quote
  #9  
Old 01-08-2011, 08:00 AM
Stream Recorder
 
Posts: n/a
Default

Re: How to use rtmpdump with rtmpsrv in Mac OS X


Quote:
Originally Posted by jcj2002 View Post
Perhaps explaining all the steps you make for succesful rtmpsrv listening in linux.
The following works just fine for me in Ubuntu 10.04 and 10.10:
How to use rtmpdump with rtmpsrv in Linux
How to use rtmpsuck in Ubuntu 10.04 Lucid Lynx
Reply With Quote
  #10  
Old 05-19-2011, 10:07 AM
cyberscott cyberscott is offline
Junior Member
 
Join Date: May 2011
Posts: 1
cyberscott is on a distinguished road
Question

Getting rtmpsrv working on Mac OS X 10.6.7? Almost there.


Greetings,

What an excellent resource stream-recorder.com is! I've already learnt quite a large bit of info from here! Thanks to the administrators/moderators for helping spread the knowledge here!

After first following this thread:

http://stream-recorder.com/forum/use...s-x-t7662.html

and setting up a separate user (named RMTP as explained in the first post). Then configuring the OS X firewall with these ipfw commands:

Code:
sudo ipfw add 40 fwd 127.0.0.1,1935 tcp from any to any 1935
sudo ipfw add 40 fwd 127.0.0.1,1935 tcp from any to any 1935 not uid RTMP
Then logging into the RTMP account via:
Code:
sudo -u RTMP -s
and starting the rtmpsrv server:
Code:
./rtmpsrv
I see this:
Code:
RTMP Server v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
I surf to the page with the video that I want to capture and watch the rtmpsrv output. Nothing happens but when I ctrl^c the server to stop it I see a bunch of lines like this:
Code:
ERROR: serverThread: accept failed
ERROR: serverThread: accept failed
ERROR: serverThread: accept failed
ERROR: serverThread: accept failed
Which inclines me to think I've misconfigured it.

Does any of this look familiar to anyone else who might have encountered this issue and solved it?

Thanks,

Scott

Last edited by cyberscott : 05-19-2011 at 10:48 AM.
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 02:07 PM.


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