WG: question about sync two different pipeline

Matthias Dodt MDodt at xion-medical.com
Fri Oct 28 02:46:59 PDT 2011


Sorry... Forgot to include the list in the reply:

-----Ursprüngliche Nachricht-----
Von: Matthias Dodt 
Gesendet: 28 October 2011 09:31
An: 'zjtnew at hotmail.com'
Betreff: AW: question about sync two different pipeline

Hi Vincent,

What I basically did is:

1. create a normal pipeline A
2. create a second pipeline B for the RTSPServer using GstRTSPMediaFactory and set 

	//This will synchronize the two pipelines
	gst_element_set_start_time (pipeline,GST_CLOCK_TIME_NONE);

   in the ::create_pipeline() method of the factory.

3. The pipelines were connected by pushing the buffers from A to B.

This worked in my case. But your case sounds different to me. In my case the data is flowing from A->B while you want to synchronize to parallel running pipelines if I get it right:

A-----
	C
B-----

I would try gst_element_set_base_time (pipeline,time); but I have no experience with synchronization. Do you want to synchronize the audio and video? Are they coming from a live-source?

Cheers

mat

-----Ursprüngliche Nachricht-----
Von: zjtnew at hotmail.com [mailto:zjtnew at hotmail.com]
Gesendet: 28 October 2011 04:15
An: Matthias Dodt
Betreff: question about sync two different pipeline

Hi, mat:

I read the thread that you post in gstreamer-devel about sync two different pipeline:
http://gstreamer-devel.966125.n4.nabble.com/Connecting-two-independent-pipelines-sync-timestamps-td3918741.html#a3921448

you had mentioned that using
gst_element_get_base_time (...);
gst_element_set_start_time (pipeline,GST_CLOCK_TIME_NONE); gst_element_set_base_time (pipeline,time); but I failed to get same result. what I want to do is play audio and video in seperate pipeline. both of them timestamp under same clock base.

would you please give more detail about this? some piece of demo code is more help. thanks in advance!

Best Regards,
Vincent





More information about the gstreamer-devel mailing list