Re: [GnomeMeeting-list] Urgent:Multi-camera
- From: PUYDT Julien <julien puydt laposte net>
- To: gnomemeeting-list gnome org
- Subject: Re: [GnomeMeeting-list] Urgent:Multi-camera
- Date: Sun, 14 Mar 2004 08:56:36 +0100
On dim, 2004-03-14 at 08:40, yumi maiko wrote:
> Hi Damien,
> I have changed some code in vidinput_v4l.cxx in
> pwlib to include all input devices into one
> String.Now,user will see all camera in the perference
> window as one entry.They must choose all of them as
> there is only one entry now. As I know, in
> videograbber.cpp, gnomemeeting will create a device
> belonged to the class PVideoInputDevice by the
> function CreateOpenedDevice. A PVideoChannel
> video_channel will then attach this grabber so that
> data can be read from camera into buffer.
>
> I am trying with two cameras,"BT878(Lifeview FlyVideo
> 98EZ )" and
> "Logitech USB Camera". My approach is to force the
> argument "input_device" passed in function
> CreateOpenedDevice to include all the devices. After
> each device has got data from camera to two differenct
> video_buffers made myself ,by using the strategy in
> openmcu's source code,i can integrate the two images
> and save in the oringinal video_buffer in the source
> code,and then pass it to gnomemeeting by
> mpOutput->SetFrameData().
>
> I have two questions here:
>
> 1. One of the argument passed in function
> CreateOpenedDevice is "input_device",which consists of
> two devices' names in my case. So,in videoio.cxx, how
> can it return two devices of PVideoInputDevice instead
> of one to gnomemeeting for it to attach to the
> channel? You taught me to modify V4L to return a
> predefined device "CameraArrays".
> (Sorry,I am stupid...I can get the meaning
> "CamereArrays". What is the type of this device?
> PStringList or PVideoInputDevice?)
>
> 2. If I don't modify the function CreateOpenedDevice
> so it returns a device which is corresponding to the
> "input_device" (which includes two device names), will
> mpInput->GetFrameData(dataBuf, &dataLen) in
> pvidchan.cxx works? That means,the two camera can get
> data into buffer?
>
> This is a rather long mail,I apologize for asking so
> much. Would you feel free to help me? Thanks alot!
Don't modify the V4L plugin. Create a new plugin, that will open several
V4L devices times. The methods to get data from that plugin, will get
the data from the various V4L devices, mix them, and return a single
image.
Snark on #gnomemeeting
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]