Does someone have a script that converts all videos files from 264 to 265 and changes the name?

Even an attempt at it would be appreciated

  • beta_tester@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    0
    ·
    10 months ago

    What about

    #!/bin/bash
    
    find . -type f -name '*.mp4' -exec sh -c 'ffmpeg -i "$0" -c:v libx265 "${0%.mp4}-conv.mp4""' {} \;
    
    • navigatron@beehaw.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      10 months ago

      That looks promising. Just keep in mind that this will take a very long time to run. I believe there is a *arr out there that can manage this / show progress, but the name escapes me