Page 1 of 1
Latest ZM + video Export
Posted: Thu Feb 03, 2011 12:26 am
by tibetfreedom
HI,
I have downloaded the latest ZM Via SVN and am having issues exporting events.
I have an event that is 10 "Events" long on one camera.
I select them all and can view as one if I select all the "events" in the camera "Week Log" then select View … Then select >Gapless Events
I can view the whole episode…
If I export as a movie only one sub event is saved.
If I export the export window hangs…
The only way I could export the whole movie was to export 10 small event movies and patch them together….
There must be simpler way…?
Re: Latest ZM + video Export
Posted: Sat Feb 05, 2011 7:51 am
by mastertheknife
Hi,
tibetfreedom wrote:HI,
If I export as a movie only one sub event is saved.
There must be simpler way…?
This is by design, generating a video only generates video for the current event.
I agree with you that this needs to be worked over. Maybe in the future i will create a patch that modifies the entire video generation to also allow generation of multiple events and allows the user to specify various options such as start time and end time.
tibetfreedom wrote:
If I export the export window hangs…
I have the same problem with latest versions of ZM from SVN. It says "Exporting" forever for both zip and tar, although the actual exporting works, i can see, download and open the exported file (located in the /temp folder) so this is some sort of notification issue (probably caused by latest mootools update) I'm clueless when it comes to java and ajax so i'm not sure where should i start troubleshooting.
mastertheknife.
Posted: Sat Feb 05, 2011 8:47 am
by mastertheknife
Hi,
I fixed the exporting hangs forever at "Exporting..."
Apparently SVN revision 3149 (accidentally?) added invalid characters before the <?php tag, causing the headers to be sent too early and the response from the export to be invalid.
Code: Select all
--- a/web/skins/classic/includes/export_functions.php
+++ b/web/skins/classic/includes/export_functions.php
@@ -1,4 +1,4 @@
-<U+FEFF><?php
+<?php
//
// ZoneMinder web export function library, $Date$, $Revision$
// Copyright (C) 2001-2008 Philip Coombes
mastertheknife.
Posted: Sat Feb 05, 2011 10:46 am
by tibetfreedom
Thanks for that.
I mention the export of multiple "Events" because I had an indident where someone stole something and had to export 10 videoas and then patch them together by hand.
The videos were of the same event, however the server had split them up… possibly a second or so between clips, maybe I can make the trip less sensitive so an event incorporates more ?
Posted: Sun Feb 06, 2011 4:38 pm
by zoneminder
mastertheknife wrote:Hi,
I fixed the exporting hangs forever at "Exporting..."
Apparently SVN revision 3149 (accidentally?) added invalid characters before the <?php tag, causing the headers to be sent too early and the response from the export to be invalid.
Code: Select all
--- a/web/skins/classic/includes/export_functions.php
+++ b/web/skins/classic/includes/export_functions.php
@@ -1,4 +1,4 @@
-<U><?php
+<?php
//
// ZoneMinder web export function library, $Date$, $Revision$
// Copyright (C) 2001-2008 Philip Coombes
mastertheknife.
I don't see that in my copy. That is a Byte Order Marker (BOM) I believe by the way.
Posted: Sun Feb 06, 2011 5:53 pm
by mastertheknife
Hi Phil,
Thank you for your response,
Indeed, it seems be utf8's byte order mark.
Please try replacing your file with a one from the SVN (after revision 3149) and try exporting an event. On my machine it says "Exporting..." forever and attempting to run the ajax request manually showed me a php error that header() failed because the headers were already sent at export_functions.php line 1.
Also, on my machine:
Code: Select all
kfir@GentooB0X ~ $ svn cat http://svn.zoneminder.com/svn/zm/trunk/web/skins/classic/includes/export_functions.php | head -n3 | hexdump -C
svn: Can't write to stream: Broken pipe
00000000 ef bb bf 3c 3f 70 68 70 0a 2f 2f 0a 2f 2f 20 5a |...<?php.//.// Z|
00000010 6f 6e 65 4d 69 6e 64 65 72 20 77 65 62 20 65 78 |oneMinder web ex|
00000020 70 6f 72 74 20 66 75 6e 63 74 69 6f 6e 20 6c 69 |port function li|
00000030 62 72 61 72 79 2c 20 24 44 61 74 65 3a 20 32 30 |brary, $Date: 20|
00000040 31 30 2d 31 30 2d 32 30 20 32 30 3a 31 33 3a 32 |10-10-20 20:13:2|
00000050 39 20 2b 30 32 30 30 20 28 57 65 64 2c 20 32 30 |9 +0200 (Wed, 20|
00000060 20 4f 63 74 20 32 30 31 30 29 20 24 2c 20 24 52 | Oct 2010) $, $R|
00000070 65 76 69 73 69 6f 6e 3a 20 33 31 35 30 20 24 0a |evision: 3150 $.|
00000080
Thank you,
mastertheknife.