[FFmpeg-trac] #2874(avformat:open): Export image2 file name as frame metadata

FFmpeg trac at avcodec.org
Sat Dec 7 19:07:58 EET 2019

#2874: Export image2 file name as frame metadata
             Reporter:  jlubeck      |                    Owner:
                 Type:  enhancement  |                   Status:  open
             Priority:  wish         |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  drawtext     |               Blocked By:
  image2                             |
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |

Comment (by AlexSmith):

 Replying to [ticket:2874 jlubeck]:
 > 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.

 It is possible to read the image's metadata and draw it on top of each
 frame by using the 'drawtext=' filter. For example, to read the DateTime
 metadata from each frame, one can use:


 Currently there's no way to print the input file name, unless some
 additional steps are taken, like shown here:

 ffmpeg version 3.4.6-0ubuntu0.18.04.1

Ticket URL: <https://trac.ffmpeg.org/ticket/2874#comment:14>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list