6 lines
276 B
Bash
Executable File
6 lines
276 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
sudo modprobe v4l2loopback devices=1 exclusive_caps=1 video_nr=4 card_label="virt_webcam"
|
|
ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video-webcam -vcodec copy -pix_fmt yuyv422 -f v4l2 /dev/video4
|
|
sudo rmmod v4l2loopback
|