Can't Export Video

Support and queries relating to all previous versions of ZoneMinder
Locked
mikesjays
Posts: 17
Joined: Thu Dec 21, 2006 11:36 am

Can't Export Video

Post 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?
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Sure. Something went wrong.

So want to give us the errors, or logs, and how you installed ZoneMinder?
mikesjays
Posts: 17
Joined: Thu Dec 21, 2006 11:36 am

Here is an out put from Tail

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: Here is an out put from Tail

Post 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.
mikesjays
Posts: 17
Joined: Thu Dec 21, 2006 11:36 am

Post by mikesjays »

Can you tell me how to do that or send me to the right place to get the info?

Thank you
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
mikesjays
Posts: 17
Joined: Thu Dec 21, 2006 11:36 am

Post 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?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
mikesjays
Posts: 17
Joined: Thu Dec 21, 2006 11:36 am

Post by mikesjays »

I do have ffmpg installed is there a way to go back and recreate video for an event that already happened?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

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