How to write source plugin.

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

How to write source plugin.

mahendra
Hi,
  I am new to the GStreamer framework. Gone through the application development and plug-in development document and build some sample.
  Please any one guide how to right source element. As per the plug-in writer guide we have to use GstBaseSrc.

 Is their any source element sample available ?


Thanks for help,
Mahendra
Reply | Threaded
Open this post in threaded view
|

Re: How to write source plugin.

Josh Doe
On Fri, Jan 13, 2012 at 2:04 AM, mahendra
<[hidden email]> wrote:
> Hi,
>  I am new to the GStreamer framework. Gone through the application
> development and plug-in development document and build some sample.
>  Please any one guide how to right source element. As per the plug-in
> writer guide we have to use GstBaseSrc.
>
>  Is their any source element sample available ?

It would help to know what kind of source you're trying to write,
audio or video and hardware or software. From there you can pick a
similar element in gst-plugins-good and study that.
-Josh
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to write source plugin.

mahendra
This post was updated on .
Thanks for reply,

   The source element will receive audio as well as video data from software which internally receives data from hardware.
Reply | Threaded
Open this post in threaded view
|

Re: How to write source plugin.

Stefan Sauer
On 01/16/2012 07:27 AM, mahendra wrote:
> Thanks for reply,
>
>    The source element will receive audio as well as video data from
> hardware.
The framework is open source. You can look at all the source elements
include (e.g. alsasrc, v4l2src, ..).
Having one single element that reads audio and video might be somewhat
more complicated though. GstBaseSrc only supports elements with one src
pad, thus you will need to derive from GstElement.

Stefan
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-write-source-plugin-tp4291545p4298618.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to write source plugin.

mahendra
Hi,
   The audio and video data will be delivered to client from media server which the server internally receives it from hardware.
   Should we use the udpsrc  for this or is their any other better plugin which we can use for streaming.

 
Reply | Threaded
Open this post in threaded view
|

Re: How to write source plugin.

Stefan Sauer
On 02/10/2012 11:09 AM, mahendra wrote:
> Hi,
>    The audio and video data will be delivered to client from media server
> which the server internally receives it from hardware.
>    Should we use the *udpsrc * for this or is their any other better plugin
> which we can use for streaming.
plain udp is not robust. using rtp streaming would be recomended.
gstreamer has the needed plugins.

Stefan
>  
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-write-source-plugin-tp4291545p4375801.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to write source plugin.

mahendra
This post was updated on .
Thanks for reply,

 Do we have to use the rtspsrc  as 'rtspsrc location=rtsp://server-ip:port' to play audio as well as video from server.
 However the server is sending data to client over the TCP protocol.

Reply | Threaded
Open this post in threaded view
|

Re: How to write source plugin.

mahendra
This post was updated on .
Hi,
  The server is not using the RTP protocol to transfer the audio and video data.It is using the TCP protocol to transmit the data to client.
  The server does not use any URL for this we have only IP address and port number information.
  Do we have to write our own custom plugin for this or should use the existing one if it support TCP protocol.

Thanks in advance for help.