Help needed - ZM unable to take IP camera feed (RTSP)

Forum for questions and support relating to the 1.24.x releases only.
Locked
Vincent Tham
Posts: 4
Joined: Mon Jun 14, 2010 10:59 am

Help needed - ZM unable to take IP camera feed (RTSP)

Post by Vincent Tham »

Hi All,

I hope to get some help for to troubleshoot for an IP camera which can be viewed from the computer or over the internet. I've used totem with this command successfully (totem %U --toggle-controls --no-existing-session rtsp://192.168.1.3:554/video.mp4).

IP Camera : TP-Link TL-SC3130G
Zoneminder version: v1.24.2
O/S: Ubuntu 10.04 LTS

But I can't get it to work when I've setup a monitor with following:
Name : monitor-6
Source Type: ffmpeg
Function : modect
Source path: rtsp://192.168.1.3:554/video.mp4
Source colours: 24 bit colour
Capture width (pixels): 320
Capture Heigth (pixels): 240

Appreciated some guidance and hints to resolve this, I've been able to have this IP camera worked before I changed a router. Thank You.
VincentTham
falcon15500
Posts: 5
Joined: Wed Jun 22, 2011 11:22 pm

Re: Help needed - ZM unable to take IP camera feed (RTSP)

Post by falcon15500 »

Perhaps try setting it to "Remote" source type with "RTSP" source protocol?

M.
Vincent Tham
Posts: 4
Joined: Mon Jun 14, 2010 10:59 am

Re: Help needed - ZM unable to take IP camera feed (RTSP)

Post by Vincent Tham »

thanks falcon, i will try that.

I've got another lead, I saw the following error in my IP Camera log:

Jun 29 07:41:29 <info > RTSP: mp4 over UDP from 192.168.1.100
Jun 29 07:41:53 <info > RTSP: mp4 over UDP from 192.168.1.100
Jun 29 07:44:16 <info > RTSP: mp4 over UDP from 192.168.1.100
Jun 29 07:44:49 <info > RTSP: mp4 over UDP from 192.168.1.100
Jun 29 07:44:53 <info > RTSP: Timeout (Not Received OPTIONS/GET_PARAMETER)
Jun 29 07:45:16 <info > RTSP: mp4 over UDP from 192.168.1.100
Jun 29 07:46:39 <info > RTSP: mp4 over UDP from 192.168.1.100
Jun 29 07:48:16 <info > RTSP: Timeout (Not Received OPTIONS/GET_PARAMETER)

Anyone has any idea?
VincentTham
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Re: Help needed - ZM unable to take IP camera feed (RTSP)

Post by Flasheart »

The initial settings look good (remote is for jpg or mjpeg btw, not mpeg), although I'm not familiar with this camera or its paths.

The only thing that looks out of place is the resolution. Ip camera 'normals', if there is such a thing, tend to be 640x480.

Use image properties in totem, vlc, browser or whatever to get the feed's real x and y.

Note that if it is above 320x240, you'll probably need to set shared memory as per the wiki.
Vincent Tham
Posts: 4
Joined: Mon Jun 14, 2010 10:59 am

Re: Help needed - ZM unable to take IP camera feed (RTSP)

Post by Vincent Tham »

Hi All,
Thanks for the hints. Yes, it is a combination of shmmax and shmall as following in
/etc/sysctl.conf.

kernel.shmall = 1342177280
kernel.shmmax = 1342177280

And reconfigured to use:
Source type: ffmpeg
Source Path: rtsp://192.168.1.3:554/video.mp4

Finally, managed to get it working with
640x480 resolution.

Thanks all for the help.
VincentTham
Locked