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

Kapil Agrawal kapil.agl at gmail.com
Sun Jul 11 09:06:54 CEST 2010


Hello,

If I am right there is only one srcpad that can be created by elements using
pushsrc baseclass. There could be 2 ways of having 2 srcpads,
1) Create a Capture bin with 2 v4l2src elements (Better option)
2) Rewrite the v4l2src element to not use pushsrc (not suggested)

Not sure if there are more options.

Regards
kapil

On Sun, Jul 11, 2010 at 11:25 AM, Hu, Gang A <gang.a.hu at intel.com> 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
>
>


-- 
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100711/7053015a/attachment.htm>


More information about the gstreamer-devel mailing list