rtp and ptime

Sebastian Dröge sebastian at centricular.com
Fri Dec 25 11:29:57 PST 2015


On Fr, 2015-12-25 at 09:59 -0800, symeon.mattes wrote:
> Hi,
> 
> Thanks for your reply. So it seems that the pipeline I have it goes
> up to the maximum MTU, which for my case is around 170ms. I don't
> have stereo, so I suppose 170ms is for mono.
> 
> However what I would like is 20ms ptime, so the min and max-ptime for
> the rtpcmapay should be 20*1000000 since it's in ns?
> 
> GstElement * rtppcmapay; int ptime=20*1000000;
> rtppcmapay = gst_element_factory_make("rtppcmapay",NULL);
> g_object_set(G_OBJECT(rtppcmapay),"min-ptime",ptime,"max-
> ptime",ptime,NULL);
> 
> But for some reason it keeps giving me 170ms ptime in wireshark. Some
> help on that?

Try using a gint64 for that, then it should work :)

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151225/6c5d5b9c/attachment.sig>


More information about the gstreamer-devel mailing list