fish: functions: Add alias for detecting errors in media with ffmpeg

This commit is contained in:
Sanchayan Maity 2023-04-26 15:27:04 +05:30
parent d9f9952ca1
commit 798cffa9f4
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -0,0 +1,4 @@
function ferror --description "Check for errors in a media file"
set filename (echo $argv | sed 's/\.[^.]*$//')
ffmpeg -v error -i $argv -f null - 2>"$filename"-error.log
end