looks like we have to add a specific profile
This commit is contained in:
parent
5e809bc053
commit
d09a3d43b2
12
dist/main.js
vendored
12
dist/main.js
vendored
@ -34,14 +34,18 @@ async function register({ settingsManager, peertubeHelpers, transcodingManager:
|
|||||||
const encoder = 'h264_nvenc';
|
const encoder = 'h264_nvenc';
|
||||||
const hevc = 'hevc_nvenc';
|
const hevc = 'hevc_nvenc';
|
||||||
const profileName = 'nctv-nvenc';
|
const profileName = 'nctv-nvenc';
|
||||||
|
const hevcProfile = 'nctv-hevc'
|
||||||
transcodingManager.addVODProfile(encoder, profileName, vodBuilder);
|
transcodingManager.addVODProfile(encoder, profileName, vodBuilder);
|
||||||
transcodingManager.addVODEncoderPriority('video', encoder, 1000);
|
transcodingManager.addVODEncoderPriority('video', encoder, 1000);
|
||||||
|
|
||||||
transcodingManager.addLiveProfile(encoder, profileName, liveBuilder);
|
transcodingManager.addLiveProfile(encoder, profileName, liveBuilder);
|
||||||
transcodingManager.addLiveEncoderPriority('video', encoder, 1000);
|
transcodingManager.addLiveEncoderPriority('video', encoder, 1000);
|
||||||
transcodingManager.addVODProfile(hevc, profileName, hevcVODBuilder);
|
|
||||||
transcodingManager.addVODEncoderPriority('video', encoder, 1000);
|
transcodingManager.addVODProfile(hevc, hevcProfile, hevcVODBuilder);
|
||||||
transcodingManager.addLiveProfile(hevc, profileName, hevcLiveBuilder);
|
transcodingManager.addVODEncoderPriority('video', hevc, 1000);
|
||||||
transcodingManager.addLiveEncoderPriority('video', encoder, 1000);
|
|
||||||
|
transcodingManager.addLiveProfile(hevc, hevcProfile, hevcLiveBuilder);
|
||||||
|
transcodingManager.addLiveEncoderPriority('video', hevc, 1000);
|
||||||
await loadSettings(settingsManager);
|
await loadSettings(settingsManager);
|
||||||
registerSetting({
|
registerSetting({
|
||||||
name: 'hardware-decode',
|
name: 'hardware-decode',
|
||||||
|
Loading…
Reference in New Issue
Block a user