[gst-devel] possibility to add another source pad to v4l2src

Rob Clark rob at ti.com
Sun Jul 11 23:14:07 CEST 2010


fyi, you might want to have a look at:

  http://gstreamer.freedesktop.org/wiki/CameraBin

I am in the process of refactoring camerabin to look more like this, so you could (for example) have a separate viewfinder port and capture port..  I have it working basically as the "future" picture on that wiki page looks, at least for video capture.  A bit needs to be done still for image capture, and some cleanup is still needed.  

It doesn't quite help for what you want to do with v4l2src, but you could perhaps instead create a camsrc bin element containing multiple v4l2src elements and some glue logic to coordinate between them..  I think camerabin provides a better, higher level abstraction for applications to target for SoC's with advanced ISP's, compared to using v4l2src directly.

BR,
-R

On Jul 11, 2010, at 12:55 AM, Hu, Gang A wrote:

> Hi,
> In my platform, there are two data streams from the camera, one(/dev/video0) is for view finder and the other(/dev/video1) is for image and video capture.
> My original design is to use a modified v4l2src and add one source pad tor v4l2src to support dual stream support. V4l2src read data from /dev/video0 and /dev/video1 and push the data stream to source pad0 and source pad1.
> As V4l2src is inherited from pushsrc, and there is only one source pad in v4l2src, is it possible to add the other source pad without modifying the pushsrc? What should I take care if I need to design that way? How to set the getrange function for the new added source pad?
> Many thanks.
>  
> Best Regards!
> Hu Gang
>  
>  
>  
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first_______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list