@@ -227,10 +227,14 @@ func (yt *Download) download(ctx context.Context, id int64, outCh chan<- util.Ms
227227
228228 // proto:dash is needed for fast Youtube downloads
229229 // sort by size, bitrate in ascending order
230- "-S" , "proto:dash,+size,+br" ,
230+ // "-S", "proto:dash,+size,+br",
231231
232232 // Faster youtube downloads: this combined with -S proto:dash ensures that we get dash https://github.com/yt-dlp/yt-dlp/issues/7417
233- "--extractor-args" , "youtube:formats=duplicate" ,
233+ //"--extractor-args", "youtube:formats=duplicate",
234+
235+ // Added 2025-01-18 after finding very poor quality audio from the dash settings above.
236+ // It seems Youtube has moved from 48kb/s to 32kb/s in their LQ files and it sounds awful!
237+ "-f" , "bestaudio" ,
234238 }
235239
236240 if yt .sponsorBlock {
@@ -240,7 +244,7 @@ func (yt *Download) download(ctx context.Context, id int64, outCh chan<- util.Ms
240244 }
241245 args = append (args , []string {
242246 // re-encode mp3 to opus, leave opus as-is, otherwise remux to m4a (re-encode to aac)
243- "--audio-format" , "mp3>opus/opus>opus/m4a" ,
247+ "--audio-format" , "mp3>opus/opus>opus/webm>opus/ m4a" ,
244248 // Use 32K bitrate.
245249 // This only applies to mp3>opus conversion. Other input formats will retain original bitrate.
246250 "--audio-quality" , "32K" ,
0 commit comments