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

[QUESTION] How do I watch a video as it is downloading? #16260

Closed
NightMachinary opened this issue Apr 23, 2018 · 2 comments
Closed

[QUESTION] How do I watch a video as it is downloading? #16260

NightMachinary opened this issue Apr 23, 2018 · 2 comments
Labels

Comments

@NightMachinary
Copy link

@NightMachinary NightMachinary commented Apr 23, 2018

I know youtube-dl -o - "https://www.youtube.com/watch?v=BaW_jenozKcj" | vlc - streams to vlc, but I want the file to be saved locally for later use as well, without consuming double internet traffic.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 24, 2018

Either download directly to file and play that file or pipe through tee.

@dstftw dstftw closed this Apr 24, 2018
@dstftw dstftw added the question label Apr 24, 2018
@NightMachinary
Copy link
Author

@NightMachinary NightMachinary commented Apr 24, 2018

@dstftw Thanks! You made my day ^_^
Here is the command for people who might enjoy it:
youtube-dl -o - youtube_addres | tee filename.mp4 | mpv --cache -
This allows you to treat the downloaded part just like a local file (seek, fast-forward, etc). You need to install mpv though (brew install mpv).

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.