Different audio quality on different music platforms

Discussion in 'Working with Sound' started by Kate Middleton, Jan 24, 2026.

  1. xorome

    xorome Audiosexual

    Joined:
    Sep 28, 2021
    Messages:
    1,642
    Likes Received:
    1,255
    Are you logged in with cookies in YT-DLP/JDownloader though?

    Here's the bitrate distribution for format 251-17 (Original upload language (EN), Opus) for "What's new in Ardour 9.0?"

    Pretty wide distribution, from <60kbps all the way up to >250 kbps. But again, only if logged in.
    histo.png

    Here's the command I used:
    Code:
    yt-dlp --cookies cookies.txt --no-mtime --remote-components ejs:github -f 251-17 "https://www.youtube.com/watch?v=DEFFplnYbxA"
    python bitrate.py "What's New in Ardour 9 0 [DEFFplnYbxA].webm"

    Here's the Python script (bitrate.py) I wrote because I couldn't find a bitrate distribution plotter:
    Code:
    import sys, subprocess
    
    args = "ffprobe -v error -select_streams a:0 -show_packets -show_entries packet=size,duration_time -of csv=p=0".split()
    data = subprocess.run(args + sys.argv[1:], capture_output=True)
    # print(data.stdout)
    
    packet = [x.split(",".encode("utf-8")) for x in data.stdout.splitlines()[1:-1]]
    packet = [[float(x[0]), float(x[1]) * 8] for x in packet]
    packet = [x for x in packet if x[0] > 0 and x[1] > 0]
    frames = [x[1] / (x[0] * 1000) for x in packet]
    # print(frames)
    
    import plotext, os
    
    plotext.hist(frames, os.get_terminal_size().columns)
    plotext.theme("dark")
    plotext.xlabel("Bitrate (kbps)")
    plotext.show()
    Needs ffmpeg (ffprobe), plotext for Python, and cookies from a throwaway Google/YT account.

    Code:
    import sys
    import subprocess
    
    args = "ffprobe -v error -select_streams a:0 -show_packets -show_entries packet=size -of csv=p=0".split()
    data = subprocess.run(args + sys.argv[1:], capture_output=True)
    # print(data.stdout)
    
    frame = 1 / (1000 * 0.02)
    packets = [round((int(x) * 8) * frame) for x in data.stdout.splitlines()[1:-1]]
    # print(packets)
    
    import plotext
    
    plotext.hist(packets, 64)
    plotext.theme("dark")
    plotext.xlabel("Bitrate (kbps)")
    plotext.show()
     
    Last edited: Feb 7, 2026 at 2:14 PM
  2. orbitbooster

    orbitbooster Audiosexual

    Joined:
    Jan 8, 2018
    Messages:
    1,372
    Likes Received:
    750
    However that is what we get from yt, filtered or not, like it or not, and we have to deal with it.

    The spectrograms you see are made with Fakinthefunk, and if you resample an audio from 44 to 48kHz it will flag it, it means that the capability of codec bitrate is not fully exploited. Try yourself with known files, re-encoding them.

    The examples I downloaded are not randomly taken, but from an official artist source, to be sure they are "professionally mastered", (or I hope so).
    As you can see not one file is flagged as fake, video or audio (and it happens a lot with random yt clips/audio).
    So the bitrate codecs are consistent with audio, no matter how low the bitrate itself is.
    However I'll download clips from random users to verify this, I want to be sure.
    fakes.jpg
     
  3. orbitbooster

    orbitbooster Audiosexual

    Joined:
    Jan 8, 2018
    Messages:
    1,372
    Likes Received:
    750
    No. I'm not logged in.
    You mean that if logged in yt (I don't know about JD cookies) you get better quality?
     
  4. xorome

    xorome Audiosexual

    Joined:
    Sep 28, 2021
    Messages:
    1,642
    Likes Received:
    1,255
    I can't even download Opus format unless I'm logged in.

    Here's how many formats get advertised depending on whether I'm logged in or not:
    Code:
    yt-dlp -F "https://www.youtube.com/watch?v=DEFFplnYbxA" | wc -l
    153
    
    yt-dlp --cookies cookies.txt -F "https://www.youtube.com/watch?v=DEFFplnYbxA" | wc -l
    218
    That's only advertised, doesn't mean I can download all of those (I can, if I'm logged in).
     
  5. orbitbooster

    orbitbooster Audiosexual

    Joined:
    Jan 8, 2018
    Messages:
    1,372
    Likes Received:
    750
    Here yes, (128kb) but I'm not logged in (see the list available).
    ardour.jpg
     
  6. xorome

    xorome Audiosexual

    Joined:
    Sep 28, 2021
    Messages:
    1,642
    Likes Received:
    1,255
    I don't use JDL enough to know what it's actually downloading/how to get it to show more formats. Are you sure that's constant bitrate and not "target bitrate"?

    I just downloaded "128kbps Opus" in JDL and this is what the bitrate distribution shows for me:
    upload_2026-2-7_14-43-58.png
     
  7. orbitbooster

    orbitbooster Audiosexual

    Joined:
    Jan 8, 2018
    Messages:
    1,372
    Likes Received:
    750
    I don't think there is any conversion, downloads are very quick, also for videos (it would take quite a bit to convert, at least for video).
    Also if you see the mediainfo logs above posted it states constant bitrate for all audio files (.aac, .opus, video embedded or not).
    If you use JD you can download all formats at once, just click Add additional variants.
    I'll send you the video link in PM because this matter is becoming interesting.
     
  8. saccamano

    saccamano Audiosexual

    Joined:
    Mar 26, 2023
    Messages:
    2,132
    Likes Received:
    902
    Location:
    CBGB omfug
    So instead of choosing between one loss-less and another loss-less format, you choose one flavor of crap (opus) over another (mp3). Makes a lot of sense... :rofl:

    Loss-y == artifacting and less music bits period. The format is inconsequential.
     
    Last edited: Feb 7, 2026 at 7:18 PM
  9. Strat4ever

    Strat4ever Audiosexual

    Joined:
    Aug 17, 2019
    Messages:
    760
    Likes Received:
    516
    I basically use YouTurd to watch old movies, 50's-60's movies late at night on my laptop, so the sound will not be very good. the few clips posted here the audio is usually ok. I don't really care which platform is better if I only listen to something once, I'm not saving it to listen to it daily for the rest of my life, if the audio is clean and clear I'm ok with it. Just my opinion so who cares.
     
    Last edited: Feb 7, 2026 at 8:32 PM
  10. orbitbooster

    orbitbooster Audiosexual

    Joined:
    Jan 8, 2018
    Messages:
    1,372
    Likes Received:
    750
    You should at least read carefully, first.
    And BTW, to be in topics, we're discussing YT audio quality, that much is what we get.
     
    Last edited: Feb 7, 2026 at 9:08 PM
  11. saccamano

    saccamano Audiosexual

    Joined:
    Mar 26, 2023
    Messages:
    2,132
    Likes Received:
    902
    Location:
    CBGB omfug
    YT <> quality. At least for audio anyway. If you want quality audio you go somewhere else. It's not on YT.
     
  12. ArticStorm

    ArticStorm Moderator Staff Member

    Joined:
    Jun 7, 2011
    Messages:
    8,932
    Likes Received:
    4,711
    Location:
    AudioSexPro
    yt video have 125kbit/s opus quality. and it depends on how old the upload is ...

    spotify has FLACs, mp3 320 kbit/s, free has 160kbit/s
    Tidal, quboz has HQ FLAC quality
    Apple has 256 AAC (aka m4a)
    deezer has same quality than spotify.

    But this also depends, what Labels have provided to begin with, some labels only provided mp3 320 quality, but streaming services made FLACs anyway.

    normal yt is the last resort, if nothing else has a copy of it free to download.
     
  13. saccamano

    saccamano Audiosexual

    Joined:
    Mar 26, 2023
    Messages:
    2,132
    Likes Received:
    902
    Location:
    CBGB omfug
    The quality of spotify "FLAC" is no better sounding than the MP3 stuff. Wherein it is highly suspect that if spotify does offer "FLAC" it's simply encoded MP3 crap in a FLAC format.

    Qobuz STREAMS true HD audio 24bit/96K, 44K/16bit, up to 24bit/192K etc... Which means you can record straight off the Qobuz stream to whatever medium you want to store. If one buys tunes from Qobuz it's in HD WAV, FLAC, DSD, DXD format. Higher res than was ever available on CD. It doesn't get any better for just a slightly higher price point @ month than spotify. Tidal has a limited selection comparted to Qobuz who has more stuff in HD or at least CD quality that any I have seen anywhere else. Some even complain about the Qobuz selection saying that it's not a wide as spotify - but personally a wider selection of crap sounding audio is not what I am after in the first place.
     
Loading...
Loading...