2
使用视频环回设备伪造网络摄像头?
我想将循环播放的视频片段用作Google+环聊中的网络摄像头源。我安装了v4l2loopback并创建了一个视频环回设备。但是我还没有弄清楚如何将视频帧写入设备。给定的示例是: gst-launch videotestsrc ! v4l2sink device=/dev/video1 因此,在阅读了gst-launch的手册页并尝试了解发生了什么之后,我做了微弱的尝试: sudo gst-launch-0.10 filesrc location=/home/briankb/Videos/darthvaderdancing.mp4 ! v4l2sink device=/dev/video0 结果是: Setting pipeline to PAUSED ... libv4l2: error getting pixformat: Invalid argument Pipeline is PREROLLING ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... (gst-launch-0.10:12622): GStreamer-CRITICAL **: gst_caps_get_structure: assertion `GST_IS_CAPS (caps)' failed New clock: GstSystemClock …