Skip to content

Videos: Official Nvidia transcoding suppport #2125

@maximecurioni

Description

@maximecurioni

What does not work as described in the documentation?

Up to the last 2022-01-21 release, it was possible to specify the h264_nvenc encoder to ffmpeg for GPU-based transcoding with Nvidia cards.

The latest 2022-03-02 release no longer offers a version of ffmpeg with that capability.

How can we reproduce it?

Here are the verification steps in 2022-03-02:

root@photoprism:/photoprism-storage/config# docker-compose exec photoprism bash
root@5846c5714486:/photoprism# uname -a
Linux 5846c5714486 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
root@5846c5714486:/photoprism# cat /etc/debian_version
11.2
root@5846c5714486:/photoprism# ffmpeg -loglevel quiet -encoders | grep h264_
 V..... h264_omx             OpenMAX IL H.264 video encoder (codec h264)
 V..... h264_qsv             H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)
 V..... h264_v4l2m2m         V4L2 mem2mem H.264 encoder wrapper (codec h264)
 V..... h264_vaapi           H.264/AVC (VAAPI) (codec h264)

Notice how h264_nvenc is not part of that list.

What behavior do you expect?

Here are the exact same steps in 2022-01-21:

root@photoprism:/photoprism-storage/config# docker-compose exec photoprism bash
root@bace6e400f6e:/photoprism# uname -a
Linux bace6e400f6e 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 x86_64 x86_64 GNU/Linux      
root@bace6e400f6e:/photoprism# cat /etc/debian_version
11.0
root@bace6e400f6e:/photoprism# ffmpeg -loglevel quiet -encoders | grep h264_
 V....D h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
 V..... h264_omx             OpenMAX IL H.264 video encoder (codec h264)
 V..... h264_qsv             H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)
 V..... h264_v4l2m2m         V4L2 mem2mem H.264 encoder wrapper (codec h264)
 V....D h264_vaapi           H.264/AVC (VAAPI) (codec h264)

What could be the cause of your problem?

The ffmpeg version packaged in the 2022-03-02 was not compiled with support for h264_nvenc encoder.

Can you provide us with example files for testing, error logs, or screenshots?

Available to provide more information if needed

Which software versions do you use?

Available to provide more information if needed

On what kind of device is PhotoPrism installed?

Available to provide more information if needed

Do you use a Reverse Proxy, Firewall, VPN, or CDN?
None

Metadata

Metadata

Assignees

Labels

ideaFeedback wanted / feature requestreleasedAvailable in the stable releasevideoVideo Formats, Transcoding, FFmpeg, Streaming & Co

Type

No type
No fields configured for issues without a type.

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions