miraclx/freyr-js

Transcoding to 320kbps is useless

Open

#440 opened on Feb 24, 2023

View on GitHub
 (4 comments) (7 reactions) (0 assignees)JavaScript (2,279 stars) (154 forks)user submission
enhancementhelp wanted

Description

Because the audio is sourced from YouTube the highest bitrate audio available is 256kbps. Transcoding the already compressed 256kbps audio to 320 kbps AAC will only result in loss of information as AAC is a lossy codec and transcoding is generally an at least somewhat lossy process. I suggest instead downloading the maximum of 256kbps and leaving it be, or if the user specifies a lower bitrate downloading YouTube's copy of the audio at that bitrate (which much of the time does exist). If no such version can be found, download the 256kbps copy and transcode to the lower bitrate.

Contributor guide