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
0
votes
1 answer

How to use stdout.write in python3 when piping to ffmpeg?

My main goal for this project I'm working on is to use a python script to get any webcam footage, edit it with opencv, and then pipe the edited video frames with ffmpeg to a dummy webcam from v4l2loopback. Here's the sample code I made that runs…
0
votes
1 answer

How to offer multiple resolutions under device (v4l2loopback)?

How to offer multiple resolutions under device (v4l2loopback)? Idea is that depending on what would be requested as read of stream, different command would be run. Background is that v42loopback is fed by other stream and is to be used from browser…
nohtyp
  • 19
  • 5
0
votes
1 answer

ffmpeg: chroma key (greenscreen filter) a short video continuosly loopling into a live video

I know how to chroma key / greenscreen filter a background of a video stream and replace it by an image using v4l2loopback. After running $ sudo modprobe v4l2loopback my code is as follows: $ ffmpeg -i background.jpg -f v4l2 -pix_fmt mjpeg \ …
Alf
  • 1,821
  • 3
  • 30
  • 48
0
votes
1 answer

When using ffmpeg as producer I cannot see v4l2loopback device in chrome

I am able to see my v4l2loopback video device in chrome when using this command to produce a video stream: gst-launch-0.10 -v videotestsrc ! "video/x-raw-yuv,width=640,height=360,framerate=30/1,format=(fourcc)I420" ! v4l2sink device=/dev/video0 But…
KLowe
  • 463
  • 1
  • 5
  • 9
0
votes
0 answers

How do I load a kernel module without root?

I'm making a program which requires a kernel module. I load this module with the following code: cmd := exec.Command("sudo", "-S", "modprobe", "v4l2loopback") cmd.Stderr = os.Stderr cmd.Stdin = os.Stdin err := cmd.Run() if err != nil { …
vityavv
  • 1,482
  • 12
  • 23
0
votes
0 answers

How to Forward MJPG Webcam to Virtual Video Device using FFmpeg?

I have a webcam that looks like this: $ ffmpeg -f v4l2 -list_formats all -i /dev/video0 [video4linux2,v4l2 @ 0x55fe6d48a240] Compressed: mjpeg : Motion-JPEG : 1920x1080 1280x720 640x480 320x240 [video4linux2,v4l2 @ 0x55fe6d48a240] Raw…
physiii
  • 209
  • 3
  • 12
0
votes
1 answer

How to use MongoDB extended operators in Loopback 4?

I'm working with loopback v4 and I need to use the MongoDB $unset extended operator. Documentation on MongoDB connector indirectly states that it can be used (see here) , but I can't find any example/documentation on how is it supposed to be used on…
sertal70
  • 493
  • 3
  • 10
0
votes
1 answer

v4l2loopback label in webrtc

In the v4l2loopback program, the card_label parameter places a label on each created camera, and this is identified in Chrome / Chromium, as shown. But the output of the javascript command to list devices, does not show this information, I expected…
rogeriojlle
  • 1,046
  • 1
  • 11
  • 19
0
votes
1 answer

loopback-next how do I integrate with MQTT

I am new to using loopback, and I'm using loopback4 (which I think is referred to as loopback-next) I have set up my controllers, models & respositories in order to be able to support CRUD operations to mysql, and that is all fine. I want my…
jschank
  • 554
  • 1
  • 5
  • 16
0
votes
1 answer

Issue with create function inside Loopback framework

I have this model import {Entity, model, property} from '@loopback/repository'; @model() export class Coupon extends Entity { @property({ id: true, type: 'string', required: false, mongo: { columnName: '_id', dataType:…
Ahmed Mohsen
  • 183
  • 1
  • 2
  • 12
0
votes
1 answer

Loopback 4: Sending related data

I have a form were I can register a user with one or more addresses. To simplify things, I am sending to loopback: { "id": 0, "name": "User Name", "addresses": [ { "street": "xx", "city": "xx", "country": "xx" }, …
Eduardo
  • 1,781
  • 3
  • 26
  • 61
0
votes
1 answer

Loopback 4 - ER_BAD_FIELD_ERROR

I am having a weird error: Unhandled error in GET /managers: 500 Error: ER_BAD_FIELD_ERROR: Unknown column 'role_id' in 'field list' at Query.Sequence._packetToError …
Eduardo
  • 1,781
  • 3
  • 26
  • 61
0
votes
1 answer

How can i do the join of two table in loopback4

I have created below mention controller,model and repository in my code. Please have look. I have developed below mention code but still not able to perform the join operation. I am going to join two table that is person and info table. - Info…
Smithiam
  • 162
  • 1
  • 16
0
votes
1 answer

Typescript error when running Looback v4 project

I have been running the same Loopback 4 projects on my PC for months, but a couple of days ago I start getting Typescript problems that I cannot find a resolution to. When trying to run NPM START, I'm getting the following…
LarsM
  • 59
  • 4
0
votes
1 answer

Loopback 4 querying SQL Server related tables

I'm trying to query a SQL Server database of related tables and return the data. Something like a person, address, and order table all connected by the personId. How exactly would I retrieve this data using the models?
rzulu
  • 11
  • 2