This repository has been archived by the owner on Mar 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 151
Using Rtmpdump
Alexander Ryzhov edited this page Dec 8, 2015
·
4 revisions
You can grab RTMP video streams even if you favorite browser plugin can't do that.
RTMP streams can be intercepted on a routers only, where it passed from Internet to some local client, so there is no sense to try it on NAS or other device.
opkg install rtmpdump
I'm successfully grabbed video from some page (endocrinology lecture), where RTMP stream was used as seen on this part of HTML code:
show_pl('videoplayer', 'rtmp://mediasphera-vod.cdn.ngenix.net/vod/mp4:mediasphera/melnichenkogivop.mp4', '590', '332','http://www.1med.tv/player/st/video2-1895.txt','http://mediasphera-vod.cdn.ngenix.net/vod/_definst_/mediasphera/mp4:melnichenkogivop.mp4/playlist.m3u8');
Redirect stream to router itself:
iptables -t nat -A PREROUTING -p tcp --dport 1935 -j REDIRECT
Run rtmpsrv
from the folder you want to save a video:
rtmpsrv
and start video playback from web browser. You'll not see any video in web browser because it will be intercepted by router, but you'll see how rtmpsrv
will start rtmpdump
from console. Don't close it while grabbing in progress. Please, be patient, it may take a long time to finish.
- Real Time Messaging Protocol - https://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol
- RTMPDump project page - https://rtmpdump.mplayerhq.hu/