Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Terminate download after command-line supplied duration #7000
Comments
|
There’s a
|
|
another thing worth mentioning is that this needs the |
|
Today, I tried both solutions with version 2018.06.14. @Anonymouslemming your solution doesn't seem to kill the ffmpeg background process which keeps recording even after the script exited (hidden by the @nagisa the timeout solution works great and also cleans up the ffmpeg process
|
Looking through the documentation, I can't see a way to download a stream for a specific number of seconds.
This would be useful when downloading from audio services like tunein where the stream does not end at the end of the programme.
At the moment, I'm working around this by calling youtube-dl from a script and killing the background PID after a certain amount of time:
Having a --duration flag and terminating after this time would be quite useful for cases like this.