Posts: 27
Joined: Mon Nov 25, 2013 7:19 pm
Location: The Netherlands
Contact: Website

When raspivid fails, I cannot use camera until reboot

Thu Nov 28, 2013 9:40 pm

Basic usage of raspistill and raspivid cause no problems. But when a video fails to record, e.g.

Code: Select all

[email protected]:tmp$ raspivid -n -fps 25 -g 25 -w 2560 -h 1920 -o /tmp/test.264
mmal: mmal_vc_port_enable: failed to enable port EINVAL
mmal: mmal_port_enable: failed to enable connected port ( (EINVAL)
mmal: mmal_connection_enable: output port couldn't be enabled
mmal: main: Failed to connect camera video port to encoder input
mmal: Argument is invalid
(hangs, pressing Ctrl+C)
^[[A^Cmmal: Aborting program
From this point on, I cannot use the camera anymore. raspistill and raspivid will just hang without error messages (until I press Ctrl+C) and nothing was written to SD. The camera module only starts working again when I reboot the Pi.

Any idea what causes this?
Is it a memory issue?
Is raspivid compatible with dynamic memory management?

Code: Select all


# Dynamic video memory
Does raspivid use the GPU for encoding?
What would be the ideal static CPU/GPU memory division?

Return to “Camera board”