View Single Post
  #10  
Old 11-11-2015, 09:02 AM
null-zone null-zone is offline
Junior Member
 
Join Date: Nov 2015
Posts: 2
null-zone is on a distinguished road
Default

Re: rtmpdump impossible with these links?


Hi Peterpan,

Thanks a whole lot for that example, it is very interesting... infact I'm really getting an interest in RegEx and would like to understand more, how you derived the actual strings you've used, from the rtmp link I gave.

Is there somewhere you can suggest online, that I can quickly learn regex?

Additionally, the rtmpdump string you provided:

[html]
Code:
rtmpdump -r "rtmp://178.162.205.101/loadbalance" -a "loadbalance?wmsAuthSign=c2VydmVyX3RpbWU9MTEvMTEvMjAxNSA2OjUzOjQ1IEFNJmhhc2hfdmFsdWU9aEY2bXpxOXB0a1o2Rkd4VHJmOWl4dz09JnZhbGlkbWludXRlcz0xMA==" -f "WIN 19,0,0,226" -W "http://pxstream.tv/player510.swf" -p "http://pxstream.tv/embedrouter.php?file=sicnoti4&width=700&height=480&jwplayer=flash" -y "96832994518847733549" | "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -
Is quite similar to the format of ffplay, when adding flags etc... however in linux, there are no .exe files as such so the pipe would be something different, such as just 'vlc'.
But it also seems that they are temporary keys, as this link is no longer playing... for me anyway... and so how would I overcome that ?

Then, I also have a question about how you derived this code:
Code:
<item>
<title>SCI -- PXSTREAM</title>
<link>$doregex[getRTMP]/96832994518847733549 flashver=WWIN\2011,8,800,133 swfUrl=http://pxstream.tv/player510.swf pageUrl=http://pxstream.tv/embedrouter.php</link>
<regex>
<name>getRTMP</name>
<expres>(rtmp.*?)'<expres>
<page>http://pxstream.tv/embedrouter.php?file=sicnoti4&amp;width=700&amp;height=480&amp;jwplayer=flash</page>
<referer>http://www.meocanaltv.com/embed/SICNOTICIAS.php?width=700&amp;height=480</referer>
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko</agent>
<cookieJar></cookieJar>
</regex>
</item>
I can get a similar output whilst I am sniffing the streams, but they are not set out in such manner (ie. RegEx code).
Maybe there is some kind of online tool that I can use where I can dump the initial string (sniffed link) and then it will output the above code? Or did you do it by hand, if so how?
Sorry for all the questions, I'm really eager however, to learn how to do this.


I've found a link:
HTML Code:
http://stream-recorder.com/forum/use-rtmpdump-rtmpsrv-linux-t7661.html?
which provided some information on use of rtmpdump with linux, which when following the examples given in that page, its not a problem. However the pxstream.tv link is another type of link, unless I'm missing/not understanding something?

As far as ffplay is concerned, thats pretty easy to use

For example:
A stream link
Code:
rtmp://$OPT:rtmp-raw=rtmp://5.153.233.106:443/share/ playpath=live1-rbi6c swfUrl=http://sharecast.to/player/player20.swf live=1 timeout=13 pageUrl=http://sharecast.to/rtmp://5.153.233.106:443/share/ playpath=live2-bipmr swfUrl=http://sharecast.to/player/player20.swf live=1 timeout=13 pageUrl=http://sharecast.to/
is easily played by removing the initial part of the string to:
Code:
ffplay "rtmp://5.153.233.106:443/share/ playpath=live1-rbi6c swfUrl=http://sharecast.to/player/player20.swf live=1 timeout=13 pageUrl=http://sharecast.to/rtmp://5.153.233.106:443/share/ playpath=live2-bipmr swfUrl=http://sharecast.to/player/player20.swf live=1 timeout=13 pageUrl=http://sharecast.to/"
Then it plays without problem, (if the link was live).

So seeing the format is similar, any ideas on how I would resolve the initial stream, in ffplay?
It also seems that the pxstream may require updated keys/cookies etc... ??? Or is it just a matter of arranging the code in a particular way?

Any ideas/assistance would be greatly appreciated, because with some examples, I'll be able to learn from them quickly.
Reply With Quote