I've been following this thread for a while as I'd like to change lenses in some of my cameras from 2.8mm to longer (one will be 25mm).
Worked up the nerve yesterday, after watching a few YouTube videos, and cracked open a camera I had lying around. It's one of Dahua's lower-end 4MP cameras, IPC-HFW2431S-S-S2.
Pretty straightforward getting the lens cover off (pryed up with a screwdriver) and then opening the case (two Torx screws under the lens cover). I disconnected the ribbon cable from the lens board and gentle worked the other two connectors off. I damaged the IR harness a bit as I don't have the proper
tools. The ground wire is loose but it wasn't a fatal mistake on my part. I have someone who can repair it.
As
@flynreelow did, I struggled with the glue. I put a fresh blade in the box cutter and sliced lengthwise scoring a few lines in each of the two spots where the glue was. Then I took a pair of needlenose pliers and began to gentle try and rotate the lens back and forth. That seemed to loosen the glue a bit and then I used the same box cutter to scrape away some glue. Another go with the pliers and the lens began to turn. Slowly unscrewed it (quite a few rotations) and it came out.
Once it was out, I scraped away the remaining glue. Measured the length of the factory lens to see if the lenses on Amazon will fit. It appears they should be fine but there isn't much room to play with.
I reinstalled the lens without applying glue as I will use this camera to test the new lenses when they arrive. Connected everything (ribbon cable was trickiest) and plugged the camera in to focus the lens properly. A breathless few seconds but the patient lived! Adjusted the focus, unplugged the camera and then put it all back together.
Patient is currently without IR but that's not critical and can be repaired nearby.
Definitely a learning experience and I look forward to modifying some of my cameras to give my better coverage of some key spots.
Since a lens is between $5 and $15 on Amazon, this is MUCH cheaper options than buying new cameras. They sell manual varifocal lenses but the varifocal won't fit in the assembled camera. But it would be great for a test rig. These aren't high end cameras but with a manual zoom lens on a covered rig would be great for getting ideal focal lengths in different locations.