This commit is contained in:
Vanilagy
2026-07-01 13:50:48 +02:00
parent d8d22aa4eb
commit 9547d36353
2 changed files with 10 additions and 2 deletions
+6 -2
View File
@@ -1329,9 +1329,13 @@ export class Conversion {
firstSample.close();
await tempOutput.finalize();
} catch (error) {
Logging._info('Error when probing encoder support. Falling back to rerender path.', error);
needsRerender = true;
Logging._warn(
'An error occurred when probing encoder support. Falling back to rerender path.', error,
);
void tempOutput.cancel();
needsRerender = true;
encodingConfig.transform.force = true;
}
} else {
await tempOutput.cancel();
+4
View File
@@ -36,6 +36,7 @@ import {
setUint24,
toUint8Array,
UnthrottledTimerHandle,
wait,
} from './misc';
import { Muxer } from './muxer';
import { SubtitleParser } from './subtitles';
@@ -878,6 +879,9 @@ class VideoEncoderWrapper {
// These are wired in series, therefore they must also be flushed in series
await this.encoder.flush();
await this.alphaEncoder?.flush();
// Workaround for https://issues.chromium.org/issues/529852980 to give it time for errors to surface
await wait(25);
}
if (this.encoder.state !== 'closed') {