Ffmpeg and opengl

Any tutorials / examples or code examples available for converting raw opengl images (source pixel data obtained from glReadPixels from an opengl 3d scene) to mp4 or avi format using ffmpeg libraries?

Appreciate any help. Thanks in advance.

EDIT: I want to generate and broadcast video dynamically from these images. Is it possible? Any examples / projects that do this?

+7
ffmpeg opengl
source share
1 answer

I am converting a raw RGB image to avi video, but I am running mencoder for this. I read the source pixels using glReadPixels and send this data to the pipe, and mencoder reads the other end (by the way, I'm on Linux)

Because of this setting, it is easy to change the settings.

If you want to do it yourself, here is a tutorial (bit outdated): ffmpeg tutorial

EDIT

You're right. Here is their example: ffmpeg example You can get it by downloading the ffmpeg source

+4
source share

All Articles