Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1
  • 2

TOPIC: V4L2 CCD PHD2 stacking not working

V4L2 CCD PHD2 stacking not working 2 months 1 week ago #23274

  • topaz
  • topaz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Hi,
I cannot make PHD2 to stack frames from webcam under Linux/indi V4L2_CCD driver. Camera does not allow exposure control and to get any images into PHD2 I have to turn on streaming in indi V4L2 settings.
However if I change PHD2 exposure/stacking? time bar, nothing changes.
Under Windows the same version of PHD2 works OK, still no exposure contro,l but if I set exposure bar to for example 1s, it takes 30 frames and stack them.
I do not know if it is PHD2 issue or indi_v4l2_ccd driver. I have tried 2 different webcams.
Does anybody made PHD2 stack frames under Linux?

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

V4L2 CCD PHD2 stacking not working 2 months 1 week ago #23279

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 65
  • Thank you received: 37
At the moment this is not supported in PHD2 INDI camera.
I think less and less people use webcam for guiding and I use a v4l2 camera that support long exposure (DMK21) so I not take the time to implement this function when I rewrite the interface a few years ago.

But I let comments in the code where you can do that if you are interested:
github.com/OpenPHDGuiding/phd2/blob/master/cam_INDI.cpp#L183
github.com/OpenPHDGuiding/phd2/blob/master/cam_INDI.cpp#L638

Contribution are welcome!
The following user(s) said Thank You: knro, topaz

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

V4L2 CCD PHD2 stacking not working 2 months 1 week ago #23299

  • topaz
  • topaz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Thank you.
I have looked into cam_wdm.cpp to get an idea how it stacking is done, but I could not figure it out.
Any suggestions?

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

V4L2 CCD PHD2 stacking not working 2 months 1 week ago #23305

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 65
  • Thank you received: 37
I take a look and remark that streaming in PHD2 do not work at all because the INDI property name changed from VIDEO_STREAM to CCD_VIDEO_STREAM, and the switch name from ON/OFF to STREAM_ON/STREAM_OFF since the last time I check that.

I make the fix in PHD2:
github.com/OpenPHDGuiding/phd2/commit/8d...03f2b471147487c4cee0

This is why you see an image in phd2 only when you turn streaming manually in the driver.

Can you compile phd2 from source and try with my last change?
There is information here:
github.com/OpenPHDGuiding/phd2/wiki/BuildingPHD2OnLinux

This must now show and image when you start capture from phd2. If this work we can continue with the stacking process.

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

V4L2 CCD PHD2 stacking not working 2 months 1 week ago #23310

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 65
  • Thank you received: 37
I resurrect a webcam from the attic and continue my testing.

It still not work because the v4l2_ccd driver report an EXPOSURE property even it is not supported by the camera.
When I write the phd2 client in 2015 it was not reported and I use this missing property to know the driver must use streaming instead.

I attached a debug log, it show a warning as exposure is not supported but it still send a defNumberVector for CCD_EXPOSURE.

Jasem, is it possible to not report this property in this case? or is there another way to know I must use streaming instead of standard exposure?

File Attachment:

File Name: indi_v4l2_ccd_144857.log
File Size: 8 KB
Attachments:

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

V4L2 CCD PHD2 stacking not working 2 months 1 week ago #23312

  • topaz
  • topaz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
I have compiled as per instructions given.
Still not working,
PHD works when stream is on, if I turn it off :
INDI server localhost/7624 disconnected.
Segmentation fault (core dumped)
Attachments:

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

Last Edit: by topaz.

V4L2 CCD PHD2 stacking not working 2 months 1 week ago #23313

  • topaz
  • topaz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
I have also tried with EKOS (like sombody in other topic here) and there even if I turn stream on nothing is captured and guiding does not work.

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

V4L2 CCD PHD2 stacking not working 2 months 6 days ago #23386

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 65
  • Thank you received: 37
Now the webcam can basically work phd2 if you compile today last git.
See:
www.indilib.org/forum/ccds-dslrs/3078-v4...-property.html#23384

If this work for you we can continue with the implementation of stacking.

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

V4L2 CCD PHD2 stacking not working 2 months 6 days ago #23391

Unfortunately, there is no way to remove it since it is based on INDI::CCD now. Maybe you can add a checkbox in PHD2 to use streaming over standard capture when available? A user preference.

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

V4L2 CCD PHD2 stacking not working 2 months 5 days ago #23393

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 65
  • Thank you received: 37
I am a bit reluctant to add a checkbox because many user like to check the options they not need, and the risk is they use a less performant guiding by forcing to streaming a camera that also support long exposure.
At least all the users of ZWO and QHY are at risk. On the other side the users of webcam or video acquisition card are probably very few because this is not working with phd2 for nearly two years before we get a report.

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

V4L2 CCD PHD2 stacking not working 2 months 5 days ago #23395

  • topaz
  • topaz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Thank you.
It works with my webcam, it falls to streaming after trying exposure. I don't need to turn on streaming in indi driver control panel.
How could we make stacking work?

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

Last Edit: by topaz.

V4L2 CCD PHD2 stacking not working 2 months 5 days ago #23405

  • pch
  • pch's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 65
  • Thank you received: 37
I implemented stacking now:
github.com/OpenPHDGuiding/phd2/commit/18...570b88a5dbc2b1201c13

Can you compile the last git and try it?

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

  • Page:
  • 1
  • 2
Time to create page: 0.132 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica