mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 14:13:28 +00:00
rebroadcast: publish rtmp support beta
This commit is contained in:
4
plugins/prebuffer-mixin/package-lock.json
generated
4
plugins/prebuffer-mixin/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/prebuffer-mixin",
|
||||
"version": "0.10.63",
|
||||
"version": "0.10.64",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/prebuffer-mixin",
|
||||
"version": "0.10.63",
|
||||
"version": "0.10.64",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@scrypted/common": "file:../../common",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/prebuffer-mixin",
|
||||
"version": "0.10.63",
|
||||
"version": "0.10.64",
|
||||
"description": "Video Stream Rebroadcast, Prebuffer, and Management Plugin for Scrypted.",
|
||||
"author": "Scrypted",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -351,6 +351,20 @@ class PrebufferSession {
|
||||
|
||||
const currentParser = parser.isDefault ? STRING_DEFAULT : parser.parser;
|
||||
|
||||
const choices = this.canUseRtmpParser(this.advertisedMediaStreamOptions)
|
||||
? [
|
||||
STRING_DEFAULT,
|
||||
SCRYPTED_PARSER_TCP,
|
||||
FFMPEG_PARSER_TCP,
|
||||
]
|
||||
: [
|
||||
STRING_DEFAULT,
|
||||
SCRYPTED_PARSER_TCP,
|
||||
SCRYPTED_PARSER_UDP,
|
||||
FFMPEG_PARSER_TCP,
|
||||
FFMPEG_PARSER_UDP,
|
||||
]
|
||||
|
||||
settings.push(
|
||||
{
|
||||
key: this.rtspParserKey,
|
||||
@@ -359,13 +373,7 @@ class PrebufferSession {
|
||||
title: 'RTSP Parser',
|
||||
description: `The RTSP Parser used to read the stream. The default is "${defaultValue}" for this stream.`,
|
||||
value: currentParser,
|
||||
choices: [
|
||||
STRING_DEFAULT,
|
||||
SCRYPTED_PARSER_TCP,
|
||||
SCRYPTED_PARSER_UDP,
|
||||
FFMPEG_PARSER_TCP,
|
||||
FFMPEG_PARSER_UDP,
|
||||
],
|
||||
choices,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -585,10 +593,12 @@ class PrebufferSession {
|
||||
|
||||
acodec = audioSoftMuted ? acodec : ['-acodec', 'copy'];
|
||||
|
||||
if (parser === FFMPEG_PARSER_UDP)
|
||||
ffmpegInput.inputArguments = ['-rtsp_transport', 'udp', '-i', ffmpegInput.url];
|
||||
else if (parser === FFMPEG_PARSER_TCP)
|
||||
ffmpegInput.inputArguments = ['-rtsp_transport', 'tcp', '-i', ffmpegInput.url];
|
||||
if (!this.canUseRtmpParser(mso)) {
|
||||
if (parser === FFMPEG_PARSER_UDP)
|
||||
ffmpegInput.inputArguments = ['-rtsp_transport', 'udp', '-i', ffmpegInput.url];
|
||||
else if (parser === FFMPEG_PARSER_TCP)
|
||||
ffmpegInput.inputArguments = ['-rtsp_transport', 'tcp', '-i', ffmpegInput.url];
|
||||
}
|
||||
// create missing pts from dts so mpegts and mp4 muxing does not fail
|
||||
const userInputArguments = this.storage.getItem(this.ffmpegInputArgumentsKey);
|
||||
const extraInputArguments = userInputArguments || DEFAULT_FFMPEG_INPUT_ARGUMENTS;
|
||||
|
||||
Reference in New Issue
Block a user