question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always get suspended when run youtube-dl in background

See original GitHub issue

I found that I have no way to run youtube-dl in background. I tried all possible options to make it running in silence. But I still get ‘suspended’ job:

% stty -tostop && youtube-dl -q -i --no-warnings -o '%(id)s.%(ext)s'  $video_url >/dev/null 2>&1 &
[1] 53435
%
[1]  + 53435 suspended (tty output)  youtube-dl -q -i --no-warnings -o '%(id)s.%(ext)s'  > /dev/null 2>&1

Local env

[debug] youtube-dl version 2016.08.10
[debug] Python version 2.7.12 - Darwin-15.6.0-x86_64-i386-64bit

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
yan12125commented, Sep 20, 2016

A workaround:

  • Create ~/ffmpeg_wrapper.sh with the following contents:
#!/bin/bash
ffmpeg -d $*
  • chmod +x ~/ffmpeg_wrapper.sh
  • youtube-dl -o '%(id)s.%(ext)s' --ffmpeg-location ~/ffmpeg_wrapper.sh $video_url

See https://github.com/FFmpeg/FFmpeg/blob/ae1dd0c/ffmpeg.c#L384 for what’s broken and why -d works.

UPDATE: Fix commands in the workaround.

0reactions
yan12125commented, Oct 22, 2016

Thanks to @johnhawkinson (#10996), this will be fixed in the next version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Youtube-dl refuses to run in background - Ask Ubuntu
youtube-dl is running in the background, but it is still sending output to your terminal, and producing quite a lot of it to...
Read more >
That time that youtube-dl was BANNED
In a previous video I talked a little bit about youtube-dl, the tool I use to download YouTubeCheck out my main channel!
Read more >
Add site support for banned.video · Issue #22718 - GitHub
I've verified that I'm running youtube-dl version 2019.09.28 ... have a special video link, they're inserted into the banned.video channel ...
Read more >
youtube-dl "best" option doesn't do anything - Stack Overflow
The documentation states that using nothing should download the best quality possible, but I always get the default quality of 720p. This tends ......
Read more >
The RIAA is trying to kill youtube-dl. : r/youtubedl - Reddit
However, we do already ban a list of links/URLs here, so if you are aware of anything specific that should be banned, I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found