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

hls download ? #18117

Closed
SheepDomination opened this issue Nov 8, 2018 · 9 comments
Closed

hls download ? #18117

SheepDomination opened this issue Nov 8, 2018 · 9 comments

Comments

@SheepDomination
Copy link

@SheepDomination SheepDomination commented Nov 8, 2018

Hi, does youtube download support hls files ? And if so how can I download an hls file from a streaming site (nbs,cbs etc) ?
For example, there is a hls-841 mp4 file; how can I download this file using youtubedl and possible rtmpdump ?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 9, 2018

By passing -f hls-841. rtmpdump has nothing to do with HLS.

@dstftw dstftw closed this Nov 9, 2018
@SheepDomination
Copy link
Author

@SheepDomination SheepDomination commented Nov 21, 2018

@dstftw I get an error, that ffmpeg or avconv was not detected, I typically used ffmpeg manually; how do I set youtubedl to get the mp4 file by means of the flag -f hls-841 ?

@Hrxn
Copy link

@Hrxn Hrxn commented Nov 21, 2018

You need to have ffmpeg somewhere in your PATH, so that youtube-dl can find it.

@SheepDomination
Copy link
Author

@SheepDomination SheepDomination commented Nov 21, 2018

I placed FFMPEG the path with the variable name as ffmpeg and the variable value is set to the path to which ffmpeg is located. Although the same error occurs ?

@Hrxn
Copy link

@Hrxn Hrxn commented Nov 22, 2018

Variable name? The name of the environment variable that is collectively called PATH is well, PATH. An other name does not work.

If you run youtube-dl with the verbose-flag set (youtube-dl -v) you should see something like this:

[debug] System config: []
[debug] User config: ['--format', '(bestvideo[vcodec=vp9.2]/bestvideo[vcodec=vp9][fps>30]/bestvideo[vcodec=vp9][height>=1080]/bestvideo[fps>30]/bestvideo[height>720])+(bestaudio[acodec=opus]/bestaudio)/best', '--output', '%(title)s.%(ext)s', '--restrict-filenames', '--netrc']
[debug] Custom config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2018.11.18
[debug] Python version 3.7.0 (CPython) - Windows-10-10.0.17134-SP0
[debug] exe versions: ffmpeg 4.0.2, ffprobe 4.0.2
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.
PS E:\>

And this line indicates that ffmpeg was found:
[debug] exe versions: ffmpeg 4.0.2, ffprobe 4.0.2

What is your output here?

@SheepDomination
Copy link
Author

@SheepDomination SheepDomination commented Nov 22, 2018

My output is the following; [debug] exe versions: rtmpdump 2.4.

@Hrxn
Copy link

@Hrxn Hrxn commented Nov 22, 2018

Then you have rtmpdump somewhere in your PATH, but not ffmpeg. You can put the ffmpeg binaries into the same place, for example.

@SheepDomination
Copy link
Author

@SheepDomination SheepDomination commented Nov 22, 2018

When using a proxy to get a stream, I get this error repeatedly ?
[httpproxy @ 0000000002653aa0] Stream ends prematurely at 1031501, should be 18446744073709551615 [tls @ 00000000025dc280] Unable to read from socket [httpproxy @ 0000000002653aa0] Stream ends prematurely at 1031501, should be 18446744073709551615 [tls @ 00000000025dc280] Unable to read from socket [httpproxy @ 0000000002653aa0] Stream ends prematurely at 1323944, should be 18446744073709551615 [tls @ 00000000025dc280] Unable to read from socket

@Hrxn
Copy link

@Hrxn Hrxn commented Nov 27, 2018

How is a proxy issue related to this issue here (HLS Download)?

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.