core icon indicating copy to clipboard operation
core copied to clipboard

Export issue.

Open neilkinnish opened this issue 1 year ago • 3 comments

I'm getting an export issue: error in worker EncodingError: Decoding error.

I have debug true, but the error information is quite basic.

Context:

If I run on the same setup with a simple composition.add(clip); (clip being a videoclip) it will successfully export.

If I use stacked tracks like so...

const track = composition.createTrack("video");
track.stacked();

const copy = clip.copy();
copy.subclip(0, 100);
await track.add(copy);

Preview works correctly, but if fails with the export.

UPDATE: with a few clip added it works, but it seems to be an issue if you add a lot of clips.

neilkinnish avatar Oct 23 '24 17:10 neilkinnish

Would you mind sharing a full code example? I just rendered this snippet successfully with v1.0.0:

const composition = new core.Composition();
const source = await core.VideoSource.from('https://diffusion-studio-public.s3.eu-central-1.amazonaws.com/videos/big_buck_bunny_1080p_30fps.mp4');
const track = composition.createTrack('video').stacked();
const clip = await track.add(new core.VideoClip(source));
await track.add(clip.copy().subclip(0, 100));

k9p5 avatar Oct 23 '24 20:10 k9p5

I'll put together an example, it seems to be when you have a lot of clips.

neilkinnish avatar Oct 23 '24 20:10 neilkinnish

Screenshot 2024-10-24 at 01 29 38

I exported 4k video with 5 of 4k clips, and some 720p videos included with different alpha, different volume, etc. Its exported without problem blazing fast.

girayk avatar Oct 23 '24 22:10 girayk

Should be solved with version 4

k9p5 avatar Nov 18 '25 19:11 k9p5