fish: functions: Add alias for detecting errors in media with ffmpeg
This commit is contained in:
parent
d9f9952ca1
commit
798cffa9f4
1 changed files with 4 additions and 0 deletions
4
fish/.config/fish/functions/ferror.fish
Normal file
4
fish/.config/fish/functions/ferror.fish
Normal 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
|
Loading…
Reference in a new issue