Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 07-29-2017, 04:41 PM
limiteddi limiteddi is offline
Member
 
Join Date: Dec 2014
Posts: 30
limiteddi is on a distinguished road
Default

How to watch BBC World News from Giniko on VLC


http://www.giniko.com/watch.php?id=216

Any ideas how to watch this in VLC? Streamlink failed, it seems to use WMS.
Reply With Quote
  #2  
Old 07-29-2017, 06:39 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: How to watch BBC World News from Giniko on VLC


you need useragent and wmsAuthSign found in html source.

I didn't manage to get useragent working with vlc, without useragent won't work, so I use ffplay.exe

If you work out useragent with vlc, post here how you did it. --http-user-agent= didn't work for me.

Here is link to something similar with more details how to compile this autoit script:

http://stream-recorder.com/forum/sho...32&postcount=4

Code:
runwait('cmd.exe /c curl.exe http://www.giniko.com/watch.php?id=216 | CLIP','',@SW_HIDE,'')
$sData = ClipGet()
$sData = StringTrimLeft($sData,StringInStr($sData,'?wmsAuthSign='))
$sData = StringTrimRight($sData,(StringLen($sData)+1)-StringInStr($sData,'"'))
$url = '-user_agent Mozilla/5.0 -i http://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?' & $sData
Run('cmd.exe /c ffplay.exe ' & $url,'',@SW_HIDE)
Reply With Quote
  #3  
Old 07-30-2017, 01:14 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: How to watch BBC World News from Giniko on VLC




I can set useragent in gui only.

configuration file vlcrc, command line, no success.

sysanin, are you reading?
Reply With Quote
  #4  
Old 07-30-2017, 07:27 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: How to watch BBC World News from Giniko on VLC


Streamlink actually works here if you get m3u8 url.

Big issue uncovered from this thread.

How shall we set user agent for our VLC on command line or in vlcrc to look like browser to servers ?


Code:
C:\MISC\STREAMLINK>streamlink hlsvariant://http://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny8zMC8yMDE3IDU6NDg6MDEgUE0maGFzaF92YWx1ZT1aTVlWamFMVi83UnBwME9KUlZoYjl3PT0mdmFsaWRtaW51dGVzPTE0NDA= best

[cli][info] Found matching plugin stream for URL hlsvariant://http://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny8zMC8yMDE3IDU6NDg6MDEgUE0maGFzaF92YWx1ZT1aTVlWamFMVi83UnBwME9KUlZoYjl3PT0mdmFsaWRtaW51dGVzPTE0NDA=
[cli][info] Available streams: 480p (worst, best)
[cli][info] Opening stream: 480p (hls)
[cli][info] Starting player: C:\P\VLC\vlc.exe
Reply With Quote
  #5  
Old 07-31-2017, 10:18 AM
limiteddi limiteddi is offline
Member
 
Join Date: Dec 2014
Posts: 30
limiteddi is on a distinguished road
Default

Re: How to watch BBC World News from Giniko on VLC


Getting 403 for some reason in streamlink and vlc

