Redsandro
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 vc.ril.video_encode:in:0(OPQV): EINVAL
mmal: mmal_port_enable: failed to enable connected port (vc.ril.video_encode:in:0(OPQV))0x108d390 (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

##gpu_mem=128
#gpu_mem=16

# Dynamic video memory
gpu_mem_256=112
gpu_mem_512=368
cma_lwm=16
cma_hwm=32
cma_offline_start=16
Does raspivid use the GPU for encoding?
What would be the ideal static CPU/GPU memory division?

Return to “Camera board”