Is it possible to do Audio and Video synchronization for parallel pipelines

Manoj89 manoj89vcet at gmail.com
Wed May 21 09:13:31 PDT 2014


Hi,
   I am creating a proper pipeline with gst_pipeline_new()

(i)   It is like this
   data->pipeline = gst_pipeline_new("test-pipeline");
  
gst_bin_add_many(GST_BIN(data->pipeline),data->videoappsrc,data->videoparser,data->videodecoder,data->videoconvert,data->videosink,data->audioappsrc,data->audioparser,data->audiodecoder,data->audioconvert,data->audiosink,NULL);
gst_element_link_many(data->videoappsrc,data->videoparser,data->videodecoder,data->videoconvert,data->videosink,NULL);
gst_element_link_many(data->audioappsrc,data->audioparser,data->audiodecoder,data->audioconvert,data->audiosink,NULL);

(ii) PTS which i get along video frame or audio frame is assigned to
gstbuffer like this

     GST_BUFFER_TIMESTAMP(buffer) = videoframe.pts 
     GST_BUFFER_TIMESTAMP(buffer) = audioframe.pts

    Merely doing this and passing it through appsrc doesnt give AV sync so I
was trying to get into GstSegment and try to synchronize it.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Is-it-possible-to-do-Audio-and-Video-synchronization-for-parallel-pipelines-tp4667075p4667084.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list