Saturday, March 9, 2013

IPC-HDB3200 and Zoneminder Working

This is how I successfully got the Dahua HDB3200 1080p IP Camera working in Zoneminder with H264. The camera is also known as ESC-HDB3200, IPC-HDB3200, DH-HDB3200. I have this camera working in Full HD 1920x1080 resolution in Zoneminder, you may need to increase your shmget, shmall to help with size of the frames. You can google that part for Zoneminder, but the steps below have worked for me twice with 2 different servers running Ubuntu Server 12.04, 1 machine was a fresh install and the other already had zoneminder and ffmpeg installed but the HDB3200 was not working.

Step 1) Login to linux server, run sudo su.

Step 2) run   I)sudo apt-get install checkinstall
                  II) sudo apt-get install git
        III)Install YASM 1.2(This avoids the error talked about in Step 3(pink text strikedout):

 wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz

 tar xvzf yasm-1.2.0.tar.gz

 cd yasm-1.2.0

 ./configure

 make && make install

 cd ..

Step 3) Follow the steps here to install H264 and FFMPEG.(If this is your blog, please let me know if I can copy paste your instructions on my page and give credits to you in the footer.) Follow the steps on that blog link under the title: "Compiling FFmpeg on Ubuntu" Note: I did not have the folder "/home/user/code", so I ran the commands from the present working directory. So after  cd's to the folder I did cd .. instead of cd /home/user/code.

[I received one error regard a switch --disable-asm or something along those lines, I just re-ran the command with the switch it was promting(--disable-asm or something like that, READ the error and correct my switch.)]

Now on my clean install I received no other errors except the one listed above, which was fixed with the correct switch. However on my production server I did receive an error near the end but the camera worked in zoneminder regardless!!!

Step 4) You followed the instructions above, zoneminder is installed(you should know how to do that), under images in options the path for ffmpeg is added(/usr/bin/ffmpeg) and ffmpeg is checked off as available.
Now reboot the server, shutdown -r now

Step 5) Add the camera to zoneminder:
          i) Create a new monitor and choose source as ffmpeg
         ii) Click on source tab,
add rtsp://admin:admin@192.168.1.100:554/cam/realmonitor?channel=1&subtype=0?tcp to the source(change your IP as neccessary on your network, and admin admin to your  username and password.
         iii) Colours is 24 bit, Width is 1920, Height is 1080, Click save and it should now work. Please note if you want to use the Sub stream change the subtype from 0 to 1.
       

This should work with Dahua IPC-HFW-3200C and many different IP cameras that support RTSP, most problems with RTSP not working can be resolved by using FFMPEG with the RTSP url and H264.


***I know you don't need to include sudo if you already started with sudo su, however I assume some people may miss this step and it will do no harm. I take NO responsibility for errors, loss or any result due to you following my instructions, I had a hard time getting it to work and once I figured it out I thought I would help other people out.

Friday, March 1, 2013

Laptop Noisy Fan Fix

                      How I Fixed My Old Noisy Laptop Fan

I had a Thinkpad T60 laptop running as a server and decided to re-purpose it as my media center PC. Then use my current media center PC(Desktop tower) as my server. So I accomplished this but ran into a problem, the fan was noisy, kind of like a grinding noise that would come and go frequently. I figured the bearing might be going so I knew I would have to replace the fan, So I decided to try to fix it first since the worse that could happen was I have to end up replacing the fan anyways.

So I went to work on it and took apart the laptop and got out the fan and heat sink part(its connected together). I cleaned all the dust out of the heat sink and fan, took the fan apart(propeller blade slides off the coil) and cleaned the entire thing with toothpick wrapped in paper towel, even the bearing.Lots of dirt came off. Now here's what I did once everything was clean; I put some Quaker Skate car oil in a bottle cap and using a toothpick dipped in the oil to rub on the fan moving assembly(shaft, bearing etc). I rubbed the toothpick(dipping in oil occasionally) on the fan shaft, round magnet, middle of the bearing, and using the toothpick dropped two small drops in the bearing itself so it would work its way into the bearing as it spun.

I let the oil sit for 30 min then I put everything back together and fixed the laptop back to the way it was and booted it. The laptop runs silently, way better than when it was new!!! Even when under heavy load and the speed kicks up, you can feel the hot air blowing out but the fan is much quieter and I suppose will last a while longer.

My only wish is I had some Slick 50, that might of been better, LOL. But I am happy with my results. On a side not do NOT use cooking oil, this type of oil is meant for cooking not lubricating. Also the reason I did not use sewing machine oil or any small size lubricating oil is because of viscosity. Sewing machine oil and oil for small machines are thinner and the Quaker skate is a thicker, meaning this fix would last longer and act more like a grease once it gets in the bearing rather than leak its way out.



***Now I don't recommend people try this, and take no responsibility for what you do. I wanted to share my experience and method for making things last a little longer.

PiKVM to NVR

  Trying to connect to your IP Camera Network Video Recorder (NVR) via your PiKVM and it’s not working? No video from the NVR on...