Skip to content

Instantly share code, notes, and snippets.

@lord-carlos
Created March 30, 2019 11:34
Show Gist options
  • Save lord-carlos/ab98f297f66da27daa900b24617568c4 to your computer and use it in GitHub Desktop.
Save lord-carlos/ab98f297f66da27daa900b24617568c4 to your computer and use it in GitHub Desktop.
For loop in fish shell, converting opus files to ogg with ffmpeg
for i in *.opus
set name (echo $i |cut -d'.' -f1);
echo $name:
ffmpeg -i "$i" -c:a libvorbis -q 8 convert/$name.ogg;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment