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 audio sample rate #10487

Closed
davidhedlund opened this issue Aug 29, 2016 · 4 comments
Closed

Add audio sample rate #10487

davidhedlund opened this issue Aug 29, 2016 · 4 comments

Comments

@davidhedlund
Copy link

@davidhedlund davidhedlund commented Aug 29, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.08.28

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Feature request (request for a new functionality)

Description of your issue, suggested solution and other information

Audio bitrate (--audio-quality 128K) can be set but not audio sample rate.

It should be possible to select both audio bitrate and audio sample rate at the same time.

sox require identical audio sample rates to merge files with

sox track1.ogg track2.ogg merged.ogg

or I it give this error message

sox FAIL sox: Input files must have the same sample-rate

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 29, 2016

Please paste an example URL and the command you use to download these files.

@davidhedlund
Copy link
Author

@davidhedlund davidhedlund commented Aug 29, 2016

@yan12125

youtube-dl --extract-audio --audio-format vorbis --audio-quality 128K Y6ihmqRahKg

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 29, 2016

Use format selection: -f 'bestaudio[asr=44100]'. Here "asr" is abbreviation of audio sample rate.

By the way, --audio-quality is used in re-encoding, not for selection.

@yan12125 yan12125 closed this Aug 29, 2016
@davidhedlund
Copy link
Author

@davidhedlund davidhedlund commented Aug 29, 2016

@yan12125 Thank you.

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
2 participants
You can’t perform that action at this time.