Hello Group,
I have installed ZoneMinder 1.25.0 as described in ' janhellevik com / ?p=1045 ' on my Ubuntu 12.04.3 LTS Server.
Ubuntu running on VirtualBox.
My camera is an analogical surveillance camera.(no IP. no direct USB-WEB-Cam).
The camera is with Hauppauge USB adapter connected on my PC. And my PC have USB 3.0 and 2.0 ports.
I've tried both.
In the Virtaulbox I have USB enabled.
The following messages are on
lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0bda:0301 Realtek Semiconductor Corp.
Bus 001 Device 003: ID 2040:c200 Hauppauge
Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
if i start probe on zoneminder-device
/var/log/syslog
Feb 20 09:42:41 SB-Server2 kernel: [ 1258.260264] cx231xx #0: video_mux : 0
Feb 20 09:42:41 SB-Server2 kernel: [ 1258.260266] cx231xx #0: do_mode_ctrl_overrides : 0xff
Feb 20 09:42:41 SB-Server2 kernel: [ 1258.263219] cx231xx #0: do_mode_ctrl_overrides PAL
Feb 20 09:42:41 SB-Server2 zmc_dvideo0[2112]: FAT [Failed to set video standard 45056: Device or resource busy]
Feb 20 09:42:41 SB-Server2 kernel: [ 1258.305188] cx231xx #0: cx231xx_stop_stream():: ep_mask = 8
Feb 20 09:42:41 SB-Server2 zmdc[1298]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Feb 20 09:43:48 SB-Server2 kernel: [ 1325.287670] cx231xx #0: setPowerMode::mode = 48, No Change req.
Feb 20 09:43:48 SB-Server2 zmu[2132]: ERR [Failed to query crop: Inappropriate ioctl for device]
Feb 20 09:43:48 SB-Server2 kernel: [ 1325.309959] cx231xx #0: cx231xx_stop_stream():: ep_mask = 8
Feb 20 09:43:48 SB-Server2 web_php[1492]: FAT [Unable to probe local cameras, status is '255']
Feb 20 09:45:10 SB-Server2 kernel: [ 1407.283804] cx231xx #0: setPowerMode::mode = 48, No Change req.
Feb 20 09:45:10 SB-Server2 zmu[2154]: ERR [Failed to query crop: Inappropriate ioctl for device]
Feb 20 09:45:10 SB-Server2 kernel: [ 1407.300640] cx231xx #0: cx231xx_stop_stream():: ep_mask = 8
Feb 20 09:45:10 SB-Server2 web_php[1980]: FAT [Unable to probe local cameras, status is '255']
my host-system is win-7. (Ubuntu is Guest)
i don't believe USB-Port or the camera is busy.
No other Software use the camera.
what i can do?
best regards
Jürgen
my device settings in zoneminder
Name : Monitor-1
Source Type : Local
Function : Monitor
Enabled :X
Linked Monitors: empty
Maximum FPS :5.00
Alarm Maximum FPS: 25.00
Reference Image Blend %ge: 7
Triggers : None availabl
#####
Device Path : /dev/video0
Capture Method : Video for Linux 2
Device Channel : 0
Device Format : NTSC
Capture Palette : YUYV
Capture Width (pixels): 640
Capture Height (pixels) : 480
Preserve Aspect Ratio :
Orientation : normal
my camera is
Sensor 8,5 mm (1/3 ") CMOS
Resolution 648 x 512 pixels
Light sensitivity of 0.01 lux (IR on 0 lux)
Operating voltage 12 V / DC
Output 1.0 Vpp, 75 Ω, RCA jack
Current consumption Max 180mA (IR on)
Degree of protection IP65
Outside of use
Camera Type CCTV Camera
Ubuntu 12.04.03 LTS , USB Video Capture Device busy ?
Re: Ubuntu 12.04.03 LTS , USB Video Capture Device busy ?
Setting Zoneminder aside for a minute, can you see the output from the camera in something like VLC or tvtime etc. that can access a Video For Linux device?
Or something like ffmpeg to grab from it by hand if you don't have them installed.
(Something like ...)
ffmpeg -aspect 4:3 -s 640x480 -vc 1 -tvstd PAL -f video4linux2 -i /dev/video0 -r 25 -t 10 -vcodec mpeg1video -bufsize 50Mi -b:v 5000k -minrate:v 1000k -maxrate:v 8000k -f mpeg outputfile.mpg
-vc 1 is the channel number (you may need 0, 1)
-r 25 frame rate
-t 10 capture for 10 sec and stop
Or something like ffmpeg to grab from it by hand if you don't have them installed.
(Something like ...)
ffmpeg -aspect 4:3 -s 640x480 -vc 1 -tvstd PAL -f video4linux2 -i /dev/video0 -r 25 -t 10 -vcodec mpeg1video -bufsize 50Mi -b:v 5000k -minrate:v 1000k -maxrate:v 8000k -f mpeg outputfile.mpg
-vc 1 is the channel number (you may need 0, 1)
-r 25 frame rate
-t 10 capture for 10 sec and stop
Re: Ubuntu 12.04.03 LTS , USB Video Capture Device busy ?
hello,
in instaled now new ubuntu... but same problem...
i tested ffmpeg...
this message is comming
THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
This option is deprecated, use -channel.
This option is deprecated, use -standard
and in syslog ===>
Feb 21 00:13:23 SB-Comgate kernel: [ 3021.782691] cx231xx #0: setPowerMode::mode = 48, No Change req.
Feb 21 00:13:23 SB-Comgate kernel: [ 3021.949933] cx231xx #0: cx231xx_dif_set_standard: setStandard to ffffff
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.256333] cx231xx #0: video_mux : 0
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.256341] cx231xx #0: do_mode_ctrl_overrides : 0xff
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.261710] cx231xx #0: do_mode_ctrl_overrides PAL
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.302044] cx231xx #0: cx231xx_stop_stream():: ep_mask = 8
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.308233] cx231xx #0: cx231xx_initialize_stream_xfer: set video registers
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.313208] cx231xx #0: cx231xx_start_stream():: ep_mask = 8
and don't create any output-file
crazy
best regards
Jürgen
i get this with udevadm
udevadm info -a -p $(udevadm info -q path -n /dev/video*) |grep ATTR{name}
ATTR{name}=="cx231xx #0 video"
and zmu give me this output
zmu -d /dev/video0 -q -v
Error, failed to query crop /dev/video0: Success
mmmh?
in instaled now new ubuntu... but same problem...
i tested ffmpeg...
this message is comming
THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
This option is deprecated, use -channel.
This option is deprecated, use -standard
and in syslog ===>
Feb 21 00:13:23 SB-Comgate kernel: [ 3021.782691] cx231xx #0: setPowerMode::mode = 48, No Change req.
Feb 21 00:13:23 SB-Comgate kernel: [ 3021.949933] cx231xx #0: cx231xx_dif_set_standard: setStandard to ffffff
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.256333] cx231xx #0: video_mux : 0
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.256341] cx231xx #0: do_mode_ctrl_overrides : 0xff
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.261710] cx231xx #0: do_mode_ctrl_overrides PAL
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.302044] cx231xx #0: cx231xx_stop_stream():: ep_mask = 8
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.308233] cx231xx #0: cx231xx_initialize_stream_xfer: set video registers
Feb 21 00:13:24 SB-Comgate kernel: [ 3022.313208] cx231xx #0: cx231xx_start_stream():: ep_mask = 8
and don't create any output-file
crazy
best regards
Jürgen
i get this with udevadm
udevadm info -a -p $(udevadm info -q path -n /dev/video*) |grep ATTR{name}
ATTR{name}=="cx231xx #0 video"
and zmu give me this output
zmu -d /dev/video0 -q -v
Error, failed to query crop /dev/video0: Success
mmmh?
Re: Ubuntu 12.04.03 LTS , USB Video Capture Device busy ?
Doh. You have stepped in some silly argument between rival groups of developers. FFMPEG is not deprecated, it is alive and well and supported, you just need a distribution that isn't getting stuck in the middle of someone else's wars and picking the "other" side.selfmade wrote: this message is comming
THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
This option is deprecated, use -channel.
This option is deprecated, use -standard
I meant a genuine install of ffmpeg from the real developers, not this hacked about thing. Sorry
What about VLC? (Assuming they haven't decided that it is in someway inferior ... and replaced it with something else claiming to be vlc)
Real FFMPEG is here http://www.ffmpeg.org/ and VLC, if you don't have it, is here http://www.videolan.org/
Re: Ubuntu 12.04.03 LTS , USB Video Capture Device busy ?
hellomikb wrote:selfmade wrote:
I meant a genuine install of ffmpeg from the real developers, not this hacked about thing. Sorry
What about VLC? (Assuming they haven't decided that it is in someway inferior ... and replaced it with something else claiming to be vlc)
]
i tested already with VLC but syslog told me, the device is busy...
v4l2 told me for the device /dev/video0
v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "cx231xx"
card : "Hauppauge USB Live 2"
bus_info : "usb-0000:00:0b.0-2"
version : 3.11.10
capabilities : 0x85000011 [VIDEO_CAPTURE,VBI_CAPTURE,READWRI$
and
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 0
description : "16bpp YUY2, 4:2:2, packed"
pixelformat : 0x56595559 [YUYV]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 640
fmt.pix.height : 480
fmt.pix.pixelformat : 0x56595559 [YUYV]
fmt.pix.field : INTERLACED
fmt.pix.bytesperline : 1280
fmt.pix.sizeimage : 614400
fmt.pix.colorspace : SMPTE170M
fmt.pix.priv : 0
vbi capture
i use virtualbox
and windows is the host, but not any win-tool use the camera.
but i can't hang out the USB-device on windows...
any idea?
best regards
Achim
maybe i have only this problem with the USB-Video connector.
(this is a testing-system... later i will use a pci-8-channel Video capturecard
Re: Ubuntu 12.04.03 LTS , USB Video Capture Device busy ?
As root, what does this command get you (mine shown below IS in use, by tvtime ...)
If it returns nothing, then Linux doesn't think anything has got /dev/video0 open.
Code: Select all
lsof /dev/video0
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
tvtime 2761 mjb mem CHR 81,0 4049 /dev/video0
tvtime 2761 mjb 4u CHR 81,0 0t0 4049 /dev/video0
Re: Ubuntu 12.04.03 LTS , USB Video Capture Device busy ?
Hello,
this is the output from lsof
achim@SB-Comgate:~$ sudo -i
root@SB-Comgate:~# lsof /dev(video0
lsof_ Warning: can't stat() fuse.gvfs-fuse-daemon file system /home/achim/.gvfs
Output information may be incomplete.
if i start lsof under user=achim
output is empty
this is the output from lsof
achim@SB-Comgate:~$ sudo -i
root@SB-Comgate:~# lsof /dev(video0
lsof_ Warning: can't stat() fuse.gvfs-fuse-daemon file system /home/achim/.gvfs
Output information may be incomplete.
if i start lsof under user=achim
output is empty
Re: Ubuntu 12.04.03 LTS , USB Video Capture Device busy ?
That output confuses *me*. So it sure as heck isn't going to please ZoneMinder.
As an ordinary user though, it shows nothing using it, so I suspect that nothing within Linux *is* using it.
Not having tried using VMs e.g. VirtualBox, I'm not sure where you go from there -- the problem doesn't appear to be ZoneMinder itself, if VLC also complains. It's the VirtualBox/underlying host giving you grief.
As an ordinary user though, it shows nothing using it, so I suspect that nothing within Linux *is* using it.
Not having tried using VMs e.g. VirtualBox, I'm not sure where you go from there -- the problem doesn't appear to be ZoneMinder itself, if VLC also complains. It's the VirtualBox/underlying host giving you grief.