There are some albums that I genuinely can’t find anywhere else, they barely seem to exist. Is there a good way to turn a full album on youtube to a bunch of seperate files for each song, a shortcut to getting the metadata right for each song, etc? Or is downloading the whole thing and manually chopping it up the only way?

  • riccardo@lemmy.ml
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    12 days ago

    If chapters are available for the video, yt-dlp has a command line argument that will split the video into different files, one for each chapter. Quoting a reddit comment:

    you need ffmpeg.
    how to convert to mp3: wiki
    split chapters: --split-chapters
    example naming files after chapters: -o "chapter:%(section_number)s %(section_title)s.%(ext)s"
    available chapter variables:

    section_title (string): Title of the chapter
    section_number (numeric): Number of the chapter within the file
    section_start (numeric): Start time of the chapter in seconds
    section_end (numeric): End time of the chapter in seconds
    

    as i recall, i don’t use this myself, it will also keep the original file, which naming depends on the regular -o (use in addition to the -o line with chapter:)

    --split-chapters will also work with the timestamps mentioned in the description