Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [v4l2]

v4L2 is the second version of Video4Linux, a collection of device drivers and an API for supporting realtime video capture.

27 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
975 views

Raspbery camera, video stream at 3280x2464

According to this page Raspberry camera v2 can produce video stream with resolution of 3280x2464. However, all my tries with raspivid and gstreamer/v4l2 fails. Knows someone how to reach this video ...
pasaba por aqui's user avatar
4 votes
3 answers
5k views

Hardware-encoding (h264_v4l2m2m) a MJPEG stream from a webcam

I have a 1080p webcam connected to a Raspberry Pi 4B over USB. The camera supports the following formats: Raw : yuyv422 : YUYV 4:2:2 Compressed: mjpeg : Motion-JPEG ...
Archimaredes's user avatar
3 votes
0 answers
1k views

Trying to use cec-compliance fails with open on /dev/cec0

I'm trying to use the hdmi cec tools that come with the latest Raspian. When I try and run cec-ctl or cec-compliance I get a fail to open /dev/cec0. The kernel modules I have from lsmod (partial): ...
Dave's user avatar
  • 31
2 votes
0 answers
683 views

Does V4L2 driver support Raw Bayer capture with HQ camera?

I was under impression that current V4L2 driver supports raw capture, but: pi@raspberrypi:~ $ v4l2-ctl --list-formats ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'YU12' (Planar YUV 4:2:0) ...
Paul Jurczak's user avatar
2 votes
0 answers
495 views

Jessie: v4l2 streaming works with RPi 1B+, but not with 2B or 3B

I just recently upgraded my series of Pi's (1B+, 2B, 3B) to Raspbian Jessie Lite. Now, when I try to setup a stream with my Pi NoIR Camera as I did in Wheezy, sudo modprobe bcm2835-v4l2 cvlc v4l2:///...
Christian's user avatar
2 votes
2 answers
5k views

Raspbian v4l2loopback

I'm trying to load v4l2 modules. Before doing that, I run: sudo apt-get install v4l2loopback-dkms but, when I load the module, I get an error: sudo modprobe v4l2loopback devices=4 modprobe: FATAL: ...
Timur Gaysin's user avatar
1 vote
0 answers
72 views

IR-Keytable support for the variable frequency & modulation

I am working on the RPI-CM4 with the ir-keytable library. I am using the TSMP97000 sensor to read the modulated data from the IR transmitter(Remote). it-keytable library is working successfully with ...
shiv patil's user avatar
1 vote
0 answers
150 views

Green frames when capturing webcam

We use RPI4 for automation. One of our use-cases is to capture image frames via webcam/HDMI grabber as fast as possible and do some analytics. We use python and opencv for capturing, but it's not ...
Maxxie's user avatar
  • 11
1 vote
0 answers
207 views

Picamera on Ubuntu 18.04 64-bit

Is there any way to get picamera to work on Ubuntu 18.04 64-bit. I have tried: Compiling a non-official version of userland for 64-bit and it compiled, but the camera does not work I have tried using ...
Klemen's user avatar
  • 11
1 vote
1 answer
159 views

HQ Camera V4L2 - bad set of scene mode causes camera controls to become unresponsive

I have been playing with these cameras for some time using opencv/raspicam to control the camera. The raspicam/opencv interface allows setting the gain, this is dubious because there is no manual set ...
Nanaki's user avatar
  • 11
1 vote
0 answers
748 views

HQ Camera crashes OpenCV application on Raspberry Pi 4

I have been developing an object tracking application with OpenCV 4.3.0 and C++. I am using an actively cooled Raspberry Pi 4 2GB RAM and the HQ camera module. Twice when I ran the program, I ...
Jacobus Dens's user avatar
1 vote
0 answers
358 views

USB camera pipe error after a while

We have RPi3B+ with Raspbian Lite installed, 2.5A power supply. We need to connect a specific USB camera (LEPTON PureThermal 2) and display its image. The connection with the camera works, it gives ...
bigmuscle's user avatar
  • 241
1 vote
0 answers
584 views

Streaming HLS from a video4linux2 virtual video device

I'm trying to accomplish a few things at the same time with the raspberry pi camera; create an HLS live stream take regular interval jpg snapshots and save them to disk irregularly record short ...
Erik van der Leer's user avatar
1 vote
0 answers
2k views

