@apocaliss92/nodelink-js 0.1.7 → 0.1.8
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/{chunk-JMT75JNG.js → chunk-AFUYHWWQ.js} +5 -4
- package/dist/{chunk-JMT75JNG.js.map → chunk-AFUYHWWQ.js.map} +1 -1
- package/dist/cli/rtsp-server.cjs +4 -3
- package/dist/cli/rtsp-server.cjs.map +1 -1
- package/dist/cli/rtsp-server.d.cts +1 -0
- package/dist/cli/rtsp-server.d.ts +1 -0
- package/dist/cli/rtsp-server.js +1 -1
- package/dist/index.cjs +1208 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7773 -0
- package/dist/index.d.ts +398 -0
- package/dist/index.js +1188 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -16691,8 +16691,9 @@ ${scheduleItems}
|
|
|
16691
16691
|
let frameCount = 0;
|
|
16692
16692
|
const startFfmpeg = (videoType) => {
|
|
16693
16693
|
if (ff) return;
|
|
16694
|
+
const needsTranscode = videoType === "H265" && params.transcodeH265ToH264 === true;
|
|
16694
16695
|
logger?.debug?.(
|
|
16695
|
-
`[createRecordingReplayMp4Stream] Starting ffmpeg with videoType=${videoType}`
|
|
16696
|
+
`[createRecordingReplayMp4Stream] Starting ffmpeg with videoType=${videoType}, transcode=${needsTranscode}`
|
|
16696
16697
|
);
|
|
16697
16698
|
MpegTsMuxer.resetCounters();
|
|
16698
16699
|
tsMuxer = new MpegTsMuxer({ videoType });
|
|
@@ -16704,8 +16705,8 @@ ${scheduleItems}
|
|
|
16704
16705
|
"mpegts",
|
|
16705
16706
|
"-i",
|
|
16706
16707
|
"pipe:0",
|
|
16707
|
-
|
|
16708
|
-
"copy",
|
|
16708
|
+
// Video codec: transcode H.265→H.264 if requested, otherwise copy
|
|
16709
|
+
...needsTranscode ? ["-c:v", "libx264", "-preset", "ultrafast", "-crf", "23"] : ["-c", "copy"],
|
|
16709
16710
|
"-movflags",
|
|
16710
16711
|
"frag_keyframe+empty_moov",
|
|
16711
16712
|
"-f",
|
|
@@ -18066,4 +18067,4 @@ export {
|
|
|
18066
18067
|
isTcpFailureThatShouldFallbackToUdp,
|
|
18067
18068
|
autoDetectDeviceType
|
|
18068
18069
|
};
|
|
18069
|
-
//# sourceMappingURL=chunk-
|
|
18070
|
+
//# sourceMappingURL=chunk-AFUYHWWQ.js.map
|