VLC can view camera stream, but ZM can't

Support for the docker image maintained by dlandon
Post Reply
Rohlex32
Posts: 2
Joined: Thu Jan 14, 2021 5:11 am

VLC can view camera stream, but ZM can't

Post by Rohlex32 » Thu Jan 14, 2021 5:34 am

I was able to find the rtsp url using Windows' ONVIF Device Manager. From there I was able to view the camera stream from ONVIF Device Manager and from VLC network stream.

Settings:
Source Type: Ffmpeg
Source Path: rtsp://admin:<mypassword>@<ip>:554/media/video1
Method: TCP
Capture Resolution: 1920x1080 (same as what VLC lists)

I have the PATH_ZMS variable assigned to "/zm/cgi-bin/nph-zms", and haven't been receive any errors there.

If anyone had some hints or tips to help me identify why my Zoneminder container can't communicate with my network camera that would be appreciated!

docker-compose.yml:

Code: Select all

version: '3'
services:
  zm:
    image: dlandon/zoneminder:latest
    container_name: zm
    privileged: "true"
    ports:
      - "8443:443/tcp"
      - "9000:9000/tcp"
    volumes:
      - /mnt/Zoneminder:/config:rw
      - /mnt/Zoneminder/data:/var/cache/zoneminder:rw
    env_file: .env
.env file:

Code: Select all

TZ="America/Chicago"
SHMEM="50%"
PUID="99"
PGID="100"
INSTALL_HOOK="0"
INSTALL_FACE="0"
INSTALL_TINY_YOLO="0"
INSTALL_YOLO="0"
MULTI_PORT_START="0"
MULTI_PORT_END="0"  
PATH_ZMS="/zm/cgi-bin/nph-zms"
Logs are attached below
Attachments
zm-log.txt
(946.38 KiB) Downloaded 34 times

Magic919
Posts: 474
Joined: Wed Sep 18, 2013 6:56 am

Re: VLC can view camera stream, but ZM can't

Post by Magic919 » Thu Jan 14, 2021 7:30 am

Start with the fatal errors in the log. Like this one

Code: Select all

No host specified for remote camera
Sounds like the monitor is wrongly configured in ZM.

Rohlex32
Posts: 2
Joined: Thu Jan 14, 2021 5:11 am

Re: VLC can view camera stream, but ZM can't

Post by Rohlex32 » Sun Jan 17, 2021 5:31 am

SOLVED: I added 2 additional lines to my docker-compose file. I'm not sure if the 'network_mode: "bridge"' helped, but the 'shm_size: 8G' definitely did.

Code: Select all

version: '3'
services:
  nvr:
    image: dlandon/zoneminder:latest
    container_name: nvr
    privileged: "true"
    restart: always
    ports:
      - "8443:443/tcp"
      - "9000:9000/tcp"
    network_mode: "bridge"
    volumes:
      - /mnt/Zoneminder/config:/config:rw
      - /mnt/Zoneminder/data:/var/cache/zoneminder:rw
    shm_size: 8G
    env_file: .env

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest