将 gstreamer NV12 视频定向到 v4l2loopback 接收器

directing gstreamer NV12 video to v4l2loopback sink

我想将 NV12 像素格式的视频定向到 v4l2loopback 设备,但我的所有尝试都失败了。我试过这条管道

gst-launch-1.0 videotestsrc ! videoconvert ! video/x-raw,format=NV12 ! v4l2sink device=/dev/video1

/dev/video1是我的环回设备。我还尝试使用 v4l2loopback-ctl 脚本将环回设备功能设置为 NV12 而没有 cuccess

./v4l2loopback-ctl set-caps "video/x-raw, format=NV12" /dev/video1

此管道适用于其他视频格式,因此,将 NV12 定向到 v4l2loopback 设备是否有效?

我正在使用 ubuntu 16.04 内核版本 4.13.0-37-generic 和 v4l2loopback 版本 0.11.0 从源代码编译 commit

打开后 issue on the project GitHub repository the answer was that this feature is not supported. I added it and my changes is merged in this commit.