Hello, I'm trying to use H264 encoder for webrtc pipeline via gstreamer.
I have some video transmission over this pipeline:
"webrtcbin bundle-policy=max-bundle name=sendrecv v4l2src device=/dev/video1 io-mode=dmabuf ! video/x-raw,framerate=(fraction)30/1,width=640,height=480 ! v4l2h264enc output-io-mode=dmabuf-import qos=1 ! video/x-h264,level=(string)3.2,profile=baseline ! h264parse ! rtph264pay ! queue ! sendrecv."
And I want to use v4l2convert plugin. So I have put it between ...480 ! v4l2convert ! v4l2h264enc... and got those error:
0:00:03.938146175 2249 0xaaaaedfe9870 WARN default v4l2-utils.c:189:gst_v4l2_error:<v4l2src0> error: Could not open device '/dev/video1' for reading and writing.
0:00:03.938237302 2249 0xaaaaedfe9870 WARN default v4l2-utils.c:192:gst_v4l2_error:<v4l2src0> error: system error: Device or resource busy
Can someone help me on this?
My setup: yocto Kirkstone build for IMX8QXP
Thanks in advance
Hi @Anton_K,
Webrtc is not included in our Gstreamer packages from our latest BSP release.
Could you please tell me more about the installation of this package?
Thank you and have a great day!
UPD: v4l2src used device=/dev/video1 and via gst-inspect-1.0 v4l2convert has device=/dev/video0 by default and readable only flag