Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I record the live streaming screen with audio in Ubuntu 12.04. I read in some forums about Mplayer and VLC player. I tried using download helper, with no luck

These are the steps I do

  2. Click and play shalom India, the first tab, live televison

I found some similar problems, thought of giving the specific site in this question, for the guidance.

share|improve this question
up vote 8 down vote accepted

The stream in your link seems to be a RTMP stream. Solution:

Downloading RTMP streams with rtmpdump and rtmpsrv

  1. Install rtmpdump by opening your terminal with Ctrl + Alt + T and using this command:

    sudo apt-get install rtmpdump
  2. Redirect RTMP traffic through a local port. Copy & paste this command to the terminal window:

    sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
  3. Start rtmpsrv by typing in the terminal:

  4. Go to the website where the video stream is and start playing the video.

  5. After a while, rtmpsrv should output a longish command that will look something like this:

    rtmpdump -r "rtmp://" -a "live/" -f "LNX 11,6,602,171" -W "" -p "" -y "nnnnnn.sdp" -o nnnnnn.flv
  6. Stop rtmpsrv with Ctrl + C. You can leave the website.

  7. Before downloading, you need to delete the port forwarding you did previously. Copy & paste this command to the terminal:

    sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT
  8. Finally, copy the longish command starting with "rtmpdump -r..." and paste it in the terminal. rtmpdump should start downloading the stream. You can stop the downloading with Ctrl + C.

share|improve this answer
Thanks. I will try this – Suresh Mar 2 '13 at 7:10
@MadsSkjern: Edited answer. -A is append and -D is delete, so not permanently if you do the step 7. – pileofrocks Feb 26 '15 at 20:45
It works, thx :) However, rtmpsrv also prints a few errors, which initially made me overlook the rtmpdump command. Are those errors expected? – Mads Skjern Feb 27 '15 at 7:36
@MadsSkjern I don't remember (haven't used rtmpdump in a while), but if the downloading itself works, I wouldn't care about the errors. – pileofrocks Feb 27 '15 at 10:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.