Images have the new bitreich-tv background image as background. - bitreich-tv - Meme TV encoding and streaming HTML git clone git://bitreich.org/bitreich-tv git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-tv DIR Log DIR Files DIR Refs DIR Tags DIR LICENSE --- DIR commit 217b1a3d14b8afc856580ca5c6d24054981f38fa DIR parent 4816391734b121ad5a4cd7146640761d363e88e6 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Sat, 6 Feb 2021 15:57:29 +0100 Images have the new bitreich-tv background image as background. Signed-off-by: Anders Damsgaard <anders@adamsgaard.dk> Diffstat: M bin/brtv-imgs-to-video.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- DIR diff --git a/bin/brtv-imgs-to-video.sh b/bin/brtv-imgs-to-video.sh @@ -2,7 +2,6 @@ # read hashtags.txt as stdin, download all images, and convert them to videos # requirements: hurl(1), ffmpeg(1), convert(1) - ### CONFIGURATION START # dir to contain images as videos @@ -16,7 +15,9 @@ ffmpeg_codec="-loglevel error -acodec libopus -b:a 96K -f webm -vf scale=1280:-1 video_resolution=1280x720 # slide style -bgcolor=magenta +# xc:$color ( https://imagemagick.org/script/color.php ) +# /some/file.png +bgcontent=/br/gopher/tv/bitreich-tv-bg.png # show image memes for this duration [s] image_display_time=10 @@ -35,7 +36,7 @@ regeximatch() { fit_img_16_9() { convert -resize "$video_resolution"\> -size "$video_resolution" "$1" \ - xc:"$bgcolor" +swap -gravity center -composite "$2" + "$bgcontent" +swap -gravity center -composite "$2" } video_from_img() {