ARToolKit | Mailing List Archive |
![]() |
From: | Bruno <bruno@i .....> | Received: | May 30, 2003 |
To | artoolkit@h .................. | ||
Subject: | camera buffer format | ||
Hi, I'm trying to get the video (without the virtual object) from artoolkit and write it in yuv format in a file. To be able to after compress this file using an mpeg4 codec. The camera buffer (camera.GetBuffer()) is in which format? I think the format uses 4 bits to represent each pixel, but I don't know wich format it is. Does anyone know how can I convert the camera buffer to yuv? Thanks in advance, Bruno Fernandes. |
From: | "Andres Agudelo" <aagudel6@e ...........> | Received: | May 31, 2003 |
To | "Bruno" <bruno@i .....> | ||
Subject: | Re: camera buffer format | ||
Hi, the default format is BGRA which means that the first byte is the blue component, then green and red. The last component is the alpha channel, that I think is set to 255 always. However if you change the camera parameters at start-up (if you receive a small window asking for that) it can change, some cameras allow YUV. By the way, witch mpeg4 codec are you using? we are looking for a good one... Regards. ----- Original Message ----- From: "Bruno" <bruno@i .....> To: <artoolkit@h ..................> Sent: Friday, May 30, 2003 12:17 PM Subject: camera buffer format > Hi, > > I'm trying to get the video (without the virtual object) from artoolkit and > write it in yuv format in a file. To be able to after compress this file > using an mpeg4 codec. > > The camera buffer (camera.GetBuffer()) is in which format? > I think the format uses 4 bits to represent each pixel, but I don't know > wich format it is. > > Does anyone know how can I convert the camera buffer to yuv? > > Thanks in advance, > Bruno Fernandes. > > |
From: | Bruno <bruno@i .....> | Received: | Jun 3, 2003 |
To | "Andres Agudelo" <aagudel6@e ...........> | ||
Subject: | Re: camera buffer format | ||
Hi, My camera doesn't allow me to choose YUV at startup, it only works with "I420". I'll have to find some function to convert it. I'm planning to use the mpeg4 reference software from ISO. I'm doing an academic work and I need to put the video from artoolkit, into an mpeg4 codec. The virtual objects (vrml) should go into the mpeg4 too, but sintheticaly, not embeded in the video. Best Regards, Bruno. At 09:31 31-05-2003 -0400, you wrote: >Hi, the default format is BGRA which means that the first byte is the blue >component, then green and red. The last component is the alpha channel, that >I think is set to 255 always. > >However if you change the camera parameters at start-up (if you receive a >small window asking for that) it can change, some cameras allow YUV. > >By the way, witch mpeg4 codec are you using? we are looking for a good >one... > >Regards. > > >----- Original Message ----- >From: "Bruno" <bruno@i .....> >To: <artoolkit@h ..................> >Sent: Friday, May 30, 2003 12:17 PM >Subject: camera buffer format > > > > Hi, > > > > I'm trying to get the video (without the virtual object) from artoolkit >and > > write it in yuv format in a file. To be able to after compress this file > > using an mpeg4 codec. > > > > The camera buffer (camera.GetBuffer()) is in which format? > > I think the format uses 4 bits to represent each pixel, but I don't know > > wich format it is. > > > > Does anyone know how can I convert the camera buffer to yuv? > > > > Thanks in advance, > > Bruno Fernandes. > > > > |