Skip to content

Commit 2199283

Browse files
committed
README.md Add info how to check the device number
Closes v4l2loopback#462
1 parent 567aa95 commit 2199283

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,16 @@ Using `sudo` use:
110110

111111
$ sudo modprobe v4l2loopback
112112

113-
This will create an additional video-device, e.g. /dev/video0 (the number
114-
depends on whether you already had video devices on your system), which can be
115-
fed by various programs.
113+
You can check which loopback devices are created by listing contents of
114+
`/sys/devices/virtual/video4linux` directory. E.g. if there are two
115+
`v4l2loopback` devices `/dev/video0` and `/dev/video3` you would get:
116+
117+
$ ls -1 /sys/devices/virtual/video4linux
118+
video0
119+
video3
120+
121+
These devices are ready to accept contents to show.
122+
116123
Tested feeders:
117124
- GStreamer-1.0: using the "v4l2sink" element
118125
- Gem(>=0.93) using the "recordV4L2" plugin

0 commit comments

Comments
 (0)