How to fix raspivid '* failed to open vchiq instance'
English
Deutsch
Problem:
Du möchtest ein Video mit raspivid aufnehmen, z.B. mit einem Befehl wie
raspivid_vchiq_fix.sh
raspivid -o vid.h264aber du siehst nur diese Fehlermeldung:
raspivid_vchiq_error.txt
* failed to open vchiq instanceohne dass ein Video aufgenommen wird.
Schnelle Lösung:
Führe raspivid mit sudo aus:
sudo_raspivid.sh
sudo raspivid -o vid.h264Nun wird entweder das Video aufgenommen oder du wirst eine weitere Fehlermeldung sehen, wenn ein anderes Problem mit deiner Kameraeinrichtung vorliegt.
Bessere Lösung:
Füge deinen Benutzer zur video-Gruppe hinzu, damit du raspivid nicht als root ausführen musst:
add_user_video_group.sh
sudo usermod -a -G video $USERYou only need to do this once. After that, log out and log back in (or close your SSH session and connect again). If in doubt, restart the Raspberry Pi. See What does ’sudo usermod -a -G group $USER‘ do on Linux? for more details.
Nun kannst du als normaler Benutzer Video aufnehmen:
raspivid_normal_user.sh
raspivid -o vid.h264If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow