Synchronize an RTP streaming with an timestamp signal

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

Synchronize an RTP streaming with an timestamp signal

Mauro Brenna
Hello,

I am developing an application to stream video, on GNU/Linux,  and I
have constraints about timing precision. I would like to associate the
RTP or RTCP timestamp with a precise timestamp I can generate with
dedicated hardware, and I would like to know if it is possible using
some option of rtpbin when issuing gst-launch.
Alternatively, I can modify the source code of rtpbin.

I looked in google for something like that and I read a thread about
NTP and "gst_rtp_bin_associate" in gstrtpbin.c.
I would like to know if there are other options or if I can (and need)
to change that function.


Thanks in advance,

Mauro
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Synchronize an RTP streaming with an timestamp signal

Marco Ballesio
Hi,

On Wed, Feb 23, 2011 at 12:37 PM, Mauro Brenna <[hidden email]> wrote:
> Hello,
>
> I am developing an application to stream video, on GNU/Linux,  and I
> have constraints about timing precision. I would like to associate the
> RTP or RTCP timestamp with a precise timestamp I can generate with
> dedicated hardware, and I would like to know if it is possible using
> some option of rtpbin when issuing gst-launch.
> Alternatively, I can modify the source code of rtpbin.

from what I understand, what you need is already there: see the
"use-pipeline-clock" and "ntp-sync" properties of GstRtpBin. They will
enable you to properly synchronize the streams bw sender and receiver.
In order to use you own clock for the sending pipeline, even though
I've never tried it before it should be fairly easy to implement
GstClock and pass an instance of that class to the pipeline through
gst_pipeline_use_clock.

Regards

>
> I looked in google for something like that and I read a thread about
> NTP and "gst_rtp_bin_associate" in gstrtpbin.c.
> I would like to know if there are other options or if I can (and need)
> to change that function.
>
>
> Thanks in advance,
>
> Mauro
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Synchronize an RTP streaming with an timestamp signal

Mauro Brenna
Thank you, Marco.

I will try to do what you have just suggested as soon as I finished
the development of the driver to interface the hardware clock.


Mauro
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel