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

Sanchayan Maity 2023-04-26 15:27:04 +05:30
parent d9f9952ca1
commit 798cffa9f4
Signed by: sanchayanmaity
GPG Key ID: 6F6A0609C12038F3
1 changed files with 4 additions and 0 deletions

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