-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export error #29
Labels
enhancement
New feature or request
Comments
Does it work with a different file? |
maybe also work with same file , it's happened often when network is slow . |
I see, I might be able to improve that. It's timing out because the file takes too long to load |
okay thanks for your effort :) |
No problem :) A workaround would be to use the File API instead of the Source object: const response = await fetch('.../some_video.mp4');
const blob = await response.blob();
// Convert Blob to File
const file = new File([blob], fileName, { type: "video/mp4" });
const clip = new VideoClip(file); |
Thanks for this solution, i appreciate that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i got an export error and i got it many times, i hope it's not a bug , i walk around in docs and i tried many times but sometimes it's rendered and sometimes give me this error:
export error Promise timed out after 20000 ms
this my render code :
async render(name?: string, props?: {
resolution?: number;
sampleRate?: number;
numberOfChannels?: number;
videoBitrate?: number;
gpuBatchSize?: number;
fps?: number;
debug?: boolean;
audio?: boolean;
}) {
if (props && !props.gpuBatchSize) {
props.gpuBatchSize = 100;
}
const encoder = new Encoder(this.composition, props);
await encoder.render(name);
}
The text was updated successfully, but these errors were encountered: