rebroadcast: fixup resolution detection

This commit is contained in:
Koushik Dutta
2021-10-03 01:41:05 -07:00
parent b5d8da6183
commit ebd87396e9
3 changed files with 10 additions and 3 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.48",
"version": "0.1.49",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.48",
"version": "0.1.49",
"license": "Apache-2.0",
"dependencies": {
"@scrypted/common": "file:../../common",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.48",
"version": "0.1.49",
"description": "Rebroadcast and Prebuffer for VideoCameras.",
"author": "Scrypted",
"license": "Apache-2.0",

View File

@@ -284,6 +284,13 @@ class PrebufferMixin extends SettingsMixinDeviceBase<VideoCamera> implements Vid
}
}
if (mediaStreamOptions.video) {
Object.assign(mediaStreamOptions.video, {
width: parseInt(this.session.inputVideoResolution[2]),
height: parseInt(this.session.inputVideoResolution[3]),
})
}
const ffmpegInput: FFMpegInput = {
inputArguments: [
'-f', container,