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
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.
Step 1) Login to linux server, run sudo su.
Step 2) run
I
)
sudo apt-get install checkinstall
II
)
sudo apt-get install git
II
I)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.
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.