Closed kaaku3 closed 1 month ago
Maybe good to provide a sample video file as I cannot reproduce. Tried on mobile and on web, with videos shot in landscape and in portrait (using Android). Both play back fine in the expected orientation.
I'm away right now so cannot provide a video easily, but I just did some testing after seeing your message. If I disable hardware transcoding (rkmpp). Then orientation is correct. I'll upload my settings file. Software transcoding is too slow on this soc (rk3588s) to be usable immich-config.txt
cc: @fyfrey have you had any issues with rotation?
Yeah, I also got some videos that are played upside down (only in immich, fine in other players)
I've disabled transcoding for the time being and orientation is correct. Only downside is on slow mobile data videos are slow to load in the app.
Do you need to reload all videos for it to play correct?
I don't know if I did it the correct way, but I just removed the encoded videos folder, changed the settings then reran the transcoding job on all. I currently have gone back to software transcoding again as without transcoding to a lower resolution playback on mobile data is not very usable on my network, but at its current speed it will take a month to transcode all my videos, where as hardware transcoding finishes in a few hours. I can confirm in my case the video orientation is only wrong on videos encoded using rkmpp with hevc, i have not tried other hardware transcoding codecs, but my soc only supports x265 and x264 hardware encoding. I did need to delete the browser cache to playback correctly in web gui.
After 1.106.1 update. video orientation is still wrong when hardware decode for rkmpp is enabled. When hardware encode is enabled but hardware decode is disabled, orientation is correct but the colour is washed out and green bands on the transcoded video.
I'm having the same issue but with QSV hardware decode/encode. It seems that it affect only HEVC/x265, not x264. (Also it seems to be the same issue as #10498 )
Here is a sample video affected, for testing https://github.com/immich-app/immich/assets/26034461/ee65c43d-6c57-46ce-8a5b-9417468a726b
Running Immich 1.106.4
The bug
Videos recorded in portrait mode are played back in landscape mode in both web and app. Preview image is the correct rotation.
Downloading the video then playing locally is played back correctly.
The OS that Immich Server is running on
Armbian
Version of Immich Server
1.103.1
Version of Immich Mobile App
1.103.1
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
No response
Additional information
No response