Skip to content

Instantly share code, notes, and snippets.

@klingtnet
Last active May 11, 2020 11:04
Show Gist options
  • Save klingtnet/e0c59ad289b0c7310d270208725260ab to your computer and use it in GitHub Desktop.
Save klingtnet/e0c59ad289b0c7310d270208725260ab to your computer and use it in GitHub Desktop.
Parallel flac to opus transcoding using ffmpeg and GNU parallel
#!/bin/bash
set -eu
IFS=\n && parallel ffmpeg -i {} -c:a libopus -b:a 128k {.}.opus' ::: **/*.flac
@klingtnet
Copy link
Author

The IFS=\n is for when the filenames contain spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment