I
Immich2mo ago
stardust

Videos not playing correctly on iOS and Android apps

I found this thread because I have a similar issue: https://github.com/immich-app/immich/issues/13825#issuecomment-2720398956 I downloaded my entire library from Google Photos, from several accounts. Afterwards, I started uploading the photos and videos into immich. The videos play without issues on the web, but when running them from the app, iOS and Android, I observed some estrange behaviour. They also work fine if I play the videos using the phone browser. So the issues appear to be happening only with the apps. Some of them appear with the aspect ratio crippled, turned from 16:9 into 4:3, with the remaining of the screen showing the first frame. Others don't play the image, only the audio is playing, they load only the first frame. Do you think this has something to do with the issue of the video codec? Can the transcoding fix the issue? What does it imply if I run the Video Transcoding job for all? Will all my videos be processed and transcoded?
24 Replies
Immich
Immich2mo ago
:wave: Hey @stardust, 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. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: 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.
stardust
stardustOP2mo ago
Using docker-compose with stack in Portainer. Server version: v1.129.0 iOS app version: 1.129.0 build.197 Running in an ubuntu-server VM in TrueNAS Scale Dragonfish-24.04.1.1: Ubuntu 24.04.2 LTS (GNU/Linux 6.8.0-55-generic x86_64) Let me know if you need further information.
bo0tzz
bo0tzz2mo ago
Have you changed any of the transcoding settings? Have all the jobs finished running?
stardust
stardustOP2mo ago
I haven't done any transcoding yet. I wanted to know if that could solve the issue first
bo0tzz
bo0tzz2mo ago
You mean that you disabled transcoding?
stardust
stardustOP2mo ago
I never touched those settings, always used defaults. Never ran a job manually. Should I do that? Do you think that would fix the issues? I'll go ahead and run the job manually
Mraedis
Mraedis2mo ago
Just fyi @stardust if your source / target settings are "wrong" you won't transcode videos you need to, or transcode to a target the devices can't decode
stardust
stardustOP2mo ago
What settings should I use? I'm pretty lost in this subject. That's why I asked the question in the first place.
Mraedis
Mraedis2mo ago
The defaults should be very sane, but feel free to screenshot your current ones and we'll see what's going on
stardust
stardustOP2mo ago
I never touched those settings, so they should be the default. I'll go ahead and run it, unless you have another suggestions.
Bru
Bru4w ago
hey @stardust have you found a reason for this? I’m experiencing just that
Bru
Bru4w ago
No description
Bru
Bru4w ago
I have some videos that play like this on Immich app
Alex Tran
Alex Tran4w ago
Can you try to run the metadata extraction job for all. After that job is finished, can you logout and log back in? cc @shenlong-tanwen , another case
Bru
Bru4w ago
after doing this, it corrected the videos I had spotted that have been doing this if that helps, here’s how I got this problem: installed immich recently loading postgres backup onto a new server. I ran generate thumbnails task twice after that, quite possibly after taking that video that video wasn’t a restored one, so maybe thumbnail regeneration?
Yaros
Yaros4w ago
Sometimes this weird bug happens to me in the android emulator, but never on my actual phone
Bru
Bru4w ago
for me it was on immich app on iphone one odd thing is that I had taken 4 videos of my daughter back to back it was doing it only for 2 out of 4 i didn’t use different recording parameters between each shot
shenlong-tanwen
This might be because of a bug in the mobile app. We have a possible fix for this which might be included in the next release
Yaros
Yaros4w ago
What is it? Do you have a PR for it?
shenlong-tanwen
#17407
Immich
Immich4w ago
[Pull Request] fix(mobile): exifInfo not updated on sync (immich-app/immich#17407)
Yaros
Yaros4w ago
But this doesn't seem related to weird video playback
shenlong-tanwen
The playback is weird because the aspect ratio is all messed up and we calculate it with the exif values. If they are not properly associated, it might result in an inverted aspect ratio, resulting in the above bug Running metadata extraction updates the ExifInfo for the asset, resulting in the mobile app syncing them again and I believe that fixes the issue. All of these are assumptions though since I cannot reproduce it locally, not even once. But the exifInfo not populating due to the null coalescing op is definitely an issue
stardust
stardustOP4w ago
I haven’t tried anything else since found the issue @Bru . I’ll try to run the metadata extraction job to see if that solves the issue. I didn’t want to run the video transcoding before having more feedback. Thanks for the help!

Did you find this page helpful?