mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Videos: format=nv12 filter is required to transcode 10bit videos with Intel QSV #2133
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#2133
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 @hicasper on GitHub (Jul 6, 2024).
Originally assigned to: @hicasper on GitHub.
What is not working as documented?
Hardware transcoding can't transcoding iPhone 12 Pro's recording videos. ffmpeg encoder fallback to libh264 from h264_qsv
Video metadata and trace log:
What could be the cause of your problem?
FFmpeg intel_qsv encoder not support h264 10bit input, so
github.com/photoprism/photoprism@7346dd64d7/internal/ffmpeg/config.go (L21)the end of thescale_qsvparameter should add:format=nv12.I have tested it and it works.
Which software versions do you use?
Photoprism 240531 amd64 docker
On what kind of device is PhotoPrism installed?
Intel N100 with Alder Lake N Graphics
@lastzero commented on GitHub (Jul 6, 2024):
Could you please provide the complete command / parameter string that works for you? We can then change the code accordingly if you don't want to submit a pull request for it. Thank you very much!
@hicasper commented on GitHub (Jul 6, 2024):
Sure, here is my command string in bash(contains escape charater
\) :The reason I don't submit the pr is because I don't know if I should add
-init_hw_device qsv=hw:/dev/dri/renderD128 -filter_hw_device hw -hwaccel_output_format qsv, it seems like has been removed from the source code, but the log shows that it still exist.@lastzero commented on GitHub (Jul 7, 2024):
Thank you very much! Our development preview build has been updated so you can test these changes:
@hicasper commented on GitHub (Jul 8, 2024):
It works well with ffmpeg 6, but ffmpeg 7 seems still have some problem, fixed in #4382
@lastzero commented on GitHub (Jul 8, 2024):
The static version of FFmpeg 7 does not support hardware transcoding: