[FFmpeg-user] How to preserve file time

Reindl Harald h.reindl at thelounge.net
Sun Aug 18 01:30:24 EEST 2024



Am 17.08.24 um 23:07 schrieb Ulf Zibis:
> 
> Am 17.08.24 um 22:10 schrieb Bouke / Videotoolshed:
>>
>> The user input is parsed as ‘if file exists and not -y in line, abort’
> FFmpeg CLI does not abort in that case, it outputs a question to system 
> out stream, and then reads the input from system in stream. These are 
> again 2 additional OS calls.

are you dumb?

in case of "-y" ffmpeg opens the output file no matter if it exists or 
not - there is no need for any operation

you pretended there is a delete operation

that's nonsense and not how a filesystem works

it's exactly the same operation opening a file with name "1.mp4" if it 
already exists or not


More information about the ffmpeg-user mailing list