[FFmpeg-trac] #2874(avfilter:new): AVFilter: drawtext: Draw text with information of current image file
FFmpeg
trac at avcodec.org
Fri Aug 16 13:35:00 CEST 2013
#2874: AVFilter: drawtext: Draw text with information of current image file
----------------------------------+---------------------------------------
Reporter: jlubeck | Type: enhancement
Status: new | Priority: normal
Component: avfilter | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
I'm creating a timelapse which I would love to include the "timecode" of
when each picture was taken.
Currently, the timecode option creates one for everyframe of the video.
Also, using text='\%T' seems to work only for real-time streams.
I have files named:
2013-08-16_001032.jpg
2013-08-16_002045.jpg
2013-08-16_003024.jpg
2013-08-16_004043.jpg
and so on... That is year-month-date_hourminutesecond.jpg
I'm currently using the following:
% ffmpeg -y -i "2013-08-14_%*.jpg" -vf
"drawtext=fontfile=/Library/Fonts/AppleGothic.ttf:
text=%{n}:expansion=normal: r=25: x=(w-tw)/2: y=h-(2*lh): fontcolor=white:
box=1: boxcolor=0x00000000 at 1" output.m4v
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.
ffmpeg version 1.2.1
Thanks!
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2874>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list