On Mon, Nov 2, 2026 at 3:42 AM William C Bonner <[email protected]> wrote:

> I wrote a C program that arranges lpeg pictures in an easy to digest
> fashion to create time lapse videos. It arranges the source files into a
> numbered directory structure and then calls FFMPEG to do the hard work.
>
> Here's an approximate command line I'm using. The quotes may be slightly
> different.
>
> C:\WINDOWS\ffmpeg.exe -hide_banner -r 30 -i
> C:\Users\Wim\Videos\20261031-Lisbon\Wim%05d.JPG -vf
> crop=in_w:9/16*in_w,drawtext=fontfile=C\\:/WINDOWS/Fonts/consola.ttf:fontcolor=white:fontsize=main_h/16:y=main_h-text_h-50:x=main_w-text_w-50:text=WimsWorld,drawtext=fontfile=C\\:/WINDOWS/Fonts/consola.ttf:fontcolor=white:fontsize=main_h/16:y=main_h-text_h-50:x=50:text=%{metadata\\:DateTimeOriginal}
> -c:v libx265 -crf 23 -preset veryfast -s 3840x2160 -movflags +faststart -bf
> 2 -g 15 -pix_fmt yuv420p -n
> C:\Users\Wim\Videos\20261031-Lisbon-2160p30-cropped.mp4
>
> It used to embed the time in the bottom left of the video, pulled from the
> metadata of each individual JPG file. That portion is not appearing with
> current FFMPEG, and I'm wondering what's changed, since I'm using the same
> camera I used to use and it's not had any firmware updates.
>
> I tested one of the source images and it still has the data, but I'm
> wondering if FFMPEG uses a different tag now. Should I be using 
> TAG:ExifIFD/DateTimeOriginal
> or ExifIFD/DateTimeOriginal instead of the metadata:DateTimeOriginal I
> originally figured out to use?
>
>
 I thought I'd respond to my own question with the proper solution that I
got by trial and error in case anyone ever came looking for the same
solution.

My original code used text=%{metadata\\:DateTimeOriginal} and the code
updated to work with the newest versions of FFMPEG
use text=%{metadata\\:ExifIFD/DateTimeOriginal}
_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to