@invintusmedia/tomp4 1.4.2 → 1.5.0
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 +2 -2
- package/package.json +1 -1
- package/src/codecs/smart-render.js +374 -96
- package/src/hls-clip.js +177 -429
- package/src/index.js +1 -6
- package/src/codecs/REFERENCE.md +0 -885
- package/src/codecs/h264-cabac-init.js +0 -546
- package/src/codecs/h264-cabac.js +0 -322
- package/src/codecs/h264-cavlc-tables.js +0 -628
- package/src/codecs/h264-decoder.js +0 -940
- package/src/codecs/h264-encoder.js +0 -502
- package/src/codecs/h264-intra.js +0 -292
- package/src/codecs/h264-sps-pps.js +0 -483
- package/src/codecs/h264-tables.js +0 -217
- package/src/codecs/h264-transform.js +0 -268
package/src/index.js
CHANGED
|
@@ -34,7 +34,6 @@ import { convertTsToMp4, analyzeTsData } from './ts-to-mp4.js';
|
|
|
34
34
|
import { convertFmp4ToMp4, stitchFmp4 } from './fmp4/index.js';
|
|
35
35
|
import { clipMp4 } from './mp4-clip.js';
|
|
36
36
|
import { clipHls, HlsClipResult } from './hls-clip.js';
|
|
37
|
-
import { createInitSegment, createFragment } from './muxers/fmp4.js';
|
|
38
37
|
import { stitchTs, concatTs } from './mpegts/index.js';
|
|
39
38
|
import { parseHls, downloadHls, isHlsUrl, HlsStream, HlsVariant } from './hls.js';
|
|
40
39
|
import { transcode, isWebCodecsSupported } from './transcode.js';
|
|
@@ -311,8 +310,6 @@ toMp4.fromTs = (data, options) => new Mp4Result(convertTsToMp4(data instanceof A
|
|
|
311
310
|
toMp4.fromFmp4 = (data, options = {}) => new Mp4Result(convertFmp4ToMp4(data instanceof ArrayBuffer ? new Uint8Array(data) : data, options));
|
|
312
311
|
toMp4.clipMp4 = (data, options = {}) => new Mp4Result(clipMp4(data instanceof ArrayBuffer ? new Uint8Array(data) : data, options));
|
|
313
312
|
toMp4.clipHls = clipHls;
|
|
314
|
-
toMp4.createInitSegment = createInitSegment;
|
|
315
|
-
toMp4.createFragment = createFragment;
|
|
316
313
|
toMp4.stitchFmp4 = (segments, options) => new Mp4Result(stitchFmp4(segments, options));
|
|
317
314
|
toMp4.stitchTs = (segments) => new Mp4Result(stitchTs(segments));
|
|
318
315
|
toMp4.concatTs = concatTs;
|
|
@@ -342,7 +339,7 @@ toMp4.TSParser = TSParser;
|
|
|
342
339
|
toMp4.RemoteMp4 = RemoteMp4;
|
|
343
340
|
|
|
344
341
|
// Version (injected at build time for dist, read from package.json for ESM)
|
|
345
|
-
toMp4.version = '1.
|
|
342
|
+
toMp4.version = '1.5.0';
|
|
346
343
|
|
|
347
344
|
// Export
|
|
348
345
|
export {
|
|
@@ -353,8 +350,6 @@ export {
|
|
|
353
350
|
clipMp4,
|
|
354
351
|
clipHls,
|
|
355
352
|
HlsClipResult,
|
|
356
|
-
createInitSegment,
|
|
357
|
-
createFragment,
|
|
358
353
|
stitchFmp4,
|
|
359
354
|
stitchTs,
|
|
360
355
|
concatTs,
|