Page 1 of 1

Can't Export Video

Posted: Sun Aug 17, 2008 4:24 pm
by mikesjays
I was wondering if someone can point me in the right direction on how to figure out why I can't export video.

I'm running FC8 and I have no problems watching video on the web interface.

When I try to export as a tar there is nothing to open. When I try as zip I just get export faild?

Posted: Mon Aug 18, 2008 8:20 pm
by Lee Sharp
Sure. Something went wrong.

So want to give us the errors, or logs, and how you installed ZoneMinder?

Here is an out put from Tail

Posted: Mon Aug 18, 2008 11:27 pm
by mikesjays
If I try to export as a Zip I get this

Code: Select all

[root@vserver ~]# tail -f /var/log/messages /var/log/httpd/error_log
==> /var/log/messages <==
Aug 18 19:19:13 vserver zmc_dvideo[10061]: INF [108_5th_Ave: 8000 - Capturing at 30.30 fps]
Aug 18 19:19:13 vserver zma_m1[10065]: INF [108_5th_Ave: 8000 - Processing at 30.30 fps]
Aug 18 19:19:47 vserver zmc_dvideo[10061]: INF [108_5th_Ave: 9000 - Capturing at 29.41 fps]
Aug 18 19:19:47 vserver zma_m1[10065]: INF [108_5th_Ave: 9000 - Processing at 29.41 fps]
Aug 18 19:20:20 vserver zmc_dvideo[10061]: INF [108_5th_Ave: 10000 - Capturing at 30.30 fps]
Aug 18 19:20:20 vserver zma_m1[10065]: INF [108_5th_Ave: 10000 - Processing at 30.30 fps]
Aug 18 19:20:53 vserver zmc_dvideo[10061]: INF [108_5th_Ave: 11000 - Capturing at 30.30 fps]
Aug 18 19:20:53 vserver zma_m1[10065]: INF [108_5th_Ave: 11000 - Processing at 30.30 fps]
Aug 18 19:21:27 vserver zmc_dvideo[10061]: INF [108_5th_Ave: 12000 - Capturing at 29.41 fps]
Aug 18 19:21:27 vserver zma_m1[10065]: INF [108_5th_Ave: 12000 - Processing at 29.41 fps]

==> /var/log/httpd/error_log <==
[Sun Aug 17 12:23:25 2008] [error] [client 192.168.1.108] Command 'cat temp/zmFileList.txt | zip -q temp/zmExport.zip -@' returned with status 12, referer: http://192.168.1.3/zm/index.php?view=export&eid=180929
[Mon Aug 18 18:59:53 2008] [error] [client 192.168.1.108] PHP Warning:  opendir(events/108_5th_Ave/181201) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory in /var/www/html/zm/zm_export_funcs.php on line 198, referer: http://192.168.1.3/zm/index.php?view=export&eid=181201

zip error: Nothing to do! (temp/zmExport.zip)
[Mon Aug 18 18:59:53 2008] [error] [client 192.168.1.108] Command 'cat temp/zmFileList.txt | zip -q temp/zmExport.zip -@' returned with status 12, referer: http://192.168.1.3/zm/index.php?view=export&eid=181201
[Mon Aug 18 19:15:29 2008] [error] [client 192.168.1.108] PHP Warning:  opendir(events/108_5th_Ave/181201) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory in /var/www/html/zm/zm_export_funcs.php on line 198, referer: http://192.168.1.3/zm/index.php?view=export&eid=181201
[Mon Aug 18 19:15:59 2008] [error] [client 192.168.1.108] PHP Warning:  opendir(events/108_5th_Ave/181201) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory in /var/www/html/zm/zm_export_funcs.php on line 198, referer: http://192.168.1.3/zm/index.php?view=export&eid=181201

zip error: Nothing to do! (temp/zmExport.zip)
[Mon Aug 18 19:15:59 2008] [error] [client 192.168.1.108] Command 'cat temp/zmFileList.txt | zip -q temp/zmExport.zip -@' returned with status 12, referer: http://192.168.1.3/zm/index.php?view=export&eid=181201

==> /var/log/messages <==
Aug 18 19:22:00 vserver zmc_dvideo[10061]: INF [108_5th_Ave: 13000 - Capturing at 30.30 fps]
Aug 18 19:22:00 vserver zma_m1[10065]: INF [108_5th_Ave: 13000 - Processing at 30.30 fps]

If I try to export as a tar I get this

Code: Select all

==> /var/log/httpd/error_log <==
[Mon Aug 18 19:24:00 2008] [error] [client 192.168.1.108] PHP Warning:  opendir(events/108_5th_Ave/181201) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory in /var/www/html/zm/zm_export_funcs.php on line 198, referer: http://192.168.1.3/zm/index.php

I think I installed from source, it was over a year ago.

Re: Here is an out put from Tail

Posted: Mon Aug 18, 2008 11:43 pm
by cordel
mikesjays wrote:If I try to export as a tar I get this

Code: Select all

==> /var/log/httpd/error_log <==
[Mon Aug 18 19:24:00 2008] [error] [client 192.168.1.108] PHP Warning:  opendir(events/108_5th_Ave/181201) [<a>function.opendir</a>]: failed to open dir: No such file or directory in /var/www/html/zm/zm_export_funcs.php on line 198, referer: http://192.168.1.3/zm/index.php
I think I installed from source, it was over a year ago.
This suggests that the named symlinks for the MonitorIDs are missing.
Recreate the symlinks so that the path exists and that should solve your problem.

Posted: Tue Aug 19, 2008 12:33 am
by mikesjays
Can you tell me how to do that or send me to the right place to get the info?

Thank you

Posted: Tue Aug 19, 2008 12:44 am
by cordel
Create symlinks in you events folder that are the name of your cam to the monitor id of the same cam.

ln -s [monitorID] [CamName]

ie.
So if I have a cam named "FrontDoor" and it has a monitor ID of "3"
cd /some/path/to/your/events/directory
ln -s 3 FrontDoor

Posted: Tue Aug 19, 2008 12:57 am
by mikesjays
Cool I did what you said:

Code: Select all

[root@vserver ~]# cd /var/www/html/zm/events/
[root@vserver events]# ln -s 1 108_5th_Ave
Now I get the pics but there is no video, is there something else I have to do to get the video?

Posted: Tue Aug 19, 2008 2:07 am
by cordel
Video is only available if you have ffmpeg or the other encoder installed and you have created videos for the event. The export feature does not create videos for you.

Posted: Tue Aug 19, 2008 2:29 am
by mikesjays
I do have ffmpg installed is there a way to go back and recreate video for an event that already happened?

Posted: Tue Aug 19, 2008 2:41 am
by cordel
http://www.zoneminder.com/wiki/index.ph ... ing_Events

View the event you want video of, click the "video" link above the event video window, the rest should be self explanatory.

Posted: Wed Aug 20, 2008 6:47 pm
by Lee Sharp
mikesjays wrote:I do have ffmpg installed is there a way to go back and recreate video for an event that already happened?
If you have the images, you can use ffmpeg from the command line to generate a movie as well.