gaboshlib/gaboshlib/g_test_mediafile.bashfunc
2022-07-06 12:24:21 +02:00

12 lines
338 B
Bash

#!/bin/bash
function g_test_mediafile {
local g_mediafile=$@
ffprobe "$g_mediafile" >"$g_tmp"/audinfo 2>&1
if egrep -q "Invalid data found when processing input|No such file or directory|Invalid argument|moov atom not found" "$g_tmp"/audinfo
then
g_echo_warn "Video $g_aud existiert nicht (mehr) oder ist defekt."
return 1
fi
}