fish: functions: Add alias for detecting errors in media with ffmpeg
This commit is contained in:
parent
d9f9952ca1
commit
798cffa9f4
|
@ -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 New Issue