mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-08-21 19:40:32 +02:00
fish(ffmpeg): handle files with colons properly
This commit is contained in:
@@ -130,7 +130,7 @@
|
|||||||
''
|
''
|
||||||
set ORIGINAL_SIZE (du -hs | cut -f1)
|
set ORIGINAL_SIZE (du -hs | cut -f1)
|
||||||
|
|
||||||
fd -e wav -x ffmpeg -i "{}" -loglevel quiet -stats "{.}.flac"
|
fd -e wav -x ffmpeg -i "file:{}" -loglevel quiet -stats "file:{.}.flac"
|
||||||
fd -e wav -X trash
|
fd -e wav -X trash
|
||||||
|
|
||||||
set NEW_SIZE (du -hs | cut -f1)
|
set NEW_SIZE (du -hs | cut -f1)
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
''
|
''
|
||||||
set ORIGINAL_SIZE (du -hs | cut -f1)
|
set ORIGINAL_SIZE (du -hs | cut -f1)
|
||||||
|
|
||||||
fd -e wav -e flac -x ffmpeg -i "{}" -c:a libopus -b:a 128K -loglevel quiet -stats "{.}.opus"
|
fd -e wav -e flac -x ffmpeg -i "file:{}" -c:a libopus -b:a 128K -loglevel quiet -stats "file:{.}.opus"
|
||||||
fd -e wav -e flac -X rm -I
|
fd -e wav -e flac -X rm -I
|
||||||
|
|
||||||
set NEW_SIZE (du -hs | cut -f1)
|
set NEW_SIZE (du -hs | cut -f1)
|
||||||
|
Reference in New Issue
Block a user