Audio and Video Streaming

Marco Ballesio gibrovacco at gmail.com
Thu Aug 18 00:32:05 PDT 2011


Hi,

sorry for replying this late. In my understanding, GStreamer does not
provide a mean to fine-grain control the interleave time for output
buffers (but maybe some unknown elements can provide such a feature).

One possible way to achieve this could be by installing a probe in the
sink pad of your udpsink and then force the pipeline to wait there if
a packet arrives too early. Indeed, this is an ugly hack but might
work for your case.

As a last comment, consider that it is extremely hard to control
deltas lower than (or even close to) the granularity of the kernel in
the system you're using. Tuning the process niceness could also ne
needed.

Regards

On 8/4/11, Durga <durgas1987 at gmail.com> wrote:
> Hi Wim Taymens,
>
> This is the pipeline i used for testing:
>
> gst-launch-0.10 -v filesrc location="/bulk/MainAgarKahoon.mp3" ! audio/mpeg,
> mpegversion=1, layer=3 ! decodebin ! audioconvert ! audio/x-raw-int,
> channels=2, depth=16, width=16, rate=48000, endianness=4321 ! rtpL16pay
> min-ptime=2660000 max-ptime=2660000 pt=97 ssrc=0 timestamp-offset=0
> seqnum-offset=0 ! udpsink host=239.1.2.12 port=51000 sync=true qos=true
>
> As you said, i set the min-ptime and max-ptime to 2660000.
>
> Here is the tcpdump of the same:
>
> 02:26:31.043806 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.053625 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.054672 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.055469 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.056225 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.064933 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.067261 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.068065 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.069060 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.084847 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.085729 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.088052 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.088939 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.094562 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.095563 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.096357 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.097224 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.097965 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.109049 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:31.109934 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> ....
> ....
> ....
> 02:26:35.996443 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:35.997334 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:35.998356 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.006500 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.007477 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.008260 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.009010 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.009897 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.010656 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.011390 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.012218 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.016184 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.025888 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.026864 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.027802 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.028577 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.029319 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.030042 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.031013 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.031775 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.032681 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.041005 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.041883 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.042818 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.043596 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.044393 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.045080 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.056358 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.057227 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.058135 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.066570 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.067439 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
> 02:26:36.068344 IP hst1x9.49147 > 239.1.2.12.51000: UDP, length 520
>
> From the dump, i could see that the time interval does not seems to be
> constant..!!
>
> Is that anything else i am missing ??
>
> Need your input on this!
>
> Thanks in advance.
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Audio-and-Video-Streaming-tp3706344p3719071.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> 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