I have two Amcrest 1080p IP2M-841B units that are impacted by these same issues.
These following issues will happen at random and get worse over time:
- - Image will glitch, skip frames, corrupt by going all green or partially green, and sometimes look like a bad VHS tape attempting to track. (completely missing keyframes)
- While monitoring latency/ping results, it will show spikes in excess of 600ms, 1200ms and 2000ms over wireless (as well as hard-wired) when this is happening.
- Accessing the control panel for the camera will be dreadfully slow and unresponsive (as expected considering the latency, really).
I'm accessing the camera with ffmpeg powered tools utilizing RTSP (rtsp://user:pass@ipcam1) for my live stream on twitch.tv/draco - OBS (video plugin) and OBS-MP (aka OBS Studio) also will see the same problems ingesting the feed. Both of these streaming programs do use ffmpeg-related libraries for A/V.
ffmpeg when run by console on my Linux server is littered with frame drops even while the above listed issues aren't happening or heavily apparent. Output of this is pasted below.
And just to stress this point: Rebooting the camera resumes proper functionality! Over time, something is happening which is making the unit fall unstable in delivering packets. My assumption is high CPU usage due to a runaway process but my guesses are based on no engineering knowledge on the cameras hardware and software.
Simple output example:
https://www.dropbox.com/s/e6zq6d5w6i9ya ... 1.png?dl=0
ffmpeg:
Code: Select all
Input #0, rtsp, from 'rtsp://admin:securepw@amcam02:554/cam/realmonitor?channel=1&subtype=0':
Metadata:
title : Media Server
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 15 fps, 100 tbr, 90k tbn, 30 tbc
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
[libx264 @ 0x80ac43920] using SAR=1/1
[libx264 @ 0x80ac43920] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x80ac43920] profile High, level 4.0
[libx264 @ 0x80ac43920] 264 - core 144 r2533 c8a773e - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=36 lookahead_threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=cbr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2000 vbv_bufsize=2000 nal_hrd=cbr filler=1 ip_ratio=1.40 aq=1:1.00
[flv @ 0x80ac53620] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, flv, to 'rtmp://cast:1935/cast/test':
Metadata:
title : Media Server
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 30 fps, 1k tbn, 30 tbc
Metadata:
encoder : Lavc56.60.100 libx264
Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 16000 Hz, mono
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
Past duration 0.999992 too large
[NULL @ 0x80ac41b20] RTP: missed 11 packets
Last message repeated 2 times
[NULL @ 0x80ac41b20] RTP: missed 151 packets
[flv @ 0x80ac53620] Non-monotonous DTS in output stream 0:1; previous: 4080, current: 4060; changing to 4080. This may result in incorrect timestamps in the output file.
[NULL @ 0x80ac41b20] RTP: missed 1 packets
[h264 @ 0x80ac4c520] error while decoding MB 33 41, bytestream -5
[h264 @ 0x80ac4c520] concealing 336 DC, 336 AC, 336 MV errors in P frame
[NULL @ 0x80ac41b20] RTP: missed 4 packets
[NULL @ 0x80ac41b20] SEI type 218 size 1528 truncated at 272
[h264 @ 0x80ac4ca20] SEI type 218 size 1528 truncated at 261
[NULL @ 0x80ac42020] RTP: missed 1 packets
[NULL @ 0x80ac41b20] RTP: missed 7 packets
[NULL @ 0x80ac41b20] RTP: missed 1 packets
[h264 @ 0x80ac4b120] left block unavailable for requested intra4x4 mode -1 at 0 22
[h264 @ 0x80ac4b120] error while decoding MB 0 22, bytestream 19402
[h264 @ 0x80ac4b120] concealing 1889 DC, 1889 AC, 1889 MV errors in I frame
- Draco
twitch.tv/draco
(Also, nice touch using OCRemix tracks for hold music. I'm just not entirely impressed by who I got on the phone. And for the love of god, stop using aggressive captcha on this forum. It constantly pops up on hitting Preview Post) ~_~