This is how i go about using rtmpdump in ubuntu and it works for me in versions 9.04-10.04 of ubuntu.
- Download the latest svn version.
- Make sure you have all the dependencies
- Compile (the latest svn version 2.2e now can be installed system wide)
- Create a new user account so i can monitor the rtmp protocol
System->Administration->Users and Groups.
Create a new user/login account name it whatever you want. - Before getting the stream running within your browser setup your monitor rules and launch rtmpsrv.Open the terminal
Code:
sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner user2 -j REDIRECT
replace user2 with whatever name you have named the user account you created. - Next switch to that account within the terminal
- Next launch either rtmpsrv or rtmpsuck (if you use rtmpsuck make sure the folder you are going to save the file to is shared between your user accounts otherwise nothing will be downloaded/saved)
- Now visit the site that has the stream or start playing the stream, rtmpsrv will generate the syntax needed to download using rtmpdump or if its rtmpsuck it will begin saving (ONLY if the folder you are currently in is shared) if you use rtmpsrv then you need to copy the syntax and return to your default user account
Dont close the terminal yet you need to cancel the monitoring rule as well as download using rtmpdump
Code:
sudo iptables -t nat -F
Code:
rtmpdump "syntax" -o Save.flv
replace "syntax" with what you got from rtmpsrv and "-o Save.flv" is if you want to save the file under a different name and somewhere else, and thats it.