2

When doing:

youtube-dl -xf bestaudio/best <link to playlist>

...I get a lot of OPUS files at relatively "normal" bitrates like 130kbps.

However, when I run the same command with the additional stage of transcoding the downloaded OPUS files to AAC/M4A, using either one of the following commands:

youtube-dl -xf bestaudio/best --audio-format m4a <link to playlist>

youtube-dl -xf bestaudio[abr<=192] --audio-format m4a <link to playlist>

...the converted M4A files have much higher bitrates (and file sizes) than the original OPUS files, averaging more than 400kbps. This is more than a 300% increase in bitrate. Is this a bug with the post-processing stage of youtube-dl, or is it expected behaviour?

Is the only way to convert OPUS to an equivalent quality AAC file to give it a much higher bitrate? If so, does this mean that when I convert an OPUS file at, for example, 192k to AAC at 192k, that I'm losing a huge amount of quality?

Hashim Aziz
  • 13,835

1 Answers1

-1

Do not convert YouTube downloads to M4A/AAC. YouTube already offers AAC audio, just download that without reencoding.

A bitrate of over 400 kbps is obscenely high for AAC. With a decent encoder (FDK-AAC/qaac) 160-192 kbps should be enough to get on the same quality level as libopus 128 kbps vbr.

Reencoding relatively low quality lossy media is generally not recommended, because generation loss exists, you'll need a much higher bitrate to not add additional compression artifacts.

damian101
  • 103