add convert
This commit is contained in:
parent
ae531e0073
commit
6512d095b3
1 changed files with 7 additions and 0 deletions
7
functions/convert.fish
Normal file
7
functions/convert.fish
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue