[FFmpeg-user] How to preserve file time

Ulf Zibis Ulf.Zibis at CoSoCo.de
Mon Aug 12 23:19:26 EEST 2024


Am 12.08.24 um 19:37 schrieb Gia Ferrari:
> On 8/12/24 3:57 AM, Ulf Zibis via ffmpeg-user <ffmpeg-user at ffmpeg.org> wrote:
>
>>   Hi,
>>   
>>   is there an option how to preserve the file time from the input file to the outputfile?
>>   My search for "file time" on https://ffmpeg.org/ffmpeg-all.html was resultless.
>>   
>>   -Ulf
>>   
> On unix systems, the command "touch -r" may be useful for this purpose. I use it as part of my re-encoding scripts to preserve a useful sort order in my camera roll.
>
> https://linux.die.net/man/1/touch

Yes I know, but this is extra work. I had in memory, that this was possible directly by an FFMPEG option. So it seems, I was in error.

Thanks for your feedback.

-Ulf



More information about the ffmpeg-user mailing list