Hi folks,
i tried to use the Omegon Astro Cam(lsusb: "ID 0547:7303 Anchor Chips, Inc.") with kstars and the libindi-v4l2 backend. Regrettable it doesn't work well. If i choose the capture format "grey" it shows a pretty OK greyscale picture, wherein every 4th pixel is different grey. the picture reacts to change in lightning.(a croped image is attached) If i change the capture format from "Grey" to "RGGB" and start the streaming, i get a noisy image, which doesn't react to change in lightning...(i think invalid buffers get used) Cheese handles the camera right and shows a coloured picture.
I suspect libindi doesn't properly handle the RGGB format of the camera. i think it might be "V4L2_PIX_FMT_SRGGB8"...
Driver Info (not using libv4l2):
Driver name : dtcs033
Card type : 300k CCD USB2.0 Camera
Bus info : usb-0000:00:1a.0-1.1
Driver version: 3.15.0
Capabilities : 0x85000001
Video Capture
Read/Write
Streaming
Device Capabilities
Device Caps : 0x05000001
Video Capture
Read/Write
Streaming
Priority: 2
Video input : 0 (dtcs033: ok)
Format Video Capture:
Width/Height : 640/480
Pixel Format : 'RGGB'
Field : None
Bytes per Line: 640
Size Image : 307200
Colorspace : SRGB
Streaming Parameters Video Capture:
Frames per second: invalid (0/0)
Read buffers : 2
User Controls
exposure (int) : min=1 max=150 step=1 default=75 value=75
gain (int) : min=14 max=33 step=1 default=24 value=28
it would be nice if someone could implement the conversion into the v4l2 adaption layer... i'm a bit devastated, i began to write some code for the meade dsi I(color), which is a little bastard piece of crap, but i haven't got time to end this, thus tried the omegon, my father bought, but it doesn't work ether...
Would be great if someone could help!
cheers,
Klaus
I tried to patch the corresponding files(tried to reuse BGGR functions). At least the RGGB option works now(option in capture format), but only in conjunction with the grey option in the property tab(i think it's 'property', in the german version it's "Einstellungen"). If i try the colour option, kstars crashes.(i haven't recompiled kstars though).
Maybe someone could include the patches into the repo.
Any update on this? Does KStars still crashes when using color streaming? Can you send a patch againt SVN Trunk (not the complete files but diff).
It seems to work now...
At least single frames. The streaming is not working really well. The conversion is pretty slow, and no frames are omitted, thus the cpu is at 100% and even if i stop the streaming it keeps converting.(all the frames, that weren't converted yet). Maybe the use of libswscale in ffmpeg is better?
But the color option seems to work now. i think it were some libraries, that were loaded when i compiled it. When i went out with the telescope it didn't crash anymore. Sry i didn't diff it(never did that before)
Thanks! Patch applied to INDI Trunk!