mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 18:45:53 -07:00
Update Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
Fixed up an issue with HW decoding. If the -hwaccel qsv is set then ffmpeg seems to automatically enable hw decoding even when we don't want it. There's been several reports of issues with certain files & I think this is the cause. I've tested and that appears to resolve the transcode error
This commit is contained in:
parent
74a241c280
commit
95ec657cfd
1 changed files with 15 additions and 12 deletions
|
|
@ -731,6 +731,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
|
|
||||||
// HW ACCEL FLAGS
|
// HW ACCEL FLAGS
|
||||||
// Account for different OS
|
// Account for different OS
|
||||||
|
if (main10 === false) {
|
||||||
|
// On testing it seems the below will automatically enable hardware decoding which causes issues...
|
||||||
switch (os.platform()) {
|
switch (os.platform()) {
|
||||||
case 'darwin': // Mac OS - Enable videotoolbox instead of QSV
|
case 'darwin': // Mac OS - Enable videotoolbox instead of QSV
|
||||||
response.preset += '-hwaccel videotoolbox';
|
response.preset += '-hwaccel videotoolbox';
|
||||||
|
|
@ -746,6 +748,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
default:
|
default:
|
||||||
response.preset += '-hwaccel qsv -hwaccel_output_format qsv -init_hw_device qsv:hw_any ';
|
response.preset += '-hwaccel qsv -hwaccel_output_format qsv -init_hw_device qsv:hw_any ';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// DECODE FLAGS
|
// DECODE FLAGS
|
||||||
if (os.platform() !== 'darwin') {
|
if (os.platform() !== 'darwin') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue