Skip to content
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

feat: parallel rendering, make ffmpeg exporter default #74

Merged
merged 24 commits into from
Apr 29, 2024

Conversation

justusmattern27
Copy link
Member

No description provided.

@justusmattern27 justusmattern27 marked this pull request as ready for review April 28, 2024 15:34
Copy link
Member

@hkonsti hkonsti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great work!!!

.github/workflows/verify.yml Outdated Show resolved Hide resolved
.github/workflows/verify.yml Outdated Show resolved Hide resolved
.github/workflows/verify.yml Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
const hiddenFolderId = uuidv4();

/**
* TODO: Change this in the future after more testing.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can delete this todo haha

);

renderPromises.push(renderVideoOnPage(browser, server, url));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're losing time here. Couldn't a browser start rendering right after it's ready? Right now the first one needs to wait for all the others before it can start.


for (const folder of cleanupFolders) {
try {
await fs.promises.rm(folder, {recursive: true, force: true});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could parallelize this with an array and Promise.all(). Feel free to ignore this though, I don't think we would notice any difference.

@@ -13,15 +13,15 @@
"audioOffset": 0
},
"preview": {
"fps": 60,
"fps": 30,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change intended?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, this makes the preview in the editor smoother

packages/ui/package.json Show resolved Hide resolved
@justusmattern27 justusmattern27 merged commit dc9ddd1 into main Apr 29, 2024
9 checks passed
@justusmattern27 justusmattern27 deleted the justus/parallel-rendering branch May 3, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants