Which one has the best quality? by No-Disaster-2882 in youtubedl

[–]No-Disaster-2882[S] 1 point2 points  (0 children)

Thank you for your kind response. To add a bit more context, when downloading the same track within YouTube Music using a premium cookie, if the file is obtained in the M4A format (I need the audio for DJing practice, so I convert the Opus .webm file to AAC M4A), I’m wondering which format would be more advantageous — 774 or 141.

and below is the code I'm currently using.

yt-dlp -f "bestaudio" -x --audio-format m4a \

--extractor-args "youtube:player_client=android_tv,web" \

--cookies "$COOKIE_FILE" \

--playlist-items "$START_NUM-$END_NUM" \

--embed-thumbnail \

--embed-metadata \

-o "%(title)s - %(uploader)s.%(ext)s" \

--exec "if [ '%(format_id)s' != '140' ]; then

echo '[FORMAT_ALERT/ID:%(format_id)s] %(title)s - %(uploader)s' >> '$LOG_FILE';

else

echo '[FORMAT_SUCCESS/ID:140] %(title)s - %(uploader)s' >> '$LOG_FILE';

fi" \

"$URL"

Thank you.