Issues with videos (sharing, transcoding, watching)
hello! i'm using a mini-pc with ubuntu server to host my immich server.
everything is working flawlessly (besides the mobile map view) except videos.
loading even small videos (sub 50mb) starts with showing 2 seconds of the video, then buffering for 20 seconds, then showing another 2 seconds, then buffering again. also sharing videos by the mobile app - "share with" - is impossible. the loading icon just circles forever.
this is only happening in the app, the web version shows no issues at all - videos are loading at light speed and i can use the normal share option (not share with, since i cant find that option in the web version)
at first i thought it has something to do with the host machine (NiPoGi AK2 Plus with 12. Gen Intel CPU+GPU) but since it is working in the web, i dont think, thats the root of the issues.
also i'm in gbit lan so i guess, the network is also no cause.
could this be connected to transcoding options or a bug? please enlighten or assist me š
additional infos:
1. latest version on mobile and server
2. read release notes
3. searched through FAQ + google
4. i am accessing it via local ip only
5. logs show errors only in machine learning
6. tried different video and audio codecs
7. no changes were made - this issue persists since the setup
8. tested on samsung s22, s24 and iphone 14
15 Replies
:wave: Hey @Kaizer,
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. 3986ed1b8f72 tensorchord/pgvecto-rs:pg14-v0.2.0 "docker-entrypoint.sā¦" 12 days ago Up 12 days (healthy) 5432/tcp immich_postgres
cc7e761a2548 ghcr.io/immich-app/immich-machine-learning:release "tini -- ./start.sh" 4 days ago Up 4 days (healthy) immich_machine_learning
f2ccfbae272a ghcr.io/immich-app/immich-server:release "tini -- /bin/bash sā¦" 4 days ago Up 4 days (healthy) 0.0.0.0:1337->2283/tcp, :::1337->2283/tcp immich_server
[Nest] 7 - 03/10/2025, 8:31:34 AM WARN [Microservices:MachineLearningRepository] Machine learning request to "http://immich-machine-learning:3003" failed: fetch failed
[Nest] 7 - 03/10/2025, 8:31:34 AM ERROR [Microservices:{"id":"61da2fee-426d-4e68-a47a-b7f3e675001c"}] Unable to run job handler (smartSearch/smart-search): Error: Machine learning request '{"clip":{"visual":{"modelName":"ViT-B-32__openai"}}}' failed for all URLs
[Nest] 7 - 03/10/2025, 8:31:34 AM WARN [Microservices:MachineLearningRepository] Machine learning request to "http://immich-machine-learning:3003" failed: fetch failed
Error: Machine learning request '{"clip":{"visual":{"modelName":"ViT-B-32__openai"}}}' failed for all URLs
It can definitely be transcoding issues, the errors you've posted are machine learning though, does your instance have enough RAM for the ML model?
16gb and never fully used, not even closely
tbh, i dont have much experience with transcoding settings - neither in immich, nor on the host system or the container itself and its very confusing for me š
but even if its a transcoding issue, why is it working in the browser and not in the app? and what should i change to make it work?
Because devices have different support for codecs
Usually it's the other way around though, browser not supporting it š
You're not using any proxy for https access or such?
no sir, since im accessing it only locally š
any idea so far?
Not a clue so far, your mini PC is SSD I assume? Can we get your compose + env? @Kaizer š
1024 GB-M.2-SS
yes but the media is stored on a usb 3.0 external sata disk
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /mnt/ext_4tb/Flo/:/mnt/ext/cloudmedia/Flo
- /mnt/ext_4tb/Karo/:/mnt/ext/cloudmedia/Karo
env_file:
- stack.env
ports:
- '1337:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
test: curl --fail http://localhost:2283/health || exit 1
interval: 30s
timeout: 10s
retries: 3
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
volumes:
- model-cache:/cache
env_file:
- stack.env
restart: always
healthcheck:
test: curl --fail http://localhost:3001/health || exit 1
interval: 30s
timeout: 10s
retries: 3
redis:
container_name: immich_redis
image: redis:6.2-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
restart: always
database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
--command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
echo "checksum failure count is $$Chksum";
[ "$$Chksum" = '0' ] || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
command: >-
postgres
-c shared_preload_libraries=vectors.so
-c 'search_path="$$user", public, vectors'
-c logging_collector=on
-c max_wal_size=2GB
-c shared_buffers=512MB
-c wal_compression=on
restart: always
volumes:
model-cache:
please tell me if im doing anything wrong š
oh the .env is missing, give me a minutedo you also need it for the others? (machine learning, redis, postgres)

I assume
./projects/dbs/immich/postgres
is located on the SSD ?
It's all looking OK, no reason immich-wise it should do this
(not that I can see)yes that is located on the ssd
Could you show us your transcode options in the admin settings? š
Just to be clear too, this is the latest version right?
yes - just fyi - i left them untouched until yesterday and just played around a bit without exactly knowing what im doing š



transcode policies i tried: the one shown in the screenshot, dont transcode, only videos in a non accepted format
i also dont know if i have to restart the container after changing that
tried movies in 4k, 1080p, 720p
with and without sound
durations between 10 seconds and 4 minutes
sizes between 10mb and 300mb
in the browser the video starts after MAX 2 seconds, in the app - see beginning of the thread š
i dont know how it could be connected but since the sharing also takes damn long for even very few images (not videos - videos are impossible to share atm) i just wanted to put a little reminder here
hello, no solution to this issssue yet?
hi, is anyone still working on this issue?
I am out of ideas personally, it sure sounds like something we can't control though, I'd go look for any hardware related blips like drivers, setup, spindown...