diff options
Diffstat (limited to 'odin/strm/send_kitty')
-rw-r--r-- | odin/strm/send_kitty | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/odin/strm/send_kitty b/odin/strm/send_kitty index 66012255..4d59a4b8 100644 --- a/odin/strm/send_kitty +++ b/odin/strm/send_kitty | |||
@@ -3,6 +3,8 @@ | |||
3 | set -o errexit | 3 | set -o errexit |
4 | umask 022 | 4 | umask 022 |
5 | 5 | ||
6 | ffmpeg() { { { @ffmpeg@/bin/ffmpeg $@ 1>&3 } 2>&1 | stdbuf -o 0 tr '\r' '\n' | grep -v --line-buffered -E '^$' 1>&2 } 3>&1 } | ||
7 | |||
6 | wDir=/srv/hlidskjalf | 8 | wDir=/srv/hlidskjalf |
7 | concatDir=${wDir}/concat | 9 | concatDir=${wDir}/concat |
8 | lastFile=${concatDir}/latest.mkv | 10 | lastFile=${concatDir}/latest.mkv |
@@ -36,6 +38,6 @@ fi | |||
36 | 38 | ||
37 | newFile="${concatDir}/hlidskjalf.$(date +'%Y-%m-%d-%H-%M-%S').mkv" | 39 | newFile="${concatDir}/hlidskjalf.$(date +'%Y-%m-%d-%H-%M-%S').mkv" |
38 | 40 | ||
39 | @ffmpeg@/bin/ffmpeg -safe 0 -f concat -i =(awk $'{ print "file \'"$0"\'" }' ${fList}) -c:v libx264 -r 30 -vf 'scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2' -metadata "description=$(xargs -a ${fList} -- basename -s ".mkv")" ${newFile} | 41 | ffmpeg -safe 0 -f concat -i =(awk $'{ print "file \'"$0"\'" }' ${fList}) -c:v libx264 -r 30 -vf 'scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2' -metadata "description=$(xargs -a ${fList} -- basename -s ".mkv")" ${newFile} |
40 | queue.hel -p -r ${newFile} | 42 | queue.hel -p -r ${newFile} |
41 | ln -vfs $(realpath --relative-to=${lastFile:h} ${newFile}) ${lastFile} | 43 | ln -vfs $(realpath --relative-to=${lastFile:h} ${newFile}) ${lastFile} |