RTP C Examples

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

RTP C Examples

Jack Foster-2
Hi gang!

I see lots of examples that have CLI to gStreamer but surely people are building applications with C.  It seems like an awesome framework but I'm just trying to get my head around it.  I would like to see more C examples. 

In any case, I'm trying to a simple audio rtp sender/receiver working but am having a hard time translating the example from the gstrtpbin documentation to C.  I'll then post a working copy on the mailing list for others running into the same issue.

I really have no idea if the errors are related to the mad plugin or the pads not linked together properly.

Attached is the error and the program.  Any help would be greatly appreciated.

Thanks!
Jack

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

errors.txt (2K) Download Attachment
audioclean.c (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: RTP C Examples

Sudarshan Bisht
Hi ,,
         Acutally audioresample and rtpamrpay elements can not be linked since both have differenct caps . So better try some other combination.  

On Wed, Dec 31, 2008 at 9:33 PM, Jack Foster <[hidden email]> wrote:
Hi gang!

I see lots of examples that have CLI to gStreamer but surely people are building applications with C.  It seems like an awesome framework but I'm just trying to get my head around it.  I would like to see more C examples. 

In any case, I'm trying to a simple audio rtp sender/receiver working but am having a hard time translating the example from the gstrtpbin documentation to C.  I'll then post a working copy on the mailing list for others running into the same issue.

I really have no idea if the errors are related to the mad plugin or the pads not linked together properly.

Attached is the error and the program.  Any help would be greatly appreciated.

Thanks!
Jack

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: RTP C Examples

Wim Taymans
gst_element_link_many() will not automatically link the payloader to
the rtpbin, you need to manually request
a sink pad first (like you did) and link it to the srcpad of the payloader.

Wim

On Fri, Jan 2, 2009 at 8:13 AM, sudarshan bisht
<[hidden email]> wrote:

> Hi ,,
>          Acutally audioresample and rtpamrpay elements can not be linked
> since both have differenct caps . So better try some other combination.
>
> On Wed, Dec 31, 2008 at 9:33 PM, Jack Foster <[hidden email]>
> wrote:
>>
>> Hi gang!
>>
>> I see lots of examples that have CLI to gStreamer but surely people are
>> building applications with C.  It seems like an awesome framework but I'm
>> just trying to get my head around it.  I would like to see more C examples.
>>
>> In any case, I'm trying to a simple audio rtp sender/receiver working but
>> am having a hard time translating the example from the gstrtpbin
>> documentation to C.  I'll then post a working copy on the mailing list for
>> others running into the same issue.
>>
>> I really have no idea if the errors are related to the mad plugin or the
>> pads not linked together properly.
>>
>> Attached is the error and the program.  Any help would be greatly
>> appreciated.
>>
>> Thanks!
>> Jack
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>

------------------------------------------------------------------------------
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: RTP C Examples

Wim Taymans
Also, you need an amr encoder before the amr payloader.

Wim

On Fri, Jan 2, 2009 at 1:21 PM, Wim Taymans <[hidden email]> wrote:

> gst_element_link_many() will not automatically link the payloader to
> the rtpbin, you need to manually request
> a sink pad first (like you did) and link it to the srcpad of the payloader.
>
> Wim
>
> On Fri, Jan 2, 2009 at 8:13 AM, sudarshan bisht
> <[hidden email]> wrote:
>> Hi ,,
>>          Acutally audioresample and rtpamrpay elements can not be linked
>> since both have differenct caps . So better try some other combination.
>>
>> On Wed, Dec 31, 2008 at 9:33 PM, Jack Foster <[hidden email]>
>> wrote:
>>>
>>> Hi gang!
>>>
>>> I see lots of examples that have CLI to gStreamer but surely people are
>>> building applications with C.  It seems like an awesome framework but I'm
>>> just trying to get my head around it.  I would like to see more C examples.
>>>
>>> In any case, I'm trying to a simple audio rtp sender/receiver working but
>>> am having a hard time translating the example from the gstrtpbin
>>> documentation to C.  I'll then post a working copy on the mailing list for
>>> others running into the same issue.
>>>
>>> I really have no idea if the errors are related to the mad plugin or the
>>> pads not linked together properly.
>>>
>>> Attached is the error and the program.  Any help would be greatly
>>> appreciated.
>>>
>>> Thanks!
>>> Jack
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> Sudarshan Bisht
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>

------------------------------------------------------------------------------
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: RTP C Examples

Wim Taymans
In reply to this post by Jack Foster-2
On Wed, 2008-12-31 at 11:03 -0500, Jack Foster wrote:

> Hi gang!
>
> I see lots of examples that have CLI to gStreamer but surely people
> are building applications with C.  It seems like an awesome framework
> but I'm just trying to get my head around it.  I would like to see
> more C examples.  
>
> In any case, I'm trying to a simple audio rtp sender/receiver working
> but am having a hard time translating the example from the gstrtpbin
> documentation to C.  I'll then post a working copy on the mailing list
> for others running into the same issue.
>
> I really have no idea if the errors are related to the mad plugin or
> the pads not linked together properly.
>
> Attached is the error and the program.  Any help would be greatly
> appreciated.

I added some C examples in CVS here:

http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/tests/examples/rtp/

Look at client-PCMA.c and server-alsasrc-PCMA.c

Wim

>
> Thanks!
> Jack
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: RTP C Examples

Jack Foster-2
These are excellent!  I'll try them out on Monday!

Thanks a bunch,
Jevin

On Fri, Jan 2, 2009 at 10:22 AM, Wim Taymans <[hidden email]> wrote:
On Wed, 2008-12-31 at 11:03 -0500, Jack Foster wrote:
> Hi gang!
>
> I see lots of examples that have CLI to gStreamer but surely people
> are building applications with C.  It seems like an awesome framework
> but I'm just trying to get my head around it.  I would like to see
> more C examples.
>
> In any case, I'm trying to a simple audio rtp sender/receiver working
> but am having a hard time translating the example from the gstrtpbin
> documentation to C.  I'll then post a working copy on the mailing list
> for others running into the same issue.
>
> I really have no idea if the errors are related to the mad plugin or
> the pads not linked together properly.
>
> Attached is the error and the program.  Any help would be greatly
> appreciated.

I added some C examples in CVS here:

http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/tests/examples/rtp/

Look at client-PCMA.c and server-alsasrc-PCMA.c

Wim

>
> Thanks!
> Jack
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: RTP C Examples

Jack Foster-2
In reply to this post by Wim Taymans
I think the picture is worth a thousand words.  That makes it all come clear.  Could that be added to the doc?

Jack

On Fri, Jan 2, 2009 at 10:22 AM, Wim Taymans <[hidden email]> wrote:
On Wed, 2008-12-31 at 11:03 -0500, Jack Foster wrote:
> Hi gang!
>
> I see lots of examples that have CLI to gStreamer but surely people
> are building applications with C.  It seems like an awesome framework
> but I'm just trying to get my head around it.  I would like to see
> more C examples.
>
> In any case, I'm trying to a simple audio rtp sender/receiver working
> but am having a hard time translating the example from the gstrtpbin
> documentation to C.  I'll then post a working copy on the mailing list
> for others running into the same issue.
>
> I really have no idea if the errors are related to the mad plugin or
> the pads not linked together properly.
>
> Attached is the error and the program.  Any help would be greatly
> appreciated.

I added some C examples in CVS here:

http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/tests/examples/rtp/

Look at client-PCMA.c and server-alsasrc-PCMA.c

Wim

>
> Thanks!
> Jack
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel