-
Notifications
You must be signed in to change notification settings - Fork 7
RTMP streaming from videolectures.net
Son Hua noted that an RTMP address for videolectures.net videos is Streaming URL = clip.netConnectionUrl + sub_folder + clip.url. These seem to have been removed from the source code for the page, but:
-
clip.netConnectionUrl=rtmp://oxy.videolectures.net/video -
sub_folder= the webpage suffix, e.g.gpip06_mackay_gpb/for "http://videolectures.net/gpip06_mackay_gpb/" -
clip.urlcan be found as outlined in this Quora answer:
- Redirect all RTMP traffic:
sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT- Start rtmsrv & keep it running.
sudo rtmpsrv- Go to the browser tab and open/refresh the page which streams the video you intend to download and click on Play (if the video doesn't automatically starts streaming).
Ideally, the video shouldn't play because rtmpsrv should've redirected the traffic. If youre getting a vlack screen instead of the video, you're good to proceed.
Go and have a look at the terminal -- you should see some text being printed. Copy the command which starts with rtmpdump ... You should now stop the rtmsrv by pressing Ctrl+C on the same terminal. 4. You must undo the iptable redirect by executing the following command.
sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT5. Now just paste the command you copied in Step 3 above onto your terminal and it should start downloading the video.
Re: that last point, VLC can also take the command so rather than fiddling with local files written from the command line you can just give this network stream.
For David MacKay's Gaussian Process Basics, the address for VLC is rtmp://oxy.videolectures.net/video/gpip06_mackay_gpb/flv:v000/a7/u7mevpiqbufsbd2g7yglhtyjymodckhh