Originally posted on beehaw technology. So I have some .opus files that I want to convert to .mp3. I used ffmpeg CLI with a script from https://ottverse.com/convert-all-files-inside-folder-ffmpeg-batch-convert, I used the wav to mp3 one but put opus instead of wav. The output is always in the same folder, and I want it to go to another, how can I do it? (windows 10)

  • @[email protected]OP
    link
    fedilink
    1
    edit-2
    10 months ago

    Thank you, didnt knew that I should put the path there. Ended up with this: for %f in (*.opus) do ffmpeg -i “%f” -b:a 192k -ar 44100 “E:\MUZICA\Music\miscmp3\%~nf_new.mp3”

    • @BreadstickNinja
      link
      English
      110 months ago

      Did that work or are you missing a backslash after “miscmp3”?

      • @[email protected]OP
        link
        fedilink
        1
        edit-2
        10 months ago

        It was a typo, I put a backslash there like 40min ago(so it worked) but it seems like it didnt edit… Weird

        Try clicking view source, it shows it

        • @BreadstickNinja
          link
          English
          210 months ago

          I don’t know the markup language for Lemmy but it might be treating it like an escape character. In any case, I hope your ffmpeg project is working!