Both devices use the same driver, which is loaded when matterhorn starts.
In order for the Epiphan card to work with Gstreamer, a parameter must be
supplied when the module is loaded in the kernel, which indicates the
number of frame buffers the card can use (whatever that means, Kristofor
Amundsen figured that out before I started working with the installation
scripts). Anyway, by default the card uses 1 frame buffer, but in order for
it to work with Gstreamer, at least 2 frame buffers must be used. That
parameter is set in the file
/opt/matterhorn/capture-agent/epiphan_driver/Makefile, in the
load:section, line starting with sudo
/sbin/insmod and ending with v4l_num_buffers=X,where X is 2 at least.

Now the following is just a theory, but it may as well be right: since the
two vga2usb cards are using the same driver, perhaps you need to increase
this number of buffers accordingly, i.e. you need (at least) 2 for one
card, but you must set the number to 4 (at least) for 2 cards, and so on.
 So my advise is for you to increase that number in the file indicated,
unload and reload the module (in the directory where the Makefile is, run sudo
make unload & sudo make load), and repeat your tests.

The other option that occurs to me is that the driver does not support more
than one device installed, but I hardly doubt so. If that was the case,
however, I don't see we can do anything but writing Epiphan and asking them
how to use two devices in the same computer. But, I insist, this seems so
unlikely.

I'm assuming that both VGA2USB cards have a VGA input connected and
working. Otherwise you'll get an error every time you try to use them.

Good luck
Rubén


On 15 Feb, 2012 03:57, "zengshan" <[email protected]> wrote:

