On Mon, 2010-11-08 at 20:48 -0800, John Q wrote:
> ________________________________
> From: Janez Zemva <janez...@gmail.com>
> To: Libav* user questions and discussions <libav-user@mplayerhq.hu>
> Sent: Monday, November 8, 2010 11:41:16
> Subject: Re: [libav-user] opengl images to mp4
> 2010/11/7 John Q <john_...@yahoo.com>:
> > > I am looking for examples or projects which use ffmpeg libraries to 
> > > convert
> > > OpenGL images of a 3D scene read from a frame buffer are converted to mp4 
> > > (avi
> > > or other formats are also ok). I am talking of raw pixel data being 
> > > converted 
> > >to
> > > video format. Is this possible? Are there any examples which do that?
> > >
> > > Appreciate any help. Thanks in advance.
> > >
> > 
> > Afaik, you need to render to texture (google for this) and then use
> > ffmpeg for encoding the textures into a file. I think there's a sample
> > on how to do this. But probably you'll be better off doing this in a
> > modeling program.
> > 
> Let me explain. The opengl images are part of a dynamic (moving) 3D scene and 
> are being continuously generated. Is there an example/tutorial or sample code 
> which shows such images being continuously converted to video (mp4 or avi). 
> The 
> idea is to then stream the video continuously. Appreciate any help.

You need to somehow get said images into the same address space as
libav* - typically by copying them over the bus to RAM. If you already
have that (say, being able to write them to disk) then look at
libavformat/output-example.c.

/Tomas

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
libav-user mailing list
libav-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to