Welcome to DOGZILLA-Lite repository
8. Video recording function
Video recording function
1. Purpose of the experiment
The dog's camera realizes the recording function.
2. Experimental path source code
Enter the dog's system, end the dog program, enter "ip (ip is the dog's ip): 8888" in the browser, enter the password "yahboom"
and log in. Enter the path of cd ~/pi/DOGZILLA_Lite_class/2.Base Control/08.Picture recording and run play_sound_videos.ipynb .
3. Experimental Phenomenon
After running the source code, the dog will record video and audio for 5 seconds.

Recording completed

Then run down to combine the recorded video and audio into one video. The synthesis is successful as shown in the figure

Then run it down and play the synthesized video, and you can find that the recorded video has sound.

4. Main source code analysis
- XGO_edu.xgoVideoRecord(filename="myvidoes",seconds=5) #Function to record video
- XGO_edu.xgoAudioRecord(filename="myrecord",seconds=5) #Function to record audio
- XGO_edu.xgoVideo(filename="myoutput.mp4") #Function to play video For the usage of the above functions, please refer to the previous chapters for detailed understanding.