diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-11 12:25:44 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-11 12:25:44 +0200 |
commit | 9796d3cb546bb261d924f11285d228b3c2548668 (patch) | |
tree | 885128b05a1bfccad8a6649c728b09617d64e64e | |
parent | b79c7cc0ac0e1f135c33c425f381969ec4443011 (diff) | |
download | nixos-9796d3cb546bb261d924f11285d228b3c2548668.tar nixos-9796d3cb546bb261d924f11285d228b3c2548668.tar.gz nixos-9796d3cb546bb261d924f11285d228b3c2548668.tar.bz2 nixos-9796d3cb546bb261d924f11285d228b3c2548668.tar.xz nixos-9796d3cb546bb261d924f11285d228b3c2548668.zip |
...
-rw-r--r-- | odin/strm/send_kitty | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/odin/strm/send_kitty b/odin/strm/send_kitty index ba1bdc1f..9676c520 100644 --- a/odin/strm/send_kitty +++ b/odin/strm/send_kitty | |||
@@ -41,7 +41,8 @@ fi | |||
41 | newFile="${concatDir}/hlidskjalf.$(date +'%Y-%m-%d-%H-%M-%S').mkv" | 41 | newFile="${concatDir}/hlidskjalf.$(date +'%Y-%m-%d-%H-%M-%S').mkv" |
42 | tmpFile=$(mktemp --tmpdir=${concatDir} "${newfile:h}/.${newFile:t:r}.XXXXXX.mkv") | 42 | tmpFile=$(mktemp --tmpdir=${concatDir} "${newfile:h}/.${newFile:t:r}.XXXXXX.mkv") |
43 | 43 | ||
44 | ffmpeg -safe 0 -f concat -i =(awk $'{ print "file \'"$0"\'" }' ${fList}) -c:v libx264 -r 30 -crf 27 -preset veryfast -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")" ${tmpFile} | 44 | ffmpeg -y -safe 0 -f concat -i =(awk $'{ print "file \'"$0"\'" }' ${fList}) -c:v libx264 -r 30 -crf 27 -preset veryfast -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")" ${tmpFile} |
45 | chmod 440 ${tmpFile} | ||
45 | mv -v ${tmpFile} ${newFile} | 46 | mv -v ${tmpFile} ${newFile} |
46 | queue.hel -p -r ${newFile} | 47 | queue.hel -p -r ${newFile} |
47 | ln -vfs $(realpath --relative-to=${lastFile:h} ${newFile}) ${lastFile} | 48 | ln -vfs $(realpath --relative-to=${lastFile:h} ${newFile}) ${lastFile} |