how to attach camera that has no plugin

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

how to attach camera that has no plugin

Bert Douglas
Hi All,

I have a gstreamer app, in python. 

And I have a camera, with library from camera maker.  I can read frames from camera, in C program.

How do I connect camera to gstreamer?

Thanks much,
Bert Douglas

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to attach camera that has no plugin

Praveen Pandey
You can use 'appsrc' plugin to pass the frames(from your C app) to the pipeline.  An example pipeline can be appsrc -> encoder > muxer -> filesink.

BR,
Praveen
________________________________________
From: Bert Douglas [[hidden email]]
Sent: Friday, August 27, 2010 5:57 PM
To: Discussion of the development of GStreamer
Subject: [gst-devel] how to attach camera that has no plugin

Hi All,

I have a gstreamer app, in python.

And I have a camera, with library from camera maker.  I can read frames from camera, in C program.

How do I connect camera to gstreamer?

Thanks much,
Bert Douglas

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to attach camera that has no plugin

Bert Douglas
Thanks much for reply.

I am looking at appsrc.  Some things are not clear.

How does one application reference an instance of an element that is in a completely different process?

In the examples, the same appplication that is calling "appsrc" is also building the pipeline.

Thanks,
Bert Douglas

On Fri, Aug 27, 2010 at 7:31 AM, Praveen Pandey <[hidden email]> wrote:
You can use 'appsrc' plugin to pass the frames(from your C app) to the pipeline.  An example pipeline can be appsrc -> encoder > muxer -> filesink.

BR,
Praveen
________________________________________
From: Bert Douglas [[hidden email]]
Sent: Friday, August 27, 2010 5:57 PM
To: Discussion of the development of GStreamer
Subject: [gst-devel] how to attach camera that has no plugin

Hi All,

I have a gstreamer app, in python.

And I have a camera, with library from camera maker.  I can read frames from camera, in C program.

How do I connect camera to gstreamer?

Thanks much,
Bert Douglas

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."

------------------------------------------------------------------------------
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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to attach camera that has no plugin

Sandeep Prakash
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.

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
Reply | Threaded
Open this post in threaded view
|

Re: how to attach camera that has no plugin

Bert Douglas


On Fri, Aug 27, 2010 at 11:04 AM, Sandeep Prakash <[hidden email]> 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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to attach camera that has no plugin

Olivier Aubert-2
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 <[hidden email]>
> 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
>         [hidden email]
>         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 [hidden email] 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to attach camera that has no plugin

Sandeep Prakash
In reply to this post by Bert Douglas
Hi Bert,

Bert Douglas wrote
How about videotestsrc, would that be good to use as a model?
Yes, videotestsrc could be used as reference, its very simple to understand.
Any element that derives from GstPushSrccan be used as reference. (v4l2src, videotestsrc, etc.,)


Regards,
Sandeep
http://sandeepprakash.homeip.net