URI: 
       Allow background and foreground image for displaying next title. - 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 3ac2a8591be02f0ce27d8b6d38f9b52cb5a83ba4
   DIR parent 217b1a3d14b8afc856580ca5c6d24054981f38fa
  HTML Author: Christoph Lohmann <20h@r-36.net>
       Date:   Sat,  6 Feb 2021 16:30:48 +0100
       
       Allow background and foreground image for displaying next title.
       
       Signed-off-by: Anders Damsgaard <anders@adamsgaard.dk>
       
       Diffstat:
         M bin/brtv-generate-title-slides.sh   |      27 ++++++++++++++++++++-------
       
       1 file changed, 20 insertions(+), 7 deletions(-)
       ---
   DIR diff --git a/bin/brtv-generate-title-slides.sh b/bin/brtv-generate-title-slides.sh
       @@ -17,8 +17,10 @@ ffmpeg_codec="-loglevel error -acodec libopus -b:a 96K -f webm -vf scale=1280:-1
        video_resolution=1280x720
        
        # slide style
       -bgcolor=magenta
       -fgcolor=white
       +# xc:$color ( https://imagemagick.org/script/color.php )
       +# /some/file.png
       +bgcontent=/br/gopher/tv/bitreich-tv-bg.png
       +fgcontent=/br/gopher/tv/bitreich-tv-title-fg.png
        
        # show title slides for this duration [s]
        title_display_time=5
       @@ -32,11 +34,22 @@ logo="bitreichtv.vtv"
        temp="$(mktemp).png"
        
        title_slide() {
       -        convert -font Courier -size "$video_resolution"  "xc:${bgcolor}" \
       -                -gravity north -pointsize 22 \
       -                -draw "text 0,80 '$(cat "$logo")'" \
       -                -gravity south -pointsize 54 -fill "xc:${fgcolor}" \
       -                -draw "text 0,100 '${1}'" "$temp"
       +        # Don't forget the whitespace at the end of the logo.
       +        convert -font "Liberation-Mono" \
       +                -size "$video_resolution" \
       +                        "${bgcontent}" \
       +                        "${fgcontent}" \
       +                -gravity center \
       +                -composite \
       +                -stroke '#000000' \
       +                -strokewidth 2 \
       +                -fill '#FFFFFF' \
       +                -gravity north \
       +                -pointsize 13 \
       +                -draw "text -70,240 '$(cat "$logo")' " \
       +                -draw "text -70,520 'Playling: ${1}'" \
       +                "$temp"
       +
                ffmpeg -y \
                        -f lavfi \
                        -i anullsrc=r=48000 \