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.

  • InnocentZero@kbin.earth
    link
    fedilink
    arrow-up
    7
    ·
    3 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
      ·
      3 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
      ·
      3 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.