PDA

View Full Version : ustream > m3u8 ؟؟؟؟؟؟


noyoof
05-10-2017, 03:31 PM
How can i convert broadcast to m3u8 ?

http://www.ustream.tv/nasahdtv

Please Help ....

confused.com
05-10-2017, 03:48 PM
https://github.com/streamlink/streamlink/search?q=ustream.tv&type=Issues&utf8=%E2%9C%93

noyoof
05-10-2017, 04:15 PM
UStream today closed the direct links

Is there another idea to extract m3u8?

techmax
05-14-2017, 04:52 AM
Is it a new way?

tvgplayer
05-14-2017, 03:15 PM
̶N̶e̶w̶ ̶ way:
Disable Flash
User Agent > Mobile Devices

https://s2.postimg.org/yxm435hud/image.png (https://postimg.org/image/yxm435hud/)

Disabled Flash
User Agent > iPhone 3.0

Not working for me.


"C:\Program Files (x86)\Streamlink\bin\streamlink.exe" --http-header "User-Agent=Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" "hlsvariant://http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2" best

j_cool
05-14-2017, 04:02 PM
TVG,

I had a look at error message in cmd window and it was something about Los Angeles, cmd.exe complaining about
an empty space between Los and Angeles ( geocity=Los (request() got an unexpected keyword argument 'userId')

it should look like this on command line: Los%20Angeles, and like this: Los%%20Angeles in batch file,
no empty space in URL even in between double quotes.

I can watch this stream in Europe.

Here is code that works if you copy and pase it in cmd window:


streamlink.exe --http-header "User-Agent=Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" "hlsvariant://http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los%20Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2" best


If you want the same code to work in batch file, you have quite a bit of escaping to do:

% = %%
& = ^&

http://www.robvanderwoude.com/escapechars.php


Error message:


C:\>streamlink.exe --http-header "User-Agent=Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" hlsvariant://http://"sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2" best
[cli][info] Found matching plugin stream for URL hlsvariant://http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2
error: Unable to open URL: http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los (request() got an unexpected keyword argument 'userId')


Working code, I closed the player, this is all fine:


C:\>streamlink.exe --http-header "User-Agent=Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" "hlsvariant://http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los%20Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2" best
[cli][info] Found matching plugin stream for URL hlsvariant://http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los%20Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2
[cli][info] Available streams: 252p (worst), 360p, 486p, 720p (best)
[cli][info] Opening stream: 720p (hls)
[cli][info] Starting player: C:\P\VLC\vlc.exe --file-caching=5000
[cli][info] Player closed
[cli][info] Stream ended
[cli][info] Closing currently open stream...

noyoof
05-15-2017, 02:06 AM
TVG,

I had a look at error message in cmd window and it was something about Los Angeles, cmd.exe complaining about
an empty space between Los and Angeles ( geocity=Los (request() got an unexpected keyword argument 'userId')

it should look like this on command line: Los%20Angeles, and like this: Los%%20Angeles in batch file,
no empty space in URL even in between double quotes.

I can watch this stream in Europe.

Here is code that works if you copy and pase it in cmd window:


streamlink.exe --http-header "User-Agent=Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" "hlsvariant://http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los%20Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2" best


If you want the same code to work in batch file, you have quite a bit of escaping to do:

% = %%
& = ^&

http://www.robvanderwoude.com/escapechars.php


Error message:


C:\>streamlink.exe --http-header "User-Agent=Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" hlsvariant://http://"sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2" best
[cli][info] Found matching plugin stream for URL hlsvariant://http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2
error: Unable to open URL: http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los (request() got an unexpected keyword argument 'userId')


Working code, I closed the player, this is all fine:


C:\>streamlink.exe --http-header "User-Agent=Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" "hlsvariant://http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los%20Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2" best
[cli][info] Found matching plugin stream for URL hlsvariant://http://sjc-uhls-proxy115.ustream.tv/watch/playlist.m3u8?cid=6540154&appType=11&appVersion=2&locks=97d170e1550eee4afc0af065b78cda302a97674c&geo=US&geocity=Los%20Angeles&userId=&connectionId=sjc-flot-omega01_2780158&ts=1494795743&ip=108.75.197.71&cdn=uhs_akamai&sgn=f8d081276e2b2012e3d5ca58eaaa98c5e9a20ed2
[cli][info] Available streams: 252p (worst), 360p, 486p, 720p (best)
[cli][info] Opening stream: 720p (hls)
[cli][info] Starting player: C:\P\VLC\vlc.exe --file-caching=5000
[cli][info] Player closed
[cli][info] Stream ended
[cli][info] Closing currently open stream...



Can convert the broadcast to m3u8???

http://www.ustream.tv/channel/winradio-manila

j_cool
05-15-2017, 02:31 AM
C:\>streamlink.exe --stream-url http://www.ustream.tv/channel/winradio-manila best
http://36d7d6b1-lp-beta.ums.ustream.tv/playlist/auditorium/channel/7868006/2/playlist.m3u8?token=1311499_1494836934021&appType=11&appVersion=2&chunkingType=improved&sgn=3d067d7a158ff6a958e54119f6c747bba9ddb899&cdnHost=uhs-akamai.ustream.tv/

noyoof
05-15-2017, 02:34 AM
C:\>streamlink.exe --stream-url http://www.ustream.tv/channel/winradio-manila best
http://36d7d6b1-lp-beta.ums.ustream.tv/playlist/auditorium/channel/7868006/2/playlist.m3u8?token=1311499_1494836934021&appType=11&appVersion=2&chunkingType=improved&sgn=3d067d7a158ff6a958e54119f6c747bba9ddb899&cdnHost=uhs-akamai.ustream.tv/




does not work for me.


I tried this method and did not work, do you have a new way?

j_cool
05-15-2017, 02:59 AM
I can play it like this:

C:\MISC\STREAMLINK>streamlink.exe http://www.ustream.tv/channel/winradio-manila best
[cli][info] Found matching plugin ustreamtv for URL http://www.ustream.tv/channel/winradio-manila
[cli][info] Available streams: 0p (best, worst)
[cli][info] Opening stream: 0p (hls)
[cli][info] Starting player: C:\P\VLC\vlc.exe --file-caching=5000
[cli][info] Player closed
[cli][info] Stream ended
[cli][info] Closing currently open stream...

noyoof
05-15-2017, 03:12 AM
I can play it like this:

C:\MISC\STREAMLINK>streamlink.exe http://www.ustream.tv/channel/winradio-manila best
[cli][info] Found matching plugin ustreamtv for URL http://www.ustream.tv/channel/winradio-manila
[cli][info] Available streams: 0p (best, worst)
[cli][info] Opening stream: 0p (hls)
[cli][info] Starting player: C:\P\VLC\vlc.exe --file-caching=5000
[cli][info] Player closed
[cli][info] Stream ended
[cli][info] Closing currently open stream...

It does not work, it works a few seconds and then stops.

confused.com
05-15-2017, 03:22 AM
streamlink-0.6.0-20170514.exe

https://dl.bintray.com/streamlink/streamlink-nightly/

noyoof
05-15-2017, 03:37 AM
streamlink-0.6.0-20170514.exe

https://dl.bintray.com/streamlink/streamlink-nightly/

It only works for a few seconds and then stops.

j_cool
05-16-2017, 03:09 PM
TVG,

if you still keep an eye on this thread you may find that your m3u8 does not work any longer, I don't know why.

There is no need to complicate here, it works like this:


C:\>streamlink.exe http://www.ustream.tv/nasahdtv 486p
[cli][info] Found matching plugin ustreamtv for URL http://www.ustream.tv/nasahdtv
[cli][info] Available streams: 252p (worst), 360p, 486p, 720p (best)
[cli][info] Opening stream: 486p (hls)
[cli][info] Starting player: C:\P\VLC\vlc.exe --file-caching=5000