homebridge-plugin-utils 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ffmpeg/record.d.ts +13 -6
- package/dist/ffmpeg/record.js +22 -14
- package/dist/ffmpeg/record.js.map +1 -1
- package/package.json +3 -3
package/dist/ffmpeg/record.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { FfmpegProcess } from "./process.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Options for configuring an fMP4 recording or livestream session.
|
|
7
7
|
*
|
|
8
|
+
* @property codec - The codec for the input video stream. Valid values are `h264` and `hevc`. Defaults to `h264`.
|
|
8
9
|
* @property fps - The video frames per second for the session.
|
|
9
10
|
* @property livestream - Indicates if this is a livestream session (`true`) or a recording (`false`).
|
|
10
11
|
* @property probesize - Number of bytes to analyze for stream information.
|
|
@@ -12,6 +13,7 @@ import { FfmpegProcess } from "./process.js";
|
|
|
12
13
|
* @property url - Source URL for livestreaming (RTSP).
|
|
13
14
|
*/
|
|
14
15
|
interface Fmp4OptionsConfig {
|
|
16
|
+
codec: string;
|
|
15
17
|
fps: number;
|
|
16
18
|
livestream: boolean;
|
|
17
19
|
probesize: number;
|
|
@@ -62,7 +64,8 @@ declare class FfmpegFmp4Process extends FfmpegProcess {
|
|
|
62
64
|
* @param ffmpegOptions - FFmpeg configuration options.
|
|
63
65
|
* @param recordingConfig - HomeKit recording configuration for the session.
|
|
64
66
|
* @param isAudioActive - If `true`, enables audio stream processing.
|
|
65
|
-
* @param fmp4Options -
|
|
67
|
+
* @param fmp4Options - Configuration for the fMP4 session (fps, type, url, etc.).
|
|
68
|
+
* @param isVerbose - If `true`, enables more verbose logging for debugging purposes. Defaults to `false`.
|
|
66
69
|
*
|
|
67
70
|
* @example
|
|
68
71
|
*
|
|
@@ -70,7 +73,7 @@ declare class FfmpegFmp4Process extends FfmpegProcess {
|
|
|
70
73
|
* const process = new FfmpegFmp4Process(ffmpegOptions, recordingConfig, true, { fps: 30 });
|
|
71
74
|
* ```
|
|
72
75
|
*/
|
|
73
|
-
constructor(ffmpegOptions: FfmpegOptions, recordingConfig: CameraRecordingConfiguration, isAudioActive: boolean, fmp4Options?: Partial<Fmp4OptionsConfig
|
|
76
|
+
constructor(ffmpegOptions: FfmpegOptions, recordingConfig: CameraRecordingConfiguration, isAudioActive: boolean, fmp4Options?: Partial<Fmp4OptionsConfig>, isVerbose?: boolean);
|
|
74
77
|
/**
|
|
75
78
|
* Prepares and configures the FFmpeg process for reading and parsing output fMP4 data.
|
|
76
79
|
*
|
|
@@ -181,11 +184,13 @@ export declare class FfmpegRecordingProcess extends FfmpegFmp4Process {
|
|
|
181
184
|
* @param options - FFmpeg configuration options.
|
|
182
185
|
* @param recordingConfig - HomeKit recording configuration for the session.
|
|
183
186
|
* @param fps - Video frames per second.
|
|
184
|
-
* @param
|
|
187
|
+
* @param processAudio - If `true`, enables audio stream processing.
|
|
185
188
|
* @param probesize - Stream analysis size, in bytes.
|
|
186
189
|
* @param timeshift - Timeshift offset for event-based recording, in milliseconds.
|
|
190
|
+
* @param codec - Codec for the video stream input. Valid values are: `h264` and `hevc`. Defaults to `h264`.
|
|
191
|
+
* @param isVerbose - If `true`, enables more verbose logging for debugging purposes. Defaults to `false`.
|
|
187
192
|
*/
|
|
188
|
-
constructor(options: FfmpegOptions, recordingConfig: CameraRecordingConfiguration, fps: number,
|
|
193
|
+
constructor(options: FfmpegOptions, recordingConfig: CameraRecordingConfiguration, fps: number, processAudio: boolean, probesize: number, timeshift: number, codec?: string, isVerbose?: boolean);
|
|
189
194
|
}
|
|
190
195
|
/**
|
|
191
196
|
* Manages a HomeKit livestream FFmpeg process for generating fMP4 segments.
|
|
@@ -211,9 +216,11 @@ export declare class FfmpegLivestreamProcess extends FfmpegFmp4Process {
|
|
|
211
216
|
* @param recordingConfig - HomeKit recording configuration for the session.
|
|
212
217
|
* @param url - Source RTSP or livestream URL.
|
|
213
218
|
* @param fps - Video frames per second.
|
|
214
|
-
* @param
|
|
219
|
+
* @param processAudio - If `true`, enables audio stream processing. Defaults to `true`.
|
|
220
|
+
* @param codec - Codec for the video stream input. Valid values are: `h264` and `hevc`. Defaults to `h264`.
|
|
221
|
+
* @param isVerbose - If `true`, enables more verbose logging for debugging purposes. Defaults to `false`.
|
|
215
222
|
*/
|
|
216
|
-
constructor(options: FfmpegOptions, recordingConfig: CameraRecordingConfiguration, url: string, fps: number,
|
|
223
|
+
constructor(options: FfmpegOptions, recordingConfig: CameraRecordingConfiguration, url: string, fps: number, processAudio?: boolean, codec?: string, isVerbose?: boolean);
|
|
217
224
|
/**
|
|
218
225
|
* Gets the fMP4 initialization segment generated by FFmpeg for the livestream.
|
|
219
226
|
*
|
package/dist/ffmpeg/record.js
CHANGED
|
@@ -69,7 +69,8 @@ class FfmpegFmp4Process extends FfmpegProcess {
|
|
|
69
69
|
* @param ffmpegOptions - FFmpeg configuration options.
|
|
70
70
|
* @param recordingConfig - HomeKit recording configuration for the session.
|
|
71
71
|
* @param isAudioActive - If `true`, enables audio stream processing.
|
|
72
|
-
* @param fmp4Options -
|
|
72
|
+
* @param fmp4Options - Configuration for the fMP4 session (fps, type, url, etc.).
|
|
73
|
+
* @param isVerbose - If `true`, enables more verbose logging for debugging purposes. Defaults to `false`.
|
|
73
74
|
*
|
|
74
75
|
* @example
|
|
75
76
|
*
|
|
@@ -77,7 +78,7 @@ class FfmpegFmp4Process extends FfmpegProcess {
|
|
|
77
78
|
* const process = new FfmpegFmp4Process(ffmpegOptions, recordingConfig, true, { fps: 30 });
|
|
78
79
|
* ```
|
|
79
80
|
*/
|
|
80
|
-
constructor(ffmpegOptions, recordingConfig, isAudioActive, fmp4Options = {}) {
|
|
81
|
+
constructor(ffmpegOptions, recordingConfig, isAudioActive, fmp4Options = {}, isVerbose = false) {
|
|
81
82
|
// Initialize our parent.
|
|
82
83
|
super(ffmpegOptions);
|
|
83
84
|
// We want to log errors when they occur.
|
|
@@ -89,6 +90,7 @@ class FfmpegFmp4Process extends FfmpegProcess {
|
|
|
89
90
|
// Initialize our state.
|
|
90
91
|
this.isLivestream = fmp4Options.livestream ?? false;
|
|
91
92
|
this.isTimedOut = false;
|
|
93
|
+
fmp4Options.codec ??= "h264";
|
|
92
94
|
fmp4Options.fps ??= 30;
|
|
93
95
|
fmp4Options.url ??= "";
|
|
94
96
|
// Save our recording configuration.
|
|
@@ -107,8 +109,9 @@ class FfmpegFmp4Process extends FfmpegProcess {
|
|
|
107
109
|
this.commandLineArgs = [
|
|
108
110
|
"-hide_banner",
|
|
109
111
|
"-nostats",
|
|
110
|
-
"-fflags", "+discardcorrupt
|
|
111
|
-
"-err_detect", "ignore_err"
|
|
112
|
+
"-fflags", "+discardcorrupt",
|
|
113
|
+
"-err_detect", "ignore_err",
|
|
114
|
+
...this.options.videoDecoder(fmp4Options.codec)
|
|
112
115
|
];
|
|
113
116
|
if (this.isLivestream) {
|
|
114
117
|
this.commandLineArgs.push("-avioflags", "direct", "-rtsp_transport", "tcp", "-i", fmp4Options.url);
|
|
@@ -133,10 +136,11 @@ class FfmpegFmp4Process extends FfmpegProcess {
|
|
|
133
136
|
if (this.isLivestream) {
|
|
134
137
|
this.commandLineArgs.push("-frag_duration", "1000000");
|
|
135
138
|
}
|
|
136
|
-
// -movflags flags In the generated fMP4 stream:
|
|
139
|
+
// -movflags flags In the generated fMP4 stream: set the default-base-is-moof flag in the header, write an initial empty MOOV box, start a new fragment
|
|
140
|
+
// at each keyframe, skip creating a segment index (SIDX) box in fragments, and skip writing the final MOOV trailer since it's unneeded.
|
|
137
141
|
// -reset_timestamps Reset timestamps at the beginning of each segment.
|
|
138
142
|
// -metadata Set the metadata to the name of the camera to distinguish between FFmpeg sessions.
|
|
139
|
-
this.commandLineArgs.push("-movflags", "
|
|
143
|
+
this.commandLineArgs.push("-movflags", "default_base_moof+empty_moov+frag_keyframe+skip_sidx+skip_trailer", "-reset_timestamps", "1", "-metadata", "comment=" + this.options.name() + " " + (this.isLivestream ? "Livestream Buffer" : "HKSV Event"));
|
|
140
144
|
if (isAudioActive) {
|
|
141
145
|
// Configure the audio portion of the command line. Options we use are:
|
|
142
146
|
//
|
|
@@ -148,9 +152,9 @@ class FfmpegFmp4Process extends FfmpegProcess {
|
|
|
148
152
|
//
|
|
149
153
|
// -f mp4 Tell ffmpeg that it should create an MP4-encoded output stream.
|
|
150
154
|
// pipe:1 Output the stream to standard output.
|
|
151
|
-
this.commandLineArgs.push("-f", "mp4", "pipe:1");
|
|
155
|
+
this.commandLineArgs.push("-f", "mp4", "-avioflags", "direct", "pipe:1");
|
|
152
156
|
// Additional logging, but only if we're debugging.
|
|
153
|
-
if (
|
|
157
|
+
if (isVerbose || this.isVerbose) {
|
|
154
158
|
this.commandLineArgs.unshift("-loglevel", "level+verbose");
|
|
155
159
|
}
|
|
156
160
|
}
|
|
@@ -449,12 +453,14 @@ export class FfmpegRecordingProcess extends FfmpegFmp4Process {
|
|
|
449
453
|
* @param options - FFmpeg configuration options.
|
|
450
454
|
* @param recordingConfig - HomeKit recording configuration for the session.
|
|
451
455
|
* @param fps - Video frames per second.
|
|
452
|
-
* @param
|
|
456
|
+
* @param processAudio - If `true`, enables audio stream processing.
|
|
453
457
|
* @param probesize - Stream analysis size, in bytes.
|
|
454
458
|
* @param timeshift - Timeshift offset for event-based recording, in milliseconds.
|
|
459
|
+
* @param codec - Codec for the video stream input. Valid values are: `h264` and `hevc`. Defaults to `h264`.
|
|
460
|
+
* @param isVerbose - If `true`, enables more verbose logging for debugging purposes. Defaults to `false`.
|
|
455
461
|
*/
|
|
456
|
-
constructor(options, recordingConfig, fps,
|
|
457
|
-
super(options, recordingConfig,
|
|
462
|
+
constructor(options, recordingConfig, fps, processAudio, probesize, timeshift, codec = "h264", isVerbose = false) {
|
|
463
|
+
super(options, recordingConfig, processAudio, { codec: codec, fps: fps, probesize: probesize, timeshift: timeshift }, isVerbose);
|
|
458
464
|
}
|
|
459
465
|
}
|
|
460
466
|
/**
|
|
@@ -481,10 +487,12 @@ export class FfmpegLivestreamProcess extends FfmpegFmp4Process {
|
|
|
481
487
|
* @param recordingConfig - HomeKit recording configuration for the session.
|
|
482
488
|
* @param url - Source RTSP or livestream URL.
|
|
483
489
|
* @param fps - Video frames per second.
|
|
484
|
-
* @param
|
|
490
|
+
* @param processAudio - If `true`, enables audio stream processing. Defaults to `true`.
|
|
491
|
+
* @param codec - Codec for the video stream input. Valid values are: `h264` and `hevc`. Defaults to `h264`.
|
|
492
|
+
* @param isVerbose - If `true`, enables more verbose logging for debugging purposes. Defaults to `false`.
|
|
485
493
|
*/
|
|
486
|
-
constructor(options, recordingConfig, url, fps,
|
|
487
|
-
super(options, recordingConfig,
|
|
494
|
+
constructor(options, recordingConfig, url, fps, processAudio = true, codec = "h264", isVerbose = false) {
|
|
495
|
+
super(options, recordingConfig, processAudio, { codec: codec, fps: fps, livestream: true, url: url }, isVerbose);
|
|
488
496
|
}
|
|
489
497
|
/**
|
|
490
498
|
* Gets the fMP4 initialization segment generated by FFmpeg for the livestream.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.js","sourceRoot":"","sources":["../../src/ffmpeg/record.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAiB,cAAc,EAAE,MAAM,YAAY,CAAC;AAG3D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"record.js","sourceRoot":"","sources":["../../src/ffmpeg/record.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAiB,cA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package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-plugin-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"displayName": "Homebridge Plugin Utilities",
|
|
5
5
|
"description": "Opinionated utilities to provide common capabilities and create rich configuration webUI experiences for Homebridge plugins.",
|
|
6
6
|
"author": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"main": "dist/index.js",
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@stylistic/eslint-plugin": "4.
|
|
44
|
-
"@types/node": "22.15.
|
|
43
|
+
"@stylistic/eslint-plugin": "4.4.0",
|
|
44
|
+
"@types/node": "22.15.21",
|
|
45
45
|
"@types/ws": "^8.18.1",
|
|
46
46
|
"eslint": "^9.27.0",
|
|
47
47
|
"homebridge": "1.9.0",
|