Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming live video from sites using JW Player #22857

Open
ghost opened this issue Oct 26, 2019 · 6 comments
Open

Streaming live video from sites using JW Player #22857

ghost opened this issue Oct 26, 2019 · 6 comments

Comments

@ghost
Copy link

@ghost ghost commented Oct 26, 2019

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running youtube-dl version 2019.10.22
  • I've searched the bugtracker for similar site feature requests including closed ones

Description

Some news sites using JW Player can stream video well, but the live video streams, also using JW Player, cannot be streamed. This issue is quite clear on Euronews where a video such as https://www.euronews.com/2019/10/25/the-brexit-saga-continues-in-this-week-s-state-of-the-union can be streamed just fine, but the live feed(available at https://www.euronews.com/live) does not. The video tag for JW Player on the live rather than having a video url (as normal) or a playlist url, has a blob. A stream playlist can be found by using the browser network monitor (atleast under firefox), where the playlist.m3u8 url can be streamed. However, this does not suit my needs as the playlist url changes occasionally and constantly updating it is impractical. A typical playlist.m3u8 system occurs on other non-JW Player sites as well, such as https://www.vesti.ru/onair.
@uno20001
Copy link
Contributor

@uno20001 uno20001 commented Nov 2, 2019

I managed to watch the livestream in VLC using youtube-dl --hls-prefer-native -o - https://euronews-en-p7-cdn.hexaglobe.net/f4aeaa6a7cf35a789e6631e8d52144bf/5dbcc4ef/euronews/euronews-euronews-website-web-responsive-2/ewnsabrenpri_eng.smil/playlist.m3u8 | vlc -. Is this what you want?

@ghost
Copy link
Author

@ghost ghost commented Nov 2, 2019

This would, but the issue is, the url for the playlist.m3u8 file for a stream changes on a frequent basis with JW Player, and youtube-dl is unable to locate where the url is changed to. Thus after a period of time, it simply replies with a 403 error.

@uno20001
Copy link
Contributor

@uno20001 uno20001 commented Nov 2, 2019

The normal videos work because the page has an og:video meta tag, which contains the url of the actual video file, so the generic extractor can pick it out. The livestream page is quite different, the page queries (using AJAX) a JSON file, which contains an url to another JSON file which at last contains the url to the playlist. I don't think that it is reasonable to expect youtube_dl to extract the actual playlist url behind so many layers. I'm also not sure if completely new extractor is justified only to be able to handle euronews's livestream.

@ghost
Copy link
Author

@ghost ghost commented Nov 2, 2019

This occurs on any JW Player livestream, which in my experience is used in the majority of news sites and other broadcasters. See also, Comet TV and Charge TV as examples of US broadcasters who use it(I believe this is what MGM TV uses as a standard, but I may be mistaken).

@uno20001
Copy link
Contributor

@uno20001 uno20001 commented Nov 2, 2019

Comet TV works for me with youtube_dl -v -o - --hls-prefer-native https://www.comettv.com/watch-live | vlc - (I get the "This stream is not available in your are" both in the browser and with youtube_dl, but it works nonetheless). Charge TV works as well.

@ghost
Copy link
Author

@ghost ghost commented Nov 2, 2019

Yes. Stream errors such as not available in region work. But the actual stream does not load. You can use a VPN and see for yourself. It fails like any other JW Player livestream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.