beerfoot
05-12-2015, 03:55 PM
Hi,
I've spent days trying to find a simple tutorial on how to catch rtmp streams, with fresh and updated contents/tools. I couldn't find a recent step by step tutorial for newbies with a great summary. I'm trying another method right here, stream-recorder and its great community are my last hope to get a relevant tutorial :)
I offer a $50 Amazon gift card for anyone providing a small tutorial with the following:
1. how to identify the rtmp stream address/port/parameters from mips.tv, ucaster.eu? ex: regarder(.)me/splus/streamer.php?id=sebastien2
a. which tools do you use? Wireshark, other
b. the good rtmpdump command to catch the stream
c. how to redirect the rtmp stream to my own rtmp server (forward)
2. how to catch a stream from a TV channel?
a. the best tools for catching the raw stream on Linux
b. how to forward the caught stream to my own rtmp server
3. what kind of server / hosting would you advise to broadcast the rtmp streams to ~100K visitors during 2-3 hours ?
I have good skills in Linux admin but I'm a newbie to stream recording :cool:
Why do I offer a gift card? Because I've been reading hundreds of pages and I still can't find a relevant "for dummies" tutorial. People spending their time helping writing such contents deserve to be rewarded.
Feel free to send a message before you start, I will tell you if anyone else has already started writing the tutorial. Of course, the tutorial can be written down here as a post answer available for everybody if admins wish to :)
Thanks,
Tom
biezom
05-12-2015, 07:18 PM
hi
you can use
ngrep with libap (it works too on windows)
this example is for janjua.tv (your example doesn't work when i wrote this post)
it works like mips.tv .....
1) in administrator terminal
ngrep play -d wlan0 >janjua.txt
with wlan0 is interface connected maybe eth0.....
2)
load the page
http://www.cloud-tivu.net/Blog/dmax-in-streaming-estero/
3) when the video start stop ngrep with Ctrl +C
4) read janjua.txt with gedit you have something like this
.connect.?..........app...live..flashVer...L
NX 17,0,0,134..swfUrl..9http://www.janjuaplayer.com/resources/scripts/eplay
er.swf...tcUrl...rtmp://5.63.150.84/live..fpad....capabilities.@m........au
dioCodecs.@.........videoCodecs.@o........videoFun ction.?..........pageUrl.
.8http://www.janjuaplayer.com/embedplayer/Dmaxg3/3/500/380..objectEncoding.
@.............OK
################################################## ############################################
[AP]
......q.........play............SDmaxg3?id=37815&pk=408c1ca8856f67aed24ad4d
966227ee07b26f67a8d6807c8e45c78ec55cdc9e6..
5)you have all that you want to use rtmpdump
rtmpdump -r "rtmp://37.130.227.172/live" -W "http://www.janjuaplayer.com/resources/scripts/eplayer.swf" -p "http://www.janjuaplayer.com/embedplayer/Dmaxg3/3/500/380" -y "Dmaxg3?id=37815&pk=408c1ca8856f67aed24ad4d966227ee07b26f67a8d6807c 8e45c78ec55cdc9e6" -C S:OK -o Dmaxg3.flv
rtmpdump -r "rtmp://37.130.227.172/live" -W "http://www.janjuaplayer.com/resources/scripts/eplayer.swf" -p "http://www.janjuaplayer.com/embedplayer/Dmaxg3/3/500/380" -y "Dmaxg3?id=37815&pk=408c1ca8856f67aed24ad4d966227ee07b26f67a8d6807c 8e45c78ec55cdc9e6" -C S:OK -o Dmaxg3.flv
RTMPDump v2.4 KSV-05-05-2015
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: presetname Custom
INFO: creationdate Tue May 12 17:25:41 2015
INFO: videodevice ManyCam Video Source
INFO: framerate 25.00
INFO: width 320.00
INFO: height 240.00
INFO: videocodecid avc1
INFO: videodatarate 250.00
INFO: avclevel 31.00
INFO: avcprofile 66.00
INFO: videokeyframe_frequency 5.00
INFO: audiodevice Mic estermo (IDT High Definitio
INFO: audiosamplerate 44100.00
INFO: audiochannels 2.00
INFO: audioinputvolume 100.00
INFO: audiocodecid .mp3
INFO: audiodatarate 96.00
28052.433 kB / 684.28 sec
on linux i use
livestreamer youtube-dl rtmpdump ngrep gdb(read flash memory to find token) virtualbox(simulate mobile device) .....
for the other question i don't know
I have not answered all your questions, but that does not matter, because I do not want your offerings ;)
beerfoot
05-13-2015, 05:43 AM
Thank you Biezom, you rock :)
I've tried your method with ngrep on stream stream365(.)in/live13.html with the right network interface wlan0 and I only get :
interface: wlan0 (192.168.1.0/255.255.255.0)
match: play
###############################################exi t
47 received, 0 dropped
after a few seconds of video stream read.
Do you have an idea?
biezom
05-13-2015, 06:16 AM
Thank you Biezom, you rock :)
I've tried your method with ngrep on stream stream365(.)in/live13.html with the right network interface wlan0 and I only get :
interface: wlan0 (192.168.1.0/255.255.255.0)
match: play
###############################################exi t
47 received, 0 dropped
after a few seconds of video stream read.
Do you have an idea?
a) in a first administrator terminal
iptables -t nat -A OUTPUT -p tcp --dport 1735 -j REDIRECT --to-port 1935
b) in a second administrator terminal
rtmpsrv
c)load your video (it does not start, it's normal)
d) rtmpsrv generate a code like
rtmpdump -r "rtmp://185.39.9.98:1735/vod/" -a "vod/?token=play@143151868008681" -f "LNX 17,0,0,134" -W "http://www.businessapp1.pw/jwplayer5/addplayer/jwplayer.flash.swf" -p "http://www.playerapp1.pw/embed.php?c=118&width=650&height=380&autostart=true&tk1=DVXSZPhLw6S6iik6YBniuUcvM8mwyo%2FdmiLozOmED1im vUQ%2Fh22vNgJii1WfiybLGDoCp9KhoRvqShA3CwBfMA%3D%3D&tk2=xwn75qSiqwltiyrMQTj%2B0VmqgiqdVc2I0eNzmVnWDPQ% 3D&tk3=wNEx02lQXP%2B2SrlJ0XXZvW5sZIdytARwwjFpnA3%2F%2 BB4%3D" -y "stream22" -o "2015-05-13_02-05-03_stream22.flv"
with in red some parameters that works just once and limited in time
so when you have this code, for the rest you have to act quickly
e) copy the code
f) close your video
g) stop rtmpsrv (CTRL +C)
h ) in the first administrator terminal
iptables -t nat -D OUTPUT -p tcp --dport 1735 -j REDIRECT --to-port 1935
i) in an user terminal paste the code and run
rtmpdump -r "rtmp://185.39.9.98:1735/vod/" -a "vod/?token=play@143151868008681" -f "LNX 17,0,0,134" -W "http://www.businessapp1.pw/jwplayer5/addplayer/jwplayer.flash.swf" -p "http://www.playerapp1.pw/embed.php?c=118&width=650&height=380&autostart=true&tk1=DVXSZPhLw6S6iik6YBniuUcvM8mwyo%2FdmiLozOmED1im vUQ%2Fh22vNgJii1WfiybLGDoCp9KhoRvqShA3CwBfMA%3D%3D&tk2=xwn75qSiqwltiyrMQTj%2B0VmqgiqdVc2I0eNzmVnWDPQ% 3D&tk3=wNEx02lQXP%2B2SrlJ0XXZvW5sZIdytARwwjFpnA3%2F%2 BB4%3D" -y "stream22" -o "2015-05-13_02-05-03_stream22.flv"
RTMPDump v2.4 KSV-05-05-2015
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: presetname Custom
INFO: creationdate Mon May 11 20:00:06 2015
INFO: videodevice Conexant Polaris Video Capture
INFO: framerate 24.00
INFO: width 720.00
INFO: height 404.00
INFO: videocodecid avc1
INFO: videodatarate 480.00
INFO: avclevel 31.00
INFO: avcprofile 66.00
INFO: videokeyframe_frequency 5.00
INFO: audiodevice Conexant Polaris Video Capture
INFO: audiosamplerate 44100.00
INFO: audiochannels 1.00
INFO: audioinputvolume 75.00
INFO: audiocodecid .mp3
INFO: audiodatarate 56.00
1377.777 kB / 23.07 sec
beerfoot
05-13-2015, 10:08 AM
It works perfectly. You are AWESOME biezom, your post is clear and in the target. THANK YOU :) ;)
beerfoot
05-13-2015, 12:49 PM
I've been trying the same method, working for another stream, but unsuccessful for getting the rtmpdump command of regarder(.)me/splus/streamer.php?id=remi1
Could anyone briefly explain why this rtmp stream can't be caught the same way?
Thanks++
biezom
05-13-2015, 01:12 PM
I've been trying the same method, working for another stream, but unsuccessful for getting the rtmpdump command of regarder(.)me/splus/streamer.php?id=remi1
Could anyone briefly explain why this rtmp stream can't be caught the same way?
Thanks++
port 1935 in the previous case it was 1735
step a)
iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
step h)
iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT
beerfoot
05-13-2015, 02:42 PM
OK I'm going to review my "iptable book" to understand those port redirects :D
beerfoot
05-15-2015, 10:05 AM
Hi Biezom, would you help me again for 5 minutes?
Now I can get the streams using rtmpdump - I learnt thanks to you - , what's the easiest way to push the caught stream to another rtmp server? Does ffmpeg do the trick?
Thank you
biezom
05-15-2015, 10:11 AM
Hi Biezom, would you help me again for 5 minutes?
Now I can get the streams using rtmpdump - I learnt thanks to you - , what's the easiest way to push the caught stream to another rtmp server? Does ffmpeg do the trick?
Thank you
sorry for this i don't know
vBulletin® , Copyright ©2000-2025, Jelsoft Enterprises Ltd.