[FFmpeg-user] How to preserve file time

Gia Ferrari g at giferrari.net
Mon Aug 12 20:37:59 EEST 2024


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


-- 
Gia Ferrari (she/her)


More information about the ffmpeg-user mailing list