[FFmpeg-trac] #11139(undetermined:new): Option to preserve filetime of input

FFmpeg trac at avcodec.org
Tue Aug 13 17:47:28 EEST 2024


#11139: Option to preserve filetime of input
-------------------------------------+-------------------------------------
             Reporter:  Ulf Zibis    |                    Owner:  (none)
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  convenience  |               Blocked By:
  option                             |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by inof):

 A better solution is this (after running FFmpeg):
 {{{
 touch -r <input> <output>
 }}}
 That should work on any POSIX-compliant system, including Linux and BSD.
 If you need to do that often, you can write a small script to do it for
 you.

 I don't think FFmpeg should mess with such things itself.

 Keep in mind that there can be an arbitrary number of input files (not
 just one), and there can be an arbitrary number of output files as well.
 What time stamp should be mapped from which input file to which output
 file?  It's not that easy; a simple command line option won't suffice.
 And what if the output is a symlink? Should the time stamp of the target
 be changed, or the time stamp of the symlink itself, or both?  What about
 the access time stamp, should it be preserved, too?  Also, if FFmpeg
 started supporting that, then why not also preserve the files' permission
 flags? Or the group ownership?  Or ...?  It's a can of worms.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11139#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list