开发者

ffmpeg and opengl

开发者 https://www.devze.com 2023-01-23 19:06 出处:网络
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 ff

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

0

精彩评论

暂无评论...
验证码 换一张
取 消