ffmpeg and 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?
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
链接地址: http://www.djcxy.com/p/48754.html上一篇: Ideone和Codepad确实不支持C ++ 03吗?
下一篇: ffmpeg和opengl