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

How to get a low-bitrate Opus from Youtube? #24246

Closed
DynV opened this issue Mar 4, 2020 · 4 comments
Closed

How to get a low-bitrate Opus from Youtube? #24246

DynV opened this issue Mar 4, 2020 · 4 comments
Labels

Comments

@DynV
Copy link

@DynV DynV commented Mar 4, 2020

I'm currently using

youtube-dl --extract-audio --audio-format opus --audio-quality 8

and when looking at VLC codec info (Ctrl-J) and media statistics (other tab (from same window)) it show it's an Opus 32 bit 48 KHz and I estimate from the content bitrate fluctuation that its average is 150 Kbps (Is there a better way to get its average?) but I'd like something with a smaller file size. When I stream AAC 32 Kbps (radio), I like the (sound) quality; perhaps Opus would be a similar quality at that bitrate, or even better? I tried

youtube-dl -f 'bestaudio' --audio-format opus --audio-quality 8

and the result is (sounds) horrible.

As the title: How to get a low-bitrate Opus from Youtube?

Thank you kindly

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 4, 2020

Read FAQ on format selection.

@dstftw dstftw closed this Mar 4, 2020
@DynV
Copy link
Author

@DynV DynV commented Mar 4, 2020

I've read https://github.com/ytdl-org/youtube-dl#format-selection and I can't find what I'm looking for. I'm looking for something automated, I don't want to so -F then pick an audio format using -f [format code].

I'd like for the following to be done automatically:

  1. download an Opus between 24 & 48 Kbps
  2. download an AAC between 24 & 48 Kbps
  3. download the best audio then be converted to a maximum of 32 Kbps Opus (if the original format wouldn't sound better than a lower bitrate, than the lower bitrate to be converted to).
@DynV
Copy link
Author

@DynV DynV commented Mar 7, 2020

If you won't assist any further on this, could you provide a resource where they could (ie: a forum URL) ?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 7, 2020

You don't need to specify format by format code you must provide format selection expression. Bother to already read it. I'm not going to assist something already answered thousand times.

@ytdl-org ytdl-org locked and limited conversation to collaborators Mar 7, 2020
@dstftw dstftw added the duplicate label Mar 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.