mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 02:05:54 -07:00
Merge pull request #470 from jsclayton/fix-ffmpeg6-10bit
Use filtergraph to specify 10-bit pixel format
This commit is contained in:
commit
ef8714ffd6
2 changed files with 4 additions and 4 deletions
|
|
@ -606,7 +606,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
// With this set we also disable hardware decode for compatibility later
|
// With this set we also disable hardware decode for compatibility later
|
||||||
if (inputs.enable_10bit === true) {
|
if (inputs.enable_10bit === true) {
|
||||||
main10 = true;
|
main10 = true;
|
||||||
extraArguments += '-profile:v main10 -pix_fmt p010le ';
|
extraArguments += '-profile:v main10 -vf scale_qsv=format=p010le ';
|
||||||
response.infoLog += '10 bit encode enabled. Setting Main10 Profile & 10 bit pixel format \n';
|
response.infoLog += '10 bit encode enabled. Setting Main10 Profile & 10 bit pixel format \n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ const tests = [
|
||||||
linux: {
|
linux: {
|
||||||
processFile: true,
|
processFile: true,
|
||||||
preset: '-fflags +genpts -hwaccel qsv -hwaccel_output_format qsv \n'
|
preset: '-fflags +genpts -hwaccel qsv -hwaccel_output_format qsv \n'
|
||||||
+ ' -init_hw_device qsv:hw_any,child_device_type=vaapi <io> -map 0 -c:v hevc_qsv -b:v 603k -minrate 452k -maxrate 754k -bufsize 1206k -preset fast -c:a copy -c:s copy -max_muxing_queue_size 9999 -profile:v main10 -pix_fmt p010le ',
|
+ ' -init_hw_device qsv:hw_any,child_device_type=vaapi <io> -map 0 -c:v hevc_qsv -b:v 603k -minrate 452k -maxrate 754k -bufsize 1206k -preset fast -c:a copy -c:s copy -max_muxing_queue_size 9999 -profile:v main10 -vf scale_qsv=format=p010le ',
|
||||||
handBrakeMode: false,
|
handBrakeMode: false,
|
||||||
FFmpegMode: true,
|
FFmpegMode: true,
|
||||||
reQueueAfter: true,
|
reQueueAfter: true,
|
||||||
|
|
@ -98,7 +98,7 @@ const tests = [
|
||||||
win32: {
|
win32: {
|
||||||
processFile: true,
|
processFile: true,
|
||||||
preset: '-fflags +genpts -hwaccel qsv -hwaccel_output_format qsv \n'
|
preset: '-fflags +genpts -hwaccel qsv -hwaccel_output_format qsv \n'
|
||||||
+ ' -init_hw_device qsv:hw_any,child_device_type=d3d11va <io> -map 0 -c:v hevc_qsv -load_plugin hevc_hw -b:v 603k -minrate 452k -maxrate 754k -bufsize 1206k -preset fast -c:a copy -c:s copy -max_muxing_queue_size 9999 -profile:v main10 -pix_fmt p010le ',
|
+ ' -init_hw_device qsv:hw_any,child_device_type=d3d11va <io> -map 0 -c:v hevc_qsv -load_plugin hevc_hw -b:v 603k -minrate 452k -maxrate 754k -bufsize 1206k -preset fast -c:a copy -c:s copy -max_muxing_queue_size 9999 -profile:v main10 -vf scale_qsv=format=p010le ',
|
||||||
handBrakeMode: false,
|
handBrakeMode: false,
|
||||||
FFmpegMode: true,
|
FFmpegMode: true,
|
||||||
reQueueAfter: true,
|
reQueueAfter: true,
|
||||||
|
|
@ -115,7 +115,7 @@ const tests = [
|
||||||
},
|
},
|
||||||
darwin: {
|
darwin: {
|
||||||
processFile: true,
|
processFile: true,
|
||||||
preset: '-fflags +genpts -hwaccel videotoolbox<io> -map 0 -c:v hevc_videotoolbox -b:v 603k -minrate 452k -maxrate 754k -bufsize 1206k -preset fast -c:a copy -c:s copy -max_muxing_queue_size 9999 -profile:v main10 -pix_fmt p010le ',
|
preset: '-fflags +genpts -hwaccel videotoolbox<io> -map 0 -c:v hevc_videotoolbox -b:v 603k -minrate 452k -maxrate 754k -bufsize 1206k -preset fast -c:a copy -c:s copy -max_muxing_queue_size 9999 -profile:v main10 -vf scale_qsv=format=p010le ',
|
||||||
handBrakeMode: false,
|
handBrakeMode: false,
|
||||||
FFmpegMode: true,
|
FFmpegMode: true,
|
||||||
reQueueAfter: true,
|
reQueueAfter: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue