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

If I want to save and download the rendered video, what should I do? #46

Open
eightmusic opened this issue Oct 21, 2023 · 2 comments
Open

Comments

@eightmusic
Copy link

If I want to save and download the rendered video, what should I do?

@benikabocha
Copy link
Owner

You could use some patterns.

1. Use screen recording software.
e.g. Xbox Game Bar

2. Save the render target as PNG in sequence.
You use glReadPixels after glSwapBuffers to save the render target as a PNG.
A sequencial PNG files can be converted to video using ffmepg.

3. Save the render target to memory and encode movie.
You use glReadPixels after glSwapBuffers to save the render target to memory.
Images can be converted to video using the library.

e.g. ffmepg, MediaFundation

@eightmusic
Copy link
Author

You could use some patterns.

1. Use screen recording software. e.g. Xbox Game Bar

2. Save the render target as PNG in sequence. You use glReadPixels after glSwapBuffers to save the render target as a PNG. A sequencial PNG files can be converted to video using ffmepg.

3. Save the render target to memory and encode movie. You use glReadPixels after glSwapBuffers to save the render target to memory. Images can be converted to video using the library.

e.g. ffmepg, MediaFundation

Thank you very much

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

No branches or pull requests

2 participants