[FFmpeg-trac] #4532(ffmpeg:new): ffmpeg (vers. 2.3.4 or 2.6.2) - "-timestamp" option doesn't work any more

FFmpeg trac at avcodec.org
Mon May 4 15:45:51 CEST 2015


#4532: ffmpeg (vers. 2.3.4 or 2.6.2) - "-timestamp" option doesn't work any more
------------------------------------+----------------------------------
             Reporter:  wolfi       |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  important   |                Component:  ffmpeg
              Version:  2.3.5       |               Resolution:
             Keywords:  -timestamp  |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+----------------------------------

Comment (by wolfi):

 Ok - further looked at this:

 the source shows the workaround - tested and works:

 ffmpeg_opt.c: opt_recording_timestamp():

   av_log(NULL, AV_LOG_WARNING, "%s is deprecated, set the 'creation_time'
 metadata "
                                  "tag instead.\n", opt);

 and indeed - that works. e.g:  -metadata 'creation_time=2015-05-01
 11:22:00'
 does correctly set it - as it's verifiable via 'exiftool':


  exiftool /tmp/zz.mp4 | grep 2015

 File Modification Date/Time     : 2015:05:04 15:38:15+02:00
 File Access Date/Time           : 2015:05:04 15:38:16+02:00
 File Inode Change Date/Time     : 2015:05:04 15:38:15+02:00
 Create Date                     : 2015:05:01 11:22:00
 Modify Date                     : 2015:05:01 11:22:00
 Track Create Date               : 2015:05:01 11:22:00
 Track Modify Date               : 2015:05:01 11:22:00
 Media Create Date               : 2015:05:01 11:22:00
 Media Modify Date               : 2015:05:01 11:22:00

 ...now - what remains from this bug:

 a.) the - man-page of (git head) ffmpeg still says:


       -timestamp date (output)
            Set the recording timestamp in the container.

            date must be a time duration specification,
            see the Date section in the ffmpeg-utils(1) manual.

 ...which is quite misleading - as it's not working that way.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4532#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list