Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Question about rendering to Video, confused #780

Open
Xavantex opened this issue Jul 6, 2022 · 2 comments
Open

Question about rendering to Video, confused #780

Xavantex opened this issue Jul 6, 2022 · 2 comments

Comments

@Xavantex
Copy link

Xavantex commented Jul 6, 2022

Hi!

I am using your library to great success in visualizing, but I need to save the rendered frames to a video. I saw the examples but I am unable to understand how to utilize them, I only want to take the frames I now render in a window and save them to a video file instead. From what I understand the current SimpleRecord example needs some input file, or is there something I'm missing about how to use streams?
I was unable to find any previous questions or issues which addressed my problem, unfortunately.

Cheers for all/any help!

@Xavantex
Copy link
Author

Xavantex commented Jul 11, 2022

I have been working from one of the examples included in the project, SimpleDisplay with CreateWindowAndBind which seemed perfect when beginning, from my very limited understanding the SimpleVideo example needs an input video to actually render the frames, which I don't want or have for that matter.
I have been scouring the old releases and saw that RecordOnRender used to exists, which seems to have been perfect for my use case, was the functionality completely removed or substituted with something else? Should one use the OpenGl API to the ´videoOutput`?
Might be a tad important I am using the Python bindings.
Sorry for what might be an obvious question, completely new to anything OpenGL and much is very abstract for me to follow.

@stevenlovegrove
Copy link
Owner

Yeah, sorry, I couldn't think of a way to keep that method whilst separating the display and video stuff into different components. This is about the biggest API break over the last version (or two). You can use the SaveWindowOnRender method to create images which you can then combine with a standard ffmpeg command line, or you can manually plumb the window saving logic in there to Pangolins Video API. Ideally there would be a convenience method to do that, but I've been wanting to simplify the video API a little and don't want to introduce a method that will then disappear again.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants