Amcrest camera

Forum for questions and support relating to the 1.29.x releases only.
Locked
algae
Posts: 16
Joined: Fri Jun 03, 2016 1:55 am

Amcrest camera

Post by algae »

Hi, I'm 'running ZM 1.29 on Ubuntu 14.0.4. I have an Amcrest IPM-722S camera which is working with no problem over RTSP and h.264. I am trying to add another Amcrest camera - an IP3M-954E to the system. I have the camera configured for H.264 but can not get video from it. The log gets flooded with errors similar to:

ERR [Error while decoding frame 0]
zmc[21762]: ERR [256: 00 00 01 41 30 06 01 09 00 3c 08 24 68 00 00 03 00 01 80 00 00 01 00 9a 22 22 52 b8 bf 4a e6 92 5a bc a4 3d 0c 27 d8 a3 8d 29 8b 7c 40 ef 15 cb 20 6e 2d c5 39 01 7b 23 8f b0 6d eb a1 00 4b 1e 7c f1 60 0e fb 38 e5 c2 c7 a3 38 66 da 85 9b e0 f9 a2 99 2d 4f 1b 4c e7 8a a7 32 df 5e cb af b4 78 de bc 56 08 3e 7f 4f 02 6f fd da 95 8a f0 c3 c4 b3 0f f1 16 d8 fe b4 db f2 a3 5f da 11 9a 83 18 58 20 12 f6 8e fa d6 01 e6 bf fa b7 0f a1 f9 29 2f d9 df 9f 5f 45 1c d3 9e 27 73 41 92 0a f5 e8 05 4e f6 ec 2b 43 71 29 a6 37 ed 63 5a a2 80 ca e5 d5 90 f6 15 0b 98 bc b6 ca 63 62 96 bd 9e 9d e3 18 9a 68 b7 e2 08 54 9b db 54 19 7f 9e 28 52 06 c8 41 7d aa 44 09 ed 47 6e 33 ea 10 8f e6 08 7a 84 17 84 d0 f2 5f 36 41 9e b4 3b 81 9c 00 4c 04 eb 31 7b 04 b9 11 6e c1 a6 40 d6 9d b5 22]

i can get it to work using MJPEG but the video quality is poor. Any suggestions?
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Amcrest camera

Post by bbunge »

Are you using Source Type FFMPEG?
algae
Posts: 16
Joined: Fri Jun 03, 2016 1:55 am

Re: Amcrest camera

Post by algae »

No, I've got it as Remote. I just tried FFMPEG and now I see just a blue screen when viewing the monitor. I double checked that resolution and it is correct.
algae
Posts: 16
Joined: Fri Jun 03, 2016 1:55 am

Re: Amcrest camera

Post by algae »

I ended up getting this working by setting the type to Libvlc. Thanks for the suggestion. I'm curious, what is the difference between remote, libvlc and FFMPEG?
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Amcrest camera

Post by SteveGilvarry »

All different methods of doing the same thing that have been developed over the years.
Remote uses zm code to handle RTSP and passes to ffmpeg to decode it, highly possible that this is not perfect as we found it was using ffmpeg avpacket's but not filling all the fields in.
libvlc uses libvlc which uses Live555 code to access the RTSP stream and I believe now vlc's own code to decode. It works but no one really developing it actively
ffmpeg is probably the most active development, uses ffmpeg libs to access RTSP and decode it. Known issues with UDP streams on high res/fps, so set to RTP/RTSP to force TCP. I would try and use it first, and in some cases like in development features it is the only one that works.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
mjbrenegan
Posts: 7
Joined: Mon Jun 08, 2015 10:39 am

Re: Amcrest camera

Post by mjbrenegan »

Can you please tell me how you set up that IPM-722s using H.264 in zoneminder? I can't seem to get it to work. I am using ZM 1.28.1 under Fedora 21.

Thanks in advance.
mjbrenegan
Posts: 7
Joined: Mon Jun 08, 2015 10:39 am

Re: Amcrest camera

Post by mjbrenegan »

Got it figured out. Here is what's needed to get the ipm-722s camera working with the h.264 hd stream:

Under General tab, set it to FFMPEG
Under Source tab, set:
Source Path to rtsp://<user>:<password>@<IP>:<Port>/cam/realmonitor?channel=1&subtype=0
Remote Method RTP/RTSP

(The Port is probably the default port for rtsp, 554, unless you changed it)
(set the channel to the channel of your camera)
(subtype 0 is the Main Stream)

Hope this helps somebody. My problem was that I had to specify the port number, as well as set it to FFMPEG :)
Locked