Moving photos not working after deleting directory "encoded-video" #6232

Closed
opened 2026-02-05 12:07:13 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @goremykin on GitHub (Jun 8, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

I deleted the encoded-videos folder, which broke playback of Motion Photos (regular videos still work fine). When trying to play such a photo, the server throws the following error:
Unknown error: Error: ENOENT: no such file or directory, access 'upload/encoded-video/09043fe2-93f9-4c3e-9a7c-2287d6e287a5/41/0f/410fe1e1-2fa3-413d-8481-b20107dda974-MP.mp4'.

Transcoding is disabled in the settings, and running the video transcoding job doesn’t help the app realize that the videos linked to Motion Photos no longer exist.

Is there a way to fix this?

The OS that Immich Server is running on

Ubuntu 25.04

Version of Immich Server

1.134.0

Version of Immich Mobile App

1.134.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

not relevant to the issue

Your .env content

not relevant to the issue

Reproduction steps

  1. Remove encoded videos dir
  2. Play a motion photo

Relevant log output

[Nest] 16  - 06/07/2025, 11:36:35 PM   ERROR [Api:GlobalExceptionFilter~139e5o5q] Unknown error: Error: ENOENT: no such file or directory, access 'upload/encoded-video/09043fe2-93f9-4c3e-9a7c-2287d6e287a5/41/0f/410fe1e1-2fa3-413d-8481-b20107dda974-MP.mp4'

Error: ENOENT: no such file or directory, access 'upload/encoded-video/09043fe2-93f9-4c3e-9a7c-2287d6e287a5/41/0f/410fe1e1-2fa3-413d-8481-b20107dda974-MP.mp4'

    at async access (node:internal/fs/promises:605:10)

    at async sendFile (/usr/src/app/dist/utils/file.js:53:9)

    at async AssetMediaController.playAssetVideo (/usr/src/app/dist/controllers/asset-media.controller.js:83:9)

Additional information

No response

Originally created by @goremykin on GitHub (Jun 8, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug I deleted the encoded-videos folder, which broke playback of Motion Photos (regular videos still work fine). When trying to play such a photo, the server throws the following error: Unknown error: Error: ENOENT: no such file or directory, access 'upload/encoded-video/09043fe2-93f9-4c3e-9a7c-2287d6e287a5/41/0f/410fe1e1-2fa3-413d-8481-b20107dda974-MP.mp4'. Transcoding is disabled in the settings, and running the video transcoding job doesn’t help the app realize that the videos linked to Motion Photos no longer exist. Is there a way to fix this? ### The OS that Immich Server is running on Ubuntu 25.04 ### Version of Immich Server 1.134.0 ### Version of Immich Mobile App 1.134.0 ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML not relevant to the issue ``` ### Your .env content ```Shell not relevant to the issue ``` ### Reproduction steps 1. Remove encoded videos dir 2. Play a motion photo ### Relevant log output ```shell [Nest] 16 - 06/07/2025, 11:36:35 PM ERROR [Api:GlobalExceptionFilter~139e5o5q] Unknown error: Error: ENOENT: no such file or directory, access 'upload/encoded-video/09043fe2-93f9-4c3e-9a7c-2287d6e287a5/41/0f/410fe1e1-2fa3-413d-8481-b20107dda974-MP.mp4' Error: ENOENT: no such file or directory, access 'upload/encoded-video/09043fe2-93f9-4c3e-9a7c-2287d6e287a5/41/0f/410fe1e1-2fa3-413d-8481-b20107dda974-MP.mp4' at async access (node:internal/fs/promises:605:10) at async sendFile (/usr/src/app/dist/utils/file.js:53:9) at async AssetMediaController.playAssetVideo (/usr/src/app/dist/controllers/asset-media.controller.js:83:9) ``` ### Additional information _No response_
Author
Owner

@mertalev commented on GitHub (Jun 8, 2025):

Try running Metadata Extraction for all assets in the job panel. It will re-extract the videos in the original motion photos.

@mertalev commented on GitHub (Jun 8, 2025): Try running Metadata Extraction for all assets in the job panel. It will re-extract the videos in the original motion photos.
Author
Owner

@goremykin commented on GitHub (Jun 8, 2025):

Try running Metadata Extraction for all assets in the job panel. It will re-extract the videos in the original motion photos.

Thanks for the quick reply!
Quick question: Will this action undo my manual date/location changes?

@goremykin commented on GitHub (Jun 8, 2025): > Try running Metadata Extraction for all assets in the job panel. It will re-extract the videos in the original motion photos. Thanks for the quick reply! Quick question: Will this action undo my manual date/location changes?
Author
Owner

@mertalev commented on GitHub (Jun 8, 2025):

No, those updates are written as sidecar files so Immich will pick up on the changes when it parses their metadata.

@mertalev commented on GitHub (Jun 8, 2025): No, those updates are written as sidecar files so Immich will pick up on the changes when it parses their metadata.
Author
Owner

@goremykin commented on GitHub (Jun 8, 2025):

Everything worked, dates and locations are in place. Thank you very much for the quick help!

@goremykin commented on GitHub (Jun 8, 2025): Everything worked, dates and locations are in place. Thank you very much for the quick help!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#6232