export single event to video file

Forum for questions and support relating to the 1.30.x releases only.
Locked
alabamatoy
Posts: 360
Joined: Sun Jun 05, 2016 2:53 pm

export single event to video file

Post 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?
bbunge
Posts: 2944
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: export single event to video file

Post 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.
alabamatoy
Posts: 360
Joined: Sun Jun 05, 2016 2:53 pm

Re: export single event to video file

Post 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).
digital-gnome
Posts: 17
Joined: Mon Sep 04, 2017 12:47 am

Re: export single event to video file

Post by digital-gnome »

Set up OPT_FFMPEG and PATH_FFMPEG in Options>Images.
bbunge
Posts: 2944
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: export single event to video file

Post by bbunge »

See my prior comment about enabling ffmpeg.
digital-gnome
Posts: 17
Joined: Mon Sep 04, 2017 12:47 am

Re: export single event to video file

Post 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.
alabamatoy
Posts: 360
Joined: Sun Jun 05, 2016 2:53 pm

Re: export single event to video file

Post by alabamatoy »

Gents, thank you. Obvious oversight on my part to miss the OPT_FFMPEG. I am getting myopic in my old age.
bbunge
Posts: 2944
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: export single event to video file

Post 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!
Locked