fixes for linux mint
This commit is contained in:
parent
5da4166e2b
commit
6ea71d6ca1
@ -171,18 +171,14 @@ function g_compress_video {
|
|||||||
g_ass="ass=${g_viddone}.ass,"
|
g_ass="ass=${g_viddone}.ass,"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z ${g_remotedockerffmpeg} ]
|
echo "ffmpeg -loglevel warning -stats -i \"${g_vid}\" -c:v copy -c:a copy -movflags +faststart -f mp4 \"${g_vid}-streamable\" < /dev/null 2>&1" >"$g_tmp"/cmd
|
||||||
then
|
sshstream="ssh -p33 ${g_remotedockerffmpeg}"
|
||||||
g_echo "Baue MP4 ($g_vid)"
|
[ -z ${g_remotedockerffmpeg} ] && sshstream="sh -c"
|
||||||
echo "cat \"$g_vid\" | docker run -i --rm linuxserver/ffmpeg -loglevel warning -stats -i pipe: -f mp4 -map_metadata -1 -map_chapters -1 -map $g_vidstream -map $g_audstream -filter:v \"${g_ass}${g_vidscale}\" -c:v libx265 -crf 25 -x265-params \"vbv-maxrate=${g_vidmaxratenew}:vbv-bufsize=${g_vidmaxratenew}:log-level=warning\" -pix_fmt yuv420p -max_muxing_queue_size 9999 $g_audionew -threads 1 -movflags +faststart+empty_moov -f mp4 pipe: >\"${g_viddone}-stream\"" >"$g_tmp"/cmd
|
g_echo "Baue MP4 ($g_vid) ${g_remotedockerffmpeg}"
|
||||||
echo "ffmpeg -loglevel warning -stats -i \"${g_viddone}-stream\" -c:v copy -c:a copy -movflags +faststart \"$g_viddone\" < /dev/null 2>&1" >>"$g_tmp"/cmd
|
echo "cat \"${g_vid}-streamable\"| $sshstream 'cat | docker run -i --rm linuxserver/ffmpeg -loglevel warning -stats -i pipe: -f mp4 -map_metadata -1 -map_chapters -1 -map $g_vidstream -map $g_audstream -filter:v \"${g_ass}${g_vidscale}\" -c:v libx265 -crf 25 -x265-params \"vbv-maxrate=${g_vidmaxratenew}:vbv-bufsize=${g_vidmaxratenew}:log-level=warning\" -pix_fmt yuv420p -max_muxing_queue_size 9999 $g_audionew -threads 1 -movflags +faststart+empty_moov -f mp4 pipe:' >\"${g_viddone}-stream\"" >>"$g_tmp"/cmd
|
||||||
#echo "ffmpeg -loglevel warning -stats -i \"$g_vid\" -f mp4 -map_metadata -1 -map_chapters -1 -map $g_vidstream -map $g_audstream -filter:v \"${g_ass}${g_vidscale}\" -c:v libx265 -crf 25 -x265-params \"vbv-maxrate=${g_vidmaxratenew}:vbv-bufsize=${g_vidmaxratenew}:log-level=warning\" -pix_fmt yuv420p -max_muxing_queue_size 9999 $g_audionew -threads 1 -movflags +faststart \"$g_viddone\" < /dev/null 2>&1" >"$g_tmp"/cmd
|
echo "ffmpeg -loglevel warning -stats -i \"${g_viddone}-stream\" -c:v copy -c:a copy -movflags +faststart -f mp4 \"$g_viddone\" < /dev/null 2>&1" >>"$g_tmp"/cmd
|
||||||
else
|
|
||||||
g_echo "Baue MP4 ($g_vid) auf ${g_remotedockerffmpeg}"
|
cat "$g_tmp"/cmd
|
||||||
echo "cat \"$g_vid\" | ssh -p33 ${g_remotedockerffmpeg} 'cat | docker run -i --rm linuxserver/ffmpeg -loglevel warning -stats -i pipe: -f mp4 -map_metadata -1 -map_chapters -1 -map $g_vidstream -map $g_audstream -filter:v \"${g_ass}${g_vidscale}\" -c:v libx265 -crf 25 -x265-params \"vbv-maxrate=${g_vidmaxratenew}:vbv-bufsize=${g_vidmaxratenew}:log-level=warning\" -pix_fmt yuv420p -max_muxing_queue_size 9999 $g_audionew -threads 1 -movflags +faststart+empty_moov -f mp4 pipe:' >\"${g_viddone}-stream\"" >"$g_tmp"/cmd
|
|
||||||
echo "ffmpeg -loglevel warning -stats -i \"${g_viddone}-stream\" -c:v copy -c:a copy -movflags +faststart \"$g_viddone\" < /dev/null 2>&1" >>"$g_tmp"/cmd
|
|
||||||
fi
|
|
||||||
g_echo $(cat "$g_tmp"/cmd)
|
|
||||||
sh "$g_tmp"/cmd
|
sh "$g_tmp"/cmd
|
||||||
# Wiederholen falls schief gelaufen
|
# Wiederholen falls schief gelaufen
|
||||||
local g_try=2
|
local g_try=2
|
||||||
|
Loading…
Reference in New Issue
Block a user