add convert

This commit is contained in:
JMARyA 2025-05-24 03:00:12 +02:00
parent ae531e0073
commit 6512d095b3
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

7
functions/convert.fish Normal file
View file

@ -0,0 +1,7 @@
# convert <OLD_EXT> <NEW_EXT>
# convert all files with old_ext to new_ext using ffmpeg
function convert
for i in *.$argv[1]
ffmpeg -i "$i" (string replace -r '\.[^.]*$' ".$argv[2]" -- $i)
end
end