streamlink
Code:
streamlink -l debug --http-header "User-Agent=Mozilla/5.0" hlsvariant://http://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny8zMS8yMDE3IDM6MDc6MDggUE0maGFzaF92YWx1ZT1Hd1RKMmVPZzVFQ0FWM2Y4bDRZdlhnPT0mdmFsaWRtaW51dGVzPTE0NDA= best --player-external-http --player-external-http-port 22334
[cli][info] streamlink is running as root! Be careful!
[cli][info] Found matching plugin stream for URL hlsvariant://http://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny8zMS8yMDE3IDM6MDc6MDggUE0maGFzaF92YWx1ZT1Hd1RKMmVPZzVFQ0FWM2Y4bDRZdlhnPT0mdmFsaWRtaW51dGVzPTE0NDA=
error: Unable to open URL: http://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny8zMS8yMDE3IDM6MDc6MDggUE0maGFzaF92YWx1ZT1Hd1RKMmVPZzVFQ0FWM2Y4bDRZdlhnPT0mdmFsaWRtaW51dGVzPTE0NDA= (403 Client Error: Forbidden for url: http://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny8zMS8yMDE3IDM6MDc6MDggUE0maGFzaF92YWx1ZT1Hd1RKMmVPZzVFQ0FWM2Y4bDRZdlhnPT0mdmFsaWRtaW51dGVzPTE0NDA=)
vlc
Code:
vlc --http-user-agent="Mozilla/5.0" "tp://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny8zMS8yMDE3IDM6MTM6NTIgUE0maGFzaF92YWx1ZT1TTW4veDNjMFpwMFZIelJSNlFEdE9BPT0mdmFsaWRtaW51dGVzPTE0NDA=" --sout "#std{access=http,mux=ts,dst=:2222}"
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
[00007f8a144c9e88] http access error: error: HTTP/1.1 403 Forbidden
[00007f8a144c9e88] http access error: error: HTTP/1.1 403 Forbidden
[00007f8a144c9e88] access_mms access error: error: HTTP/1.1 403 Forbidden
[00007f8a100009b8] core input error: open of `http://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny8zMS8yMDE3IDM6MTM6NTIgUE0maGFzaF92YWx1ZT1TTW4veDNjMFpwMFZIelJSNlFEdE9BPT0mdmFsaWRtaW51dGVzPTE0NDA=' failed
[00007f8a100009b8] core input error: Your input can't be opened
[00007f8a100009b8] core input error: VLC is unable to open the MRL 'http://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9Ny8zMS8yMDE3IDM6MTM6NTIgUE0maGFzaF92YWx1ZT1TTW4veDNjMFpwMFZIelJSNlFEdE9BPT0mdmFsaWRtaW51dGVzPTE0NDA='
Reply With Quote
  #6  
Old 07-31-2017, 12:23 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: How to watch BBC World News from Giniko on VLC


Streamlink runs VLC with it's own "user agent".

I wan to make it more simple than that.

I want to run VLC only with my fake user agent.


eddi,

you see here from post #4 that my batch file works and your does not work.

I can think about 2 things.

You messed up with too many parameters, or wmsAuthSign has expired. It lasts for a few hours only.

You can play Giniko with VLC and Streamlink if you modify my script a little bit, but that is not the point.

I want to play Giniko with VLC without Streamlink, and setting user agent for VLC is a problem.

You can see in post #3 that it works, so what is wrong with that?

That setting is for one shot only, I cannot get it saved.

Solution is setting user agent in vlcrc or find right switch for command line string, and I am working now on that.



bbcworld.exe passes m3u8 url from html source to Streamlink who plays Giniko with it's own "user agent" and runs VLC.

bbcworld.au3

Code:
runwait('cmd.exe /c curl.exe http://www.giniko.com/watch.php?id=216 | CLIP','',@SW_HIDE,'')
$sData = ClipGet()
$sData = StringTrimLeft($sData,StringInStr($sData,'?wmsAuthSign='))
$sData = StringTrimRight($sData,(StringLen($sData)+1)-StringInStr($sData,'"'))
$url = 'hlsvariant://http://nimlive1.giniko.com/bbcworldnews/bbcworld/playlist.m3u8?' & $sData & ' best'
Run('cmd.exe /c streamlink.exe ' & $url,'',@SW_HIDE)

Reply With Quote
  #7  
Old 07-31-2017, 01:27 PM
Yelloworanges Yelloworanges is offline
Junior Member
 
Join Date: May 2017
Posts: 93
Yelloworanges is on a distinguished road
Default

Re: How to watch BBC World News from Giniko on VLC


Quote:
Originally Posted by j_cool View Post
You can play Giniko with VLC and Streamlink if you modify my script a little bit, but that is not the point.

I want to play Giniko with VLC without Streamlink, and setting user agent for VLC is a problem.
Based on the network traffic, vlc (without streamlink) is successfully reading the ginko url - even though vlc itself reports error. Also, vlc is using standard mozilla user agent.

It does not appear that it is a user agent problem with vlc. Rather, vlc is having trouble parsing this sort of live hls playlist. This sort of problem is the primary reason livestreamer/streamlink was written in the first place.

What is the disadvantage of using the streamlink/vlc combination?
Reply With Quote
  #8  
Old 07-31-2017, 01:35 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: How to watch BBC World News from Giniko on VLC


1. speed

2. simplicity

3. independence

4. excercising my brain ( how well, is another story).

By the way, you always give good feedback.

Cheers,

Johnny.
Reply With Quote
  #9  
Old 07-31-2017, 01:43 PM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: How to watch BBC World News from Giniko on VLC


Streamlink is invaluable when I cannot figure something out, for example fox news on vaughnlive (rtmp).

Or other things "dynamic".
Reply With Quote
  #10  
Old 08-01-2017, 04:38 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: How to watch BBC World News from Giniko on VLC


Y_orange,


you will be surprised with my findings.

VLC may be using mozilla agent, but it appears to be "mysterious" to servers.

Here are examples, first gospel music:


winamp




VLC





Streamlink's work looks to me to be something like rtmpdump's work.

Rtmpdump saves stream to disk or pipes it to player.

Streamlink pipes output to VLC.

When you play the stream directly with VLC you see stream's url in VLC's title bar and no user agent whatsoever in urlsnooper.


AlJazeera: VLC, direct connection





When streamlink plays the stream you see fd://0 - VLC media player in title bar and User-Agent: python-requests/2.18.2 in urlsnooper.


Giniko, streamlink, VLC




Challenge still remains. Urlsnooper has to show VLC as Mozilla everywhere.

When I get m3u8 from Giniko urlsnooper shows curl. Giniko likes curl, just doesn't like nothing that VLC shows.
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:42 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons