Fix path to temporary title slide image - bitreich-memestats - Bitreich meme statistics and graphs.
HTML git clone git://bitreich.org/bitreich-memestats git://hg6vgqziawt5s4dj.onion/bitreich-memestats
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR LICENSE
---
DIR commit fc2311b33218ea7cd9d7d084d33685fbfa3ea85b
DIR parent 4cd41bb24ae99df1a7b018632619ed6357763f15
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 20 Apr 2020 06:21:11 +0000
Fix path to temporary title slide image
Diffstat:
M brtv-start.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/brtv-start.sh b/brtv-start.sh
@@ -50,12 +50,13 @@ video_from_img() {
}
title_slide() {
+ img="$(basename "${1%.*}.png)"
convert -size 640x480 xc:"$bgcolor" -pointsize 48 -fill "$fgcolor" \
- -gravity center -draw "text 0,0 '#${1%.*}'" "/tmp/${1%.*}.png"
+ -gravity center -draw "text 0,0 '#${1%.*}'" "$t"
ffmpeg -y \
-f lavfi \
-i anullsrc=r=48000 \
- -i "/tmp/${1%.*}.png" \
+ -i "$t" \
-t "00:${title_display_time}:00" \
$ffmpec_codec\
"$2"
@@ -112,5 +113,4 @@ ffmpeg -f concat -safe 0 -i playlist \
-max_muxing_queue_size 9999 \
tcp://localhost:$commport
-
pkill $bin