And it is printing a new number on each frame. It would be great if instead of %{n} we could use something to grab the filename, or even better, meta data from the jpg to be able to format the timestamp. But just with the file name would be great.

Could you elaborate more on the use case? I thought what is interesting is the actual frame metadata of the file (like image creation time or image orientation or song name) and not information that the operating system provides for the file. Note that input generally does not have to be a file.

Oh yes, actual frame metadata would be great if someone was getting pictures from an actual camera. It is not my actual use case though, but whoever handles this enhancement could go way past my personal requirement.

My current use case is that I made a script that captures a screenshot of my desktop every n seconds.

At the end of the day, all the screenshots are compiled into a video with FFMPEG.

What I would like is to print into the video the date/time of each frame.

Oh yes, actual frame metadata would be great if someone was getting pictures from an actual camera. It is not my actual use case though, but whoever handles this enhancement could go way past my personal requirement.

This works with current FFmpeg.

My current use case is that I made a script that captures a screenshot of my desktop every n seconds.

At the end of the day, all the screenshots are compiled into a video with FFMPEG.

What I would like is to print into the video the date/time of each frame.

This sounds as if it would be simpler to use ffmpeg for the screen capture.

Adding the current file name as frame metadata should fix your problem.

I'm sorry, I don't know if I understood you correctly. You say I can already do what I need?

No, you don't want frame metadata (as you explained in comment:4) , you want the filename (which is available within the demuxer but not currently exported as metadata) or as an alternative other file information that is currently not available within ffmpeg.

Oh yes, actual frame metadata would be great if someone was getting pictures from an actual camera. It is not my actual use case though, but whoever handles this enhancement could go way past my personal requirement.

My current use case is that I made a script that captures a screenshot of my desktop every n seconds.

At the end of the day, all the screenshots are compiled into a video with FFMPEG.

What I would like is to print into the video the date/time of each frame.

I have a similar case; I have these cheap WiFi? security cameras that write jpgs to an FTP, the JPGs have the camera MAC, alias, and timestamp in the filename. It would be fantastic to get the source frame's file name overlaid on a compiled video.

I have a similar case; I have these cheap WiFi? security cameras that write jpgs to an FTP, the JPGs have the camera MAC, alias, and timestamp in the filename. It would be fantastic to get the source frame's file name overlaid on a compiled video.

Looking for a way to use source frame's file name as overlay text, I found this proposal. I am exactly in the same case of having a cheap WiFi? security camera that writes jpgs to an FTP, the JPGs have the camera MAC address, alias (cam name), and timestamp of acquired image in the filename - all things that I would find cool to have in the overlay text.