v4l2src: device or resource busy
Pascal Jacquemart
pascal at fluffyspider.com
Tue Sep 10 03:33:25 UTC 2019
Yes I have seen this one as well
You can run fuser -v /dev/video0
It should tell you if the file descriptor is still open or more likely
in case of leaky buffers that the device have been closed but the
device is still mapped.
I think you should terminate the pipeline by sending an EOS event on
the v4l2src element and makes sure it propagates. Then set state to
NULL and unref everything.
This should work even on older kernels.
I am running on CentOS kernel 3.16 and it is fine.
On Mon, 9 Sep 2019 13:36:58 -0500 (CDT)
IgalKroyter <igalkroy at gmail.com> wrote:
> hi,
>
> I am trying to restart a pipeline after it was GST_STATE_NULL and
> unreferenced. Though after rebuilding the pipeline and trying to
> start it the following message is displayed: *"libv4l2: error setting
> pixformat: Device or resource busy"*. I guess it is the v4l2src
> component, as if once I initialise it, the relevant HW resource is
> occupied and cannot be release although the v4l2src component is
> dereferenced.
>
> Any suggestions? Am I correct?
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list