Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 10-06-2015, 09:40 PM
francus francus is offline
Junior Member
 
Join Date: Oct 2015
Posts: 3
francus is on a distinguished road
Default

Iptables redirect doe not seem to work


Fedora terminal:
Code:
[user@grab2 ~]$ sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
[user@grab2 ~]$ rtmpsrv
RTMP Server v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
But after that nothing happens even if I refresh the firefox tab here https://www.rt.com/on-air/rt-america-air/

Also I can see the video as usual on firefox, but this is not expected to work this way, I understand

same result with rtmpsuck
Reply With Quote
  #2  
Old 10-06-2015, 11:04 PM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Iptables redirect doe not seem to work


Quote:
Originally Posted by francus View Post
Fedora terminal:
Code:
[user@grab2 ~]$ sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
[user@grab2 ~]$ rtmpsrv
RTMP Server v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
But after that nothing happens even if I refresh the firefox tab here https://www.rt.com/on-air/rt-america-air/

Also I can see the video as usual on firefox, but this is not expected to work this way, I understand

same result with rtmpsuck

not rtmp protocol but hls protocol (.m3u8)
Reply With Quote
  #3  
Old 10-06-2015, 11:12 PM
peterpan peterpan is offline
Senior Member
 
Join Date: Jun 2013
Posts: 553
peterpan is on a distinguished road
Default

Re: Iptables redirect doe not seem to work


Juts adding to what biezom mentioned above, here are the resolution available for this stream...You can choose the one that's best for your system...(i.e. the one that plays smoothly w/o too much buffering)

Code:
https://rt-a.akamaihd.net/ch_04@325608/master.m3u8
Code:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=119000,RESOLUTION=428x240,CODECS="avc1.66.30, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_240p_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=119000,RESOLUTION=428x240,CODECS="avc1.66.30, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_240p_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=255000,RESOLUTION=640x360,CODECS="avc1.77.30, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_320p_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=255000,RESOLUTION=640x360,CODECS="avc1.77.30, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_320p_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=442000,RESOLUTION=854x480,CODECS="avc1.640029, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_480p_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=442000,RESOLUTION=854x480,CODECS="avc1.640029, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_480p_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=519000,RESOLUTION=1280x720,CODECS="avc1.640029, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_720p_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=519000,RESOLUTION=1280x720,CODECS="avc1.640029, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_720p_av-b.m3u8?sd=10&rebase=on
Reply With Quote
  #4  
Old 10-07-2015, 07:19 AM
francus francus is offline
Junior Member
 
Join Date: Oct 2015
Posts: 3
francus is on a distinguished road
Default

Re: Iptables redirect doe not seem to work


Quote:
Originally Posted by peterpan View Post
Juts adding to what biezom mentioned above, here are the resolution available for this stream...You can choose the one that's best for your system...(i.e. the one that plays smoothly w/o too much buffering)

Code:
https://rt-a.akamaihd.net/ch_04@325608/master.m3u8
Many thanks Peterpan. Where did you find this address for my stream? Not with rtmpsuck because it is not rtmp, so?

Quote:
Originally Posted by peterpan View Post
Code:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=119000,RESOLUTION=428x240,CODECS="avc1.66.30, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_240p_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=119000,RESOLUTION=428x240,CODECS="avc1.66.30, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_240p_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=255000,RESOLUTION=640x360,CODECS="avc1.77.30, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_320p_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=255000,RESOLUTION=640x360,CODECS="avc1.77.30, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_320p_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=442000,RESOLUTION=854x480,CODECS="avc1.640029, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_480p_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=442000,RESOLUTION=854x480,CODECS="avc1.640029, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_480p_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=519000,RESOLUTION=1280x720,CODECS="avc1.640029, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_720p_av-p.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=519000,RESOLUTION=1280x720,CODECS="avc1.640029, mp4a.40.2"
http://rt-lh.akamaihd.net/i/ch_04@325608/index_720p_av-b.m3u8?sd=10&rebase=on
These seem commands to record the stream, but do not know what this EXTM3U is.

Also the above stream is only an example I was trying to record, but what I really want to grab are webinars which will be on-line only at the last minute. So how can I know which stream are they transmitting, which tool to use to grab, and be able to get everything working in a short time? It seems impossible Peterpan or not?
Reply With Quote
  #5  
Old 10-07-2015, 10:26 AM
peterpan peterpan is offline
Senior Member
 
Join Date: Jun 2013
Posts: 553
peterpan is on a distinguished road
Default

Re: Iptables redirect doe not seem to work


Wireshark would work too, you just have to look for '.m3u8' string (see img1) and manually tweak it to get the original "master" stream . You can also install and enable a simple Firefox addon, called HttpFox, play the stream and search for '.m3u8' string...(see img2)
As for the webinars, since you don't have an example, you'll just have to try to find the correct string on the fly. I'm sure wireshark and HttpFox, will have it.. Cheers!

img1


img2
Reply With Quote
  #6  
Old 10-07-2015, 01:14 PM
francus francus is offline
Junior Member
 
Join Date: Oct 2015
Posts: 3
francus is on a distinguished road
Default

Re: Iptables redirect doe not seem to work


Impressive!! Many thanks

apart rtmp and m3u8 are there other streams usable for webinars?
Reply With Quote
Reply Post New Thread
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 09:42 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons