Questions tagged [v4l2]

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

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
876 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 ...
3 votes
1 answer
2k 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 ...
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): ...
  • 31
3 votes
1 answer
4k 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: ...
2 votes
0 answers
372 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) ...
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:///...
1 vote
0 answers
64 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 ...
1 vote
0 answers
44 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 ...
  • 11
1 vote
0 answers
159 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 ...
  • 11
1 vote
1 answer
137 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 ...
  • 11
1 vote
0 answers
672 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 ...
1 vote
0 answers
327 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 ...
  • 241
1 vote
0 answers
540 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 ...
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 ...
1 vote
0 answers
750 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 ...
  • 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 ...
  • 519
0 votes
0 answers
95 views

Cannot have the v4l2h264dec plugins on Raspberry Pi 4-64

I have built a custom qt5-image with Yocto on my Raspberry Pi 4 - 64 8GB box. It also builds gstreamer 1.20.3. At first, I didn't have the video4linux2 plugins installed. So I rebuilt gst-plugins-good ...
  • 101
0 votes
0 answers
39 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 ...
  • 101
0 votes
1 answer
407 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 ! ...
0 votes
0 answers
127 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 ...
0 votes
0 answers
59 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 ...
0 votes
0 answers
304 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://...
0 votes
0 answers
724 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 ...
0 votes
0 answers
886 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 ...
  • 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....
  • 19