I’m trying to reduce the size of my video collection because I’m running out of storage.

My strategy is to look for smaller sized files to replace very large ones. When that fails, I am using handbrake to rencode. Its working, but very slowly due to my ancient computer. Redownloading is the much faster method.

Some titles, which were originally released as non-english, have existing small files, but the English audio is only available less commonly as a huge file.

Is it possible to redownload the non-english video and map the English audio onto it? It might be too much fooling around to get syncing correct.

Extra question, does anybody know how to set up sonarr/radarr to try to reduce filesize automatically? Ive been doing all the downloading by hand.

  • MiRRoRMaN@ani.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 hours ago

    always a pickle to do, because it tends to always go out of sync. you’d have to find a way to get the timing right over the entire movie.

  • tvbusy@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 day ago

    Yes, absolutely, but not in an automated way. Remuxers do this sometimes. They compare video, audio and subtitles from multiple releases and select the best one and frame sync them. However, the sync process is very manual and there are cases when different releases have different cuts, leading audio is in sync at the beginning but went out of sync later on, ruining the whole experience.

      • cockmushroom@reddthat.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        21 hours ago

        That said, you could probably cook something up using OpenAI’s whisper (or something more recent; i’m not terribly familiar with transcription; or local models in general tbh) which you can run locally to get time stamps and then cut up and match starting points. Could be a fun project.

  • LastYearsIrritant@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 days ago

    MakeMKV lets you mix and match files into a video container, so you can put a different audio track or sub track into the video.

    You might have trouble with the sync if things don’t start at exactly the same time, but I think there are offset settings in there somewhere.

    • snoons@piefed.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 hours ago

      Yeah, pretty sure that can be done with SMPlayer too, at least with the animes I watch there are sometimes multiple audio tracks to choose from.

  • InnocentZero@kbin.earth
    link
    fedilink
    arrow-up
    7
    ·
    2 days ago

    Pretty sure ffmpeg lets you extract audio channels from a video and even add them. You can probably look up the commands online, I don’t remember off the top of my head

    • far_university1990@reddthat.com
      link
      fedilink
      English
      arrow-up
      14
      ·
      2 days ago

      To show all stream:

      ffprobe -i FILE
      

      Select stream number with your audio.

      To get stream X into AUDIO:

      ffmpeg -i FILE -map X -c copy AUDIO
      

      To put AUDIO onto FILE:

      ffmpeg -i FILE -i AUDIO -c copy OUTPUT
      

      If FILE only has 1 video and 1 audio, to replace FILE audio with AUDIO:

      ffmpeg -i FILE -i AUDIO -map 0:v -map 1:a -c copy OUTPUT
      
    • mbirth 🇬🇧@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      It’s a mix of --codec copy to not reencode the streams, --map 0:1 to select the audio stream of the input file and for merging back you need multiple -i input files and then --map 0:0 to map the first input file’s video stream and --map 1 to map the second input file (English audio stream). Mappings may vary - use ffprobe to check your files.

  • Azzu@leminal.space
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    The other answers have already been helpful, so I wanted to ask, why do you have/want a video collection? Can’t you just delete it and download it again once you want to watch it again?

    • layzerjeyt@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      You can only rely on ready availability for certain shows/movies that are popular at the moment. Lots of stuff fades away over time. There’s some shows/movies that sit in the download queue for months (or still counting) for lack of seeds, and re-searching finds nothing. Sometimes even finding a single torrent is difficult or impossible. My Wanted lists in sonarr/radarr have many items where no torrent is ever found. Nobody is interested in them I guess. I’m sure they’re out there somewhere. Once I finally get my hands on them, I will only want to delete if it’s crap. I’d say about half my collection is fairly easy to replace and the other half was some kind of effort/luck to track down and might not be found again.

      And I don’t feel like watching things right away after I get them, or doing work and waiting every time I want to watch something. Sometimes I hear about media, download it, then don’t watch for a while.

      But it’s fine not to keep drives full of media if you don’t want to. Especially now with streaming torrents and stuff, it is very flexible. If your taste is coinciding with people who seed torrents, then you are in luck. There have been millions of TV shows and movies produced, it is much broader.

      And I guess it is kind of a hobby. :)

  • mbirth 🇬🇧@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 days ago

    You might want to look into Tdarr. Configure it once and let your old computer transcode away automatically.

    For audio stream replacement - if you get the exact same video (same intro length, same scene lengths, same total length, etc.), you can easily replace the audio streams and it should work out. ffmpeg is your friend to do it lossless.

    • ragebutt@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 days ago

      Second tdarr for doing this to a large library but if it’s just a file or three mkvtoolnix and mkvextract is easier, tdarr can be kind of a nightmare to configure and documentation isn’t amazing

        • ragebutt@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 day ago

          Honestly that’s not even the worst bit. Like docker images exist that can get it running in no time. But then if you just want to say, scan your library and remove all languages for subtitles and audio that aren’t your native language? It’s definitely doable but a pain to setup. Even more so if you speak a second language or are like an anime person that hates dubs