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
- 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)
Code: Select all
ERR ReferenceError: Janus is not defined zm/cache/js_MonitorStream-base-1700834280.js 203
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.