Closed gwmullin closed 3 weeks ago
I have the same bug in 1.108.0
If i disable hdr tone mapping i do no have this issue, but there are significant artifacts to make hardware encode unusable.
Can you try re-transcoding with 1.118.2 and clearing your browser cache to make it show the new transcode? We upgraded FFmpeg, so this might be fixed.
After update to 1.118.2, I no longer seem to be getting green lines.
Seems to be fixed.
Possibly an unrelated bug, but the encoded video sometimes has severe artefacts and playback loops the first few frames of the video. It's inconsistent in reproducing, but I only noticed the issue using mobius tone-mapping and haven't noticed so far with hayble.
The bug
When hardware transcoding is enabled (encoding, the decoding setting doesn't seem to make this better or worse), videos transcoded from an upload in portrait format appear with green/color stripe artifacts, while landscape formats do not. This only occurs with hardware encoding enabled on the rockchip platform. When disabling hardware encoding the issue is no longer present.
With hardware transcoding:
Hardware transcoding disabled:
The OS that Immich Server is running on
Ubuntu 24.04 LTS (GNU/Linux 6.1.0-1014-rockchip aarch64)
Version of Immich Server
v1.107.0
Version of Immich Mobile App
1.107.0 buil.145
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
ffmpeg commands with and without hardware encoding:
Without:
root 1950964 204 3.3 1103256 275352 ? SNl 10:06 0:06 /usr/bin/ffmpeg -i upload/upload/f7cecbb4-cf89-45d7-ba78-262c47c574f3/d9/64/d964c87c-76f2-436d-a8e6-d46a6f9bb10c.mp4 -y -c:v h264 -c:a copy -movflags faststart -fps_mode passthrough -map 0:0 -map 0:2 -v verbose -vf scale=720:-2,format=yuv420p -preset medium -crf 23 upload/encoded-video/f7cecbb4-cf89-45d7-ba78-262c47c574f3/0e/22/0e225248-9912-4c35-9113-4db64f671ee8.mp4
With:
root 1951502 198 1.1 809368 97348 ? SNl 10:08 0:03 /usr/bin/ffmpeg -i upload/upload/f7cecbb4-cf89-45d7-ba78-262c47c574f3/d9/64/d964c87c-76f2-436d-a8e6-d46a6f9bb10c.mp4 -y -c:v h264_rkmpp -c:a copy -movflags faststart -fps_mode passthrough -map 0:0 -map 0:2 -g 256 -v verbose -vf scale=720:-2,format=yuv420p -level 51 -rc_mode CQP -qp_init 23 upload/encoded-video/f7cecbb4-cf89-45d7-ba78-262c47c574f3/0e/22/0e225248-9912-4c35-9113-4db64f671ee8.mp4