Support transcoding from 10bit to 8bit video.

This commit is contained in:
Tom Alexander 2025-09-17 19:49:56 -04:00
parent d358e9383e
commit 3b007f8bc5
No known key found for this signature in database
GPG Key ID: D3A179C9A53C0EDE

View File

@ -123,11 +123,13 @@ function convert {
if [ "$acceleration_type" == "software" ]; then
args+=(-c:v h264)
args+=(-profile:v high)
args+=(-vf format=yuv420p)
args+=(-b:v "$VIDEO_BITRATE")
elif [ "$acceleration_type" == "hardware" ]; then
args+=(-vf 'format=nv12|vaapi,hwupload')
args+=(-c:v h264_vulkan)
args+=(-profile:v high)
args+=(-vf format=yuv420p)
args+=(-b:v "$VIDEO_BITRATE")
fi
elif [ "$codec" == "av1" ]; then