I am having a problem with my pi v2 camera and the SD card. I am recording video with my camera from terminal with the following command:
raspivid -o video.h264 -t 10000
The time is variable, I record snippits over the course of maybe half an hour. Everything works for a while, and then the frames start freezing and I get an error in terminal that says certain frames cannot be written to the disk. This is fine and I keep recording. Then, the camera will not record video for more than a few milliseconds. I then restart the pi and I can not log in. I either get a black screen with a cursor forever, or I type in my username and password and it takes me back to the username and password screen. When I try the camera on another pi, it no longer records video. This happened twice already and I don't know what the cause is. The pi itself is ok (pi 3), but it seems like there is something wrong with the SD card. Has anyone had this problem?
It seems to me like the camera breaks first, maybe it shorts or something, and that triggers a failure in the SD card. Help?