High resolution issues with Logitech E3500 via mjpg_streamer
Posted: Fri Nov 21, 2008 11:16 am
Logitech E3500 seems to output 176x144 YUV cleanly (via mjpg_streamer). However, better resolutions like 320x240 or 640x480 end up with incompatible MJPG.
Could anybody help with ideas? Should I blame the webcam or the mjpg_streamer?
I am testing E3500 (id 046d:09a4) on Debian Etch, which is updated to test and unstable. The camera itself is recognized well:
But now begin the fun. 176x144 mode works OK but in YUV only. It really works which means that even ZM is able to get the stream.
Now the centerpiece. Yes, it is perfectly possible to configure the E300 for modes 320x240 and 640x480. The known fact for UVC cameras seems to be that better resolutions will dictate MJPG mode. Never mind:
To test the stream, I used such a command:
wget http://localhost:8080/?action=stream
Here is the result:
And, the only 22 macic bytes that get recorded, are: --boundarydonotcross. There will be no image ever.
Can anybody hint me where to seek for the solution?! Could E3500 have some controversial or undocumented format that mjpg_streamer is unable to receive?
Disclaimer: honestly saying, why I am writing such a long problem description here is because Google seems to index zoneminder articles extremely well Could somebody more knowledgeable see it....
Could anybody help with ideas? Should I blame the webcam or the mjpg_streamer?
I am testing E3500 (id 046d:09a4) on Debian Etch, which is updated to test and unstable. The camera itself is recognized well:
Code: Select all
Nov 21 01:01:11 cam kernel: [ 113.750005] usb 2-2.2: new full speed USB device using uhci_hcd and address 3
Nov 21 01:01:12 cam kernel: [ 113.976940] usb 2-2.2: configuration #1 chosen from 1 choice
Nov 21 01:01:12 cam kernel: [ 113.982660] usb 2-2.2: New USB device found, idVendor=046d, idProduct=09a4
Nov 21 01:01:12 cam kernel: [ 113.982770] usb 2-2.2: New USB device strings: Mfr=0, Product=0, SerialNumber=2
Nov 21 01:01:12 cam kernel: [ 113.982857] usb 2-2.2: SerialNumber: 0BB31220
Nov 21 01:01:12 cam kernel: [ 114.720852] Linux video capture interface: v2.00
Nov 21 01:01:12 cam kernel: [ 114.896233] uvcvideo: Found UVC 1.00 device <unnamed> (046d:09a4)
Nov 21 01:01:12 cam kernel: [ 114.912015] input: UVC Camera (046d:09a4) as /class/input/input5
Nov 21 01:01:12 cam kernel: [ 114.912015] usbcore: registered new interface driver snd-usb-audio
Nov 21 01:01:12 cam kernel: [ 114.917611] usbcore: registered new interface driver uvcvideo
Nov 21 01:01:12 cam kernel: [ 114.917721] USB Video Class driver (v0.1.0)
Code: Select all
cam:~# mjpg_streamer -i "input_uvc.so -r 320x240 -y -f 1 -d /dev/video0" -o "output_http.so -p 8080"
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 320 x 240
i: Frames Per Second.: 1
i: Format............: YUV
i: JPEG Quality......: 80
format asked unavailable get width 176 height 144
o: www-folder-path...: disabled
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled
Code: Select all
Nov 21 01:27:16 cam MJPG-streamer [3128]: starting application
Nov 21 01:27:16 cam MJPG-streamer [3128]: enabling daemon mode
Nov 21 01:27:16 cam MJPG-streamer [3130]: MJPG Streamer Version.: 2.0
Nov 21 01:27:16 cam MJPG-streamer [3130]: Using V4L2 device.: /dev/video0
Nov 21 01:27:16 cam MJPG-streamer [3130]: Desired Resolution: 320 x 240
Nov 21 01:27:16 cam MJPG-streamer [3130]: Frames Per Second.: 6
Nov 21 01:27:16 cam MJPG-streamer [3130]: Format............: MJPEG
Nov 21 01:27:16 cam MJPG-streamer [3130]: www-folder-path...: disabled
Nov 21 01:27:16 cam MJPG-streamer [3130]: HTTP TCP port.....: 8080
Nov 21 01:27:16 cam MJPG-streamer [3130]: username:password.: disabled
Nov 21 01:27:16 cam MJPG-streamer [3130]: commands..........: enabled
Nov 21 01:27:16 cam MJPG-streamer [3130]: starting input plugin
Nov 21 01:27:16 cam MJPG-streamer [3130]: starting output plugin: output_http.so (ID: 00)
Nov 21 01:27:25 cam MJPG-streamer [3130]: serving client: 127.0.0.1:43976
Nov 21 01:27:52 cam MJPG-streamer [3130]: serving client: 127.0.0.1:43977
Nov 21 01:28:11 cam MJPG-streamer [3130]: serving client: 127.0.0.1:43978
wget http://localhost:8080/?action=stream
Here is the result:
Code: Select all
--2008-11-21 01:29:00-- http://localhost:8080/?action=stream
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [multipart/x-mixed-replace]
Saving to: `index.html?action=stream.1'
[ <=> ] 22 --.-K/s
Can anybody hint me where to seek for the solution?! Could E3500 have some controversial or undocumented format that mjpg_streamer is unable to receive?
Disclaimer: honestly saying, why I am writing such a long problem description here is because Google seems to index zoneminder articles extremely well Could somebody more knowledgeable see it....