NetBSD Problem Report #54632

From  Mon Oct 21 12:41:01 2019
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 32EAB7A155
	for <>; Mon, 21 Oct 2019 12:41:01 +0000 (UTC)
Message-Id: <>
Date: Mon, 21 Oct 2019 12:41:00 +0000 (UTC)
Subject: No video of zoneminder monitor for usb camera
X-Send-Pr-Version: www-1.0

>Number:         54632
>Category:       pkg
>Synopsis:       No video of zoneminder monitor for usb camera
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 21 12:45:00 +0000 2019
>Last-Modified:  Wed Jun 09 02:52:25 +0000 2021
>Originator:     Guest01
>Release:        packages/NetBSD/amd64/8.0_2019Q2
NetBSD localhost 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018 amd64

I have configured monitor in zoneminder console for /dev/video0 device. The device is usb camera. When I click monitor there is not video.

Console log reports error:
Message: Unable to open input /dev/video0 due to: Connection timed out
File: zm_ffmpeg_camera.cpp
Line: 264
Instal and configure zoneminder application:
1. export PKG_PATH=""
2. Install mysql-server-5.7.27 with command: pkg_add mysql-server
3. cp /usr/pkg/share/examples/rc.d/mysqld /etc/rc.d/
4. /etc/rc.d/mysqld onestart
5. /usr/pkg/bin/mysql_secure_installation
6. pkg_add zoneminder
7. echo "create user 'zmuser'@'localhost' identified by 'zmpass';" | mysql -u root -p
8. mysql -u root -p < /usr/pkg/share/zoneminder/db/zm_create.sql
9. echo "grant all on zm.* to 'zmuser@localhost' identified by 'zmpass';" | mysql -u root zm -p
10. Add in /usr/pkg/etc/httpd/httpd.conf
LoadModule php5_module lib/httpd/
  <FilesMatch \.php$>
      SetHandler application/x-httpd-php
Include /usr/pkg/share/examples/zoneminder/apache/zoneminder.conf
11. Comment and uncomment in /usr/pkg/etc/httpd/httpd.conf
#LoadModule mpm_event_module lib/httpd/
LoadModule mpm_prefork_module lib/httpd/
12. /usr/pkg/share/examples/zoneminder/apache/zoneminder.conf:
# This Apache configuration puts ZoneMinder under /zm.
# Access is limited to localhost, as a safe default until
# intentionally changed.

ScriptAlias /zm/cgi-bin/ "/usr/pkg/libexec/zoneminder/cgi-bin/"

<Directory "/usr/pkg/libexec/zoneminder/cgi-bin">
    Require ip

Alias /zm "/usr/pkg/share/zoneminder/htdocs"

<Directory "/usr/pkg/share/zoneminder/htdocs">
  php_flag register_globals off
  php_flag short_open_tag on
  DirectoryIndex index.php
    Require ip

13. cp /usr/pkg/share/examples/rc.d/apache /etc/rc.d
14. /etc/rc.d/apache onestart
16. Start zoneminder console
17. Because of message in log:
"Can't execute: Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'zm.E.StartTime' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by"
mysql -u root -p
set @@global.sql_mode='';
18. Add new monitor
Source type: Ffmpeg
Maximum FPS: 5
Source path: /dev/video0
19. Options
PATH_ZMS: /zm/cgi-bin/nph-zms
20. Stop Zonemider Console
21. Start Zoneminder Console
22. Run monitor




State-Changed-From-To: open->feedback
State-Changed-When: Tue, 13 Oct 2020 03:36:19 +0000
If you were using a USB webcam which is on xHCI, this is likely from no support for isoc endpoints. This is fixed in netbsd-current. Does using netbsd-current fix your issue?

State-Changed-From-To: feedback->open
State-Changed-When: Wed, 09 Jun 2021 02:52:25 +0000
Feedback mail bounces, not sure if we should try to investigate further
or just close it.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.