Record Live stream
Solution 1
The stream in your link seems to be a RTMP stream. Solution:
Downloading RTMP streams with rtmpdump and rtmpsrv
Install
rtmpdump
by opening your terminal with Ctrl + Alt + T and using this command:sudo apt-get install rtmpdump
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
Start
rtmpsrv
by typing in the terminal:rtmpsrv
Go to the website where the video stream is and start playing the video.
After a while,
rtmpsrv
should output a longish command that will look something like this:rtmpdump -r "rtmp://livestream.someaddress.com/live/" -a "live/" -f "LNX 11,6,602,171" -W "https://www.someaddress.org/live/player.swf" -p "http://live.tv/" -y "nnnnnn.sdp" -o nnnnnn.flv
Stop
rtmpsrv
with Ctrl + C. You can leave the website.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
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.
Solution 2
I guess this is newish, but this thing is brilliant:
youtube-dl-bdmurray.youtube-dl
It's a "snap", so to install it you type
sudo snap install youtube-dl-bdmurray
Then I simply wrote
youtube-dl-bdmurray.youtube-dl [url-containing-video]
on the command line, and it found the video, started the video (which was not automatic), downloaded/streamed the thing, and left me with a perfect mp4 file.
Related videos on Youtube
Suresh
Updated on September 18, 2022Comments
-
Suresh over 1 year
How do I record the live streaming screen with audio? I read in some forums about Mplayer and VLC player. I tried using download helper, with no luck
These are the steps I do
- http://shalomtv.tv
- Click and play shalom India, the first tab, live television
-
pileofrocks about 9 years@MadsSkjern: Edited answer. -A is append and -D is delete, so not permanently if you do the step 7.
-
Mads Skjern about 9 yearsIt works, thx :) However, rtmpsrv also prints a few errors, which initially made me overlook the rtmpdump command. Are those errors expected?
-
pileofrocks about 9 years@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.
-
Antonio Petricca over 3 yearsIt does not work with youtube.com/watch?v=Gs4PyQ4uflo&ab_channel=BassYourLife .