photoview: allow configuring hw accel (#3665)

This commit is contained in:
Stavros Kois
2025-11-20 13:29:32 +02:00
committed by GitHub
parent 45e6535580
commit 1adc8ea8e2
4 changed files with 30 additions and 1 deletions

View File

@@ -30,4 +30,4 @@ sources:
- https://hub.docker.com/r/photoview/photoview
title: Photoview
train: community
version: 1.0.13
version: 1.0.14

View File

@@ -52,6 +52,25 @@ questions:
default: ""
required: true
private: true
- variable: video_hardware_acceleration
label: Video Hardware Acceleration
description: |
Set the type of hardware acceleration for video processing.</br>
Note that when selecting an option other than 'Disabled',</br>
you have to also provide the necessary GPU resources to the container.</br>
Make sure your hardware and drivers support the selected acceleration method.
schema:
type: string
default: ""
enum:
- value: ""
description: Disabled
- value: "vaapi"
description: VA-API
- value: "nvenc"
description: NVENC
- value: "qsv"
description: QSV
- variable: additional_envs
label: Additional Environment Variables
schema:
@@ -542,3 +561,11 @@ questions:
type: int
default: 4096
required: true
- variable: gpus
group: Resources Configuration
label: GPU Configuration
schema:
type: dict
$ref:
- "definitions/gpu_configuration"
attrs: []

View File

@@ -25,6 +25,7 @@
{% do c1.environment.add_env("PHOTOVIEW_DATABASE_DRIVER", "postgres") %}
{% do c1.environment.add_env("PHOTOVIEW_POSTGRES_URL", postgres.get_url("postgresql")) %}
{% do c1.environment.add_env("PHOTOVIEW_MEDIA_CACHE", values.consts.media_cache_path) %}
{% do c1.environment.add_env("PHOTOVIEW_VIDEO_HARDWARE_ACCELERATION", values.photoview.video_hardware_acceleration) %}
{% do c1.environment.add_user_envs(values.photoview.additional_envs) %}
{% do c1.add_port(values.network.web_port) %}

View File

@@ -6,6 +6,7 @@ resources:
photoview:
postgres_image_selector: postgres_17_image
db_password: password
video_hardware_acceleration: ""
additional_envs: []
network: