I read somewhere that it is possible to rip youtube videos (music only) without the need for converting it into an mp3 as such.

The online conversion process (naturally) results in loss of quality, and (apparently) it is possible to preserve the original video’s audio quality via a direct rip. If so, how would it be done and what format would it be in anyway?

thanks

  • pr06lefs@lemmy.ml
    link
    fedilink
    English
    arrow-up
    14
    ·
    1 year ago

    I dunno about the qualilty but I do yt-dlp -x and it downloads and extracts just the audio portion.

    • infinull@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      11
      ·
      1 year ago

      This uses ffmpeg under the hood and muxes the file into a .m4a file without transcoding. Basically keeping whatever compression youtube used for the audio (which is some sort of mpeg4 compatible audio, probably depends a little bit)

      This still recompressed, but it’s the best you can do using youtube as the source.

      • uploader (almost certainly, but theoretically you could skip this step if you encoded your video well) compresses audio
      • uploader uploads to youtube
      • youtube re-compresses the audio again (almost certainly transcoding into a different codec)
  • BetaDoggo_@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Get yt-dlp then run: yt-dlp -x ‘video-url’

    I believe if you’re willing to check the format codes on the video you can download audio only but both will get you the least compressed audio available.

  • Thorny_Insight@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    1 year ago

    I use this app for it. Even adds the correct artist, title, album and such to the file aswell. I tried several similar apps but this was by far the best.

  • sho@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Easiest way is to use an Indivious instance, if you are on desktop or use the Newpipe App if on Android.