add voice mono option
This commit is contained in:
parent
725ce0d81e
commit
b5eeffd998
2 changed files with 7 additions and 0 deletions
|
|
@ -77,6 +77,12 @@ def get_opts(format: str, quality: str, ytdl_opts: dict) -> dict:
|
||||||
"preferredquality": 0 if quality == "best" else quality,
|
"preferredquality": 0 if quality == "best" else quality,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Add voice mono settings for MP3
|
||||||
|
if format == "mp3" and quality == "voice_mono":
|
||||||
|
opts["postprocessor_args"] = {
|
||||||
|
"ffmpeg": ["-ac", "1", "-ar", "22050", "-q:a", "8"]
|
||||||
|
}
|
||||||
|
|
||||||
# Audio formats without thumbnail
|
# Audio formats without thumbnail
|
||||||
if format not in ("wav") and "writethumbnail" not in opts:
|
if format not in ("wav") and "writethumbnail" not in opts:
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ export const Formats: Format[] = [
|
||||||
{ id: '320', text: '320 kbps' },
|
{ id: '320', text: '320 kbps' },
|
||||||
{ id: '192', text: '192 kbps' },
|
{ id: '192', text: '192 kbps' },
|
||||||
{ id: '128', text: '128 kbps' },
|
{ id: '128', text: '128 kbps' },
|
||||||
|
{ id: 'voice_mono', text: 'Voice Mono' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue