errors adding h.264 camera using rtsp and vlclib

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
paynor
Posts: 2
Joined: Fri Feb 25, 2022 9:14 pm

errors adding h.264 camera using rtsp and vlclib

Post by paynor »

Trying on a fresh 1.36 installation on Ubuntu to add the first (h.264) camera.
On the same Ubuntu machine, VLC can see the cameras RTSP stream, no issues.
Tried with no success to access camera in ZM, with RTSP. Monitor remains red in console . Log shows:

Code: Select all

2022-02-25 16:28:01	zmdc		9981	ERR	'zmc -m 1' exited abnormally, exit status 255	zmdc.pl	-
2022-02-25 16:28:01	zmc_m1		12949	ERR	connect(), Could not connect	zm_comms.cpp	493
2022-02-25 16:28:01	zmdc		9981	INF	'zmc -m 1' starting at 22/02/25 16:28:01, pid = 12947	zmdc.pl	-
2022-02-25 16:28:01	zmdc		12947	INF	'zmc -m 1' started at 22/02/25 16:28:01	zmdc.pl	-
2022-02-25 16:28:00	zmdc		9981	INF	Starting pending process, zmc -m 1	zmdc.pl	-
2022-02-25 16:27:55	zmdc		9981	ERR	'zmc -m 1' exited abnormally, exit status 255	zmdc.pl	-
2022-02-25 16:27:55	undef		12919	INF	Starting Capture version 1.36.12	zmc.cpp	220
2022-02-25 16:27:55	zmc_m1		12921	FAT	Unable to connect RTSP socket	zm_rtsp.cpp	213
2022-02-25 16:27:55	zmc_m1		12921	ERR	connect(), Could not connect	zm_comms.cpp	493
2022-02-25 16:27:55	zmdc		12919	INF	'zmc -m 1' started at 22/02/25 16:27:55	zmdc.pl	-
2022-02-25 16:27:55	zmdc		9981	INF	'zmc -m 1' starting at 22/02/25 16:27:55, pid = 12919	zmdc.pl	-

Before that tried using libvlc and the path that works in VLC. Then the log showed:

Code: Select all

 2022-02-25 16:17:28	zmdc		9981	ERR	'zmc -m 1' exited abnormally, exit status 11	zmdc.pl	-
2022-02-25 16:17:27	zmc_m1		12054	INF	Backtrace complete, please execute the following command for more information: addr2line -e /usr/bin/zmc 0x5570dbb33da1 0x7f4a0e6eb3c0	zm_signal.cpp	108
2022-02-25 16:17:27	zmc_m1		12054	ERR	Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0) [0x7f4a0e6eb3c0]	zm_signal.cpp	101
2022-02-25 16:17:27	zmc_m1		12054	ERR	Backtrace 0: /usr/bin/zmc(+0xc4da1) [0x5570dbb33da1]	zm_signal.cpp	101
2022-02-25 16:17:27	zmc_m1		12054	ERR	Signal address is (nil), no instruction pointer	zm_signal.cpp	82
2022-02-25 16:17:27	zmc_m1		12054	ERR	Got signal 11 (Segmentation fault), crashing	zm_signal.cpp	50
2022-02-25 16:17:26	zmc_m1		12054	INF	Starting Capture version 1.36.12	zmc.cpp	220
2022-02-25 16:17:26	zmc_m1		12054	ERR	Error loading libvlc: libvlc.so: cannot open shared object file: No such file or directory	zm_libvlc_camera.cpp	49
2022-02-25 16:17:26	zmdc		12054	INF	'zmc -m 1' started at 22/02/25 16:17:26	zmdc.pl	-
2022-02-25 16:17:26	zmdc		9981	INF	'zmc -m 1' starting at 22/02/25 16:17:26, pid = 12054	zmdc.pl	-
2022-02-25 16:17:26	zmdc		9981	INF	Starting pending process, zmc -m 1	zmdc.pl 
Suggestions?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: errors adding h.264 camera using rtsp and vlclib

Post by Magic919 »

Use the ffmpeg source type.
-
happnatious1
Posts: 10
Joined: Sun Jan 02, 2022 4:38 pm

Re: errors adding h.264 camera using rtsp and vlclib

Post by happnatious1 »

Also don't forget to % escape special characters in the password.
paynor
Posts: 2
Joined: Fri Feb 25, 2022 9:14 pm

Re: errors adding h.264 camera using rtsp and vlclib

Post by paynor »

Magic919 wrote: Sat Feb 26, 2022 7:18 am Use the ffmpeg source type.
That worked, thanks.
Using exactly the same path as the path that works in VLC.
Post Reply