benikabocha / saba

OpenGL Viewer (OBJ PMD PMX)
MIT License
441 stars 60 forks source link

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

Open eightmusic opened 10 months ago

eightmusic commented 10 months ago

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

benikabocha commented 10 months ago

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 commented 10 months ago

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