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 Progress Bar / Status #25055

Closed
cjm721 opened this issue Apr 29, 2020 · 2 comments
Closed

HLS Progress Bar / Status #25055

cjm721 opened this issue Apr 29, 2020 · 2 comments
Labels

Comments

@cjm721
Copy link

@cjm721 cjm721 commented Apr 29, 2020

Checklist

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

Description

Youtube-DL does not give a progress bar for HLS. This I assume is because HLS is a streaming format that doesn't say how big the file will be / how many segments are left.

It would be nice to have some indicator of how far along in the stream it is. For this I had two ideas.

  1. State how long the video stream currently is. Example Output: [Streaming] Position 15:30 at 00:04/s
  2. Use a user provided flag to estimate the length. Example Output: [download] 10.5% of an estimated 873.88MiB at 2.44MiB/s estimated ETA 05:20

I don't know if with the encoder have access to how long the current file is so don't know if option 1 is viable. For option 2 would assume since HLS gives quality / bitrate information could calculate an estimated total size and then just measure the segments size as they go by to determine percent.

End Goal for me personally is that I use Youtube-DL to download many HLS files using a script and it can take quite a while for some videos to finish. I was currently debating about parsing the output and looking at the ts segment number (not sure if that is part of standard or just been lucky that it seems to be an incrementing number) and guessing how many there are. Other option I was looking at was throwing the output into standard out and writing it to disk myself and attempt option 2.

@cjm721 cjm721 added the request label Apr 29, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 29, 2020

It does provide for native HLS.

@dstftw dstftw closed this Apr 29, 2020
@dstftw dstftw added the invalid label Apr 29, 2020
@cjm721
Copy link
Author

@cjm721 cjm721 commented Apr 30, 2020

For anyone who comes across this my actual issue was the way I was printing the output was changing the order so \r was not working as intended (was getting overwritten by the ffmpeg output). So now catching the \r correctly everything works as intended.

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