[gst-devel] how to attach camera that has no plugin
Olivier Aubert
olivier.aubert at liris.cnrs.fr
Fri Aug 27 18:49:53 CEST 2010
In your case, another option to investigate, which would remove the
2-process constraint, would be to use the python ctypes module (standard
in python >= 2.5) to call the proprietary library from python, and then
inject the data through an appsrc element written in python.
Regards,
Olivier Aubert
On Fri, 2010-08-27 at 11:28 -0500, Bert Douglas wrote:
>
>
> On Fri, Aug 27, 2010 at 11:04 AM, Sandeep Prakash <123sandy at gmail.com>
> wrote:
>
> Hi Bert,
>
>
> Bert Douglas wrote:
> >
> > How does one application reference an instance of an element
> that is in a
> > completely different process?
> >
>
> Why should the camera library loaded in a different process.
> As I had
> replied to your other post
> use appsrc and in the "need-data" callback feed your frames
> from the camera
> APIs.
>
> I already have a python app that works with video4linux.
> Now I want to hook up a different camera. It comes with a library
> from the manufacturer.
> But nothing related to gstreamer.
>
> I am thinking I should start with existing plugin for camera source.
> Perhaps video4linux, and modify source code to talk to other camera.
> This way I can instantiate the new element into my python app without
> any problem.
>
> How about videotestsrc, would that be good to use as a model?
>
>
>
>
>
> Also, using appsrc for live/camera captures might end in
> undesirable
> results. Better is to write
> plugin that inherits from the GstPushSrc. Here you will have
> more control
> over framerate, etc.,
> that is important in live circumstances.
>
> Regards,
> Sandeep
> http://sandeepprakash.homeip.net
> --
>
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/how-to-attach-camera-that-has-no-plugin-tp2340987p2341320.html
> Sent from the GStreamer-devel mailing list archive at
> Nabble.com.
>
> ------------------------------------------------------------------------------
>
>
> Sell apps to millions through the Intel(R) Atom(Tm) Developer
> Program
> Be part of this innovative community and reach millions of
> netbook users
> worldwide. Take advantage of special opportunities to increase
> revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________ 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