[FFmpeg-user] How to preserve file time
Reindl Harald
h.reindl at thelounge.net
Wed Aug 21 14:29:29 EEST 2024
Am 21.08.24 um 12:48 schrieb Ulf Zibis:
> So for 1. it must be additionally:
> In case of output file existence 2 additional OS operations are needed
> and executed: Write a message to system output stream + read and parse
> users answer from system input stream.
> As discovered by James Ralston, the current implementation seems not
> really secure.
>
> And for 2. it must be:
> For additional convenience FFmpeg provides option '-y' to prevent the
> user from manually deal with existing files. This option dependently
> allows to skip the 2 additional OS operations above.
for the sake of god no - it's the exactly opposite
For convenience ffmpeg saves you from accidently overwrite existing
files - in your world the tail wags the dog
[harry at srv-rhsoft:/downloads]$ echo "X" > test.txt
[harry at srv-rhsoft:/downloads]$ cat test.txt
X
[harry at srv-rhsoft:/downloads]$ echo "Y" > test.txt
[harry at srv-rhsoft:/downloads]$ cat test.txt
Y
More information about the ffmpeg-user
mailing list