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

getting HLS stream with -f best option instead of single file URL #7888

Closed
gkreidl opened this issue Dec 17, 2015 · 4 comments
Closed

getting HLS stream with -f best option instead of single file URL #7888

gkreidl opened this issue Dec 17, 2015 · 4 comments

Comments

@gkreidl
Copy link

@gkreidl gkreidl commented Dec 17, 2015

I'm using youtube-dl in my omxplayerGUI application on the Raspberry Pi to extract the video URL (-g option) and to play it afterwards with omxplayer(GUI). HLS is not supported and so I have been using the "-f best" option to get the URL of a single stream (Audio+Video).
I updated today from github and now I'm getting HLS/m3u8 URLs from ard/mediathek instead of single stream URLs.
Is this a bug or are there better general options now to avoid HLS? I need a global format option that gets the best quality but always avoids HLS.

@fstirlitz
Copy link
Contributor

@fstirlitz fstirlitz commented Dec 18, 2015

-f best[protocol!=m3u8][protocol!=m3u8_native]?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 18, 2015

Yes, what @fstirlitz suggested should be enough to filter HLS.

@dstftw dstftw closed this Dec 18, 2015
@gkreidl
Copy link
Author

@gkreidl gkreidl commented Dec 18, 2015

No. this doesn't work. Here's an example:

youtube-dl -F "http://mediathek.daserste.de/Sportschau-live/Ski-Alpin-Abfahrt-der-Damen/Das-Erste/Video?documentId=25486050&topRessort&bcastId=723230"
[ARD:mediathek] 25486050: Downloading webpage
[ARD:mediathek] 25486050: Downloading media JSON
[ARD:mediathek] 25486050: Downloading m3u8 information
[info] Available formats for 25486050:
format code extension resolution note
a0-rtmp-1 unknown_video unknown
a0-rtmp-2 unknown_video unknown
a0-mp4-0 mp4 unknown
a1-mp4-0 mp4 unknown
a1-mp4-1 mp4 unknown
a1-mp4-2-0 mp4 unknown
a1-mp4-2-1 mp4 unknown
a1-mp4-3 mp4 unknown
hls-meta mp4 multiple Quality selection URL
hls-61 mp4 unknown 61k , mp4a
hls-189 mp4 320x180 189k , avc1, mp4a
hls-317 mp4 480x270 317k , avc1, mp4a
hls-605 mp4 512x288 605k , avc1, mp4a
hls-1148 mp4 640x360 1148k , avc1, mp4a
hls-1988 mp4 960x540 1988k , avc1, mp4a (best)

youtube-dl -f best[protocol!=m3u8][protocol!=m3u8_native] -g "http://mediathek.daserste.de/Sportschau-live/Ski-Alpin-Abfahrt-der-Damen/Das-Erste/Video?documentId=25486050&topRessort&bcastId=723230"
ERROR: requested format not available

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 18, 2015

Correction -f best[protocol!=**?m3u8][protocol!=?**m3u8_native].

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
3 participants
You can’t perform that action at this time.