Page 1 of 1

generating video from events (language problem ?)

Posted: Sat Dec 31, 2005 12:36 am
by evel
I can not get mpeg, avi, wmv... etc from events when I have zm_language set to pl_pl (by pushing button "generate video" on Video Generation Parameters card). Only in my language (pl) its happen. When I set language to En_gb or other, everything works properly.
On pl_pl, after pushed "generate video" I recognized error in apache log :

Value "1,00" invalid for option r (real number expected)
Value "1,00" invalid for option s (real number expected)

in ZM-logs nothing strange.

Can someone check pl_pl language ?

--
evel
Debian 2.4.27-2-386, PIII 677
zm 1.21.4, Quickcam Messanger

Posted: Sat Dec 31, 2005 7:43 pm
by zoneminder
This appears to be an issue with the locale settings getting into the sprintf call in the createVideo funciton in zm_funcs.php. There is an alternative format specifier that can be used (%F instead of %f) but it isn't supported in all versions of php. As soon as I've got a fix that will function for all versions I will fix it but in the meantime you could try changing the parts of the format string that say '%.2f' to '%.2F' and seeing if that works.

Phil

Posted: Sun Jan 01, 2006 9:19 pm
by evel
zoneminder wrote:... '%.2f' to '%.2F' and seeing if that works.
Yes yes, now it works :) thx Phil

--
evel