How can I send voip data stream alaw encoded with correct data size?

Wim Taymans wim.taymans at gmail.com
Tue Jun 14 01:08:58 PDT 2011


On 06/14/2011 10:05 AM, Uwe Strempel wrote:
> Hello,
> I've a problem to send the correct data size over voip?
> I've following pipeline:
> $ gst-launch alsasrc device=hw:1 ! audioconvert ! level 
> name=recordlevel interval=10000000 ! audioconvert ! audioresample ! 
> audio/x-raw-int rate=8000 ! alawenc ! rtppcmapay ! udpsink 
> host=127.0.0.1 port=26002
>
> The transmitted rtp -package size is between 512 bytes and 1400 bytes.
>
> How can I force this to 160 bytes or 240 bytes?

You can tune the buffer size by setting an appropriate latency-time on 
alsasrc.

Wim
>
> Regards
> Uwe
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list