Any tutorials/exmaples o开发者_StackOverflow社区r 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?
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
精彩评论