[FFmpeg-user] expression in drawtext / text

Michael Koch astroelectronic at t-online.de
Sat Nov 14 21:16:13 CET 2015


I have solved the problem myself. Only question 3 remains:
Is it possible to use the time from the exif data of the JPG pictures?

My solution is below.

set "FONTFILE=courbd.ttf"
set "COLOR=white"
set "BOXCOLOR=black"
set "SIZE=30"
set "POSITION_X=0"
set "POSITION_Y=(h-th)"
set "S=72060"                  : timestamp of first picture in seconds
set "I=8"                      : Interval in seconds

drawtext='fontfile=%FONTFILE%:text=%%{eif\:mod((%S%+%I%*n)/3600,24)\:'d'\:2}"\:"%%{eif\:mod((%S%+%I%*n)/60,60)\:'d'\:2}"\:"%%{eif\:mod(%S%+%I%*n,60)\:'d'\:2}:fontcolor=%COLOR%:boxcolor=%BOXCOLOR%:box=1:fontsize=%SIZE%:x=%POSITION_X%:y=%POSITION_Y%'

Michael

-- 
**********************************************
   ASTRO ELECTRONIC   Dipl.-Ing. Michael Koch
        Raabestr. 43   37412 Herzberg
           www.astro-electronic.de
   Tel. +49 5521 854265   Fax +49 5521 854266
**********************************************



More information about the ffmpeg-user mailing list