Is it possible to do Audio and Video synchronization for parallel pipelines
Manoj89
manoj89vcet at gmail.com
Thu May 22 06:03:55 PDT 2014
Hi,
(i) I dont know whether PTS which I am getting from the application
thread is aligned or not? How
we can check aligment of PTS from application thread?
(ii) I am using the default GstSegment and not using any GstSegment bin.
(iii) I have set time format of appsrc to GST_FORMAT_TIME like this:
g_object_set(GST_OBJECT(data->videoappsrc),"format",GST_FORMAT_TIME,NULL);
g_object_set(GST_OBJECT(data->audioappsrc),"format",GST_FORMAT_TIME,NULL);
(iv) Today I tried by using "do-timestamp" property of appsrc for audio
and video.I get AV playabck with
sync for sometime and after that it goes out of sync.I have set
following properties for appsrc
g_object_set(GST_OBJECT(data->videoappsrc),"format",GST_FORMAT_TIME
,"do-timestamp",TRUE
,"min-latency",videominlatency
,"max-latency",videomaxlatency,NULL);
videominlatency and videomaxlatency are queried from the latency event
of videoappsrc.
(v) While implementing (iv) I return the
running_time = gst_clock_get_time(data->pipeline) -
gst_element_get_base_time(data->pipeline)
to the application thread as my current position.
(vi) My application thread expects me to send back the current_position
of playback as time update.So whether I can send running_time as
current_position when implementing (iv).
With Regards
Manoj
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Is-it-possible-to-do-Audio-and-Video-synchronization-for-parallel-pipelines-tp4667075p4667121.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list