After recording your video you want to upload it on YouTube but do you waste time generating thumbnails? I have created a #shell script to do it automatically.
#ffmpeg, #thumbnail #textoverlay
-
#! /bin/bash
-
-
# How to use?
-
# generate-thumb.sh "Using Advanced Roadmaps" "Finish to Finish Dependency" ~/Camera/youtube/advanced-roadmaps.png ~/screenshot.png ~/Camera/youtube/blank.png "#330000" "#0000ff" ".5"
-
-
#Configurations, audio and video sourc.
-
LABEL1=$1
-
LABEL2=$2
-
BG_IMAGE=$3
-
SECOND_IMAGE=$4
-
THIRD_IMAGE=$5
-
FFMPEG_COLOUR1=$6
-
FFMPEG_COLOUR2=$7
-
TRANSPARENCY=$8
-
#FONTPATH="/usr/share/fonts/cantarell/Cantarell-ExtraBold.otf"
-
FONTPATH="/home/ravisagar/.local/share/fonts/futura_bdcn_bt_bold.ttf"
-
SIZE=1280x720
-
#Work with showfreqs
-
ffmpeg \
-
-i $BG_IMAGE \
-
-i $SECOND_IMAGE \
-
-i $THIRD_IMAGE \
-
-filter_complex \
-
"[0:v]scale=$SIZE[bgresize]; \
-
[1:v]scale=900:-1[img2]; \
-
[2:v]scale=580:-1[cartoon]; \
-
[bgresize][img2]overlay=50:300[bg0]; \
-
[bg0][cartoon]overlay=750:100[bg1];
-
[bg1]drawtext=fontfile=$FONTPATH: \
-
text=$LABEL2: fontcolor=white: fontsize=90: box=1: \
-
boxcolor=$FFMPEG_COLOUR2@$TRANSPARENCY: boxborderw=10: \
-
x=30:y=(h-text_h-40)[bg2]; \
-
[bg2]drawtext=fontfile=$FONTPATH: \
-
text=$LABEL1: fontcolor=white: fontsize=90: box=1: \
-
boxcolor=$FFMPEG_COLOUR1@$TRANSPARENCY: boxborderw=10: \
-
x=30:y=(h-text_h-160)[bg3]" \
-
-map "[bg3]" ~/output.png
Topic