mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Intel QSV: Portrait Live Photos transcoded in avc codec are in landscape #2176
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#2176
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MertDalbudak on GitHub (Sep 5, 2024).
Live Photos taken on an iPhone Xr that are recorded in portrait mode and transcoded to avc are in landscape mode. Chrome useses the hevc codec video which plays the Live Photos in the correct orientation. Firefox however plays the avc codec video which makes the Live Photo played in a incorrect orientation.
However actual Videos that have been recorded on the iPhone in portrait mode are also transcoded in a landscape video in hevc.
Here is a example of an Live Photo:
FFMPEG Intel GPU Hardware support enabled (UHD Graphics 630)
Photoprism runs inside a Podman container
Version: Build 240711-2197af848
@lastzero commented on GitHub (Sep 5, 2024):
This is an upstream issue with FFmpeg and Intel hardware transcoding. It has already been discussed in a number of places. Since I'm on my phone, I can't provide you with links but switching to software transcoding (or Nvidia) should work based on the feedback we have received.
@lastzero commented on GitHub (Sep 5, 2024):
Here's the original report:
@MertDalbudak commented on GitHub (Sep 6, 2024):
I cannot use nvidia because I do not have a nvidia gpu. Software trasncoding takes tremendous amout of time to render and also uses a lot of memory in the process.
Based on the ffmpeg documentation we might solve the issue by adding
-noautorotateas an option for QSV transcoding.internal/ffmpeg/convert.go
@lastzero commented on GitHub (Sep 6, 2024):
I have already tried this. You are welcome to repeat the tests and let us know if you were successful.