Page 1 of 1

export single event to video file

Posted: Sun Nov 05, 2017 12:17 pm
by alabamatoy
Apologies in advance if this has already been answered, but I couldn't find it via search.

ZM 1.30.0 on Ubuntu 16.04 server

I would like to be able to click on a single event and export to AVI or MPEG. In the event display window, choosing export and selecting the "export video" with zip checked results in "export failed" and an error in the log:

Code: Select all

2017-11-05 07:11:06.839808	web_php		9560	ERR	Export Failed	/usr/share/zoneminder/www/includes/functions.php	1993
2017-11-05 07:11:06.837544	web_php		9560	ERR	Command 'cat 'temp/zmFileList.txt' | zip -q 'temp/zmExport.zip' -@' returned with status 12	/usr/share/zoneminder/www/skins/classic/includes/export_functions.php	943
I can export the event manually, by brewing up a ffmpeg command line, but this is a PITA because of the whole event directory structure. And yes, ffmpeg is installed and its path is correct in the ZM config. I would very much like to have a single click to produce a video file from a single event, and then offer that file for download.

Has anyone made this work?

Re: export single event to video file

Posted: Sun Nov 05, 2017 1:31 pm
by bbunge
It is a two step process.
create video
export video
make sure your PATH_FFMPEG is set and enabled and video creation should work.

Re: export single event to video file

Posted: Mon Nov 06, 2017 6:08 pm
by alabamatoy
Presumably, the "create video" step would appear on the event dialog. It does not.

I have a second ZM setup which is set to record everything (ie the monitors are set to "record"), and when I view an event there, the "video" link appears. On the ZM where I am doing motion detection (monitors are set to "modect") I do not see the video link, so I see no way to create the video.

What is the difference? How do I get the video link to appear on the event?

Both of my ZMs are same version and same OS, but one is server, the other is workstation (should have no bearing on the issue).

Re: export single event to video file

Posted: Mon Nov 06, 2017 8:35 pm
by digital-gnome
Set up OPT_FFMPEG and PATH_FFMPEG in Options>Images.

Re: export single event to video file

Posted: Mon Nov 06, 2017 8:37 pm
by bbunge
See my prior comment about enabling ffmpeg.

Re: export single event to video file

Posted: Mon Nov 06, 2017 8:52 pm
by digital-gnome
Yup. Just reinforcing that. He said he's on 1.30.0 and it hides the Video link if ffmpeg isn't enabled unlike 1.30.4 where it just doesn't work.

Re: export single event to video file

Posted: Tue Nov 07, 2017 1:26 am
by alabamatoy
Gents, thank you. Obvious oversight on my part to miss the OPT_FFMPEG. I am getting myopic in my old age.

Re: export single event to video file

Posted: Tue Nov 07, 2017 1:33 am
by bbunge
alabamatoy wrote: Tue Nov 07, 2017 1:26 am Gents, thank you. Obvious oversight on my part to miss the OPT_FFMPEG. I am getting myopic in my old age.
Us old guys (70) have to keep the kids in line...
I go back to when numeric control machines were run with seven hole punch tape!