@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
package/dist/cli/rtsp-server.cjs
CHANGED
|
@@ -23515,8 +23515,9 @@ ${scheduleItems}
|
|
|
23515
23515
|
let frameCount = 0;
|
|
23516
23516
|
const startFfmpeg = (videoType) => {
|
|
23517
23517
|
if (ff) return;
|
|
23518
|
+
const needsTranscode = videoType === "H265" && params.transcodeH265ToH264 === true;
|
|
23518
23519
|
logger?.debug?.(
|
|
23519
|
-
`[createRecordingReplayMp4Stream] Starting ffmpeg with videoType=${videoType}`
|
|
23520
|
+
`[createRecordingReplayMp4Stream] Starting ffmpeg with videoType=${videoType}, transcode=${needsTranscode}`
|
|
23520
23521
|
);
|
|
23521
23522
|
MpegTsMuxer.resetCounters();
|
|
23522
23523
|
tsMuxer = new MpegTsMuxer({ videoType });
|
|
@@ -23528,8 +23529,8 @@ ${scheduleItems}
|
|
|
23528
23529
|
"mpegts",
|
|
23529
23530
|
"-i",
|
|
23530
23531
|
"pipe:0",
|
|
23531
|
-
|
|
23532
|
-
"copy",
|
|
23532
|
+
// Video codec: transcode H.265→H.264 if requested, otherwise copy
|
|
23533
|
+
...needsTranscode ? ["-c:v", "libx264", "-preset", "ultrafast", "-crf", "23"] : ["-c", "copy"],
|
|
23533
23534
|
"-movflags",
|
|
23534
23535
|
"frag_keyframe+empty_moov",
|
|
23535
23536
|
"-f",
|