{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/vertualcamera/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/vertualcamera/", "feed_url": "https://matoken.org/blog/tag/vertualcamera/feed/json/", "language": "ja", "title": "VertualCamera – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=2912", "url": "https://matoken.org/blog/2021/01/11/how-to-name-video-devices-created-with-the-v4l2loopback-module/", "title": "v4l2loopback\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u4f5c\u3089\u308c\u308b\u30d3\u30c7\u30aa\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u540d\u524d\u306e\u4ed8\u3051\u65b9", "content_html": "
\n

v4l2loopback module\u3092\u5229\u7528\u3057\u3066\u4eee\u60f3\u30ab\u30e1\u30e9\u306a\u3069\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\uff0e

\n
\n
\n

\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u3068\u304d\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u8907\u6570\u306e\u30c7\u30d0\u30a4\u30b9\u306b\u3057\u305f\u308a\uff0c\u305d\u308c\u305e\u308c\u306b\u30c7\u30d0\u30a4\u30b9\u306b\u540d\u524d\u3092\u3064\u3051\u305f\u308a\u51fa\u6765\u307e\u3059\uff0e

\n
\n
\n
https://github.com/umlaeute/v4l2loopback/blob/f55da057b8c1f6d1c7a5c57feeadbbf532058e59/README.md \u3088\u308a
\n
\n
\n

If you need several independent loopback devices, you can pass the “devices” option, when loading the module; e.g.

\n
\n
\n

# modprobe v4l2loopback devices=4
\nWill give you 4 loopback devices (e.g. /dev/video1 \u2026\u200b /dev/video5)

\n
\n
\n

You can also specify the device IDs manually; e.g.

\n
\n
\n

# modprobe v4l2loopback video_nr=3,4,7
\nWill create 3 devices (/dev/video3, /dev/video4 & /dev/video7)

\n
\n
\n

# modprobe v4l2loopback video_nr=3,4,7 card_label=”device number 3″,”the number four”,”the last one”
\nWill create 3 devices with the card names passed as the second parameter:

\n
\n
\n

/dev/video3 \u2192 device number 3
\n/dev/video4 \u2192 the number four
\n/dev/video7 \u2192 the last one

\n
\n
\n
\n
\n

\u304a\u624b\u672c\u901a\u308a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u3068\uff0c

\n
\n
\n
\n
$ sudo modprobe v4l2loopback video_nr=3,4,7 card_label=\"device number 3\",\"the number four\",\"the last\none\"
\n
\n
\n
\n

\u60f3\u5b9a\u901a\u308a\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3057\u305f\uff0e(\u6700\u5f8c\u306eIntegrated Camera\u306f\u5185\u8535\u30ab\u30e1\u30e9\u3067\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u306f\u7121\u95a2\u4fc2)

\n
\n
\n
\n
$ v4l2-ctl --list-devices\ndevice number 3\" (platform:v4l2loopback-000):\n        /dev/video3\n\n\"the number four\" (platform:v4l2loopback-001):\n        /dev/video4\n\n\"the last one (platform:v4l2loopback-002):\n        /dev/video7\n\nIntegrated Camera: Integrated C (usb-0000:00:1a.0-1.6):\n        /dev/video0\n        /dev/video1\n        /dev/media0
\n
\n
\n
\n

\u3057\u304b\u3057\u3053\u306e\u8a2d\u5b9a\u3092\u6c38\u7d9a\u5316\u3057\u3088\u3046\u3068\uff0c
\n/etc/modprobe.d/v4l2loopback.conf
\n\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u3053\u306e\u8a2d\u5b9a\u3092\u66f8\u3044\u3066\u547c\u3073\u51fa\u3059\u3068\u304a\u304b\u3057\u306a\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff0e

\n
\n
\n
\n
$ sudo rmmod v4l2loopback (1)\n$ echo 'options v4l2loopback video_nr=3,4,7 card_label=\"device number 3\",\"the number four\",\"the last one\"' | sudo tee /etc/modprobe.d/v4l2loopback.conf (2)\noptions v4l2loopback video_nr=3,4,7 card_label=\"device number 3\",\"the number four\",\"the last one\"\n$ sudo modprobe -v v4l2loopback (3)\ninsmod /lib/modules/5.10.0-1-amd64/updates/dkms/v4l2loopback.ko video_nr=3,4,7 card_label=\"device number 3\",\"the number four\",\"the last one\"\n$ v4l2-ctl --list-devices | grep v4l2loopback -A1 (4)\ndevice number 3\" (platform:v4l2loopback-000):\n        /dev/video3\n--\n\"the number four\" (platform:v4l2loopback-001):\n        /dev/video4\n--\n\"the last one (platform:v4l2loopback-002):\n        /dev/video7
\n
\n
\n
\n
    \n
  1. \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a2\u30f3\u30ed\u30fc\u30c9
  2. \n
  3. \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3078\u66f8\u304d\u8fbc\u307f
  4. \n
  5. \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u518d\u8aad\u8fbc
  6. \n
  7. \u30c7\u30d0\u30a4\u30b9\u540d\u306e\u78ba\u8a8d
  8. \n
\n
\n
\n

\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u6271\u3044\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u3059\uff0e\u66f4\u306b\u540d\u524d\u81ea\u4f53\u306b\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u542b\u307e\u308c\u3066\u3057\u307e\u3044\u307e\u3059\uff0e

\n
\n
\n

\u3068\u308a\u3042\u3048\u305a\u5168\u4f53\u30921\u30bb\u30c3\u30c8\u306e\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u56f2\u3080\u3068\u5927\u4e08\u592b\u306a\u3088\u3046\u3067\u3059\uff0e

\n
\n
\n
\n
$ echo 'options v4l2loopback video_nr=3,4,7 card_label=\"device number 3,the number four,the last one\"' | sudo tee /etc/modprobe.d/v4l2loopback.conf\noptions v4l2loopback video_nr=3,4,7 card_label=\"device number 3,the number four,the last one\"\n$ sudo modprobe -v v4l2loopback\ninsmod /lib/modules/5.10.0-1-amd64/updates/dkms/v4l2loopback.ko video_nr=3,4,7 card_label=\"device number 3,the number four,the last one\"\n$ v4l2-ctl --list-devices | grep v4l2loopback -A1\ndevice number 3 (platform:v4l2loopback-000):\n        /dev/video3\n--\nthe number four (platform:v4l2loopback-001):\n        /dev/video4\n--\nthe last one (platform:v4l2loopback-002):\n        /dev/video7
\n
\n
\n
\n

\u3061\u306a\u307f\u306b\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306a\u3057\u3060\u3068\u3053\u3046\u306a\u308a\u307e\u3057\u305f\uff0e

\n
\n
\n
\n
$ sudo modprobe -v v4l2loopback\ninsmod /lib/modules/5.10.0-1-amd64/updates/dkms/v4l2loopback.ko video_nr=3,4,7 card_label=device number 3,the number four,the last one\n$ v4l2-ctl --list-devices | grep v4l2loopback -A1\ndevice (platform:v4l2loopback-000):\n        /dev/video3\n--\nDummy video device (0x0001) (platform:v4l2loopback-001):\n        /dev/video4\n--\nDummy video device (0x0002) (platform:v4l2loopback-002):\n        /dev/video7
\n
\n
\n
\n

\u6700\u8fd1\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f OBS Studio 26.1\u3067Linux\u7248, macOS\u7248\u306b\u3082\u4eee\u60f3\u30ab\u30e1\u30e9\u6a5f\u80fd\u304c\u5165\u308a\u307e\u3057\u305f\uff0e
\n\u3053\u308c\u3082 v4l2loopback \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\uff0c\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u542b\u307e\u308c\u308b\u5834\u5408\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u3088\u3046\u3067\u3059\uff0e

\n
\n
\n
\u74b0\u5883
\n
\n
$ dpkg-query -W v4l2loopback-* v4l-utils\nv4l-utils       1.20.0-2\nv4l2loopback-dkms       0.12.5-1\nv4l2loopback-modules\nv4l2loopback-utils      0.12.5-1\n$ lsb_release -dr\nDescription:    Debian GNU/Linux bullseye/sid\nRelease:        unstable\n$ uname -mv\n#1 SMP Debian 5.10.4-1 (2020-12-31) x86_64
\n
\n
\n

\n", "content_text": "v4l2loopback module\u3092\u5229\u7528\u3057\u3066\u4eee\u60f3\u30ab\u30e1\u30e9\u306a\u3069\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\uff0e\n\n\n\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u3068\u304d\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u8907\u6570\u306e\u30c7\u30d0\u30a4\u30b9\u306b\u3057\u305f\u308a\uff0c\u305d\u308c\u305e\u308c\u306b\u30c7\u30d0\u30a4\u30b9\u306b\u540d\u524d\u3092\u3064\u3051\u305f\u308a\u51fa\u6765\u307e\u3059\uff0e\n\n\nhttps://github.com/umlaeute/v4l2loopback/blob/f55da057b8c1f6d1c7a5c57feeadbbf532058e59/README.md \u3088\u308a\n\n\nIf you need several independent loopback devices, you can pass the “devices” option, when loading the module; e.g.\n\n\n# modprobe v4l2loopback devices=4\nWill give you 4 loopback devices (e.g. /dev/video1 \u2026\u200b /dev/video5)\n\n\nYou can also specify the device IDs manually; e.g.\n\n\n# modprobe v4l2loopback video_nr=3,4,7\nWill create 3 devices (/dev/video3, /dev/video4 & /dev/video7)\n\n\n# modprobe v4l2loopback video_nr=3,4,7 card_label=”device number 3″,”the number four”,”the last one”\nWill create 3 devices with the card names passed as the second parameter:\n\n\n/dev/video3 \u2192 device number 3\n/dev/video4 \u2192 the number four\n/dev/video7 \u2192 the last one\n\n\n\n\n\u304a\u624b\u672c\u901a\u308a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u3068\uff0c\n\n\n\n$ sudo modprobe v4l2loopback video_nr=3,4,7 card_label=\"device number 3\",\"the number four\",\"the last\none\"\n\n\n\n\u60f3\u5b9a\u901a\u308a\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3057\u305f\uff0e(\u6700\u5f8c\u306eIntegrated Camera\u306f\u5185\u8535\u30ab\u30e1\u30e9\u3067\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u306f\u7121\u95a2\u4fc2)\n\n\n\n$ v4l2-ctl --list-devices\ndevice number 3\" (platform:v4l2loopback-000):\n /dev/video3\n\n\"the number four\" (platform:v4l2loopback-001):\n /dev/video4\n\n\"the last one (platform:v4l2loopback-002):\n /dev/video7\n\nIntegrated Camera: Integrated C (usb-0000:00:1a.0-1.6):\n /dev/video0\n /dev/video1\n /dev/media0\n\n\n\n\u3057\u304b\u3057\u3053\u306e\u8a2d\u5b9a\u3092\u6c38\u7d9a\u5316\u3057\u3088\u3046\u3068\uff0c\n/etc/modprobe.d/v4l2loopback.conf\n\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u3053\u306e\u8a2d\u5b9a\u3092\u66f8\u3044\u3066\u547c\u3073\u51fa\u3059\u3068\u304a\u304b\u3057\u306a\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff0e\n\n\n\n$ sudo rmmod v4l2loopback (1)\n$ echo 'options v4l2loopback video_nr=3,4,7 card_label=\"device number 3\",\"the number four\",\"the last one\"' | sudo tee /etc/modprobe.d/v4l2loopback.conf (2)\noptions v4l2loopback video_nr=3,4,7 card_label=\"device number 3\",\"the number four\",\"the last one\"\n$ sudo modprobe -v v4l2loopback (3)\ninsmod /lib/modules/5.10.0-1-amd64/updates/dkms/v4l2loopback.ko video_nr=3,4,7 card_label=\"device number 3\",\"the number four\",\"the last one\"\n$ v4l2-ctl --list-devices | grep v4l2loopback -A1 (4)\ndevice number 3\" (platform:v4l2loopback-000):\n /dev/video3\n--\n\"the number four\" (platform:v4l2loopback-001):\n /dev/video4\n--\n\"the last one (platform:v4l2loopback-002):\n /dev/video7\n\n\n\n\n\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a2\u30f3\u30ed\u30fc\u30c9\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3078\u66f8\u304d\u8fbc\u307f\n\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u518d\u8aad\u8fbc\n\u30c7\u30d0\u30a4\u30b9\u540d\u306e\u78ba\u8a8d\n\n\n\n\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u6271\u3044\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u3059\uff0e\u66f4\u306b\u540d\u524d\u81ea\u4f53\u306b\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u542b\u307e\u308c\u3066\u3057\u307e\u3044\u307e\u3059\uff0e\n\n\n\u3068\u308a\u3042\u3048\u305a\u5168\u4f53\u30921\u30bb\u30c3\u30c8\u306e\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u56f2\u3080\u3068\u5927\u4e08\u592b\u306a\u3088\u3046\u3067\u3059\uff0e\n\n\n\n$ echo 'options v4l2loopback video_nr=3,4,7 card_label=\"device number 3,the number four,the last one\"' | sudo tee /etc/modprobe.d/v4l2loopback.conf\noptions v4l2loopback video_nr=3,4,7 card_label=\"device number 3,the number four,the last one\"\n$ sudo modprobe -v v4l2loopback\ninsmod /lib/modules/5.10.0-1-amd64/updates/dkms/v4l2loopback.ko video_nr=3,4,7 card_label=\"device number 3,the number four,the last one\"\n$ v4l2-ctl --list-devices | grep v4l2loopback -A1\ndevice number 3 (platform:v4l2loopback-000):\n /dev/video3\n--\nthe number four (platform:v4l2loopback-001):\n /dev/video4\n--\nthe last one (platform:v4l2loopback-002):\n /dev/video7\n\n\n\n\u3061\u306a\u307f\u306b\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306a\u3057\u3060\u3068\u3053\u3046\u306a\u308a\u307e\u3057\u305f\uff0e\n\n\n\n$ sudo modprobe -v v4l2loopback\ninsmod /lib/modules/5.10.0-1-amd64/updates/dkms/v4l2loopback.ko video_nr=3,4,7 card_label=device number 3,the number four,the last one\n$ v4l2-ctl --list-devices | grep v4l2loopback -A1\ndevice (platform:v4l2loopback-000):\n /dev/video3\n--\nDummy video device (0x0001) (platform:v4l2loopback-001):\n /dev/video4\n--\nDummy video device (0x0002) (platform:v4l2loopback-002):\n /dev/video7\n\n\n\n\u6700\u8fd1\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f OBS Studio 26.1\u3067Linux\u7248, macOS\u7248\u306b\u3082\u4eee\u60f3\u30ab\u30e1\u30e9\u6a5f\u80fd\u304c\u5165\u308a\u307e\u3057\u305f\uff0e\n\u3053\u308c\u3082 v4l2loopback \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\uff0c\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u542b\u307e\u308c\u308b\u5834\u5408\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u3088\u3046\u3067\u3059\uff0e\n\n\n\u74b0\u5883\n\n$ dpkg-query -W v4l2loopback-* v4l-utils\nv4l-utils 1.20.0-2\nv4l2loopback-dkms 0.12.5-1\nv4l2loopback-modules\nv4l2loopback-utils 0.12.5-1\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -mv\n#1 SMP Debian 5.10.4-1 (2020-12-31) x86_64", "date_published": "2021-01-11T19:44:58+09:00", "date_modified": "2021-01-11T19:44:58+09:00", "authors": [ { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" } ], "author": { "name": "matoken", "url": "https://matoken.org/blog/author/matoken/", "avatar": "https://secure.gravatar.com/avatar/38f5f3b575c5eb45cda6aa659bca119ac7a5e16b46565e869d0030e3bd66981d?s=512&d=mm&r=g" }, "tags": [ "OBS Studio", "v4l2loopback", "VertualCamera", "Debian", "Linux", "sid", "\u672a\u5206\u985e" ] } ] }