Actually it seems that using GL_LUMINANCE_ALPHA works fine, even though I
need to fix some other issues relating video capturing before being totally
sure about this.

By the way, I'm not using ffmpeg.

Thanky for your help.
Alessandro

On Mon, Dec 14, 2009 at 12:35 PM, Robert Osfield
<[email protected]>wrote:

> Hi Alessandro,
>
> The OSG just supports pixel formats supported by OpenGL and YUY2 is
> not something support by OpenGL, one has to convert to RGB, RGBA, A,
> Luminance etc.
>
> Robert.
>
> On Sat, Dec 12, 2009 at 10:20 AM, alessandro terenzi
> <[email protected]> wrote:
> > Hello,
> > I'm trying to play a video whose pixel format is YUY2...I'm using an
> > ImageStream to play the video but when I set its data to point to the
> > current frame's data my program crashes. I suppose it is because I'm not
> > using the correct pixelFormat when I first created the ImageStream. My
> > question is: among the pixel formats supported by OSG, which one (if any)
> is
> > supposed to be used to handle YUY2 format?
> >
> > Thanks in advance.
> > Alessandro
> >
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to