[FFmpeg-trac] #5673(avformat:new): Wrong creation_time

FFmpeg trac at avcodec.org
Wed Jun 29 21:57:31 CEST 2016


#5673: Wrong creation_time
-------------------------------------+-------------------------------------
             Reporter:  cehoyos      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  mov          |               Blocked By:
  regression                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by cus):

 Replying to [comment:2 cehoyos]:
 > Replying to [comment:1 cus]:
 > > When you specify creation time in the CLI, it is interpreted in local
 timezone, therefore it is recalculated to UTC before saving it in MOV. So
 after my patch, the correct UTC time is stored in MOV.
 >
 > Could you explain the usecase?
 >

 What do you mean? MOV (and mkv) stores the creation time as the elapsed
 time since some reference timestamp. MOV recommands UTC time reference,
 Matroska explicitly defines it. When you specify {{{-metadata
 "creation_time=2016-01-01 20:00:00"}}} you obviously mean 20:00 in your
 local time, and not UTC 20:00, therefore it has to be properly adjusted to
 UTC time before writing it to the file.

 > > Which other muxers are affected? I might work on this.
 >
 > I saw the same issue with mkv iirc.

 Yes, it has the same problem.

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


More information about the FFmpeg-trac mailing list