mtplvcap icon indicating copy to clipboard operation
mtplvcap copied to clipboard

Not working with D700

Open puhitaku opened this issue 5 years ago • 3 comments

From YasukiKishi:

  • D700を電源ON⇒mtplvcap.exe起動したらシャッターは開く。
  • localhost:42839でISO,F値,Focus制御はできるが、Width,Height,Frame rateの情報は取れていない、プレビューも絵が映らない
  • localhost:42839/viewも表示できない
[0000]  INFO usb: found: 04b0:0422
[0000]  INFO usb: found: 0cf3:e303
[0000]  WARN mtp: detected more than 1 device, opening the first device: 04b0:0422
[0000]  INFO main: started
[0002]  WARN lv: workerLV: failed to start live view: the camera is not ready
[0003]  WARN lv: frameCaptor: failed to decode header

puhitaku avatar Sep 05 '20 14:09 puhitaku

Related branch: fix/d700

puhitaku avatar Sep 05 '20 14:09 puhitaku

I got a clue: https://github.com/dukus/digiCamControl/blob/master/CameraControl.Devices/Nikon/NikonD700.cs#L42-L64 There exist some "Live View Modes"

puhitaku avatar Sep 08 '20 12:09 puhitaku

Sorry it's my mistake.

yanorei32 avatar Apr 12 '22 08:04 yanorei32

Removing the magic 8 here makes video work for me: https://github.com/puhitaku/mtplvcap/blob/94f3b4c8849c347930e13e34d1c9a2c6fdb9864a/mtp/server.go#L741

Jokler avatar Aug 18 '23 14:08 Jokler

@Jokler Wow, great! I'll add a special path for D700 and release an experimental version later.

puhitaku avatar Aug 19 '23 01:08 puhitaku

@Jokler Sorry for keeping you waiting, here's an experimental build that includes the fix you proposed: v1.6.2-rc1. Could you try this build and see if it works? Thank you!

puhitaku avatar Sep 08 '23 11:09 puhitaku

If I just try to run that I get this:

[0001] ERROR lv: failed to start live view (InvalidStatus). Investigating the reason...
[0001]  WARN lv: workerLV: failed to start live view, reason: recording destination is the card

I was testing on top of the fix/d700 branch when it was working for me. If I run my working version first and then run v1.6.2-rc1 keeping the camera connected it works too.

Since I wasn't super clear before only the video seems to work though, I'm not sure if the settings in the web interface are supposed to work for all cameras though.

Jokler avatar Sep 08 '23 15:09 Jokler

Some older models need us to change the "record media" to the RAM. The message looks like it. I pushed a commit to fix/d700-new and created a corresponding release v1.6.2-rc2. @Jokler Could you try this again and see if it works without invoking the old fix/d700 build? Thanks for your cooperation!

Extra info of fix/d700: the branch is really old, and had some experimental commits that are also implemented in the master branch in very similar but different lines of code. I just gave it away to rebase and solve conflicts due to too many conflicting diffs.

puhitaku avatar Sep 09 '23 09:09 puhitaku

Now it works right away! :)

Jokler avatar Sep 10 '23 11:09 Jokler

I've just released Version 1.6.2 :tada: Now I can close here, the longest issue I've ever had. Thank you very much! @Jokler

puhitaku avatar Sep 10 '23 12:09 puhitaku