STK1160 USB capture as guiding cam | SOLVED

  • Posts: 314
  • Thank you received: 34

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 226
  • Thank you received: 88
Hi ,

I think that 16bpp format YUY2 is not supported in V4L2, this is the reason why the image is black.
Could you try to change the capture pixel format if the driver allows it ?
We could use some library to decode all sort of pixel formats, I already had a look to some of them. But that would add other dependencies to Indi.
Regards,
Jean-Luc.
9 years 10 months ago #1551

Please Log in or Create an account to join the conversation.


What library are you proposing? We already added dependency for libjpeg, so if we can replace that with one that decodes all we can consider including it as a dependency. But in principle, the dependecies should remain as minimal as possible :-)
9 years 10 months ago #1555

Please Log in or Create an account to join the conversation.

STK1160 USB capture as guiding cam | SOLVED - INDI Forum
  • Posts: 314
  • Thank you received: 34

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 226
  • Thank you received: 88
I had a look to libyuv from google which has a quite complete set of decode stuff to I420 and argb format (look at convert_to_i420.c ). There is also libffmpeg but I did not look precisely, or some code from other projects as fswebcam .
We could also consider to use dynamic loading (with libdl) to test if a decoding library is present at run time, this could avoid to add direct dependencies to Indi.
The following user(s) said Thank You: Jasem Mutlaq
9 years 10 months ago #1561

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 34
Ok, so for now I wait for the possibility of implementation but if you dont plan to implement on what pixelformat I have to look for if I buy a new capture stick or to be precise what formats are definitely supported by ekos/indi? Because I just dont want to throw away my watec camera :)
--= human, without Windows™ =--
pls excuse my bad english! :)
9 years 10 months ago #1566

Please Log in or Create an account to join the conversation.


×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

  • Posts: 226
  • Thank you received: 88

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 34
I cant see geehalel's last post in the forum but received it via mail. I had v4l2loopback & gstreamer in my mind too but I had no clue how to configure it for format conversion. Thank you for you nice little procedure. I will go through it later today :)

EDIT now I can see your post...
--= human, without Windows™ =--
pls excuse my bad english! :)
Last edit: 9 years 10 months ago by pauledd.
9 years 10 months ago #1571

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 34

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 226
  • Thank you received: 88
I've added support for UYVY to indi_v4l2_ccd so now you could use it directly. Only tested through gstreamer conversion.
Processor usage is quite high but this is video stuff going through v4l2 indi driver->indi server->kstars client. I've made some profiling last year and saw that the conversion into a BLOB (i.e. xml data using base64 encoding/decoding) was very time consuming. You're right that the best way to reduce it is to crop the image.
9 years 10 months ago #1574

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 34
Thats great and I will test that. Do I have to rebuild only indilib or also kstars? I am on gentoo and used its internal packet manager which doesnt offer latest development snapshot of indilib. Where can I get your latest code? SVN?GIT?
--= human, without Windows™ =--
pls excuse my bad english! :)
9 years 10 months ago #1575

Please Log in or Create an account to join the conversation.

  • Posts: 226
  • Thank you received: 88
It's on svn, look in the "Develop" tab up there, in "code repository", you just have to copy/paste the svn checkout command . Be sure to suppress the libindi version installed by the gentoo packet-manager. I also hand-compiled kstars from their git repo, there is a good tutorial on how to install it in a private directory . I don't know if this is mandatory to rebuild kstars, this may depend on changes made in libindi.
9 years 10 months ago #1576

Please Log in or Create an account to join the conversation.

Time to create page: 0.493 seconds