Hi Peterpan and Shinoby92,
I too am very interested in this, being that more and more streamed channels are on sites where they somehow hide or encrypt the links, or each link needs some kind of identifier/cookies or something.
I am a linux user and I prefer to use ffplay for playing of links on PC.
However I've come across some sites lately, they have some good streams, but the links seem to be jumbled or encrypted or need some kind of format to play them in ffplay (or VLC), somehow.
I could be wrong, but after packet sniffing, I get the following:
- This site here:
http://www.stream2watch.co/
- And then I select a channel. Lets say I select this one:
http://www.stream2watch.co/live-tv/p...as-live-stream
And after sniffing the stream, I get the following:
rtmp://95.211.148.66/loadbalance?wmsAuthSign=c2VydmVyX3RpbWU9MTEvMTEvMj AxNSA2OjIxOjUxIEFNJmhhc2hfdmFsdWU9UkcxSktrUVRUNGtX NVdsSDI1ZjJTUT09JnZhbGlkbWludXRlcz0xMA==/96832994518847733549
If I input into stream player, say ffplayer (which is the correct format):
# ffplay "rtmp://95.211.148.66/loadbalance?wmsAuthSign=c2VydmVyX3RpbWU9MTEvMTEvMj AxNSA2OjIxOjUxIEFNJmhhc2hfdmFsdWU9UkcxSktrUVRUNGtX NVdsSDI1ZjJTUT09JnZhbGlkbWludXRlcz0xMA==/96832994518847733549"
I get the following output:
ffplay version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2003-2014 the FFmpeg developers
built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
rtmp server sent error= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
and after some seconds, ffplayer stops trying to play it.
I can get any other type of rtmp stream play, just not these.
I've tried this on VLC (just for the heck of it) and get the same outcome.
After reading your post, the structure of the link I am able to sniff, seems very similar to what you've posted in your last post, and thus it seems I may be missing something, I'm not familiar with RegEx (I plan to be soon though), and I think that it might be a matter of just forming the structure of the link in a particular way.
Any ideas on how to generate a working link from this?
Any help would be greatly appreciated.
Cheers
Null-Zone