Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: guanguan on November 01, 2020, 05:53:32 PM

Title: Can I set original video clip modified/Created data to output file?
Post by: guanguan on November 01, 2020, 05:53:32 PM
I like to trim my videos with Avidemux before import them to video editor software. I noticed that, Avidmux will use current datetime as the output file created/modified time, when I sort all video clips in the video editor, the clips order will mess up.

Is their a way I can do this with Avidemux, I didn't find the related setting in the application :-\ 

Thanks

GuanGuan

Title: Re: Can I set original video clip modified/Created data to output file?
Post by: eumagga0x2a on November 01, 2020, 09:30:18 PM
Avidemux doesn't set any metadata except for rotation hint in MP4 and display width in MKV and also in MP4. I suspect you just see the filesystem metadata created by filesystem driver.
Title: Re: Can I set original video clip modified/Created data to output file?
Post by: xyzzy on November 02, 2020, 07:27:41 PM
One could copy the source file(s) time stamps to the output file, e.g. with `utimes(2)`
Title: Re: Can I set original video clip modified/Created data to output file?
Post by: eumagga0x2a on November 02, 2020, 09:51:14 PM
SetFileTime (https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-setfiletime) for VC++ then? I don't think it is our business to care about filesystem metadata, contrary to container metadata. Being able to offer more muxer-specific options would be great indeed.