[FFmpeg-user] momentary overlay using ffmpeg

tarun singhal tsinghal18 at gmail.com
Mon May 19 10:24:07 CEST 2014


On Mon, May 19, 2014 at 1:32 PM, tarun singhal <tsinghal18 at gmail.com> wrote:

> Hi Group,
>
> When using overlay or drawtext filter, I see that it applies overlay/text
> over complete length of video.
> I have a requirement where I want to put an overlay or draw text on source
> video, but the overlay should appear only from lets says start time code:
> 00:02:00 and should remain there till 00:02:10
>
> So, basically having overlay only for 10 seconds in the source video?
>
> Is this possible to do with ffmpeg?
>
>
> Regards,
> Tarun Singhal
>
>
>  I was able to figure out the command to do Draw text for momentarily-
Below is the sample command might come handly. Working to get Overlay
working like this

ffmpeg -i output.mpg -s 640x360 -filter_complex
"drawtext=fontfile=stocky.ttf:text=test:timecode='00\:00\:00\:00':r=25:fontsize=50:x=(w-tw)/2:y=h-(2*lh):fontcolor=black:enable='if(gte(t,10),lte(t,20))'"
-acodec copy -r 30 check.mpg


More information about the ffmpeg-user mailing list