-
Notifications
You must be signed in to change notification settings - Fork 24
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
feature: Specify bitrate #25
Comments
Hey! yes good idea. I've thought about adding support for some kind of named presets which could be used for things like this. Otherwise i guess having a specific option for audio/video bitrate would work, e.g. something like Yes that workaround should work i think. For example you could add an additional format something like: ...
"ogglow": {
"Formats": [
"ogg"
],
"Streams": [
{
"Specifier": "a:0",
"Codecs": [
{
"Name": "opus",
"FormatFlags": [
"-b:a",
"25k"
]
}
]
}
],
"Ext": "ogg",
"MIMEType": "audio/ogg"
},
... But note that the bitrate flags will only be used if transcode is needed, you could combine with the "retranscode" option i guess. A bit messy so something better would be nice. Let me know if it works. This would still download the "best" source format sorted by codec and bitrate but i guess in most cases it's the output from ydls that you want to limit. |
Thanks! I will give it a shot later and update. edit: yes, I think it should always start with the high-quality format. Transcoding from one lower bitrate codec to a second, different low-bitrate codec would be a recipe for artifacts and degraded audio quality. |
Specific use-case: When downloading voice audio (such as podcasts or lectures) from Youtube over limited data plans, it would be great to be able to specify a very low bitrate in combination with the opus codec.
Feature request: A bitrate option in the parameters that is passed ffmpeg.
Workaround: Would adding parameters to either
OutputFlags
orFormatFlags
inydls.json
work? For a 25kbps example, Youtube-dl would be--audio-quality 25K
and for ffmpeg,-b 25k --mode mono
.The text was updated successfully, but these errors were encountered: