Hi, On Tue, 19 May 2020 09:16:44 +0200 "Steve Keller" <keller.st...@gmx.de> wrote:
(...) > I want to change the timestamps internal to video files like .avi and > .mov, e.g. when I have taken a video with my Canon Ixus or Canon > Powershot camera while the clock was set to a wrong time after DST > change. For pictures I can change the EXIF data in .jpg files with > the command-line tool jhead. > > For video files there are obviously similar timestamps in the files: > A file from my Canon Ixus: > $ strings -a ixus-<nnnnn>.avi | grep 2015 > MON AUG 17 15:50:11 2015 > > A file from my Canon Powershot: > $ strings -a powershot-<nnnnn>.mov | grep 2019 > 2019:07:25 18:58:49 > 2019:07:25 18:58:49 > 2019:07:25 18:58:49 > > I couldn't find any good info about these file formats and the > timestamps in them and the meaning of the three timestamps in .mov > files. Some of my .mov files have even more than 3 timestamps in > them. > > I could change the strings in the files using an editor that supports > binary files or write a small program to do it. But I don't know if > that would corrupt the files, e.g. because of CRC for some header, or > if there are further non-ASCII timestamps that strings(1) wouldn't > find. Therefore my question if there's a tool to do it. according to https://stackoverflow.com/questions/40354172/change-avi-creation-date-with-ffmpeg ffmpeg seems to be able to do this, however as it seems only by reencoding the video, which is probably not what are you looking for? Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. When dreams become more important than reality, you give up travel, building, creating; you even forget how to repair the machines left behind by your ancestors. You just sit living and reliving other lives left behind in the thought records. -- Vina, "The Menagerie" ("The Cage"), stardate unknown