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

Add --max-lenght #2224

Closed
davidhedlund opened this issue Jan 24, 2014 · 3 comments
Closed

Add --max-lenght #2224

davidhedlund opened this issue Jan 24, 2014 · 3 comments

Comments

@davidhedlund
Copy link

@davidhedlund davidhedlund commented Jan 24, 2014

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

@davidhedlund
Copy link
Author

@davidhedlund davidhedlund commented Jan 24, 2014

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.

@amq
Copy link

@amq amq commented Jan 24, 2014

Related to #2213
When you close this request, you can close mine too.

@phihag
Copy link
Contributor

@phihag phihag commented Jan 24, 2014

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.

@phihag phihag closed this Jan 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.