Sunday, March 13, 2022

Save security camera stream video to disk

 I have a security camera that streams video. I can view the video on a web browser but I have searched up and down to find a way to save the video. I have tried VLC. It worked for a while but the newer version doesn't seem to work anymore. I've tried ZoneMinder, but it only captures when there is movement. And it doesn't manage storage space very well. 

It turns out I only need to use curl to capture the video and write to disk. I made a simple script to save videos for the last 7 days only.

curl "http://192.168.1.123/videostream.cgi" --output "file"

it's that simple.

Speaker Damping and Filling

There are two types of speaker enclosure, sealed and ported. For sealed enclosure, we want the sound to disappear inside the enclosure. So dense filling material is better. For ported speaker enclosure, we want to get rid of the standing wave/reflection, etc, but keep the Q unchanged and let the bass out. For that, we need to damp the wall with heavy material but fill the space with light, thin damping material like polyester. (see this post).