> **
> when I use each single of the two VGA2USB devices, everything works fine,
> but when I combine them together,neither works fine,  the log shows that:
> 2012-02-15 10:43:20  INFO (GStreamerPipeline:430) - Successfully
> initialised 2 devices.
> 2012-02-15 10:43:20  INFO (GStreamerPipeline:96) - Initializing devices
> for capture.
> 2012-02-15 10:43:20  INFO (EpiphanVGA2USBV4LSubDeviceBin:259) - Sending
> EOS to stop /dev/video1_v4lsrc
> 2012-02-15 10:43:20  INFO (EpiphanVGA2USBV4LSubTestSrcBin:188) - Sending
> EOS to stop videotestsrc0
> 2012-02-15 10:43:20  INFO (EpiphanVGA2USBV4LSubDeviceBin:259) - Sending
> EOS to stop /dev/video0_v4lsrc
> 2012-02-15 10:43:21  INFO (EpiphanVGA2USBV4LSubTestSrcBin:188) - Sending
> EOS to stop videotestsrc1
> 2012-02-15 10:43:22  WARN (GStreamerPipeline$2:144) - mpegpsmux0: Could
> not create handler for stream
> 2012-02-15 10:44:22 ERROR (CaptureAgentImpl:340) - Unable to start
> pipeline after 5 seconds.  Aborting!
>
>
> My configuration in
>
> > /opt/matterhorn/felix/conf/services/org.opencastproject.capture.impl.ConfigurationManager.properties
> > is as follows: is there anything wrong?
> > capture.device.names=VGA,PRESENTER
> >
> > capture.device.VGA.type=EPIPHAN_VGA2USB
> > capture.device.VGA.flavor=presentation/source
> > capture.device.VGA.outputfile=VGA.mpg
> > capture.device.VGA.src=/dev/video0
> >
> > #added by zengshan
> > capture.device.PRESENTER.type=EPIPHAN_VGA2USB
> > capture.device.PRESENTER.src=/dev/video1
> > capture.device.PRESENTER.outputfile=camera_out.mpg
> > capture.device.PRESENTER.flavor=presenter/source
>
> 2012-02-15
>  ------------------------------
>  ZENG SHAN
> Tel,861088236837
> E-mail,[email protected]
> Computing Center
> Institute of High Energy Physics,CAS
>  ------------------------------
>  *发件人:*zengshan
> *发送时间:*2012-02-15 10:01
> *主题:*回复: dural epiphan problems~~~~~help~~~~~
> *收件人:*Hank Magnuski,Rubén Pérez
> *抄送:*matterhorn-users
>
>  can anybody help me out?
> thank you very much~
>
> 2012-02-15
>  ------------------------------
>  ZENG SHAN
> Tel,861088236837
> E-mail,[email protected]
> Computing Center
> Institute of High Energy Physics,CAS
>  ------------------------------
>  *发件人:*zengshan
> *发送时间:*2012-02-14 11:44
> *主题:*dural epiphan problems
> *收件人:*Hank Magnuski,Rubén Pérez
> *抄送:*matterhorn-users
>
> **
> Hi all,
> I am now using two epiphan's VGA2USB devices to capture both video and
> ppt, but when the CA start to capture, the log in CA shows that:
> 2012-02-14 11:27:08  INFO (GStreamerPipeline:430) - Successfully
> initialised 2 devices.
> 2012-02-14 11:27:09  INFO (GStreamerPipeline:96) - Initializing devices
> for capture.
> 2012-02-14 11:27:09  INFO (EpiphanVGA2USBV4LSubDeviceBin:259) - Sending
> EOS to stop /dev/video0_v4lsrc
> 2012-02-14 11:27:09  INFO (EpiphanVGA2USBV4LSubTestSrcBin:188) - Sending
> EOS to stop videotestsrc0
> 2012-02-14 11:27:09  INFO (EpiphanVGA2USBV4LSubDeviceBin:259) - Sending
> EOS to stop /dev/video1_v4lsrc
> 2012-02-14 11:27:09  INFO (EpiphanVGA2USBV4LSubTestSrcBin:188) - Sending
> EOS to stop videotestsrc1
> *2012-02-14 11:27:09  WARN (GStreamerPipeline$2:144) - mpegpsmux0: Could
> not create handler for stream:*
> So I use gst debug level 2 to see more, and it shows that:
> matterhorn@capture:/opt/matterhorn/felix/conf$ gst-launch -e
> --gst-debug=2 v4lsrc device=/dev/video0
> Setting pipeline to PAUSED ...
> 0:00:00.021649224  9240       0x7f9080 WARN                     v4l
> v4lsrc_calls.c:489:gst_v4lsrc_try_capture:<v4lsrc0> error: system error:
> Wrong medium type
> 0:00:00.023990750  9240       0x7f9080 WARN                     v4l
> v4lsrc_calls.c:489:gst_v4lsrc_try_capture:<v4lsrc0> error: system error:
> Wrong medium type
> 0:00:00.026393783  9240       0x7f9080 WARN                     v4l
> v4lsrc_calls.c:489:gst_v4lsrc_try_capture:<v4lsrc0> error: system error:
> Wrong medium type
> 0:00:00.032750484  9240       0x7f9080 WARN                     v4l
> v4lsrc_calls.c:489:gst_v4lsrc_try_capture:<v4lsrc0> error: system error:
> Wrong medium type
> 0:00:00.035141576  9240       0x7f9080 WARN                     v4l
> v4lsrc_calls.c:489:gst_v4lsrc_try_capture:<v4lsrc0> error: system error:
> Wrong medium type
> 0:00:00.036005793  9240       0x7f9080 WARN                 basesrc
> gstbasesrc.c:2639:gst_base_src_default_negotiate:<v4lsrc0> error: No
> supported formats found
> 0:00:00.036024839  9240       0x7f9080 WARN                 basesrc
> gstbasesrc.c:2639:gst_base_src_default_negotiate:<v4lsrc0> error: This
> element did not produce valid caps
> Pipeline is live and does not need PREROLL ...
> ERROR: from element /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0: Could not
> synchronize on resource.
> Additional debug info:
> v4lsrc_calls.c(489): gst_v4lsrc_try_capture ():
> /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0:
> system error: Wrong medium type
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
> matterhorn@capture:/opt/matterhorn/felix/conf$ gst-launch -e
> --gst-debug=2 v4lsrc device=/dev/video1
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> 0:00:01.195766353  9243      0x17458c0 WARN                 basesrc
> gstbasesrc.c:2550:gst_base_src_loop:<v4lsrc0> error: Internal data flow
> error.
> 0:00:01.195807301  9243      0x17458c0 WARN                 basesrc
> gstbasesrc.c:2550:gst_base_src_loop:<v4lsrc0> error: streaming task paused,
> reason not-linked (-1)
> ERROR: from element /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0: Internal
> data flow error.
> Additional debug info:
> gstbasesrc.c(2550): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0:
> streaming task paused, reason not-linked (-1)
> Execution ended after 12849465 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> 2012-02-14
> ------------------------------
>  ZENG SHAN
> Tel,861088236837
> E-mail,[email protected]
> Computing Center
> Institute of High Energy Physics,CAS
> **
>
_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users

Reply via email to