/dev/video0 not created

I am having trouble getting a USB Camera to work with a Raspberry Pi 3 Model B. I cannot get /dev/video0 to be created. I have run sudo modprobe bcm2835-v4l2 and I can see bcm2835-v4l2 when I run ...
eurotech's user avatar
1 vote
0 answers
760 views

Multiple webcams - cannot open in openCV & corrupted image

I've connected four USB webcams via well powered USB hub to RasPi2. I want to use them in openCV. So I setup a simple program, where I opened the cameras using cvCaptureFromCAM, captured a cv::Mat and ...
yaqwsx's user avatar
  • 111
1 vote
0 answers
517 views

avconv version 9.14 streaming video (using UV4L driver RaspiCam) and video (using ALSA) to ustream, no audio

I'm using avconv to read from /dev/video0 (which is attached to my RPi camera via UV4L) and also reading audio from my microphone using ALSA and stream it live on ustream.tv. It works just fine to ...
Linus's user avatar
  • 529
0 votes
0 answers
24 views

Lepton 3.5 thermal camera is too bright and impossible to recognize object

i'm trying to display Lepton 3.5 thermal camera which is uvc on Raspberry pi 5. It can be displayed well using opencv but i need the maximum temperature of frame so this code is what i'm using. The ...
I have 10 fingers's user avatar
0 votes
0 answers
49 views

ffmpeg consume 252% of raspberrypi CPU

I am using raspberry pi-4 8GB to take input from a video device /dev/video0 and output it over a network rtp://192.168.10.10:6001 I am using following ffmpeg command ffmpeg -f v4l2 -i /dev/video0 -c:v ...
Mubashir's user avatar
0 votes
0 answers
1k views

Gstreamer and Raspberry Pi 5

For a couple of days I'm trying to make the gstreamer work on my new RPI5 PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION=&...
Gnioco's user avatar
  • 1
0 votes
0 answers
50 views

poorer quality and jagged lines issue when rotating camera

I am capturing video from my raspberry pi camera using v4l2rtspserver, but I need the image to be rotated 90 degrees. Rotating it makes the image appear to have less resolution and there is an ...
PlayerWet's user avatar
  • 101
0 votes
1 answer
979 views

JPEG decoding using gstreamer on RPI 4

I have the following pipeline: gst-launch-1.0 v4l2src device=/dev/video0 ! 'image/jpeg, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1' ! jpegdec ! ...
Essam Gouda's user avatar
0 votes
0 answers
325 views

Random disconnection of an USB Camera with Raspberry Pi 4

I've got a Raspberry Pi 4 with an USB2.0 camera connected through a slip ring. When I boot, there's no problem at all, but sometimes the Raspberry is unable to detect the camera while streaming (I'm ...
Adrián Álvarez's user avatar
0 votes
0 answers
99 views

v4l-utils Based IR remote control

After spending a lot of time searching how LIRC works on the raspberry pi. Found that LIRC is deprecated & will be replaced by the v4l-utils. I would like to know, Is there any library(git hub ...
shiv patil's user avatar
0 votes
0 answers
404 views

Trying to interface OmniVision OV4689 with Raspberry Pi

I need to capture pictures on a Raspberry Pi (I'm using a Compute Module 3+) using a camera based on the OmniVision OV4689 image sensor. The datasheet for this image sensor can be found here https://...
Ramanewbie's user avatar
0 votes
0 answers
800 views

raspicam TCP video streaming over ssh - almost there.... but need help

I am trying to pipe raspivid over ssh to my main computer, and then via gstreamer send the stream to a dummy video device (thanks to V4l2loopback) environment : v4l2loopback version: 0.12.0 kernel ...
ghislain airieau's user avatar
0 votes
0 answers
956 views

Configuring USB Webcam in Raspberry PI

I'm configuring Logitech C920 USB Webcam in Raspian for using it with a 3rd party application. I get the below error I tried to set exposure control using uvcdynctrl and guvcview as well. I'm able to ...
SKR's user avatar
  • 101
0 votes
0 answers
1k views

v4l2 on RPi not working in avconv stream

I have been trying to run a webcam/audio stream from usb devices on my rpi. I have run the following commands: avconv -f video4linux2 -i /dev/video0 –s 640×360 r 10 –b 350k –f flv rtmp://x....
axwege's user avatar
  • 19