[FFmpeg-user] How to preserve file time

Reindl Harald h.reindl at thelounge.net
Wed Aug 21 11:56:36 EEST 2024



Am 20.08.24 um 21:33 schrieb Ulf Zibis:
> 
> Am 14.08.24 um 17:20 schrieb Ulf Zibis:
>>
>> Am 12.08.24 um 19:04 schrieb Mark Filipak:
>>>
>>> That's a question for your operating system. I can change file times 
>>> to whatever I want via the TotalCommander file browser. There are 
>>> probably others.
>>
>> Isn't removing existing output files samely a question for the OS ?
>>
>> But for convenience FFmpeg CLI provides option `-y` for this task, so 
>> why not thinking about conveniently preserving file times by FFmpeg CLI?
> 
> There seems some need to outline and precise my original message.
> 
> 1. For the security of existing data and in some way for convenience 
> (avoid the need to create the potentially overwritten data again) FFmpeg 
> CLI does not silently overwrite existing files. This requires an 
> additional OS filsystem operation (test for existing files with same name)

irrelevant

> 2. For additional convenience FFmpeg provides option '-y' to prevent the 
> user from manually deal with existing files. This requires 2 additional 
> OS filsystem operations (write a message to system output stream + read 
> and parse from system input stream).

this is not true because "-y" the default from filesystem / OS view of 
point and needs no action

> 5. I'm sure, that anyone with a minimum of smartness was able to 
> understand my original message.

anyobdy with smartness considers jumping out of the window by all your 
nonsense


More information about the ffmpeg-user mailing list