ffmpeg -i video.MOV -i label.gif -filter_complex "[0:v][1:v] overlay=25:25:enable='between(t,0,20)'" -pix_fmt yuv420p -c:a copy output.MOV
the above is a command from a question answered in the link below: https://video.stackexchange.com/quest...
since I added multiple titles/images I used the command below:
ffmpeg -i video.MOV -i Title0.gif -i Title1.gif -i Title2.gif -i Title3.png -filter_complex "[0][1]overlay=25:25:enable='between(t,0,20)'[v1]; [v1][2]overlay=25:100:enable='between(t,0,20)'[v2];[v2][3]overlay=25:200:enable='between(t,10,20)'[v3];[v3][4]overlay=25:270:enable='between(t,0,20)'[v4]" -map "[v4]" -pix_fmt yuv420p -c:a copy output.MOV
Basically the titles are images. White text without any background. I used the imagemagick command below for the text that isn't hand written:
convert -background none -fill white -font Droid-Sans -pointsize 48 label:'Add text here' Text.gif
I got the command from this site: https://imagemagick.org/Usage/text/#c...
which is a really handy site, unfortunately I didn't have the font installed that the example on the site used. So I wanted to see what font I did have and so I used the command:
convert -list font
from: https://imagemagick.org/discourse-ser...
the handwritten text was made on the myPaint program I moved the opacity dial of the original layer all the way down (left) and I unchecked the background image. Then I added a layer and drew my title on the new layer. When I exported the image as a .png file, I also clicked on the eye symbol for the first layer, I'm not sure that it was necessary. I know it's a bit hard to see the titles on this video. I will play around with it more in future, there are so many things I can do with imagemagick. So I have plenty to learn and improve on.
One final thing was that the audio was missing from the output.MOV file. The audio was bad quality anyway. But you can take the audio from the original video and add it back to the final video file.
to check the stream for the audio:
ffmpeg -i output.MOV
to create a .mp3 of the audio:
ffmpeg -i output.MOV -c:a libmp3lame -q:a 4 output-sound.mp3
to add audio to video:
ffmpeg -i audo.mp3 -i output.MOV -map 0:0 -map 1:0 -acodec copy -vcodec copy -shortest output2.MOV
Watch video using ffmpeg to add a title to a video online without registration, duration hours minute second in high quality. This video was added by user A Forum 13 March 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 935 once and liked it 10 people.