Failed to set video format: Invalid argument "Man in middle"
Posted: Wed Dec 28, 2011 3:50 pm
Hi !
Didi not found similar problem with search as in subject.
This might be other than Zoneminder problem, but I'm interested to hear has someone found similar problem.
I start the PC (Fedora 15) and Zoneminder. It works ok some 10 hours. This time varies. I do have UPS, so no question
about short power failures.
After that time /dev/video1 starts to give error "Failed to set video format: Invalid argument". Only help is to power off (reboot
seems not always help) whole system.
lsusb
Bus 002 Device 002: ID 18ec:3299 Arkmicro Technologies Inc.
And now the interesting part when it is working with ZM it gives:
### v4l2 device info [/dev/video1] ###
general info
VIDIOC_QUERYCAP
driver : "uvcvideo"
card : "USB2.0 PC CAMERA"
bus_info : "usb-0000:00:10.3-3"
version : 3.1.5
capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]
standards
inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "Camera 1"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 0
description : "YUV 4:2:2 (YUYV)"
pixelformat : 0x56595559 [YUYV]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 320
fmt.pix.height : 240
fmt.pix.pixelformat : 0x56595559 [YUYV]
fmt.pix.field : NONE
When it stops working it gives :
### v4l2 device info [/dev/video1] ###
general info
VIDIOC_QUERYCAP
driver : "uvcvideo"
card : "USB2.0 PC CAMERA"
bus_info : "usb-0000:00:10.1-1"
version : 3.1.5
capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]
standards
inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "Camera 1"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "MJPEG"
pixelformat : 0x47504a4d [MJPG]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 320
fmt.pix.height : 240
fmt.pix.pixelformat : 0x47504a4d [MJPG]
fmt.pix.field : NONE
SAME CAMERA !!! No power off !! No other usage !!
Can Zoneminder (ZMC) send a command that turns camera from YUYV to MJPEG ??
After that, of course settings are not correct and video format is fails.
When MJPG is on I can use camera starting uvc_capture and looking camera as http stream in setup. Works for long time.
But if pc is booted I have to change settings again.
Might be also uvcvideo driver fault, eh?
Didi not found similar problem with search as in subject.
This might be other than Zoneminder problem, but I'm interested to hear has someone found similar problem.
I start the PC (Fedora 15) and Zoneminder. It works ok some 10 hours. This time varies. I do have UPS, so no question
about short power failures.
After that time /dev/video1 starts to give error "Failed to set video format: Invalid argument". Only help is to power off (reboot
seems not always help) whole system.
lsusb
Bus 002 Device 002: ID 18ec:3299 Arkmicro Technologies Inc.
And now the interesting part when it is working with ZM it gives:
### v4l2 device info [/dev/video1] ###
general info
VIDIOC_QUERYCAP
driver : "uvcvideo"
card : "USB2.0 PC CAMERA"
bus_info : "usb-0000:00:10.3-3"
version : 3.1.5
capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]
standards
inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "Camera 1"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 0
description : "YUV 4:2:2 (YUYV)"
pixelformat : 0x56595559 [YUYV]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 320
fmt.pix.height : 240
fmt.pix.pixelformat : 0x56595559 [YUYV]
fmt.pix.field : NONE
When it stops working it gives :
### v4l2 device info [/dev/video1] ###
general info
VIDIOC_QUERYCAP
driver : "uvcvideo"
card : "USB2.0 PC CAMERA"
bus_info : "usb-0000:00:10.1-1"
version : 3.1.5
capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]
standards
inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "Camera 1"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "MJPEG"
pixelformat : 0x47504a4d [MJPG]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 320
fmt.pix.height : 240
fmt.pix.pixelformat : 0x47504a4d [MJPG]
fmt.pix.field : NONE
SAME CAMERA !!! No power off !! No other usage !!
Can Zoneminder (ZMC) send a command that turns camera from YUYV to MJPEG ??
After that, of course settings are not correct and video format is fails.
When MJPG is on I can use camera starting uvc_capture and looking camera as http stream in setup. Works for long time.
But if pc is booted I have to change settings again.
Might be also uvcvideo driver fault, eh?