[FFmpeg-user] How to write video info in top of screenshot?

Lou lou at lrcd.com
Fri Apr 11 04:39:05 CEST 2014


On Wed, 9 Apr 2014 13:21:53 -0700 (PDT)
Helios <cc at outlook.be> wrote:

> Hello,
> 
> i need help writing text at the top of the outpot screenshot
> 
> i want it like this 
> http://www.thumbnailme.com/wp-content/themes/wp-coda/screenshots/09_Sample.jpg?rand=696292515
> 
> i want to create box at the top and write text to it YOU DONT  need to write
> the info just teach how to write text like the picture with any text
> 
> i use this code to make screenshot

You forgot your code. Maybe something like this:

ffmpeg -i input -vf \
"[0:v]select=gt(scene\,0.4), \
scale=120:-1, \
tile, \
pad=iw:ih+100:0:oh-ih, \
drawtext=fontfile=/path/to/font.ttf:textfile=/path/to/file.txt:x=5:y=5[v]"
\
-map "[v]" -vframes 1 -qscale:v 3 preview.jpg

See FFmpeg filtering documentation for more info:
https://ffmpeg.org/ffmpeg-filters.html


More information about the ffmpeg-user mailing list