1

I am trying to play a picamera in raspberry pi 4 using vlc with raspivid/raspistill. When I give a command: sudo raspivid -o cam.jpg then some errors come,

mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates
FM_Mahera
  • 21
  • 5
  • 1
    have you enabled the raspberry pi camera port in raspi-config? – kwasmich Oct 14 '19 at 10:36
  • Are you using the latest Raspbian Buster fully updated? Is it a genuine Pi camera? – CoderMike Oct 14 '19 at 11:06
  • Why are you using sudo? Using the camera doesn't need sudo. Also run vcgencmd get_camera to check it's enabled. – Dougie Oct 14 '19 at 11:07
  • Hello...Yes, I have enabled a camera using "sudo raspi-config". Also, I am using a latest updated RPi4 Buster. Also run vcgencmd get_camera that show me "supported=1 detected=1". This means my picamera is enabled. – FM_Mahera Oct 15 '19 at 05:20

1 Answers1

1

The camera is probably running out of GPU memory. Check config.txt in the /boot/ folder. The gpu_mem option should be at least 128.

Possible Duplicate of : What causes ENOSPC error when using the Raspberry Pi camera module?

Karandeepdps
  • 131
  • 5