I
Immich•2mo ago
Robert

Import of mp4 with wrong timestamp

I have an external library that I'm importing and I have a bunch of videos showing up on 2025-06-21 which have been shot at various different times. The one with the boat was shot on 2022-10-15. As you can see on the screenshot, the folder where it's stored at, as well as the filename, indicate the correct date/time. Can someone shed a light on this for me as to why immich supposes that video is being dated 2025-06-21. BTW, there are numerous videos at different times (e.g. 2023-01-13) that show all up on 2025-06-21. The import of the library has been conducted on 2025-08-27, so that's also not the date the video is tagged with.
No description
9 Replies
Immich
Immich•2mo ago
:wave: Hey @Robert, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: read applicable release notes. 3. :blue_square: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
Sergey Katsubo
Sergey Katsubo•2mo ago
Hey @Robert Immich does not use file name or directory name to infer timestamps. It relies on EXIF metadata. If there are no (certain) timestamps in EXIF, then the file system timestamps of the file are used.
Robert
RobertOP•2mo ago
Hey @Sergey Katsubo , that makes completeley sense. I have verified that those MP4s indeed do not have metainformations in them, however, the file's date and time are properly set and still, Immich seems to ignore it. If someone could give a little startup help, I would gladly debug/trace that. I just don't know where to start.
Sergey Katsubo
Sergey Katsubo•2mo ago
Could you post exiftool output for one of these files?
exiftool -G1 -Time:All video.mp4
exiftool -G1 -Time:All video.mp4
If exiftool reads/shows expected timestamps but Immich uses wrong ones, then maybe metadata refresh is needed. You can do metadata refresh from context menu of the video in UI. Optionally, you can enable "verbose" logging level in Admin settings > Logging. Then trigger metadata refresh and see in the logs what Immich has read / imported.
Robert
RobertOP•2mo ago
exiftool does not report anything, no error, no output That's what I said, there is no metadata in the file, only the file's timestamp and the file's name can be used to compute the proper date and time.
Sergey Katsubo
Sergey Katsubo•2mo ago
Hmm, weird. Mayber there is a typo in the command? In case if you typed and not copy-pasted? You can try without args exiftool video.mp4. Hypothetically I would assume that these files were copied on 2025-06-21, therefore they have filesystem timestamp of 2025-06-21, therefore Immich uses that TS in absence of other TS sources.
Robert
RobertOP•2mo ago
As can be seen in the screenshot of my OP, the timestamp of the file is correct at 2022-10-15. I will do another test with exiftool later this day.
Sergey Katsubo
Sergey Katsubo•2mo ago
As can be seen in the screenshot of my OP, the timestamp of the file is correct at 2022-10-15
Now I see 🫣 Btw, how the import was conducted? Upload through web, immich-cli/immich-go, mounting external library, ...? What else can be useful in addition to exiftool's output: 1. You can enable "verbose" logging in Admin settings > Logging. Then trigger metadata refresh for that video and see in the logs what Immich has read / imported. 2. The file info from the asset table docker exec -ti immich_postgres psql -U postgres -d immich -Pexpanded=auto -c "select * from asset where \"originalFileName\" = 'VID_20221015_163805(1).mp4'" (if I typed file name correctly) Maybe related https://github.com/immich-app/immich/pull/21508
Immich
Immich•2mo ago
[Pull Request] fix(mobile): Correction of image creation date by using mtime instead… (immich-app/immich#21508)

Did you find this page helpful?