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.
Add --max-lenght #2224
Add --max-lenght #2224
Comments
|
Except --max-lenght, other options should be included as well, like --lenght, and --min-lenght. There is an option for lenght: --get-duration - simulate, quiet but print video length But it does not let you set limitations. |
|
Related to #2213 |
|
You are proposing using a new option as a workaround for a bug (in YouTube or ffmpeg). I'd rather fix or work around the bug all the time. |
Lot's of files that I have downloaded are longer then they supposed to, with no sound at the end. This can be avoided by adding a new option, --max-lenght (maximum download rate in bytes per second (e.g. 8:57)) which can be compared against youtubes data-context-item-time.
Example of a video with dead sound at the end of the track:
title="Antares - Sun Sanctuary";
youtube-dl "ytsearch10:$title" -f 172/171/43/webm/ogg --extract-audio --no-overwrites --match-title ^"$title"$ --verbose --ignore-errors --max-downloads 1