jpegtopnm: WRITING PPM FILE

Support and queries relating to all previous versions of ZoneMinder
Locked
tommy
Posts: 45
Joined: Sun Aug 17, 2003 2:58 am

jpegtopnm: WRITING PPM FILE

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

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