-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android app crashes on HEVC 10-bit video playback #15014
Comments
Have you changed any of the transcoding settings in Immich? |
I can confirm this is happening. Android app crashes every time for these certain videos. |
NOTE: The comment below reflects a different issue (#14945), and I'm only leaving it as a reference for other users that might end up here for a different issue altogether (I have firstly stumbled upon this issue trying to play an old HDR video that I didn't have locally)
|
This is a different bug, where the app tries to play the local file (which no longer exists).
The web and the mobile app don't have identical support for video formats, so yes the transcode settings do have an impact. |
actually i have nearly 4 phones, only one phone app crashes: rest are ok dont know what to do! tried re encoding to different setting but problem is same |
Yup, sorry, I just realized this. I'm editing the original comment to reflect that. |
I have an iPhone 14 and a Xiaomi phone connected to the same immich server. iPhone never had crashing issue playing the videos. Xiaomi always crashes. |
This is the relevant log output on GrapheneOS 15 (Pixel 7a) when trying to view an online-only video. Latest immich version (1.123.0) on both server and android.
|
As I said - no, I was not able to make a screenshot of all the settings, but I assure you I didn't change anything. |
Pixel 9 here... I also experience video crashing using the android app v1.123.0 build.172
Great news... I also have a reverse proxy in the middle. When I bypass the reverse proxy and connect directly to port 2283 the android app works fine, video plays successfully. @witchcraftsman - you running reverse proxy? my nginx config... server {
server_name [redacted];
# allow large file uploads
client_max_body_size 50000M;
# Set headers
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# enable websockets: http://nginx.org/en/docs/http/websocket.html
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
# set timeout
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
location / {
proxy_pass http://[redacted]:2283;
}
} |
Hey I am on reverse proxy also. I tried connecting directly with http://IP:2283 after reading your post, but it didn't make any differences, those videos still crashes. At least in my case it's not caused by reverse proxy. |
I'm running into the same issue. Video is a HEVC 10-bit video, the media is only available on the server, not locally.
Phone is a Pixel 9 Pro, stock Android. No custom mTLS / self-signed certs etc, so not #14945. |
Hey I found the root cause in my case. I was using non-root docker by "user: 1000:1000", I suggest you try to delete this line.
To break it up:
Consequence of this fix: On the host machine, all newly uploaded files belong to uid:gid = root:root. This will cause problem if you use non-root backup like syncthing. However I found a permanent solution for this type of issue while messing around my Nexcloud docker setup. If you have come to this step and want details, let me know. In short: Use "setgid" function on host to force all new files to belong to your desired group, it will be enough for cross-container backups. |
yes, but as I stated I have no issues playing those videos on the web, what's the difference? |
The bug
Android app crashes on HEVC 10-bit video playback, after a couple of tries Android suggests to clean app cache but it doesn't help.
The same video on web app plays ok.
The OS that Immich Server is running on
Ubuntu 22.04.5
Version of Immich Server
v1.123.0
Version of Immich Mobile App
v1.123.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
Android version: Android 14 (OneUI, Samsung S23 Ultra)

Properties of the video that causes Android app crashing:
The text was updated successfully, but these errors were encountered: