fix issue with hevc profile selection
This commit is contained in:
parent
e7ff13c14b
commit
f81fa92956
12
dist/main.js
vendored
12
dist/main.js
vendored
@ -5,7 +5,7 @@ let logger;
|
||||
let transcodingManager;
|
||||
const DEFAULT_HARDWARE_DECODE = false;
|
||||
const DEFAULT_VOD_QUALITY = "p7";
|
||||
const DEFAULT_HEVC_PROFILE = "main10";
|
||||
const DEFAULT_HEVC_PROFILE = "main";
|
||||
const DEFAULT_LIVE_QUALITY = "hq";
|
||||
const DEFAULT_CQ_H264 = 26;
|
||||
const DEFAULT_CQ_HEVC = 28;
|
||||
@ -95,8 +95,8 @@ async function register({ settingsManager, peertubeHelpers, transcodingManager:
|
||||
label: 'HEVC Profile',
|
||||
type: 'select',
|
||||
options: [
|
||||
{ label: 'main', value: 'main' },
|
||||
{ label: 'main10 (default)', value: 'main10' },
|
||||
{ label: 'main (default)', value: 'main' },
|
||||
{ label: 'main10', value: 'main10' },
|
||||
{ label: 'rext', value: 'rext' }
|
||||
],
|
||||
descriptionHTML: 'Set the HEVC profile',
|
||||
@ -148,9 +148,9 @@ async function unregister() {
|
||||
exports.unregister = unregister;
|
||||
async function loadSettings(settingsManager) {
|
||||
pluginSettings.hardwareDecode = await settingsManager.getSetting('hardware-decode') || DEFAULT_HARDWARE_DECODE;
|
||||
pluginSettings.vodQuality = parseInt(await settingsManager.getSetting('vod-quality')) || DEFAULT_VOD_QUALITY;
|
||||
pluginSettings.liveQuality = parseInt(await settingsManager.getSetting('live-quality')) || DEFAULT_LIVE_QUALITY;
|
||||
pluginSettings.hevcProfile = parseInt(await settingsManager.getSetting('hevc-profile')) || DEFAULT_HEVC_PROFILE;
|
||||
pluginSettings.vodQuality = await settingsManager.getSetting('vod-quality') || DEFAULT_VOD_QUALITY;
|
||||
pluginSettings.liveQuality = await settingsManager.getSetting('live-quality') || DEFAULT_LIVE_QUALITY;
|
||||
pluginSettings.hevcProfile = await settingsManager.getSetting('hevc-profile') || DEFAULT_HEVC_PROFILE;
|
||||
pluginSettings.cqH264 = parseInt(await settingsManager.getSetting('cq-h264')) || DEFAULT_CQ_H264;
|
||||
pluginSettings.cqHEVC = parseInt(await settingsManager.getSetting('cq-hevc')) || DEFAULT_CQ_HEVC;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user