Add other args check

make-only-subtitle-default
HaveAGitGat 2 years ago
parent 89fe92a8cc
commit fe8864fcc0

@ -191,7 +191,9 @@ const getEncoder = async ({
inputs,
otherArguments,
}) => {
if (otherArguments.workerType.includes('gpu')
if (
otherArguments.workerType
&& otherArguments.workerType.includes('gpu')
&& inputs.try_use_gpu && (inputs.target_codec === 'hevc' || inputs.target_codec === 'h264')) {
const gpuEncoders = [
{

Loading…
Cancel
Save