Quantcast

which element to playback PCM-LE16-48k audio?

classic Classic list List threaded Threaded
5 messages Options
G.B
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

which element to playback PCM-LE16-48k audio?

G.B
I am receiving audio streams from the net which claim to be PCM (no compression), LE16, stereo, 48K.

VLC can play it just fine and reports "Codec: twos, Channels, 48000 Hz, Bits per sample: 16".

Thanks!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: which element to playback PCM-LE16-48k audio?

Edward Hervey
On Wed, 2010-06-30 at 02:07 -0700, G.B wrote:
> I am receiving audio streams from the net which claim to be PCM (no
> compression), LE16, stereo, 48K.
>
> VLC can play it just fine and reports "Codec: twos, Channels, 48000 Hz, Bits
> per sample: 16".

  You don't need any element in particular (well, except for an audio
sink to actually play it back). That's assuming it's within a container
format that will set the proper caps in output.

    Edward

>
> Thanks!



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

Re: which element to playback PCM-LE16-48k audio?

Tim-Philipp Müller-2
In reply to this post by G.B
On Wed, 2010-06-30 at 02:07 -0700, G.B wrote:

> I am receiving audio streams from the net which claim to be PCM (no
> compression), LE16, stereo, 48K.
>
> VLC can play it just fine and reports "Codec: twos, Channels, 48000 Hz, Bits
> per sample: 16".

How exactly are we supposed to tell you what elements you need to play
back a particular file or stream if you don't provide us with a file or
the link to that stream?

Cheers
 -Tim



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

Re: which element to playback PCM-LE16-48k audio?

G.B
In reply to this post by Edward Hervey
I have the following code to receive the L16 PCM

    audiodepay = gst_element_factory_make ("rtpL16depay", "adepay");
    g_assert (audiodepay);
    if(1){
      GstCaps *adoCaps = gst_caps_new_simple ("application/x-rtp",
                                              "rate", G_TYPE_INT, 48000,
                                              "channels", G_TYPE_INT, 2,
                                              "width", G_TYPE_INT, 16,
                                              "depth", G_TYPE_INT, 16,
                                              "endianness", G_TYPE_INT, 1234,
                                              "signed", G_TYPE_BOOLEAN, TRUE,
                                              NULL);

      GstPad * tmppad = NULL;
      tmppad = gst_element_get_pad(audiodepay, "src");
      gst_pad_set_caps(tmppad, adoCaps);
      gst_caps_unref(adoCaps);
    }

But the program always complains about
0:00:03.314339777  1662    0xc0d88 ERROR            rtpL16depay gstrtpL16depay.c:218:gst_rtp_L16_depay_setcaps:<adepay> no channels specified

I am new to GST programming here, so please help. Thanks
G.B
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: which element to playback PCM-LE16-48k audio?

G.B
In reply to this post by Tim-Philipp Müller-2
Sorry, I was trying to find out if any gst element can handle L16 audio net stream, and found rtpL16depay. Hopefully it can depay the L16 audio to downstream pipeline elements for playback.

Having trouble using it where it complains about "
ERROR            rtpL16depay gstrtpL16depay.c:218:gst_rtp_L16_depay_setcaps:<adepay> no channels specified",

Loading...