webrtc: fix typo

This commit is contained in:
Koushik Dutta
2022-05-17 09:36:57 -07:00
parent da8343f4e4
commit afcc0bdd7b
3 changed files with 5 additions and 6 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/webrtc",
"version": "0.0.26",
"version": "0.0.27",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/webrtc",
"version": "0.0.26",
"version": "0.0.27",
"dependencies": {
"@koush/werift": "file:../../external/werift/packages/webrtc",
"@scrypted/common": "file:../../common",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/webrtc",
"version": "0.0.26",
"version": "0.0.27",
"scripts": {
"prepublishOnly": "NODE_ENV=production scrypted-webpack",
"prescrypted-vscode-launch": "scrypted-webpack",

View File

@@ -223,7 +223,6 @@ export async function createRTCPeerConnectionSink(
const transcode = willTranscode
|| mediaStreamOptions?.video?.codec !== 'h264'
|| ffmpegInput.h264EncoderArguments?.length;
const width = Math.min(options?.screen?.width || 960, 1280);
if (transcode) {
const conservativeDefaultBitrate = 500000;
@@ -245,7 +244,7 @@ export async function createRTCPeerConnectionSink(
if (filterIndex !== -1)
ffmpegInput.inputArguments[filterIndex + 1] = ffmpegInput.inputArguments[filterIndex + 1] + ` [unscaled]; [unscaled] ${scaleFilter}`;
else
videoArgs.push(scaleFilter)
videoArgs.push('-vf', scaleFilter)
if (!sessionSupportsH264High || maximumCompatibilityMode) {
// baseline profile must use libx264, not sure other encoders properly support it.
@@ -265,7 +264,7 @@ export async function createRTCPeerConnectionSink(
}
}
else {
videoArgs.push('-vf', '-vcodec', 'copy')
videoArgs.push('-vcodec', 'copy')
}
if (ffmpegInput.h264FilterArguments)