PDA

View Full Version : What am i doing wrong?


iamsumit
12-13-2015, 03:11 AM
Hi All,

I have been trying to learn how to use rtmpdump to run some of the online available sports stream in vlc. But havent been able to even run one single live stream without error. The only stream that i was able to run was not a live video. So, naturally i have hit a deadend.

My OS is MAC OS.

Try #1 -
http://desistreem.info/ten-cricket-stream/

Used wireshark for finding the attributes and made up this url:
rtmpdump -r "rtmp://37.48.81.7/live" -f "MAC 20,0,0,228" -W "http://www.p3g.tv/resources/scripts/eplayer.swf" -a "live" -p "http://www.p3g.tv/embedplayer/tencrizzerter/2/600/400" -y "tencrizzerter?id=11153&pk=8a1d406a630ad872d5b5454fb8801d6202815f7c187b2e8 cf0d2fe2348909dd7" -o- | vlc -

But it wouldn't work. It would give error:
core stream error: cannot pre fill buffer

What am i doing wrong here? Do i need a token?
Also i have noticed, i get this error for most of the links pasted by other members in this forum. Is there something wrong in my rtmpdump installation. Is there a test link to test?

Try # 2-
http://cricfree.sx/sky-sports-1-live-stream-new

Now wireshark not even detects anything under rtmpt filter!
What is happening wrong now? Isn't this rtmp protcol?

Please need some advice on how to proceed further or even what guides to read to understand where i am going wrong. And is wireshark the right choice for sniffing etc

Thanks you in advance.
Looking forward to diving deep into it once again after your valuable inputs. Thanks.

-D3n1s-
12-13-2015, 04:01 AM
Try #1

rtmpdump -v -r "rtmp://94.102.49.237/live" -a "live" -f "WIN 19,0,0,245" -W "http://www.p3g.tv/resources/scripts/eplayer.swf" -p "http://www.p3g.tv/embedplayer/tencrizzerter/2/600/400" --live -C S:OK -y "tencrizzerter?id=11153&pk=9a9f9611a0e9f27337a005da587dab06131b500952e6081 a00cb326d75143d95" -C "S:OK" -K " " -o- | "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --meta-title="TenCricket" -

rtmp://$OPT:rtmp-raw=rtmp://94.102.49.237/live swfUrl=http://www.p3g.tv/resources/scripts/eplayer.swf pageUrl=http://www.p3g.tv/embedplayer/tencrizzerter/2/600/400 playpath=tencrizzerter?id=11153&pk=9a9f9611a0e9f27337a005da587dab06131b500952e6081 a00cb326d75143d95 conn=S:OK -K

Try #2

http://178.18.30.115:8081/liverepeater/227751/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTIvMTMv MjAxNSAxMDo1NToxNyBBTSZoYXNoX3ZhbHVlPW9HbGZMOE5pd1 NtTFh2MkhleUxlWUE9PSZ2YWxpZG1pbnV0ZXM9OA==

iamsumit
12-13-2015, 05:04 AM
First of all thank you so much for your time and effort. Much appreciated.

Try #1

rtmpdump -v -r "rtmp://94.102.49.237/live" -a "live" -f "WIN 19,0,0,245" -W "http://www.p3g.tv/resources/scripts/eplayer.swf" -p "http://www.p3g.tv/embedplayer/tencrizzerter/2/600/400" --live -C S:OK -y "tencrizzerter?id=11153&pk=9a9f9611a0e9f27337a005da587dab06131b500952e6081 a00cb326d75143d95" -C "S:OK" -K " " -o- | "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --meta-title="TenCricket" -


Thanks man. This works perfectly and i also realized what i was doing wrong.


rtmp://$OPT:rtmp-raw=rtmp://94.102.49.237/live swfUrl=http://www.p3g.tv/resources/scripts/eplayer.swf pageUrl=http://www.p3g.tv/embedplayer/tencrizzerter/2/600/400 playpath=tencrizzerter?id=11153&pk=9a9f9611a0e9f27337a005da587dab06131b500952e6081 a00cb326d75143d95 conn=S:OK -K

Sorry to be asking a silly question but how do you play this link format? Directly in VLC? in Kodi? Because it doesnt work in either VLC or Kodi.


Try #2

http://178.18.30.115:8081/liverepeater/227751/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTIvMTMv MjAxNSAxMDo1NToxNyBBTSZoYXNoX3ZhbHVlPW9HbGZMOE5pd1 NtTFh2MkhleUxlWUE9PSZ2YWxpZG1pbnV0ZXM9OA==
Oh! this one is a HTTP protocol and can be handled directly like this. But unfortunately, it doesnt work in VLC? any ideas why? Thank you Sir.

-D3n1s-
12-13-2015, 05:26 AM
Sorry to be asking a silly question but how do you play this link format? Directly in VLC? in Kodi? Because it doesnt work in either VLC or Kodi.

SimpleTV.
I think you can watch it with Kodi when you delete: rtmp://$OPT:rtmp-raw=


Oh! this one is a HTTP protocol and can be handled directly like this. But unfortunately, it doesnt work in VLC? any ideas why? Thank you Sir.

You need to get new wmsAuthSign=

iamsumit
12-13-2015, 05:54 AM
Works in Kodi now mate. Brilliant!

Also the fresh http protocol url works now but still little confused how to find the url by just looking at the wireshark output in Mac OS. Any recos?

And yes so many thanks to you man.

One final question - How to find the secure tokens in mac? Any tutorial or guide here? Thanks.

iamsumit
12-13-2015, 04:43 PM
Also anyone else faced an issue where the stream ip keeps on changing every 5 mins?

Earlier it was -
http://163.172.5.126:8081/liverepeater/227475/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTIvMTMv MjAxNSAxMToxNjozNyBQTSZoYXNoX3ZhbHVlPVgxRHlOeXVlYU tqY2tqRzRPY2F3dmc9PSZ2YWxpZG1pbnV0ZXM9OA==

then it became -
http://178.18.31.63:8081/liverepeater/227475/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTIvMTMv MjAxNSAxMTozNTozNyBQTSZoYXNoX3ZhbHVlPTEzNE5TS0RSUn N3SUlPZXhtQVNoRHc9PSZ2YWxpZG1pbnV0ZXM9OA==

Is there a workaround for this?

Or is this not the right way at all for finding live stream urls that are over http protocol - here is the link - http://cdn8.crichd.in/star-sports-2-live-streaming
Thanks.

P.S. - ok found that it is a known happening and we need a regex for handling the dynamic values in the URL. Hmmm..