I have a video which is produced by ffmpeg concat images, like "ffmpeg -f concat -i concat.txt output.mp4"
then I want add some text in the output video, so I use command
my expectation is hello appear in the beginning, then hello disappear, world appear...Code:ffmpeg -y -i ./tmp/6ir0TW/concat.mp4 -vf "drawtext=text='hello':x=(w-text_w)/2:y=(h-100):fontsize=50:fontcolor=white:enable='between(t,0,1)',drawtext=text='world':x=(w-text_w)/2:y=(h-100):fontsize=50:fontcolor=white:enable='between(t,1,2)',drawtext=text='this is':x=(w-text_w)/2:y=(h-100):fontsize=50:fontcolor=white:enable='between(t,2,3)'" ./tmp/6ir0TW/draw_text.mp4
but in the output I only see hello in the first 5 seconds. Does anyone know how can I fix this?
In attachment is concated video file.
+ Reply to Thread
Results 1 to 3 of 3
-
-
The timestamps in your input video do not have enough "granularity" to specify between seconds. Individual frames displayed for a long time (ie. it's effectively a very low fps video)
Code:# timecode format v2 0 8360 17480 26080 33640 41600
Code:# timecode format v2 0 40 80 120 160 200 240 280
Code:-vf "fps=25,drawtext=text..."
Last edited by poisondeathray; 11th Apr 2024 at 11:11.
-
Similar Threads
-
How to feed output of ffmpeg into another ffmpeg filter?
By BosseB in forum Video ConversionReplies: 3Last Post: 27th Mar 2024, 13:53 -
How to burn-in subtitle correctly into an MKV using ffmpeg?
By mrjayviper in forum Video ConversionReplies: 1Last Post: 26th Jun 2023, 00:13 -
FFMPEG: Overlay Capture Time as Time Counter
By adam201 in forum Video ConversionReplies: 1Last Post: 27th Jun 2022, 12:32 -
Text output pf deshaker filter?
By jumpjack in forum EditingReplies: 1Last Post: 8th Aug 2021, 09:14 -
cleartxt image on videosubfinder doesn't work correctly
By faridkhoir14 in forum SubtitleReplies: 0Last Post: 31st Dec 2019, 21:05