yt-dlp: yt-dlp runs in background and can't be ctrl+c to stop
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I intentionally remove or skip any mandatory* field
Checklist
- I’m reporting a bug unrelated to a specific site
- I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
- I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Provide a description that is worded well enough to be understood
yt-dlp runs in background and can’t be ctrl+c to stop
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>) - If using API, add
'verbose': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
-
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (6 by maintainers)
i would guess the url had an & which was interpreted by the shell in bash you can run
fgto bring it into the foreground so you can stop it in future ‘quote’ the urlNext time, try simper command to do verification, e.g.,
tail -f /dev/null.@Smyl3 I use yt-dlp on several Linux systems and pressing ctrl-c during livestreams to interrupt the download works just fine on all of them. There is something unusual about your setup(s) that is creating an issue for you. I can’t reproduce this issue on any of my machines
@Smyl3 does ctrl-c work for you when you call ffmpeg directly?
e.g. run this:
if not, then this is not a yt-dlp issue, but an issue with ffmpeg or with your setup
ctrl-c wasn’t working and you had to use ctrl-z?
Are you sure
yt-dlpis invoking yt-dlp directly and not some shell alias/function/script? Show the output ofcommand -v yt-dlpAlso, if the m3u8 is a livestream, the download will always be handled by ffmpeg