mirror of
https://github.com/MAGICGrants/truenas-apps.git
synced 2026-01-09 20:47:58 -05:00
photoview: allow configuring hw accel (#3665)
This commit is contained in:
@@ -30,4 +30,4 @@ sources:
|
||||
- https://hub.docker.com/r/photoview/photoview
|
||||
title: Photoview
|
||||
train: community
|
||||
version: 1.0.13
|
||||
version: 1.0.14
|
||||
|
||||
@@ -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: []
|
||||
|
||||
@@ -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) %}
|
||||
|
||||
@@ -6,6 +6,7 @@ resources:
|
||||
photoview:
|
||||
postgres_image_selector: postgres_17_image
|
||||
db_password: password
|
||||
video_hardware_acceleration: ""
|
||||
additional_envs: []
|
||||
|
||||
network:
|
||||
|
||||
Reference in New Issue
Block a user