tFix parameter names in various ffmpeg and imagemagick calls - bitreich-memesta… | |
git clone git://src.adamsgaard.dk/bitreich-memestats | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit c78a71ae3ad86fbe0b112c947c5252746ae020cd | |
parent 5bfeec49a9374801c59c6f8d46c423d7d019e806 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 20 Apr 2020 11:47:28 +0000 | |
Fix parameter names in various ffmpeg and imagemagick calls | |
Diffstat: | |
M brtv-start.sh | 14 +++++++------- | |
1 file changed, 7 insertions(+), 7 deletions(-) | |
--- | |
diff --git a/brtv-start.sh b/brtv-start.sh | |
t@@ -56,20 +56,20 @@ video_from_img() { | |
-i "$1" \ | |
-t "00:${3}:00" \ | |
$ffmpeg_codec \ | |
- "$2" | |
+ "$2"; | |
} | |
title_slide() { | |
- img="$(basename "${1%.*}.png)" | |
- convert -size 640x480 xc:"$bgcolor" -pointsize 48 -fill "$fgcolor" \ | |
- -gravity center -draw "text 0,0 '#${1%.*}'" "$t" | |
+ img="$(basename "${1%.*}".png)" | |
+ convert -size "$video_resolution" "xc:${bgcolor}" -pointsize 48 -fill … | |
+ -gravity center -draw "text 0,0 '#${img%.*}'" "$img" | |
ffmpeg -y \ | |
-f lavfi \ | |
-i anullsrc=r=48000 \ | |
- -i "$t" \ | |
+ -i "$img" \ | |
-t "00:${title_display_time}:00" \ | |
- $ffmpec_codec\ | |
- "$2" | |
+ $ffmpec_codec \ | |
+ "$2"; | |
} | |
video_conv() { |