„gaboshlib/g_compress_video.bashfunc“ ändern
This commit is contained in:
parent
dcc02e9cde
commit
82051cefe2
@ -14,13 +14,16 @@ function g_compress_video {
|
||||
|
||||
|
||||
# Bereits bearbeitet?
|
||||
local g_lines=`cat "$g_tmp"/vidinfo | egrep -v "WARNING: | configuration: |Side data\:|audio service type\: main|Video\:.+hevc.+1280x|Video\:.+hevc.+960x|Video\:.+hevc.+[1-8][0-9][0-9]x|Audio\:.+HE-AAC\).+mono|Audio\:.+HE-AAC.+stereo|Audio\:.+ac3.+5\.1.side.|Input .+mp4.+from|vendor_id" | wc -l`
|
||||
# Max DVD Quali
|
||||
[ -e "$g_tmp"/VID-SD ] && g_lines=`cat "$g_tmp"/vidinfo | egrep -v "Side data\:|audio service type\: main|Video\:.+hevc.+[1-8][0-9][0-9]x|Audio\:.+HE-AAC\).+mono|Audio\:.+HE-AAC.+stereo|Audio\:.+ac3.+5\.1.side.|Input .+mp4.+from|vendor_id" | wc -l`
|
||||
if [ $g_lines -eq '22' ]
|
||||
if egrep -q "Stream.+Video: hevc" Video: hevc
|
||||
then
|
||||
g_echo "Video $g_vid bereits bearbeitet!"
|
||||
return 1
|
||||
local g_lines=`cat "$g_tmp"/vidinfo | egrep -v "WARNING: | configuration: |Side data\:|audio service type\: main|Video\:.+hevc.+1280x|Video\:.+hevc.+960x|Video\:.+hevc.+[1-8][0-9][0-9]x|Audio\:.+HE-AAC\).+mono|Audio\:.+HE-AAC.+stereo|Audio\:.+ac3.+5\.1.side.|Input .+mp4.+from|vendor_id" | wc -l`
|
||||
# Max DVD Quali
|
||||
[ -e "$g_tmp"/VID-SD ] && g_lines=`cat "$g_tmp"/vidinfo | egrep -v "Side data\:|audio service type\: main|Video\:.+hevc.+[1-8][0-9][0-9]x|Audio\:.+HE-AAC\).+mono|Audio\:.+HE-AAC.+stereo|Audio\:.+ac3.+5\.1.side.|Input .+mp4.+from|vendor_id" | wc -l`
|
||||
if [ $g_lines -eq '22' ]
|
||||
then
|
||||
g_echo "Video $g_vid bereits bearbeitet!"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
local g_wait=$(($RANDOM % 60))
|
||||
|
Loading…
Reference in New Issue
Block a user