change encoder priority

This commit is contained in:
matty 2024-04-14 15:41:29 -04:00
parent d09a3d43b2
commit 7761d12bc8

6
dist/main.js vendored
View File

@ -34,7 +34,7 @@ async function register({ settingsManager, peertubeHelpers, transcodingManager:
const encoder = 'h264_nvenc';
const hevc = 'hevc_nvenc';
const profileName = 'nctv-nvenc';
const hevcProfile = 'nctv-hevc'
const hevcProfile = 'nctv-hevc';
transcodingManager.addVODProfile(encoder, profileName, vodBuilder);
transcodingManager.addVODEncoderPriority('video', encoder, 1000);
@ -42,10 +42,10 @@ async function register({ settingsManager, peertubeHelpers, transcodingManager:
transcodingManager.addLiveEncoderPriority('video', encoder, 1000);
transcodingManager.addVODProfile(hevc, hevcProfile, hevcVODBuilder);
transcodingManager.addVODEncoderPriority('video', hevc, 1000);
transcodingManager.addVODEncoderPriority('video', hevc, 900);
transcodingManager.addLiveProfile(hevc, hevcProfile, hevcLiveBuilder);
transcodingManager.addLiveEncoderPriority('video', hevc, 1000);
transcodingManager.addLiveEncoderPriority('video', hevc, 900);
await loadSettings(settingsManager);
registerSetting({
name: 'hardware-decode',