Questions tagged [v4l2loopback]

v4l2loopback is a linux kernel module to create V4L2 loopback devices. usage questions should be asked on "Unix&Linux".

If you are having troubles using the v4l2loopback module, you probably should ask on Unix & Linux instead.

Upstream: https://github.com/umlaeute/v4l2loopback

112 questions
1
vote
0 answers

Using v4l2loopback in a docker container to create a camera

I want to create a fake webcam in a docker container, so I install v4l2loopback-dkms on a docker container with the "adoptopenjdk/openjdk11:ubuntu-jre" image. When I run: sudo modprobe v4l2loopback devices=1 I get this error: mobprobe: FATAL: Module…
YaronD
  • 11
  • 3
1
vote
1 answer

RuntimeError: 'v4l2loopback' backend: std::exception when using pyvirtualcam

When using pyvirtualcam, the following line with pyvirtualcam.Camera(width=1280, height=720, fps=5) as cam gives the following error File "/home/linux1/Documents/jpeg-camera/./main.py", line 12, in with pyvirtualcam.Camera(width=1280,…
1
vote
0 answers

Install v4l2loopback kernel module in Google Cloud

I'm trying to get the v4l2loopback kernel module to work on a Debian Buster instance in Google Cloud. I've tried the following three approaches (with the current kernel's headers installed): apt-get install v4l2loopback-dkms apt-get install…
Ingo
  • 1,103
  • 8
  • 17
1
vote
0 answers

Smartest and cleanest way to see if there's a process capturing v4l2loopback a device

I have a gstreamer pipeline where I am pushing data to a v4l2loopback device and then picking it up from browser. From gstreamer's C code what is the smartest way to see if browser is actively capturing from the device or not ? I have used popen…
1
vote
1 answer

how to record camera to file while encoding stream to v4l2-loopback device?

So i have this logitech c920 camera 1920x1080 h264 capable and i would like to record the camera to file while at the same time copying/encoding the stream to a loopback device so the camera can be still used by other apps. here is the code i got so…
Jonatas
  • 59
  • 1
  • 7
1
vote
1 answer

duplicate webcam stream in a virtual device created with v4l2loopback

hello gods of videos streams I'm trying to duplicate a webcam stream in order to send it and still be able to use it in a web browser for example goal is to create a virtual video device with v4l2Loopback use gstreamer to get the source from real…
Olivier
  • 11
  • 1
  • 3
1
vote
1 answer

FFmpeg v4l2 copying unstable

Prelude I am using ffmpeg 4.2.2 on an Ubuntu 20.04 machine to clone the feed of a USB webcam (v4l2 device as /dev/video0) so that multiple applications may access the feed. I used this ffmpeg command which worked lovely: ffmpeg -f v4l2 -i…
Joel Bodenmann
  • 2,152
  • 2
  • 17
  • 44
1
vote
1 answer

How to render images to /dev/video0 using v4l2loopback?

I've been trying to render images to /dev/video. I can get something to sort of display but it's somewhat scrambled. I first started off trying to render a normal RGB24 image (based off this example https://stackoverflow.com/a/44648382/3818491), but…
user3818491
  • 498
  • 1
  • 6
  • 16
1
vote
2 answers

ffmpeg flip horizontally webcam to virtual video camera

I need to horizontally flip my webcam image for a meeting. I tried the instructions in this site https://wiki.archlinux.org/index.php/Webcam_setup#Applications which uses v4l2 and v4l2loopback to generate a virtual camera. # modprobe…
1
vote
1 answer

v4l2loopback SMPTE color bars in Genymotion

I'm running v4l2loopback on a Ubuntu 18.04 machine v4l2-ctl and virtualbox installed. I use command below to initialize a loopback camera: sudo modprobe v4l2loopback video_nr=2 card_label="Hello world" exclusive_caps=1 devices=1 v4l2-ctl…
Tayyebi
  • 131
  • 2
  • 15
1
vote
1 answer

Loopback-4 Mocking injection

i'm using loopback-4, looking for help to mock the @inject declared at class level. Please find below code. import { repository } from '@loopback/repository'; import { AddressRepository } from './address.repository'; import { Address } from…
ni-met
  • 23
  • 3
1
vote
0 answers

Lost in converting hardware accelarated ffmpeg decoder to raw loopback device

Before reaching out, i googled enough, tried many different docker containers, building, compiling etc etc. What I am looking for is a hardware accelerated conversion from a rtsp stream to a /dev/video0 device. I have a working v4l2loopback kernel…
Mikeynl
  • 11
  • 2
1
vote
0 answers

Loopback4 Many to Many Relation, but without a extra id field as primary key in the relation table

I'm building up an application for an already existing and used database with a Many-to-Many relation looking like this: Table User: Id int primary key Table Role: Id int primary key Table UserRoles: UserId int primary key and foreign key to…
MIB
  • 337
  • 2
  • 15
1
vote
2 answers

How to set basepath/prefix in Loopback 4?

I want to set basepath to my application. I updated with await app.restServer.basePath('/api/v1'); in my "index.js" at my project root folder. But when I'm trying to access the explorer, throwing errors as "Cant get explorer". await…
1
vote
1 answer

How should Model Validation be implemented in Loopback 4?

I'm pretty new to Loopback 4 framework, and I'm trying to use it for a small project that needs to connect data from different kinds of databases and services. One of the main reasons I'm using version 4 is because of Typescript and also because it…