@hyperframes/parsers 0.9.71 → 0.9.73
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/ffBinaries.d.ts +4 -1
- package/dist/ffBinaries.js +7 -3
- package/package.json +2 -2
package/dist/ffBinaries.d.ts
CHANGED
|
@@ -44,7 +44,10 @@ 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
46
|
/** One `file` entry per path; a path holding what ends a list line (LF, CR, NUL) is refused. */
|
|
47
|
-
declare function concatListText(
|
|
47
|
+
declare function concatListText(entries: readonly (string | {
|
|
48
|
+
path: string;
|
|
49
|
+
durationSeconds: number;
|
|
50
|
+
})[], options?: {
|
|
48
51
|
videoContainersOnly?: boolean;
|
|
49
52
|
}): string;
|
|
50
53
|
/**
|
package/dist/ffBinaries.js
CHANGED
|
@@ -288,16 +288,20 @@ function clearFfBinaryLookupCache() {
|
|
|
288
288
|
skippedX86Binaries.clear();
|
|
289
289
|
}
|
|
290
290
|
var endsAListLine = (text) => ["\n", "\r", "\0"].some((char) => text.includes(char));
|
|
291
|
-
function concatListText(
|
|
291
|
+
function concatListText(entries, options = {}) {
|
|
292
292
|
const entryOptions = options.videoContainersOnly ? "option format_whitelist mov,matroska\n" : "";
|
|
293
|
-
return
|
|
293
|
+
return entries.map((entry) => {
|
|
294
|
+
const path = typeof entry === "string" ? entry : entry.path;
|
|
294
295
|
if (endsAListLine(path)) {
|
|
295
296
|
throw new Error(
|
|
296
297
|
`A file to join holds a line break or NUL in its path: ${JSON.stringify(path)}`
|
|
297
298
|
);
|
|
298
299
|
}
|
|
300
|
+
const placed = typeof entry === "string" ? "" : `inpoint 0
|
|
301
|
+
duration ${entry.durationSeconds}
|
|
302
|
+
`;
|
|
299
303
|
return `file '${path.replace(/'/g, "'\\''")}'
|
|
300
|
-
${entryOptions}`;
|
|
304
|
+
${placed}${entryOptions}`;
|
|
301
305
|
}).join("");
|
|
302
306
|
}
|
|
303
307
|
function concatListInputArgs(concatListPath) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/parsers",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.73",
|
|
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.
|
|
154
|
+
"@hyperframes/core": "0.9.73"
|
|
155
155
|
},
|
|
156
156
|
"scripts": {
|
|
157
157
|
"build": "tsup",
|