Can't Play Recorded Videos
Posted: Tue Mar 23, 2021 4:28 pm
Hello, I'm new to ZoneMinder and really like what I see so far. I'm having a problem that several hours of Googling hasn't helped me solve.
ZoneMinder was working as expected, but then something happened (not sure what) and I can no longer play the recorded videos in the web browser. I'm guessing I might be missing something simple, but tried to include as much information below as possible.
Ubuntu 20.04.2 LTS
ZoneMinder v1.35.20 (installed from ppa:iconnor/zoneminder-master)
Google Chrome 89.0.4389.90 (Official Build) (64-bit)
When viewing the event, it shows what I think is the first frame of the video on the screen. The "Play", "Step Back", and "Step Forward" buttons are greyed out. The other buttons look active, but do nothing when clicked.
My browser can play the mp4 file that ZoneMinder creates for the event. I tested this by copying the file to a folder my browser can see and put that path to that file in Chrome's address bar.
ZoneMinder should be running as the "www-data" user
I have ZoneMinder starting as a service with the following zoneminder.service file:
Recordings are stored in /mnt/data/zm_recording
Here are the file/folder permissions:
As an example, here are the files that ZoneMinder created in /mnt/data/zm_recording/2021-03-23/6621:
Here are some periodic errors that I see in the web log:
Any help would be most appreciated.
ZoneMinder was working as expected, but then something happened (not sure what) and I can no longer play the recorded videos in the web browser. I'm guessing I might be missing something simple, but tried to include as much information below as possible.
Ubuntu 20.04.2 LTS
ZoneMinder v1.35.20 (installed from ppa:iconnor/zoneminder-master)
Google Chrome 89.0.4389.90 (Official Build) (64-bit)
When viewing the event, it shows what I think is the first frame of the video on the screen. The "Play", "Step Back", and "Step Forward" buttons are greyed out. The other buttons look active, but do nothing when clicked.
My browser can play the mp4 file that ZoneMinder creates for the event. I tested this by copying the file to a folder my browser can see and put that path to that file in Chrome's address bar.
ZoneMinder should be running as the "www-data" user
I have ZoneMinder starting as a service with the following zoneminder.service file:
Code: Select all
# ZoneMinder systemd unit file
# This file is intended to work with Debian distributions
[Unit]
Description=ZoneMinder CCTV recording and surveillance system
After=network.target mysql.service
# Remarked out so that it will start ZM on machines that don't have mysql installed
Requires=mysql.service
[Service]
User=www-data
Type=forking
ExecStart=/usr/bin/zmpkg.pl start
ExecReload=/usr/bin/zmpkg.pl restart
ExecStop=/usr/bin/zmpkg.pl stop
PIDFile=/run/zm/zm.pid
Restart=always
RestartSec=10
Environment=TZ=:/etc/localtime
TimeoutSec=600
[Install]
WantedBy=multi-user.target
Recordings are stored in /mnt/data/zm_recording
Here are the file/folder permissions:
Code: Select all
drwxr-xr-x 4 root root 4096 Mar 9 17:50 mnt
drwxrwsr-x 20 dataguest datauser 4096 Mar 23 10:25 data
drwxrwsr-x 4 www-data www-data 4096 Mar 9 17:31 zm_recording
Code: Select all
6621-video.mp4
alarm.jpg
snapshot-48x27.jpg
snapshot.jpg
Code: Select all
2021-03-23 11:18:30 zmwatch 481005 ERR Memory map file '/dev/shm/zm.mmap.2' does not exist in zmMemAttach. zmc might not be running. zmwatch.pl -
2021-03-23 10:35:14 web_js 478844 ERR Uncaught ReferenceError: action is not defined zm/cache/skins_classic_views_js_zones-classic-1615486613.js 2