Audio / Video Synchronization issue through HLS gstreamer
mohcer
mohcer.toda at gmail.com
Fri Sep 30 13:39:13 UTC 2016
Hi,
I am trying to perform HLS through gstreamer with audio and video within a
single pipeline media stream with a requirement to create .ts segments which
are finally played back through a playlist file(m3u8 format). I am trying to
achieve this with the following pipeline design:
gst-launch-1.5 v4l2src do-timestamp=true ! videoconvert ! videoscale !
video/x-raw,framerate=30/1 ! timeoverlay shaded-background=1 ! queue !
x264enc ! queue ! mpegtsmux name=mux alsasrc ! queue ! audioconvert ! queue
! audioresample ! queue ! audiorate ! voaacenc bitrate=160000 ! queue !
aacparse ! queue ! mux. mux. ! queue ! hlssink sync=false
The pipeline is launched successfully with audio / video in place but after
some time the audio and video does not synchronize and end up in droping
many audio frames based on the video timestamp in order to create a smooth
audio stream with many pauses.
I get the following information in the debug log:
WARNING: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Can't
record audio fast enough
Additional debug info:
gstaudiobasesrc.c(869): gst_audio_base_src_create ():
/GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:
Dropped 9261 samples. This is most likely because downstream can't keep up
and is consuming samples too slowly.
WARNING: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Can't
record audio fast enough
Additional debug info:
gstaudiobasesrc.c(869): gst_audio_base_src_create ():
/GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:
Dropped 11025 samples. This is most likely because downstream can't keep up
and is consuming samples too slowly.
WARNING: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Can't
record audio fast enough
Additional debug info:
gstaudiobasesrc.c(869): gst_audio_base_src_create ():
/GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:
Dropped 9261 samples. This is most likely because downstream can't keep up
and is consuming samples too slowly.
WARNING: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Can't
record audio fast enough
Can anyone suggest what is going wrong in this direction and in general how
to improve audio / video synchronization.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Audio-Video-Synchronization-issue-through-HLS-gstreamer-tp4679888.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list