2019-10-21 17:26:04 -0600 | received badge | ● Famous Question (source) |
2019-04-04 05:16:48 -0600 | received badge | ● Notable Question (source) |
2018-08-12 21:24:06 -0600 | received badge | ● Popular Question (source) |
2017-05-08 11:42:11 -0600 | asked a question | How to manually stop video recording? Hey guys, I am new to the world of programming, I am not from the computer science background. Currently, I am working on a project in which I am using raspberry pi 3 and a USB webcam (I am not using the Pi camera). My objective is to record a video using the webcam, I have interfaced a button switch with one of the GPIO pins, so if I press the push button once it should start recording the video and on the next press, it must stop recording. I used the example code to check whether I am able to record the video or not? I run the code using terminal and yes it works, but whenever I want to stop recording I have to press Ctrl+C, which terminates the entire process, I also want to execute some different operation once the video stops, but I have no idea how to do that. Please I need your guidance. Also, one more thing. If I set the resolution higher than 480 (i.e. 720 or 1080), the output video saved with 5kb file size. what to do in that case? thanks |