niggers
This commit is contained in:
		
							
								
								
									
										40
									
								
								dist/main.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										40
									
								
								dist/main.js
									
									
									
									
										vendored
									
									
								
							@ -237,12 +237,12 @@ function buildInitOptions() {
 | 
				
			|||||||
async function vodBuilder(params) {
 | 
					async function vodBuilder(params) {
 | 
				
			||||||
  const { resolution, fps, streamNum, inputBitrate } = params;
 | 
					  const { resolution, fps, streamNum, inputBitrate } = params;
 | 
				
			||||||
  const streamSuffix = streamNum == undefined ? "" : `:${streamNum}`;
 | 
					  const streamSuffix = streamNum == undefined ? "" : `:${streamNum}`;
 | 
				
			||||||
  // let targetBitrate = getTargetBitrate(resolution, fps);
 | 
					  let targetBitrate = getTargetBitrate(resolution, fps);
 | 
				
			||||||
  let targetBitrate = inputBitrate;
 | 
					  // let targetBitrate = inputBitrate;
 | 
				
			||||||
  let shouldInitVaapi = streamNum == undefined || streamNum <= latestStreamNum;
 | 
					  let shouldInitVaapi = streamNum == undefined || streamNum <= latestStreamNum;
 | 
				
			||||||
  // if (targetBitrate > inputBitrate) {
 | 
					  if (targetBitrate > inputBitrate) {
 | 
				
			||||||
  //    targetBitrate = inputBitrate;
 | 
					    targetBitrate = inputBitrate;
 | 
				
			||||||
  // }
 | 
					  }
 | 
				
			||||||
  logger.info(`Building encoder options, received ${JSON.stringify(params)}`);
 | 
					  logger.info(`Building encoder options, received ${JSON.stringify(params)}`);
 | 
				
			||||||
  if (shouldInitVaapi && streamNum != undefined) {
 | 
					  if (shouldInitVaapi && streamNum != undefined) {
 | 
				
			||||||
    latestStreamNum = streamNum;
 | 
					    latestStreamNum = streamNum;
 | 
				
			||||||
@ -271,12 +271,12 @@ async function vodBuilder(params) {
 | 
				
			|||||||
async function liveBuilder(params) {
 | 
					async function liveBuilder(params) {
 | 
				
			||||||
  const { resolution, fps, streamNum, inputBitrate } = params;
 | 
					  const { resolution, fps, streamNum, inputBitrate } = params;
 | 
				
			||||||
  const streamSuffix = streamNum == undefined ? "" : `:${streamNum}`;
 | 
					  const streamSuffix = streamNum == undefined ? "" : `:${streamNum}`;
 | 
				
			||||||
  //let targetBitrate = getTargetBitrate(resolution, fps);
 | 
					  let targetBitrate = getTargetBitrate(resolution, fps);
 | 
				
			||||||
  let targetBitrate = inputBitrate;
 | 
					  // let targetBitrate = inputBitrate;
 | 
				
			||||||
  let shouldInitVaapi = streamNum == undefined || streamNum <= latestStreamNum;
 | 
					  let shouldInitVaapi = streamNum == undefined || streamNum <= latestStreamNum;
 | 
				
			||||||
  //if (targetBitrate > inputBitrate) {
 | 
					  if (targetBitrate > inputBitrate) {
 | 
				
			||||||
  //     targetBitrate = inputBitrate;
 | 
					    targetBitrate = inputBitrate;
 | 
				
			||||||
  // }
 | 
					  }
 | 
				
			||||||
  logger.info(`Building encoder options, received ${JSON.stringify(params)}`);
 | 
					  logger.info(`Building encoder options, received ${JSON.stringify(params)}`);
 | 
				
			||||||
  if (shouldInitVaapi && streamNum != undefined) {
 | 
					  if (shouldInitVaapi && streamNum != undefined) {
 | 
				
			||||||
    latestStreamNum = streamNum;
 | 
					    latestStreamNum = streamNum;
 | 
				
			||||||
@ -307,12 +307,12 @@ async function liveBuilder(params) {
 | 
				
			|||||||
async function hevcVODBuilder(params) {
 | 
					async function hevcVODBuilder(params) {
 | 
				
			||||||
  const { resolution, fps, streamNum, inputBitrate } = params;
 | 
					  const { resolution, fps, streamNum, inputBitrate } = params;
 | 
				
			||||||
  const streamSuffix = streamNum == undefined ? "" : `:${streamNum}`;
 | 
					  const streamSuffix = streamNum == undefined ? "" : `:${streamNum}`;
 | 
				
			||||||
  // let targetBitrate = getTargetBitrate(resolution, fps);
 | 
					  let targetBitrate = getTargetBitrate(resolution, fps);
 | 
				
			||||||
  let targetBitrate = inputBitrate;
 | 
					  // let targetBitrate = inputBitrate;
 | 
				
			||||||
  let shouldInitVaapi = streamNum == undefined || streamNum <= latestStreamNum;
 | 
					  let shouldInitVaapi = streamNum == undefined || streamNum <= latestStreamNum;
 | 
				
			||||||
  // if (targetBitrate > inputBitrate) {
 | 
					  if (targetBitrate > inputBitrate) {
 | 
				
			||||||
  //    targetBitrate = inputBitrate;
 | 
					    targetBitrate = inputBitrate;
 | 
				
			||||||
  // }
 | 
					  }
 | 
				
			||||||
  logger.info(`Building encoder options, received ${JSON.stringify(params)}`);
 | 
					  logger.info(`Building encoder options, received ${JSON.stringify(params)}`);
 | 
				
			||||||
  if (shouldInitVaapi && streamNum != undefined) {
 | 
					  if (shouldInitVaapi && streamNum != undefined) {
 | 
				
			||||||
    latestStreamNum = streamNum;
 | 
					    latestStreamNum = streamNum;
 | 
				
			||||||
@ -340,12 +340,12 @@ async function hevcVODBuilder(params) {
 | 
				
			|||||||
async function hevcLiveBuilder(params) {
 | 
					async function hevcLiveBuilder(params) {
 | 
				
			||||||
  const { resolution, fps, streamNum, inputBitrate } = params;
 | 
					  const { resolution, fps, streamNum, inputBitrate } = params;
 | 
				
			||||||
  const streamSuffix = streamNum == undefined ? "" : `:${streamNum}`;
 | 
					  const streamSuffix = streamNum == undefined ? "" : `:${streamNum}`;
 | 
				
			||||||
  // let targetBitrate = getTargetBitrate(resolution, fps);
 | 
					  let targetBitrate = getTargetBitrate(resolution, fps);
 | 
				
			||||||
  let targetBitrate = inputBitrate;
 | 
					  // let targetBitrate = inputBitrate;
 | 
				
			||||||
  let shouldInitVaapi = streamNum == undefined || streamNum <= latestStreamNum;
 | 
					  let shouldInitVaapi = streamNum == undefined || streamNum <= latestStreamNum;
 | 
				
			||||||
  // if (targetBitrate > inputBitrate) {
 | 
					  if (targetBitrate > inputBitrate) {
 | 
				
			||||||
  //     targetBitrate = inputBitrate;
 | 
					    targetBitrate = inputBitrate;
 | 
				
			||||||
  // }
 | 
					  }
 | 
				
			||||||
  logger.info(`Building encoder options, received ${JSON.stringify(params)}`);
 | 
					  logger.info(`Building encoder options, received ${JSON.stringify(params)}`);
 | 
				
			||||||
  if (shouldInitVaapi && streamNum != undefined) {
 | 
					  if (shouldInitVaapi && streamNum != undefined) {
 | 
				
			||||||
    latestStreamNum = streamNum;
 | 
					    latestStreamNum = streamNum;
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user