I am able to add text to a video on my hard disk, before I braodcast it...by using the command.
ffmpeg -y -i IMG_0696.MOV -acodec libmp3lame -vcodec msmpeg4 \
-b:a 192k -b:v 1000k -ar 44100 \
-vf "drawtext=text=string1 string2 string3 string4 string5 string6 string7 :expansion=normal:fontfile=/Windows/Fonts/cambriai.ttf: y=0:x=h-(2*lh)-n: fontcolor=white: fontsize=40: box=1: boxcolor=0x00000000@1" \
-an IMG_0696.avi
Now, I want to add different texts at various time instances. It should be read from a file which has the formatthe format : For example
00:00:10 : google 00:00:20 : yahoo 00:00:30 : msft . . . 00:00:60 : amzn . . . 00:05:30 : java
Is there a way to make ffmpeg read the file and add text at specified times? Eventually, I would like to add live ticker symbol to a video before broadcasting it.
ffmpeg -i infile -i subtitle.srt -scodec copy -acodec copy -vcodec copy outfile.mkv
. Look up srt format.