windows - Produce video from OpenGL C program -
i have c program runs scientific simulation , displays visualisation in opengl window. want make visualisation video, go on youtube.
question: what's best way make video c / opengl program?
the way i've done in past use screen capture program, labour-intensive (have start/stop screen capture program, save video file, etc...). seems there should way automate process of making video within c program. can leave running overnight , have 20 videos through in morning, , choose best 1 put on youtube.
youtube recommend "mpeg4 (divx, xvid) format @ 640x480 resolution".
i'm using glut 3.7.6_3, if makes difference. can change windowing system if there's reason.
i'm running windows (xp), prefer answers work on windows, linux answers ok too. can use linux if it's not possible video stuff on windows. have friend makes .png image each frame of video , stitches them using "mencoder" on linux.
you can use glreadpixels function (see example)
but if stuff trying display made of simple objects (i.e. spheres, rods, etc..), "export" each frame pov-ray files, render these, , make video out of these pictures. reach higher quality that.
Comments
Post a Comment