v4l2loopback:
离线
离线
离线
这个要前排mark
离线
Ubuntu18.04安装驱动出错了:
$ sudo make install
make -C /lib/modules/`uname -r`/build M=/opt/test2 modules_install
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-42-generic'
INSTALL /opt/test2/vc.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:72
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:79
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 5.4.0-42-generic
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic'
SUCCESS (if you got 'SSL errors' above, you can safely ignore them)
--------------------
后记, 这里找到原因和解决方法了, https://superuser.com/questions/1214116/no-openssl-sign-file-signing-key-pem-leads-to-error-while-loading-kernel-modules/1322832#1322832
但是我还不知道怎么动手.
最近编辑记录 吕氏春秋 (2020-09-04 20:25:13)
离线
v4l2loopback:
#克隆代码:
git clone https://github.com/umlaeute/v4l2loopback
#编译
cd v4l2loopback;make
#安装
sudo make install
#depmod
sudo depmod -a
#安装驱动
sudo modprobe v4l2loopback
这样生成了 /dev/video0 设备
ubuntu16.04自带的ffmpeg视频数据生产:
ffmpeg -re -i 测试视频文件.avi -f v4l2 /dev/video0
ubuntu18.04自带的ffmpeg视频数据生产, 添加stream_loop选项支持循环:
ffmpeg -stream_loop -1 -re -i 测试视频文件.avi -f v4l2 /dev/video0
各种视频播放测试:
ffplay -f v4l2 /dev/video0
mpv --demuxer-lavf-format v4l2 /dev/video0
vlc -I dummy v4l2:///dev/video0 --video-filter scene
离线
感谢分享, Linux自带了vivid虚拟摄像头驱动, 直接modprobe vivid,然后用cheese就可以测试了。
没注意具体有什么区别。
离线
linux自带虚拟摄像头驱动?
离线