Unable to view configure stream

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
NugentS
Posts: 7
Joined: Mon Aug 08, 2022 10:10 pm

Unable to view configure stream

Post by NugentS »

Hi. New User here. I am currently using Synology Surveillance Station - which is OK but I thought I would have a poke around ZM v1.36.12 on Docker just to see how it works.
Camera: RLC-520
FW: v3.0.0.136_20121112
Address of camera 192.168.38.163

ZM: v1.36.12 running in Docker on TrueNAS Scale

With VLC I can see: rtmp://192.168.38.163/bcs/channel0_sub.bcs?channel=0&stream=1&user=admin&password=XXXXXXXXXX
I get a stream (its meant to be 640*480 FPS 7, 512 Kbps, and looks like it

So I put the same URL into ZM:
General:
Server: Auto
Source Type: Ffmpeg
Function Mocord
Analysis: Disabled (for now)
Source:
Source Path: rtmp://192.168.38.163/bcs/channel0_sub.bcs?channel=0&stream=1&user=admin&password=XXXXXXXXXXX
Method: TCP
Target Colorspace: 24bit
Capture Resolution: 640*480
Orientation: Normal
Deinterlacing: Disabled

Save

I go back to the Console. The Camera has a Red Circle near it and the Source is in red - not good signs
So I go to Log
I am guessing the relavent message would seem to be:
"Unable to open input rtmp://192.168.38.163/bcs/channel0_sub.bcs?channel=0&stream=1&user=admin&password=XXXXXXXXXXX due to: Immediate
exit requested"
Whatever that means

Any ideas?
My intention was to look for movement on the low resolution stream and then trigger recording on the high res stream. But as I cannot see the first stream - the rest clearly won't work.
dougmccrary
Posts: 1150
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Unable to view configure stream

Post by dougmccrary »

You probably want sever none and color 32 bit.
I suppose you've already double checked the url and password.
NugentS
Posts: 7
Joined: Mon Aug 08, 2022 10:10 pm

Re: Unable to view configure stream

Post by NugentS »

The URL works with VLC when I copy and paste from ZM
I have changed the other suggested settings - no joy
Last edited by NugentS on Mon Aug 08, 2022 11:12 pm, edited 1 time in total.
dougmccrary
Posts: 1150
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Unable to view configure stream

Post by dougmccrary »

UDP?
NugentS
Posts: 7
Joined: Mon Aug 08, 2022 10:10 pm

Re: Unable to view configure stream

Post by NugentS »

Tried that as well
rstp / rmtp with the same rest of the URL.
dougmccrary
Posts: 1150
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Unable to view configure stream

Post by dougmccrary »

Crud.
Does the onvif function show/see it?
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Unable to view configure stream

Post by iconnor »

First off 1.36.12 is really old.

Next, reolinks give us trouble, but they do generally work so we should be able to get this working.

If the keyframe interval is too large zmc will be killed by zmwatch before it gets enough frames to figure out what the stream is. So you might try disabling zmwatch temporarily to see if that's it. (sudo zmdc.pl stop zmwatch.pl). If that works then you need to increase the WATCH_MAX_DELAY under Options->System.
NugentS
Posts: 7
Joined: Mon Aug 08, 2022 10:10 pm

Re: Unable to view configure stream

Post by NugentS »

Stopping zmwatch seemed to have no effect

Log Files just show
Date/Time,Component,Server,PID,Level,Message,File,Line
"2022-08-09 03:09:22",zmc_m2,,32762,ERR,"Failed to prime capture of initial monitor",zmc.cpp,258
"2022-08-09 03:09:22",zmc_m2,,32762,ERR,"Unable to open input rtsp://192.168.38.163/bcs/channel0_sub.bcs?channel=0&stream=1&user=admin&password=XXXXXXXXXXXXX due to: Immediate exit requested",zm_ffmpeg_camera.cpp,321

If thats any help - its just cycles round and around (this is after stopping zmwatch

I have no choice about the version - using TrueNAS Scale and the version available through Truecharts. Even they say its experimental.

I have an assorted selection of cameras - they all work through Synology apart from one that just sometimes works and sometimes vanishes off the network for a day or so, then comes back again (not this camera). I even have a new RLC-842A still boxed that I keep meaning to do something with.

I restarted the container and looked at the logs and got....(if its any use)

Date/Time,Component,Server,PID,Level,Message,File,Line
"2022-08-09 03:21:20",web_php,,30234,DBG,"View: request Request: log Action: User: admin",/usr/share/zoneminder/www/index.php,233
"2022-08-09 03:21:20",web_php,,30234,DBG,"Setting cookie parameters to Array( [lifetime] => 3600 [path] => / [domain] => [secure] => [httponly] => 1 [samesite] => Strict)",/usr/share/zoneminder/www/includes/session.php,28
"2022-08-09 03:21:18",zmdc,,30073,INF,"'zmc -m 2' crashed, signal 8",zmdc.pl,'-
"2022-08-09 03:21:18",zmdc,,30073,WAR,"'zmc -m 2' has not stopped at 22/08/09 03:21:18 after 10 seconds. Sending KILL to pid 30283",zmdc.pl,'-
"2022-08-09 03:21:18",web_php,,30234,DBG,"View: request Request: log Action: User: admin",/usr/share/zoneminder/www/index.php,233
"2022-08-09 03:21:18",web_php,,30234,DBG,"Setting cookie parameters to Array( [lifetime] => 3600 [path] => / [domain] => [secure] => [httponly] => 1 [samesite] => Strict)",/usr/share/zoneminder/www/includes/session.php,28
"2022-08-09 03:21:15",web_php,,30234,DBG,"View: request Request: log Action: User: admin",/usr/share/zoneminder/www/index.php,233
"2022-08-09 03:21:15",web_php,,30234,DBG,"Setting cookie parameters to Array( [lifetime] => 3600 [path] => / [domain] => [secure] => [httponly] => 1 [samesite] => Strict)",/usr/share/zoneminder/www/includes/session.php,28
"2022-08-09 03:21:10",web_php,,30234,DBG,"View: request Request: log Action: User: admin",/usr/share/zoneminder/www/index.php,233
"2022-08-09 03:21:10",web_php,,30234,DBG,"Setting cookie parameters to Array( [lifetime] => 3600 [path] => / [domain] => [secure] => [httponly] => 1 [samesite] => Strict)",/usr/share/zoneminder/www/includes/session.php,28
"2022-08-09 03:21:09",zmc_m2,,30283,DB2,"Starting connection attempt to 192.168.38.163 port 554",zm_ffmpeg.cpp,69
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Address 192.168.38.163 port 554",zm_ffmpeg.cpp,69
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Interleaved list of addresses:",zm_ffmpeg.cpp,69
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Address 192.168.38.163 port 554",zm_ffmpeg.cpp,69
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Original list of addresses:",zm_ffmpeg.cpp,69
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"No default whitelist set",zm_ffmpeg.cpp,69
"2022-08-09 03:21:09",zmc_m2,,30283,DB8,"Probing rtsp score:100 size:0",zm_ffmpeg.cpp,69
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Calling avformat_open_input for rtsp://192.168.38.163/bcs/channel0_sub.bcs?channel=0&stream=1&user=admin&password=XXXXXXXXX",zm_ffmpeg_camera.cpp,307
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Priming capture from rtsp://192.168.38.163/bcs/channel0_sub.bcs?channel=0&stream=1&user=admin&password=XXXXXXXXX",zm_ffmpeg_camera.cpp,183
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Success connecting",zm_monitor.cpp,1067
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Allocated 3 3 image buffers",zm_monitor.cpp,1014
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Aligning shared memory images to the next 64 byte boundary",zm_monitor.cpp,1004
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Mapped file /dev/shm/zm.mmap.2 (3691960 bytes) to unlocked memory",zm_monitor.cpp,971
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Unable to map file /dev/shm/zm.mmap.2 (3691960 bytes) to locked memory, trying unlocked",zm_monitor.cpp,968
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"MMap file size is 0",zm_monitor.cpp,963
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Success opening mmap file at (/dev/shm/zm.mmap.2)",zm_monitor.cpp,930
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Connecting to monitor. Purpose is 1",zm_monitor.cpp,917
"2022-08-09 03:21:09",zmc_m2,,30283,INF,"Starting Capture version 1.36.12",zmc.cpp,220
"2022-08-09 03:21:09",zmc_m2,,30283,DB2,"1 monitors loaded",zmc.cpp,217
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Loaded monitor 2(Front of House (Sub)), 1 zones",zm_monitor.cpp,694
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Reloading zones for monitor Front of House (Sub) have 1",zm_monitor.cpp,2330
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Successfully parsed polygon string 0,479",zm_zone.cpp,777
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Got coordinate 0,479 from polygon string",zm_zone.cpp,765
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Got coordinate 639,479 from polygon string",zm_zone.cpp,765
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Got coordinate 639,0 from polygon string",zm_zone.cpp,765
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Got coordinate 0,0 from polygon string",zm_zone.cpp,765
"2022-08-09 03:21:09",zmc_m2,,30283,DB5,"Parsing polygon 0,0 639,0 639,479 0,479",zm_zone.cpp,870
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Got 1 zones for monitor Front of House (Sub)",zm_zone.cpp,839
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Reloading zones for monitor Front of House (Sub) have 0",zm_monitor.cpp,2328
"2022-08-09 03:21:09",zmc_m2,,30283,INF,"Enabling ffmpeg logs, as LOG_DEBUG+LOG_FFMPEG are enabled in options",zm_ffmpeg.cpp,84
"2022-08-09 03:21:09",zmc_m2,,30283,DB2,"New camera id: 2 width: 640 line size: 2560 height: 480 colours: 4 subpixelorder: 8 capture: 1",zm_camera.cpp,68
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"mem.size(8) SharedData=760 TriggerData=560 VideoStoreData=4128 timestamps=48 images=3x1228800 = 3686400 total=3691960",zm_monitor.cpp,658
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Setting max_video_packet_count to 0",zm_packetqueue.cpp,654
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Setting pre_event_video_packet_count to 5",zm_packetqueue.cpp,660
"2022-08-09 03:21:09",zmc_m2,,30283,DB3,"Decoding enabled: 1 function 5 Mocord savejpegs 3 videowriter 2",zm_monitor.cpp,570
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Reloading linked monitors for monitor Front of House (Sub), '(null)'",zm_monitor.cpp,2336
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"Have camera type File",zm_monitor.cpp,493
"2022-08-09 03:21:09",zmc_m2,,30283,DB1,"No id passed to Storage constructor. Using default path /var/cache/zoneminder/events instead",zm_storage.cpp,91
"2022-08-09 03:21:09",zmc_m2,,30283,DB4,"Image buffer copy: Using standard memcpy",zm_image.cpp,566
"2022-08-09 03:21:09",zmc_m2,,30283,DB4,"Deinterlace: Using standard functions",zm_image.cpp,553
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Unable to view configure stream

Post by iconnor »

We have had the best results with the rtmp path, so I'd suggest sticking with that for now...

The general format that works for me is:

rtmp://ip/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=password
NugentS
Posts: 7
Joined: Mon Aug 08, 2022 10:10 pm

Re: Unable to view configure stream

Post by NugentS »

Not working for me
Are there any settings on the camera I should check?

Although with VLC the stream works for me - so it ought to be good. I just watched a cat walk across my driveway on VLC. But nothing on Zoneminder
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Unable to view configure stream

Post by iconnor »

Are there strange characters in password? That sometimes screws things up.
NugentS
Posts: 7
Joined: Mon Aug 08, 2022 10:10 pm

Re: Unable to view configure stream

Post by NugentS »

Nope - just A-Z, a-z and 0-9
NugentS
Posts: 7
Joined: Mon Aug 08, 2022 10:10 pm

Re: Unable to view configure stream

Post by NugentS »

I think I shall give up till a more modern version is available

Thanks all for the help
Post Reply