Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg and opengl

Tags:

ffmpeg

opengl

Any tutorials/exmaples or sample code available to convert opengl raw images (raw pixel data obtained from glReadPixels from an opengl 3d scene) into mp4 or avi format using ffmpeg libraries?

Appreciate any help. Thanks in advance.

EDIT: I want to generate and stream the video dynamically from these images. Is this possible? Any examples/projects which do this?

like image 625
John Qualis Avatar asked Nov 08 '10 07:11

John Qualis


1 Answers

I am converting raw RGB image into avi video, but I am starting mencoder to do that. I am reading raw pixels using glReadPixels, and forward those data to a pipe, and the mencoder reads other end (btw I am on linux)

Because of such setup, it is easy to change parameters.

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

EDIT

You are right. Here is their example : ffmpeg example You can get it by downloading ffmpeg source

like image 190
BЈовић Avatar answered Oct 17 '22 16:10

BЈовић