„gtc-media-compress.sh“ ändern

This commit is contained in:
olli 2022-08-24 17:17:28 +02:00
parent d064547a1f
commit 135416429f

View File

@ -96,19 +96,19 @@ then
then
if echo $vidres | grep -q "480p"
then
echo -n 'tmux new -s g_ffmpegparallel ". /etc/bash/gaboshlib.include; echo \$\$ >"\$g_tmp"/VID-SD; cat ~/.g_tmpvidlist | sort -R | while read video; do g_compress_video \$video; done" ' >$g_tmp/g_vidcmd
echo -n '\; split-window -d ". /etc/bash/gaboshlib.include; echo \$\$ >"\$g_tmp"/VID-SD; cat ~/.g_tmpvidlist | sort -R | while read video; do g_compress_video \$video; done" \; select-layout even-vertical ' >>$g_tmp/g_vidcmd
echo -n 'tmux new -s g_ffmpegparallel ". /etc/bash/gaboshlib.include; echo \$\$ >"\$g_tmp"/VID-SD; cat ~/.g_tmpvidlist | sort -R | while read video; do g_compress_video \"\$video\"; done" ' >$g_tmp/g_vidcmd
echo -n '\; split-window -d ". /etc/bash/gaboshlib.include; echo \$\$ >"\$g_tmp"/VID-SD; cat ~/.g_tmpvidlist | sort -R | while read video; do g_compress_video \"\$video\"; done" \; select-layout even-vertical ' >>$g_tmp/g_vidcmd
else
echo -n 'tmux new -s g_ffmpegparallel ". /etc/bash/gaboshlib.include; cat ~/.g_tmpvidlist | sort -R | while read video; do g_compress_video \$video; done" ' >$g_tmp/g_vidcmd
echo -n 'tmux new -s g_ffmpegparallel ". /etc/bash/gaboshlib.include; cat ~/.g_tmpvidlist | sort -R | while read video; do g_compress_video \"\$video\"; done" ' >$g_tmp/g_vidcmd
fi
else
if echo $vidres | grep -q "480p"
then
echo -n "\; split-window -d \" sleep $num ; " >>$g_tmp/g_vidcmd
echo -n '. /etc/bash/gaboshlib.include; echo \$\$ >"\$g_tmp"/VID-SD; cat ~/.g_tmpvidlist | sort -R | while read video; do g_compress_video \$video; done" \; select-layout even-vertical ' >>$g_tmp/g_vidcmd
echo -n '. /etc/bash/gaboshlib.include; echo \$\$ >"\$g_tmp"/VID-SD; cat ~/.g_tmpvidlist | sort -R | while read video; do g_compress_video \"\$video\"; done" \; select-layout even-vertical ' >>$g_tmp/g_vidcmd
else
echo -n "\; split-window -d \" sleep $num ; " >>$g_tmp/g_vidcmd
echo -n '. /etc/bash/gaboshlib.include; cat ~/.g_tmpvidlist | sort -R | while read video; do g_compress_video \$video; done" \; select-layout even-vertical ' >>$g_tmp/g_vidcmd
echo -n '. /etc/bash/gaboshlib.include; cat ~/.g_tmpvidlist | sort -R | while read video; do g_compress_video \"\$video\"; done" \; select-layout even-vertical ' >>$g_tmp/g_vidcmd
fi
fi
done
@ -124,7 +124,7 @@ else
echo $vidres | grep -q "480p" && echo $$ >"$g_tmp"/VID-SD
g_find_video "$mediapath" | while read video
do
g_compress_video $video
g_compress_video "$video"
done
fi