Closed zdimension closed 1 month ago
Have you changed the transcoding configuration at all?
Have you changed the transcoding configuration at all?
Actually, yes. Since other videos worked I didn't check that.
@bo0tzz I think I know what's happening. The video can't be played in Chrome because it's an AVI file. But the codecs are good (H264 & MP3), so Immich doesn't transcode. It should be possible to choose, in addition to the allowed codecs, which container formats are allowed. My other AVI files have DivX or MJPEG video streams, often with PCM audio, so they were transcoded properly.
That sounds plausible. @mertalev thoughts?
We could add that. It feels bad to transcode just because of the container, but I guess it can't be helped in this case.
I'm not sure which containers are supported by which browser, so that needs some investigation.
Would the preferred behavior be to remux the video as a different container (copying the streams), or to do a full transcode? The former is all that's actually needed here, but the latter is more storage-efficient.
Would the preferred behavior be to remux the video as a different container (copying the streams), or to do a full transcode? The former is all that's actually needed here, but the latter is more storage-efficient.
IMO, the container issue should be treated separately from the codec issue, so if a file has an unacceptable container but acceptable streams, no transcode should be made, only remuxing. I understand how that could be debatable, though.
I'm not sure which containers are supported by which browser, so that needs some investigation.
This should be fixed in the next release.
The bug
Uploaded an AVI file to Immich. File can be played in Android app. In browser, the mouseover shows the error icon: (gif below)
After clicking, the HTML5 video loading spinner appears for a second then disappears, and the Immich loading spinner spins forever: (gif below)
![chrome_jdlJyaKw1G](https://github.com/user-attachments/assets/2ec3f273-5bfa-4657-a681-9060f3a4020b)
This bug was also previously mentioned here.
All my other videos (MPEG, ...) work.
The OS that Immich Server is running on
Debian 11 x86_64
Version of Immich Server
v1.108.0
Version of Immich Mobile App
n/a
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
AVI info:
HTTP request:
Response:
In the page, the request is aborted (NS_BINDING_ABORTED on Firefox, no content on Chrome). If the URL is opened in a new tab, the original AVI file is returned and download.
I tried re-running the transcoding task.