Issue in v4l2src capture. Fails with minimum latency bigger than maximum latency

Vinod K vndkst at yahoo.com
Wed Jan 13 05:18:15 PST 2016


Hello,

Trying to capture video from the video capture device which is compatible
with v4l2. Gstreamer 1.6.2 is installed on my machine. With this pipeline
video playback is smooth but audio is missing for few seconds and it comes
back again. I have copied part of log dumps here.
 
For video and audio capture following pipeline is used.
 
gst-launch-1.0 v4l2src device=/dev/video4  ! videoconvert ! videoscale !
video/x-raw,width=720,hight=576 ! x264enc ! mpegtsmux name=mux ! udpsink
host=<host_ip> port=9999 alsasrc device=plughw:4,0 !
audio/x-raw,rate=48000,channels=2 !   audioconvert  ! voaacenc  ! mux.
--gst-debug=3



 
Debug logs:

0:00:01.628494778 21134       0xf3bb70 WARN                 v4l2src
gstv4l2src.c:827:gst_v4l2src_create:<v4l2src0> lost frames detected: count =
18446744073709551615 - ts: 0:00:01.535951000
0:00:01.708157505 21134       0xf3bb70 WARN                 v4l2src
gstv4l2src.c:827:gst_v4l2src_create:<v4l2src0> lost frames detected: count =
18446744073709551615 - ts: 0:00:01.621285333
0:00:01.788848398 21134       0xf3bb70 WARN                 v4l2src
gstv4l2src.c:827:gst_v4l2src_create:<v4l2src0> lost frames detected: count =
18446744073709551615 - ts: 0:00:01.706639666
0:00:01.952755689 21134       0xf3bb70 FIXME               basesink
gstbasesink.c:3117:gst_base_sink_default_event:<udpsink0> stream-start event
without group-id. Consider implementing group-id handling in the upstream
elements
0:00:01.953084147 21134       0xf0b050 ERROR               GST_PADS
gstpad.c:3190:gst_pad_query_latency_default:<mux:src> minimum latency bigger
than maximum latency
0:00:01.953152261 21134       0xf0b050 WARN                     bin
gstbin.c:2513:gst_bin_do_latency_func:<pipeline0> warning: Impossible to
configure latency: max 0:00:01.365333333 < min 0:00:01.640000000. Add queues
or other buffering elements.
WARNING: from element /GstPipeline:pipeline0: GStreamer error: clock
problem.
Additional debug info:
gstbin.c(2513): gst_bin_do_latency_func (): /GstPipeline:pipeline0:
Impossible to configure latency: max 0:00:01.365333333 < min
0:00:01.640000000. Add queues or other buffering elements.
0:00:01.971335229 21134       0xf3bb20 WARN            audiobasesrc
gstaudiobasesrc.c:861:gst_audio_base_src_create:<alsasrc0> create DISCONT of
89088 samples at sample 90112
0:00:01.971434187 21134       0xf3bb20 WARN            audiobasesrc
gstaudiobasesrc.c:866:gst_audio_base_src_create:<alsasrc0> warning: Can't
record audio fast enough
0:00:01.971448547 21134       0xf3bb20 WARN            audiobasesrc
gstaudiobasesrc.c:866:gst_audio_base_src_create:<alsasrc0> warning: Dropped
89088 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(866): gst_audio_base_src_create ():
/GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:
Dropped 89088 samples. This is most likely because downstream can't keep up
and is consuming samples too slowly.
0:00:01.974648213 21134       0xf3bb70 WARN                 v4l2src
gstv4l2src.c:827:gst_v4l2src_create:<v4l2src0> lost frames detected: count =
18446744073709551615 - ts: 0:00:01.792122666
0:00:02.039522061 21134       0xf3bb70 WARN                 v4l2src
gstv4l2src.c:827:gst_v4l2src_create:<v4l2src0> lost frames detected: count =
18446744073709551615 - ts: 0:00:01.950287666

What could be the problem.

What is the meaning of the following line:
 
from element /GstPipeline:pipeline0: GStreamer error: clock problem.

Thanks in advance



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Issue-in-v4l2src-capture-Fails-with-minimum-latency-bigger-than-maximum-latency-tp4675242.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list