@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.
@@ -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
- "-c",
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",