dropping frames when using v4l2src

Aleksander aleek998 at gmail.com
Sat Dec 6 12:12:23 PST 2014


Hi!

I have tested all of the options. xvimagesink sync=false quiets the warning
but does not help at all. Moreover it fails with:
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal
data flow error.
Additional debug info:
/var/tmp/portage/media-libs/gstreamer-1.2.4-r2/work/gstreamer-1.2.4/libs/gst/base/gstbasesrc.c(2865):
gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason error (-5)

I've also checked d) but any of the cores arent working on full load.

I think I'll just buy new cam :)

On Wed, Nov 12, 2014 at 7:18 PM, Nicolas Dufresne <
nicolas.dufresne at collabora.com> wrote:

>
> Le 2014-11-11 11:34, Aleksander Dutkowski a écrit :
>
>>
>> Moreover, when using gstreamer 1.0 it tells me:
>> WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:
>> autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: A lot
>> of buffers are being dropped.
>> Additional debug info:
>> /var/tmp/portage/media-libs/gstreamer-1.2.4-r2/work/
>> gstreamer-1.2.4/libs/gst/base/gstbasesink.c(2791):
>> gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstAutoVideoSink:
>> autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
>> There may be a timestamping problem, or this computer is too slow.
>>
>> Is this an issue with my cam (logitech quickcam communicate stx) or with
>> the pipes? Computer is not slow (8 cores, 16G of ram).
>>
>
> Could be multiple issues.
>
> a) Maybe jpegdec has 1 frame latency, but does not say so
> b) Maybe you have a webcam (most of them do) that reduce framerate on low
> light
> c) Maybe you are lucky enough that you have a buggy cam that produce wrong
> timestamp
> d) PC not fast enough (unlikely)
>
> For a), we just have to look in the code (will do and come back). For b),
> I don't know exactly the solution to that. You test if it's a) and/or b) by
> disabling sync, sync=f0 to xvimagesink (not a solution, just a way to
> confirm).
>
> For c), I own one of these cam which has embedded firmware bug. I've
> implement code to detect that in git master.
>
> Even though unlikely, d) would mean 1 of your 8 core (jpegdec is single
> threaded) is saturated. You can confirm this by setting sync=false and
> checking if gst-launch-1.0 is around 100% (in top).
>
> Nicolas
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141206/98719cf8/attachment.html>


More information about the gstreamer-devel mailing list