Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
How to use rtmpdump with rtmpsrv in Mac OS Xrtmpsrv 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 Then just start rtmpsrv: Code:
./rtmpsrv 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 |
#2
|
|||
|
|||
Re: How to use rtmpdump with rtmpsrv in Mac OS XOkay... 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? |
#3
|
|||
|
|||
Re: How to use rtmpdump with rtmpsrv in Mac OS XThree 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 |
#4
|
|||
|
|||
Re: How to use rtmpdump with rtmpsrv in Mac OS XQuote:
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:
Hope this help |
#5
|
|||
|
|||
Re: How to use rtmpdump with rtmpsrv in Mac OS XQuote:
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:
Hope this help |
#6
|
|||
|
|||
Re: How to use rtmpdump with rtmpsrv in Mac OS XQuote:
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. |
#7
|
|||
|
|||
Re: How to use rtmpdump with rtmpsrv in Mac OS XIn 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
|
#8
|
|||
|
|||
Re: How to use rtmpdump with rtmpsrv in Mac OS XQuote:
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. |
#9
|
|||
|
|||
Re: How to use rtmpdump with rtmpsrv in Mac OS XQuote:
How to use rtmpdump with rtmpsrv in Linux How to use rtmpsuck in Ubuntu 10.04 Lucid Lynx |
#10
|
|||
|
|||
Re: How to use rtmpdump with rtmpsrv in Mac OS XI am using rtmpdump for my mac however I was looking at these two commands
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 I read the man page for pfctl since ipfw is no longer supported in Yosemite. If anyone can help convert the two commands on top to pfctl syntax. Thank you |
Tags: apple, mac, mac os, mac os x, macintosh, macos, rtmpdump, rtmpsrv |
Thread Tools | |
Display Modes | |
|
|