Zoneminder 1.37.x /w Janus guides?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Phylarchy
Posts: 1
Joined: Mon Dec 04, 2023 11:53 am

Zoneminder 1.37.x /w Janus guides?

Post by Phylarchy »

I recently came over a YouTube video that explained how to set up Janus with Zoneminder 1.37.x in a fairly quick and simple manner. It appears impossible to adapt what I saw to a Debian system, though.

Since there isn't much information available on integrating Janus with Zoneminder, I'd want to get advice from others. to find out whether anyone is able to use Debian with this at all.

- I've installed Zoneminder master v1.37.47, the most recent version, on Debian 12. (I realized it's picky about password length, so I set a short password for my camera for the time being.)
- The packages janus and libjs-janus-gateway are installed.
- All of the configuration files appear to be at /etc/janus/
- Version of Curl (I've read a lot about curl problems related to RTSP authentication:

Code: Select all

ii  curl                                 7.88.1-10+deb12u4                 amd64        command line tool for transferring data with URL syntax
ii  libcurl3-gnutls:amd64                7.88.1-10+deb12u4                 amd64        easy-to-use client-side URL transfer library (GnuTLS flavour)
ii  libcurl4:amd64                       7.88.1-10+deb12u4                 amd64        easy-to-use client-side URL transfer library (OpenSSL flavour)
ii  libcurl4-gnutls-dev:amd64            7.88.1-10+deb12u4                 amd64        development files and documentation for libcurl (GnuTLS flavour)
ii  php-curl                             2:8.2+93                          all          CURL module for PHP [default]
ii  php8.2-curl                          8.2.7-1~deb12u1                   amd64        CURL module for PHP
- janus-gateway path seems to be /usr/share/javascript/janus-gateway
- So created a symlink /usr/share/javascript/janus-gateway > /usr/share/javascript/janus
Getting Janus to function error-free appears nearly unattainable. It does appear to run, though. This is a sample of a log:

Code: Select all

Janus Lua plugin initialized!
Loading plugin 'libjanus_recordplay.so'...
JANUS Record&Play plugin initialized!
Loading plugin 'libjanus_sip.so'...
JANUS SIP plugin initialized!
Loading plugin 'libjanus_voicemail.so'...
JANUS VoiceMail plugin initialized!
Loading plugin 'libjanus_streaming.so'...
JANUS Streaming plugin initialized!
Loading plugin 'libjanus_audiobridge.so'...
JANUS AudioBridge plugin initialized!
Loading plugin 'libjanus_textroom.so'...
JANUS TextRoom plugin initialized!
Transport plugins folder: /usr/lib/x86_64-linux-gnu/janus/transports
Loading transport plugin 'libjanus_rabbitmq.so'...
RabbitMQ SSL support disabled
[WARN] RabbitMQ support disabled for both Janus and Admin API, giving up
[WARN] The 'janus.transport.rabbitmq' plugin could not be initialized
Loading transport plugin 'libjanus_pfunix.so'...
[WARN] No Unix Sockets server started, giving up...
[WARN] The 'janus.transport.pfunix' plugin could not be initialized
Loading transport plugin 'libjanus_nanomsg.so'...
JANUS Nanomsg transport plugin initialized!
Loading transport plugin 'libjanus_http.so'...
Nanomsg thread started
HTTP transport timer started
HTTP webserver started (port 8088, /janus path listener)...
JANUS REST (HTTP/HTTPS) transport plugin initialized!
Loading transport plugin 'libjanus_websockets.so'...
libwebsockets logging: 0
Websockets server started (port 8188)...
JANUS WebSockets transport plugin initialized!
Loading transport plugin 'libjanus_mqtt.so'...
WebSockets thread started
[ERR] [config.c:janus_config_parse:205] Error parsing config file at line 30: syntax error
[WARN] Couldn't find .jcfg configuration file (janus.transport.mqtt), trying .cfg
[ERR] [config.c:janus_config_parse:191]   -- Error reading configuration file 'janus.transport.mqtt.cfg'... error 2 (No such file or directory)
MQTT SSL support disabled
[WARN] MQTT support disabled for both Janus and Admin API, giving up
JANUS MQTT transport plugin destroyed!
[WARN] The 'janus.transport.mqtt' plugin could not be initialized
[ERR] [janus.c:janus_process_incoming_request:1174] Couldn't find any session 5212654536743566...
Creating new session: 2545071495069369; 0x7f9e94002840
[ERR] [janus.c:janus_process_incoming_request:1184] Couldn't find any handle 7814622882264342 in session 2545071495069369...
Creating new handle in session 2545071495069369: 2376262396498397; 0x7f9e94002840 0x7f9e94002f30
[WARN] No c-line or source for RTSP video address, resolving server address...
[1] New video stream! (#0, ssrc=1436141158, index 0)
The video stream appears to be operational. But Zoneminder still doesn't have a live view. In the zm logs, I receive the following:

Code: Select all

ERR	ReferenceError: Janus is not defined	zm/cache/js_MonitorStream-base-1700834280.js	203
Otherwise there is no other mistake.

From what am I lacking here? For now I'm rolling back my snapshot to my original setup with 1.36.x but would love to get janus going given the CPU overhead and being able to stream audio.

Anywise, any little amount of information would be much valued. With luck, we will soon have a more thorough guide ready.
Life is like a box of chocolates. You never know what you’re going to get
wlssenatus
Posts: 7
Joined: Thu Feb 09, 2017 1:55 am

Re: Zoneminder 1.37.x /w Janus guides?

Post by wlssenatus »

I'm close to where you are, also on Debian 12, with JANUS_PATH explicitly supplied. I have no error message in the zmc_m log, and the same ones you do in the janus log. I can see the camera (a Reolink RLC-510) in the console thumbnail live, but attempting to bring it up just gives an empty window. Oddly, none of the icon links (e.g. edit) work from here either with Janus enabled. No luck either with " Janus Use RTSP Restream", although that has an error in trynig to find the janus mountpoint.
Screenshot from 2024-07-21 22-51-14.png
Screenshot from 2024-07-21 22-51-14.png (101.89 KiB) Viewed 2642 times
dougmccrary
Posts: 1320
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Zoneminder 1.37.x /w Janus guides?

Post by dougmccrary »

In case you didn't notice, there's a 1.37 specific board.
theongreyjoy
Posts: 1
Joined: Tue Aug 06, 2024 9:16 am

Re: Zoneminder 1.37.x /w Janus guides?

Post by theongreyjoy »

Have you verified that the Janus JavaScript library is correctly included and accessible in Zoneminder? The error `Janus is not defined` typically means that Zoneminder is unable to locate or load the Janus JavaScript files properly. Buckshot Roulette
ruralsupporter
Posts: 1
Joined: Mon Sep 16, 2024 2:57 am

Re: Zoneminder 1.37.x /w Janus guides?

Post by ruralsupporter »

i don't known nothing about janus? why janus?
I probably begin with the first error
[ERR] [config.dinosaur gamec:janus_config_parse:205] Error parsing config file at line 30: syntax error
User avatar
iconnor
Posts: 3191
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Zoneminder 1.37.x /w Janus guides?

Post by iconnor »

I find setting up rtsp2web far easier than janus, and last I checked it worked better.
maguire
Posts: 1
Joined: Fri Oct 04, 2024 2:16 am

Re: Zoneminder 1.37.x /w Janus guides?

Post by maguire »

I am very grateful for your advice. It is very helpful and interesting.
Post Reply