Fix async race condition in transparency code, reduce HEVC conversion duration

This commit is contained in:
Vanilagy
2026-05-12 00:24:03 +02:00
parent 4e5f894d7a
commit 5599e52a1a
4 changed files with 68 additions and 62 deletions
+5 -2
View File
@@ -593,7 +593,7 @@ describe('Video', async () => {
});
test('HEVC conversion roundtrip', { timeout: 20_000 }, async () => {
await conversionRoundtrip('hevc');
await conversionRoundtrip('hevc', 1); // GitHub is extremely slow on this one
});
test('VP8 conversion roundtrip', { timeout: 20_000 }, async () => {
@@ -608,7 +608,7 @@ describe('Video', async () => {
await conversionRoundtrip('av1');
});
const conversionRoundtrip = async (codec: VideoCodec) => {
const conversionRoundtrip = async (codec: VideoCodec, duration?: number) => {
using input = new Input({
source: new FilePathSource('./test/public/video.mp4'),
formats: ALL_FORMATS,
@@ -640,6 +640,9 @@ describe('Video', async () => {
}, audio: {
discard: true,
},
trim: {
end: duration,
},
});
await conversion.execute();