Recoded video - rotation wrong #3576

Closed
opened 2026-02-05 09:05:00 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @Str1atum on GitHub (Jun 20, 2024).

The bug

With 1.106.4 if have an issue with the recoded videos being the wrong orientation.
It affects HEVC encoded videos in 1080p or 4k from iPhone 13 and 15.
Videos in portrait orientation are rotated to landscape. Videos in landscape are rotated 180°.
The videos do not just play that way in the browser but also when I download the recoded videos with Chrome to my local disk.

recode config is:

"ffmpeg": {
"crf": 28,
"threads": 0,
"preset": "medium",
"targetVideoCodec": "hevc",
"acceptedVideoCodecs": [
"hevc"
],
"targetAudioCodec": "aac",
"acceptedAudioCodecs": [
"libopus",
"mp3",
"aac"
],
"targetResolution": "720",
"maxBitrate": "2500",
"bframes": -1,
"refs": 0,
"gopSize": 0,
"npl": 0,
"temporalAQ": false,
"cqMode": "auto",
"twoPass": true,
"preferredHwDevice": "auto",
"transcode": "required",
"tonemap": "hable",
"accel": "qsv",
"accelDecode": true

The OS that Immich Server is running on

Ubunti 24.04

Version of Immich Server

1.106.4

Version of Immich Mobile App

v.106

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

default

Your .env content

default

Reproduction steps

see above

Relevant log output

No response

Additional information

No response

Originally created by @Str1atum on GitHub (Jun 20, 2024). ### The bug With 1.106.4 if have an issue with the recoded videos being the wrong orientation. It affects HEVC encoded videos in 1080p or 4k from iPhone 13 and 15. Videos in portrait orientation are rotated to landscape. Videos in landscape are rotated 180°. The videos do not just play that way in the browser but also when I download the recoded videos with Chrome to my local disk. recode config is: > "ffmpeg": { > "crf": 28, > "threads": 0, > "preset": "medium", > "targetVideoCodec": "hevc", > "acceptedVideoCodecs": [ > "hevc" > ], > "targetAudioCodec": "aac", > "acceptedAudioCodecs": [ > "libopus", > "mp3", > "aac" > ], > "targetResolution": "720", > "maxBitrate": "2500", > "bframes": -1, > "refs": 0, > "gopSize": 0, > "npl": 0, > "temporalAQ": false, > "cqMode": "auto", > "twoPass": true, > "preferredHwDevice": "auto", > "transcode": "required", > "tonemap": "hable", > "accel": "qsv", > "accelDecode": true ### The OS that Immich Server is running on Ubunti 24.04 ### Version of Immich Server 1.106.4 ### Version of Immich Mobile App v.106 ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML default ``` ### Your .env content ```Shell default ``` ### Reproduction steps ```bash see above ``` ### Relevant log output _No response_ ### Additional information _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#3576