Skip to content

Instantly share code, notes, and snippets.

@darktef
Created September 23, 2016 04:14
Show Gist options
  • Save darktef/dc39f10d2b99d4ba774d81cb0368bb3f to your computer and use it in GitHub Desktop.
Save darktef/dc39f10d2b99d4ba774d81cb0368bb3f to your computer and use it in GitHub Desktop.
Fish - ffmpeg - Convert webm to mp3
for i in (find . -type f -iname "*.webm")
set int (string trim -l -c=./ $i)
set name (string trim -r -c=.webm $int)
echo $name
ffmpeg -i $i -vn -acodec libmp3lame -q:a 2 $name.mp3
end
@TheK0tYaRa
Copy link

This script cuts off the ends of filenames

Why do you have more than a single dot in a file name?

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