@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.
@@ -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
- "-c",
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-JMT75JNG.js.map
18070
+ //# sourceMappingURL=chunk-AFUYHWWQ.js.map