TzuHuanTai / RaspberryPi-WebRTC

Turn your Raspberry Pi into a low-latency home security camera by using native WebRTC with the v4l2 hardware H.264 encoder and the software-based OpenH264 encoder for live video stream.
Apache License 2.0
786 stars 32 forks source link

Only record video if the output frames from the camera are set in h264 #114

Closed TzuHuanTai closed 9 months ago

TzuHuanTai commented 9 months ago

To enhance performance and avoid running two encoder objects in parallel, try to write raw h264 into the mp4 file. The background recorder might be executed after the camera is turned on. Watch out I-frame must be the first frame in each separate video file, especially the first video file.