[FFmpeg-user] How to preserve file time

Oliver Fromme oliver at fromme.com
Tue Aug 13 19:28:28 EEST 2024


Ulf Zibis via ffmpeg-user wrote:
 > 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.

Very simple:  First run your FFmpeg command, and then:
touch -r <input> <output>

Of course, that only makes sense if you have exactly one input
file and one output file, and you want to copy just the "mtime"
(modification time stamp) from the input file to the output
file.

Best regards
 -- Oliver


More information about the ffmpeg-user mailing list