KKMoon P2P PTZ cam tips
A new pan & tilt camera installed on the rooftop to monitor the antennas, it’s a chinese 720p “KKMoon P2P Cam”, hardware version = JH41E-V1.0, firmware version 10.8.79.8900 build 2015.06.09 02:51.
I bought it on Ebay and received a partial refund due the several bugs in the firmware which make the object to be used with caution and a number of declared functions does not work at all:
- Sending email notification when a motion is detected does not work, at least with my SMTP servers.
- FTP upload of the images does not work. I’ve tried with my local working server, no success.
- There is not a plugin for Firefox or Chrome, the only browser capable to view the h264 streaming video is MS Internet Explorer with a proprietary plugin. The stream can be reproduced also by VLC but without the pan and tilt controls.
- There is a security issue, the rtsp stream can be opened without inserting any password even if the password is correctly set.
On the other hand the Android app works quite well and the image have a good quality.
Googling around I’ve found few results about this cam, this one is the most interesting.
Summing up, to view the stream with VLC (without password) the address to open is
To catch a snapshot the http address is
Unfortunately the snapshot image has a very low resolution 320×240.
I like to save an image every some minutes to create a time-lapse video, this resolution is unacceptable, but there is a workaround to obtain snapshots with good quality. This command get some seconds of video then save an image with native resolution 1280×720
cvlc rtsp://user:pass@IPAddress/camera-media/profile0 –video-filter=scene –scene-prefix=$prefix –scene-format=jpg –scene-path=./ –scene-ratio 240 –sout-x264-lookahead=10 –sout-x264-tune=stillimage –vout=dummy –run-time 15 vlc://quit
To rotate the camera the sniffed commands are
Move to the preset x:
where x = 1 to 16, preset number
I prepared a simple Python script to be executed in a terminal -> ptz.py
$ ptz 3 moves the cam to the preset number 3
$ ptz r 2 moves the cam to the right for 2 seconds