View Single Post
  #12  
Old 06-09-2014, 08:39 AM
gajm gajm is offline
Junior Member
 
Join Date: May 2014
Posts: 6
gajm is on a distinguished road
Default

Re: How to rtmpdump coolsport.tv stream?


@summitsc, the rtmpdump version you're using doesn't handle the redirect, but you can use something like this, grepping the redirect from the debug (-V) output:
Code:
## Debug (-V) redirect output example:
## DEBUG: Property: <Name:           redirect, STRING:	rtmp://37.220.32.55:443/liverepeater>
redirect=`rtmpdump -v -r "rtmp://31.220.0.193:1935/redirect" -W "http://filotv.pw/atdedead.swf" -p "http://filotv.pw" -y "16" -T '#atd%#$ZH' -V -B 0.1 2>&1 | grep "redirect, STRING:" | grep -o 'rtmp[^>]*'`
rtmpdump -v -r "$redirect" -W "http://filotv.pw/atdedead.swf" -p "http://filotv.pw" -y "16" -T '#atd%#$ZH' -o out.flv
Cheers
Reply With Quote