CCTV camera on Enigma2

Grimeire

VIP Member
VIP Member
Joined
Dec 3, 2012
Messages
817
Likes
287
#1
I got a IP camera model dahua PC-HDW4431C-A but should work with any camera that supports RTSP.

Here is a guide how to add the feed to an Enigma2 device. I will be adding the stream to the Favourites Bouquets, but you can add it to whatever bouquet you want.

1. first of all find the RTSP port that your IP camera uses. On Dahua cameras go to network connection.
RTSP port.jpg
The RTSP port my camera uses is 554.

2. test the RTSP stream. Open VLC player. Media>Open Network Stream...
enter the line below replacing username, password, ipcameraIP and RTSP-port with your own..
Code:
rtsp://username:[email protected]:RTSP-PORT/cam/realmonitor?channel=1&subtype=1
here is my line
Code:
rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1
now if the stream doesnt work go back and confirm you entered everything correctly and try another stream. i was unable to get the main stream0 to work. i could only get the secondary stream to work.

URL Syntax

rtsp://:mad::/cam/realmonitor?channel=&subtype=

: a valid user?s username.
:user?s password. (Cannot contain #)
:the IP address of the IP Camera.
:the default port is 554. It can be omitted.
:the channel number. It starts from 1.
:the stream type. The of main stream is 0, extra stream 1 is 1, extra stream 2 is 2.

if you can view the live stream then continue to the next step.


3.NOTE: I will be adding the stream to the Favourites Bouquets, but you can add it to whatever bouquet you want.

ftp into your enigma2 device and go to /etc/enigma2. find and open the file
Code:
userbouquet.favourites.tv
4. Now add your camera's RTSP stream like below to the "userbouquet.favourites.tv" file, again replacing username, password, ipcameraIP and RTSP-port with your own.. This time you also have to replace any colon “:” in the RTSP link you used in VLC player with %3a

Heres an example

Code:
[URL=https://www.digitalworldz.co.uk/usertag.php?do=list&action=hash&hash=SERVICE]#SERVICE[/URL]  4097:0:0:0:0:0:0:0:0:0:rtsp%3a//username%[email protected]%3aRTSP-PORT/cam/realmonitor?channel=1&subtype=1
[URL=https://www.digitalworldz.co.uk/usertag.php?do=list&action=hash&hash=DESCRIPTION]#DESCRIPTION[/URL]  IPCAM
My link:

#SERVICE 4097:0:0:0:0:0:0:0:0:0:rtsp%3a//admin%[email protected]%3a554/cam/realmonitor?channel=1&subtype=1
#DESCRIPTION Secondary IPCAM

5. Reboot enigma on your device.
You can do this via CLI with the command below or via the GUI
Code:
killall -9 enigma2
6. Watch the live feed.
grab.jpg
Please note you will not be able to record, Pan, tilt or zoom and i am only able to get the secondary stream working. I cannot get the main HD stream with audio working. If I do I will add to the guide.
 
Last edited:

Bally12345

VIP Member
VIP Member
Joined
Dec 27, 2005
Messages
8,453
Likes
197
#2
Might give this a try, will come in handy for a quick way to view cctv on TV. At the moment I have to use app on my fire tv box

Sent from my SM-G930F using Tapatalk
 

Grimeire

VIP Member
VIP Member
Joined
Dec 3, 2012
Messages
817
Likes
287
#3
I can confirm this will work remotely if you open the RTSP port and configure a DDNS such as NO-IP
 

Bally12345

VIP Member
VIP Member
Joined
Dec 27, 2005
Messages
8,453
Likes
197
#4
Never got round to doing this as I don't know my password for cameras!

Sent from my SM-G930F using Tapatalk
 

Grimeire

VIP Member
VIP Member
Joined
Dec 3, 2012
Messages
817
Likes
287
#7
there i surely a rest button on the back of the camera since there seems to be a reset on everything
 
TEST
Top