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

how to run youtube-dl in the foreground? #19309

Closed
jiangjiangflies opened this issue Feb 23, 2019 · 4 comments
Closed

how to run youtube-dl in the foreground? #19309

jiangjiangflies opened this issue Feb 23, 2019 · 4 comments
Labels

Comments

@jiangjiangflies
Copy link

@jiangjiangflies jiangjiangflies commented Feb 23, 2019

It seems youtube-dl creates a PID and then runs in the background. But I want it to run directly in the foreground. Any options to stop it running in the background?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 23, 2019

It does not run in background until you tell it to do so.

@dstftw dstftw closed this Feb 23, 2019
@dstftw dstftw added the invalid label Feb 23, 2019
@jiangjiangflies
Copy link
Author

@jiangjiangflies jiangjiangflies commented Feb 23, 2019

This is the output:

root@ns500019:~# youtube-dl https://www.youtube.com/embed/ICiZZBlJvRk?rel=0&showinfo=0 
[1] 22951
root@ns500019:~# [youtube] ICiZZBlJvRk: Downloading webpage
[youtube] ICiZZBlJvRk: Downloading video info webpage
[download] Destination: AP Top Stories February 22 P-ICiZZBlJvRk.f135.mp4
[download] 100% of 8.03MiB in 00:00
[download] Destination: AP Top Stories February 22 P-ICiZZBlJvRk.f140.m4a
[download] 100% of 1.03MiB in 00:00
[ffmpeg] Merging formats into "AP Top Stories February 22 P-ICiZZBlJvRk.mp4"
Deleting original file AP Top Stories February 22 P-ICiZZBlJvRk.f135.mp4 (pass -k to keep)
Deleting original file AP Top Stories February 22 P-ICiZZBlJvRk.f140.m4a (pass -k to keep)

A PID 22951 is created and I have to press Enter, then it will finish
[1]+ Done youtube-dl https://www.youtube.com/embed/ICiZZBlJvRk?rel=0

@jiangjiangflies
Copy link
Author

@jiangjiangflies jiangjiangflies commented Feb 23, 2019

Hmm, ampersand! You really helped me a lot! Thank you so much!!!

@ytdl-org ytdl-org locked and limited conversation to collaborators Feb 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.