@invintusmedia/tomp4 1.4.2 → 1.4.3

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/tomp4.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * toMp4.js v1.4.2
2
+ * toMp4.js v1.4.3
3
3
  * Convert MPEG-TS and fMP4 to standard MP4
4
4
  * https://github.com/TVWIT/toMp4.js
5
5
  * MIT License
@@ -1186,7 +1186,7 @@
1186
1186
  toMp4.isMpegTs = isMpegTs;
1187
1187
  toMp4.isFmp4 = isFmp4;
1188
1188
  toMp4.isStandardMp4 = isStandardMp4;
1189
- toMp4.version = '1.4.2';
1189
+ toMp4.version = '1.4.3';
1190
1190
 
1191
1191
  return toMp4;
1192
1192
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invintusmedia/tomp4",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Convert MPEG-TS, fMP4, and HLS streams to MP4 with clipping support - pure JavaScript, zero dependencies",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
package/src/hls-clip.js CHANGED
@@ -114,7 +114,11 @@ function clipSegment(parser, startTime, endTime, options = {}) {
114
114
  if (videoAUs[i].pts >= startPts) { targetIdx = i; break; }
115
115
  }
116
116
 
117
- const needsSmartRender = startTime !== undefined && targetIdx > keyframeIdx;
117
+ // Smart rendering is available but currently disabled for HLS output
118
+ // because the JS H.264 encoder's CAVLC output has bugs at high resolutions
119
+ // (works at 288x160 but fails at 1080p). Fall back to keyframe-accurate.
120
+ // TODO: Fix CAVLC encoding for high-resolution frames to re-enable.
121
+ const needsSmartRender = false;
118
122
 
119
123
  let clippedVideo, clippedAudio, startOffset;
120
124
 
package/src/index.js CHANGED
@@ -342,7 +342,7 @@ toMp4.TSParser = TSParser;
342
342
  toMp4.RemoteMp4 = RemoteMp4;
343
343
 
344
344
  // Version (injected at build time for dist, read from package.json for ESM)
345
- toMp4.version = '1.4.2';
345
+ toMp4.version = '1.4.3';
346
346
 
347
347
  // Export
348
348
  export {