2023-09-16, 09:36 PM
(This post was last modified: 2023-09-16, 09:39 PM by TheDreadPirate. Edited 2 times in total.)
How do I use ffmpeg to encode with HEVC Main10/10-bit? This parameter is supposed to work, but I know that placement within the command is important and I don't know where that is.
Code:
-profile:v main10
Code:
/usr/lib/jellyfin-ffmpeg/ffmpeg \
-init_hw_device vaapi=va:,driver=iHD,kernel_driver=i915 \
-init_hw_device qsv=qs@va \
-filter_hw_device qs \
-hwaccel qsv \
-hwaccel_output_format qsv \
-i "$inputFile" \
-map 0:v \
-map 0:a \
-map 0:s \
-map_chapters 0 \
-c:v hevc_qsv \
-preset slower \
$hdrProfile \ <------ profile:v main10 goes here if I run my script and specify it is HDR.
-pix_fmt nv12 \
-c:a copy \
-c:s copy \
-ss $startTime \
-to $endTime \
-global_quality:v $quality \
-vf "$filters" \
"$outputFile"