@hyperframes/parsers 0.9.67 → 0.9.68

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.
@@ -43,6 +43,11 @@ declare function findFfBinary(name: FfBinaryName, options?: FindFfBinaryOptions)
43
43
  declare function requireFfBinary(name: FfBinaryName): string;
44
44
  /** Test hook: drop cached system lookups so resolution can be re-exercised. */
45
45
  declare function clearFfBinaryLookupCache(): void;
46
+ /**
47
+ * Concat input for a list HyperFrames wrote: entries open only as local mov, matroska or concat
48
+ * files (an ffconcat entry is followed in safe mode), and `-xerror` fails at a refused entry.
49
+ */
50
+ declare function concatListInputArgs(concatListPath: string): string[];
46
51
  /** What a render service lets a media input open: containers that name no other file. */
47
52
  declare const SELF_CONTAINED_FORMATS = "mov,matroska,mxf,avi,mpeg,mpegts,mpegvideo,flv,asf,ogg,wav,mp3,aac,flac,aiff,gif,image2,png_pipe,jpeg_pipe,webp_pipe,bmp_pipe,tiff_pipe";
48
53
  /** Tests feed a `-demuxers` listing so none spawns a binary; no argument forgets it. */
@@ -53,4 +58,4 @@ declare function mediaInputFormatArgs(listingBinary: string, input: string): str
53
58
  /** Hears the furthest output time, in seconds, that ffmpeg's `-progress pipe:1` lines on `stream` report. */
54
59
  declare function followFfmpegProgress(stream: Readable, onSeconds: (seconds: number) => void): void;
55
60
 
56
- export { FFMPEG_PATH_ENV, FFPROBE_PATH_ENV, type FfBinaryName, type FindFfBinaryOptions, SELF_CONTAINED_FORMATS, _setDemuxerListingForTests, clearFfBinaryLookupCache, executableIn, findFfBinary, findTrustedExecutable, followFfmpegProgress, getSkippedX86Binary, isTrustedDirectory, isTrustedExecutablePath, isX86OnlyMachO, mediaInputFormatArgs, pathEntries, requireFfBinary, trustedPathDirs };
61
+ export { FFMPEG_PATH_ENV, FFPROBE_PATH_ENV, type FfBinaryName, type FindFfBinaryOptions, SELF_CONTAINED_FORMATS, _setDemuxerListingForTests, clearFfBinaryLookupCache, concatListInputArgs, executableIn, findFfBinary, findTrustedExecutable, followFfmpegProgress, getSkippedX86Binary, isTrustedDirectory, isTrustedExecutablePath, isX86OnlyMachO, mediaInputFormatArgs, pathEntries, requireFfBinary, trustedPathDirs };
@@ -287,6 +287,21 @@ function clearFfBinaryLookupCache() {
287
287
  lastMissAt.clear();
288
288
  skippedX86Binaries.clear();
289
289
  }
290
+ function concatListInputArgs(concatListPath) {
291
+ return [
292
+ "-xerror",
293
+ "-protocol_whitelist",
294
+ "file",
295
+ "-f",
296
+ "concat",
297
+ "-safe",
298
+ "0",
299
+ "-format_whitelist",
300
+ "concat,mov,matroska",
301
+ "-i",
302
+ concatListPath
303
+ ];
304
+ }
290
305
  var SELF_CONTAINED_FORMATS = "mov,matroska,mxf,avi,mpeg,mpegts,mpegvideo,flv,asf,ogg,wav,mp3,aac,flac,aiff,gif,image2,png_pipe,jpeg_pipe,webp_pipe,bmp_pipe,tiff_pipe";
291
306
  var PATH_OPENING_DEMUXERS = /* @__PURE__ */ new Set([
292
307
  "dash",
@@ -367,6 +382,7 @@ export {
367
382
  _setDemuxerListingForTests,
368
383
  assertLiteralMediaInput,
369
384
  clearFfBinaryLookupCache,
385
+ concatListInputArgs,
370
386
  executableIn,
371
387
  findFfBinary,
372
388
  findTrustedExecutable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/parsers",
3
- "version": "0.9.67",
3
+ "version": "0.9.68",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -151,7 +151,7 @@
151
151
  "tsx": "^4.21.0",
152
152
  "typescript": "^5.0.0",
153
153
  "vitest": "^4.1.12",
154
- "@hyperframes/core": "0.9.67"
154
+ "@hyperframes/core": "0.9.68"
155
155
  },
156
156
  "scripts": {
157
157
  "build": "tsup",