Page 1 of 1

jpegtopnm: WRITING PPM FILE

Posted: Sun Feb 12, 2006 2:56 am
by tommy
ZM 1.21.2
Celeron 400 192M
Debian Linux Kernel 2.6.8
Capture card 1 BTTV chip with 4 inputs
Web server thttpd/2.23beta1
PHP 4.3.10-15 (cgi-fcgi)

Problem only occurs with bandwidth set to low or medium.
While viewing an event,click stills to view thumbnails
Event window fills with:
jpegtopnm: WRITING PPM FILE, once for each thumbnail, then thumbnails appear.

Fixed by going to approx line 434 of zm_html_view_event.php and adding the --quiet option to the jpegtopnm program.

if ( !file_exists($thumb_image) || !filesize( $thumb_image ) )
{
$anal_image = preg_replace( "/capture/", "analyse", $capt_image );
if ( file_exists( $anal_image ) )
$command = ZM_PATH_NETPBM."/jpegtopnm --quiet -dct fast $anal_image | ".ZM_PATH_NETPBM."/pnmscalefixed $fraction | ".ZM_PATH_NETPBM."/ppmtojpeg --dct=fast > $thumb_image";
else
$command = ZM_PATH_NETPBM."/jpegtopnm --quiet -dct fast $capt_image | ".ZM_PATH_NETPBM."/pnmscalefixed $fraction | ".ZM_PATH_NETPBM."/ppmtojpeg --dct=fast > $thumb_image";
#exec( escapeshellcmd( $command ) );
exec( $command );
}

Anyone have a similar problem? Could this also be fixed with a php setting?


thanks
tommy

Posted: Tue Feb 21, 2006 4:34 pm
by zoneminder
Ordinarily this output, if there is any, just goes into the web log. I will add the quiet option anyway as it seem sensible.