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

Feed a video file to v4l2sink using gstreamer

I would like to feed a video file to my virtual video device using gstreamer and v4l2loopback. Using videotestsrc, something like this works (i.e. I can open my virtual device from VLC): gst-launch -v videotestsrc ! queue ! decodebin2 name=dec !…
JonasVautherin
  • 7,297
  • 6
  • 49
  • 95
0
votes
0 answers

error using v4l2 with userptr and gstreamer

short: I wrote an app that captures frames from video device using v4l2. the app should support all i-o modes. I am mostly interested in userptr mode. when i run the code with physical camera it works (with userptr mode). when i run the same code…
Liza
  • 1
  • 1
0
votes
0 answers

Streaming video using v4l2loopback into Webcam0 in Android Emulator working but causing ANR

I used ffmpeg to stream a video file into the virtual video device created with v4l2loopback. ffmpeg -stream_loop -1 -re -i file.mp4 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 This works but the app goes into ANR since most…
Amal
  • 328
  • 2
  • 8
0
votes
0 answers

How to use v4l2 scrcpy virtual webcam?

I created a virtual camera v4l2 /dev/video21 and linked it to my notebook's default webcam /dev/video1 and it started working so far ok, then I mirrored the webcam I created in OBS-studio. and now I want to connect in scrcpy the virtual camera that…
0
votes
0 answers

creating v4l2loopback watchdog process

I have four UBS-Webcams, each of the Cameras is used as input for two processes. As the USB-cameras provide only exclusive access to one single process, I used v4l2loopback to map/loopback each camera to two virtual devices. As I know this is…
0
votes
0 answers

open and VIDIOC_S_FMT operations don't work (as expected) on the virtual video device created by v4l2loopback

I'm using v4l2loopback to create a virtual camera device. The VIDIOC_S_FMT operation is unable to set the format of the output device. The operation doesn't return an error, which is expected as it was explained in the documentation. Drivers should…
csg
  • 8,096
  • 3
  • 14
  • 38
0
votes
0 answers

ffmpeg v4l2 taking 100% cpu usage

I am on Fedora 37, version is irrelevant as I had same issue on Fedora 36. I am using the following command to send video from my usb video card to v4l2loopback and the CPU usage goes to 100% and I can't do much more on my computer (i5-8600k, nvidia…
0
votes
0 answers

Video is stuttering when connecting vaapi decoder to v4l2sink in gstreamer?

When I connect a vaapi decoder to v4l2sink the result is not as expected, same happens if I use autovideosink, I know for this I have to use vaapisink and it is working as expected, but is there a solution for v4l2sink? Can someone explain me the…
Chris
  • 1
  • 2
0
votes
1 answer

Writing MJPEG to loopback device with FFMPEG fails on Ubuntu 20.04. Works on Rasperry Pi

I have a script that writes MJPEG from an HDMI video capture card (/dev/video0) to a v4l2loopback device (/dev/video5). I compiled the v4l2loopback module from source. This script works fine on Raspberry Pi but fails on Ubuntu with this error: V4L2…
Yllier123
  • 66
  • 14
0
votes
1 answer

Trying to stream virtualy created camera video0 device to make rtsp stream for VLC using gstreamer in 24bit RGB format

I have created Video0 device using V4l2loopback and used the following sample Git code V4l2Loopback_cpp as a application to stream jpg images from a folder sequential by altering some conditions in the code.But the code read images as 24Bit RGB…
dinesh47
  • 37
  • 7
0
votes
1 answer

VideoCapture Release - Failed to Allocate Buffers (V4l2src) Jetson NX

I'm using a v4l2sink in gstreamer to tee a video stream that I can access in OpenCV. This works when I open the videocapture device and get frames, however at some point I want to release the capture device and reopen it later in the program. When I…
Chealsie
  • 33
  • 6
0
votes
1 answer

How to receive Post request body and pass that body to my function in loopback

i want to create dynamic model, repository and controller export async function dynamicModelsDemo(app: any, modelData: any): Promise { console.log("ModelData",modelData); // assume that this def can be created dynamically (at runtime),…
Bhaskar Jha
  • 101
  • 1
  • 8
0
votes
1 answer

Using a video device in 2 applicatrions simoultaneously with Gstreamer

I am trying to use the camera feed on my Jetson Nano (running headless over SSH) in 2 different applications. From the command line, I am able to run gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=3280, height=2464, format=NV12,…
A_toaster
  • 1,196
  • 3
  • 22
  • 50
0
votes
1 answer

Use v4l2loopback on AWS EC2

I have been trying to set up v4l2loopback on an EC2 instance and get the error - modprobe: FATAL: Module v4l2loopback not found in directory /lib/modules/5.4.0-1041-aws on sudo modprobe v4l2loopback. Trying to load videodev using sudo modprobe…
Akshay Kumar
  • 277
  • 2
  • 11
0
votes
0 answers

Modprobe v4l2loopback failed docker build

Trying to build a docker image with v4l2loopback installed but am not able to modprobe it after installing it. getting this error after trying to build using buildx FATAL: Module v4l2loopback not found in directory /lib/modules/5.4.0-1038-aws FROM…
maxwellpwang
  • 163
  • 1
  • 1
  • 6