Re: capture high resolution images from webcam

2015-04-13 Thread Laurent Pinchart
Hi Oliver,

On Thursday 19 March 2015 20:31:43 Oliver Lehmann wrote:
 Hi Laurent,
 
 I took the first option ;)
 
 http://pastebin.com/7YUgS2Zt

I have good news and bad news.

The good news is that the camera seems to support capturing video in 1920x1080 
natively, which is higher than the 720p you reported. This should work out of 
the box with the uvcvideo driver.

The bad news is that still image capture at higher resolutions isn't supported 
by the camera, or at least not in a UVC-compatible way. My guess is that 8MP 
is achieved either using software interpolation, or possibly using a vendor-
specific undocumented protocol. 

-- 
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: capture high resolution images from webcam

2015-03-19 Thread Laurent Pinchart
Hi Oliver,

On Thursday 19 March 2015 19:17:48 Oliver Lehmann wrote:
 Hi Laurent,
 
 Laurent Pinchart laurent.pinch...@ideasonboard.com wrote:
  Could you please post the output of lsusb -v for your camera (running as
  root if possible) ?
 
 No lsusb on FreeBSD but usbconfig - I hope the results are similar or are at
 least close to what you are seeking for.
 
 http://pastebin.com/s3ndu63h

The information is there, but in a raw form, when lsusb can decode it. I'll 
let you do the homework then, two options:

1. Compile lsusb for freebsd
2. Get a copy of the UVC spec 
(http://www.usb.org/developers/docs/devclass_docs/USB_Video_Class_1_1_090711.zip)
 
and decode the descriptors

Pick your poison :-)

-- 
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: capture high resolution images from webcam

2015-03-19 Thread Oliver Lehmann

Hi Laurent,

I took the first option ;)

http://pastebin.com/7YUgS2Zt

Regards, Oliver
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: capture high resolution images from webcam

2015-03-19 Thread Oliver Lehmann

Hi Laurent,

Laurent Pinchart laurent.pinch...@ideasonboard.com wrote:


Could you please post the output of lsusb -v for your camera (running as
root if possible) ?


No lsusb on FreeBSD but usbconfig - I hope the results are similar or are at
least close to what you are seeking for.

http://pastebin.com/s3ndu63h

Regards, Oliver
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


capture high resolution images from webcam

2015-03-17 Thread Oliver Lehmann

Hi,

I'm using v4l2 on FreeBSD but I hope this doesn't matter that much.
I got a new MS LifeCam Studio HD which makes quite good pictures
because of its focus possibilites.

When I use the original software provided by MS the autofocus
feature works damn good. With v4l2, autofocus is enabled but it
just does not focus. Disabling autofocus and setting focus manually
does work (and in my case this is sufficient)

Another point is, that this cam can record pictures with 8 megapixel
which results in 3840x2160 image files. This 8MP mode and the 1080p
mode is only available for snapshot pictures. The highest resolution
supported for videos is 720p.

All I want is recording snapshot images and I do not need the video
capability at all.

I wonder how I can capture those big 8MP images? With mplayer I'm
only able toe capture 720p at max. I guess because mplayer just
accesses the video mode and takes a single frame.

mplayer tv:// -tv driver=v4l2:device=/dev/video0:width=1280:height=720  
-frames 1 -vo jpeg


I wonder if there is a possibility to access the cam in the
I-call-it-snapshot-mode to take single pictures with higher resolutions?

Regards, Oliver
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html