tauri build fails of large vdo
This commit is contained in:
1 parent
87a3c1b641
commit
f2f6c28989
3 files changed
+15
-9
No files matched your search
+7
-2
@@ -121,8 +121,13 @@ async function processOne(inPath) {
|
||||
const args = [...common, ...videoArgs, outPath];
|
||||
|
||||
console.log(`Compressing: ${inPath} -> ${outPath}`);
|
||||
await runFFmpeg(args);
|
||||
console.log(`Finished: ${outPath}`);
|
||||
try {
|
||||
await runFFmpeg(args);
|
||||
console.log(`Finished: ${outPath}`);
|
||||
} catch (e) {
|
||||
console.log(`Failed: ${outPath}`);
|
||||
await fs.unlink(outPath);
|
||||
}
|
||||
}
|
||||
|
||||
async function runWithLimit(items, limit, fn) {
|
||||
|
||||
Reference in new issue
Block a user