Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

655
Vistas
ERROR opening V4L interface: Operation not permitted

I compiled mjpg-streamer in my raspberry pi, but when I run the below command, it occured an eeror shown in the title. Details are below:

root@raspberrypi:/home/pi/mjpg-streamer-code-182/mjpg-streamer# /usr/local/bin/mjpg_streamer -i "/usr/local/lib/input_uvc.so" -o "/usr/local/lib/output_http.so -w /usr/local/www"

Results:

MJPG Streamer Version: svn rev: 
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: MJPEG
ERROR opening V4L interface: Operation not permitted
Init v4L2 failed !! exit fatal 
i: init_VideoIn failed

How can I get permitted to operate my v4l2?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If /dev/video0 is owned by root video (check with ls -l /dev/video0), add yourself to the video group with usermod -aG video your_username, log out, log in, try again. (You'll likely need to be root or prefix with sudo to add yourself to the group.)

If you still get 'Operation not permitted', ensure you have set gpu_mem=128 in /boot/config.txt. It was set at 64 by default for me (on Arch Linux ARM), but increasing it to 128 did the trick.

My /etc/modules-load.d/raspberrypi.conf looks like this to get the v4l2 module loaded at boot:

snd-bcm2835
i2c-dev
bcm2835-v42l2

Tested and verified on a Pi 1 B+, and a Pi 3, both running ALARM.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda