No Video Files Found

Forum for questions and support relating to the 1.28.x releases only.
Locked
TheWalrus
Posts: 4
Joined: Thu Dec 17, 2015 9:48 pm

No Video Files Found

Post by TheWalrus »

I'm running version 1.28.1 on Arch Linux x64. After generating a video from an event I cannot see it in the web interface for download. I went to the directory of the event and found it there. I downloaded it manually and it plays fine. Why would the web interface not want to show this file? The stream and images still all show up fine in the interface, and this video file has all the same permissions.
Note: I am running a ZFS volume to hold the images, I changed the links from the zoneminder web directory to do this.
Vispen74
Posts: 17
Joined: Thu May 14, 2015 7:12 am

Re: No Video Files Found

Post by Vispen74 »

Have you done this in options?
Change PATH_ZMS to /zm/cgi-bin/nph-zms
TheWalrus
Posts: 4
Joined: Thu Dec 17, 2015 9:48 pm

Re: No Video Files Found

Post by TheWalrus »

My cgi-bin directory was a default link to the webserver's root cgi-bin (/srv/http/zoneminder/cgi-bin -> /srv/http/cgi-bin). My httpd ZoneMinder config represents this properly as well. Wouldn't an improper cgi setup lead to most things in the ZoneMinder interface not working? Everything otherwise has been fine; monitor live-streams, preview recordings and images, setup alarms and zones, all of this is fine.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: No Video Files Found

Post by knight-of-ni »

Working fine here. When I open an event, click "video", then click "Generate Video", it will think for a moment. Then it will state the Video Generation Succeeded and the Video file will immediately appear below in the same popup window, allowing me to download the file.

How big is the event you are trying convert? Are you sure you waited long enough? What does the event log say? You should have at least two messages in your logs regarding he video generation and its success or failure.
I changed the links from the zoneminder web directory to do this
And the next time you upgrade, the link will be put back to the way it was, which will point to an empty folder.
If you forget about that and try to start ZoneMinder, all your events will be deleted from the database because ZoneMinder will think you deleted the events from the disk.

Instead, use the "zfs set" command to move the mountpoint of your filesystem to the real folder ZoneMinder expects to find its events.
On my system, that folder is /var/lib/zoneminder/events

For example:

Code: Select all

[abauer@bauerhaus ~]$ df -h /var/lib/zoneminder/events
Filesystem      Size  Used Avail Use% Mounted on
tank/zmevents   500G  473G   28G  95% /var/lib/zoneminder/events
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
TheWalrus
Posts: 4
Joined: Thu Dec 17, 2015 9:48 pm

Re: No Video Files Found

Post by TheWalrus »

knnniggett thankyou for the heads up on the directories. I'll change the ZFS mountpoints to avoid that issue.
As for the videos; my system does indeed generate the video file correctly. The following is all I get with debugging on:

Code: Select all

zmvideo.log:12/31/2015 09:18:36.902156 zmvideo[6727].INF [Creating video file fnLow-1190-r1-s1.avi for event 1190]
zmvideo.log:12/31/2015 09:18:40.918203 zmvideo[6727].INF [Finished fnLow-1190-r1-s1.avi]
And I can navigate to the directory the video gets generated in and then scp it to my desktop, where it plays fine. I checked my other log for httpd or php errors, but they seem pretty quiet also.
TheWalrus
Posts: 4
Joined: Thu Dec 17, 2015 9:48 pm

Re: No Video Files Found

Post by TheWalrus »

Updating to ZM 1.29 and PHP 7 today has fixed this issue for me. Thanks for input and suggestions!
Locked