puhitaku / mtplvcap

Nikon to USB Webcam. Supports older models that Nikon WU does not. Windows/macOS/Linux. No HDMI capture dongle is needed. Ask me on Twitter @puhitaku
https://twitter.com/puhitaku
Other
251 stars 17 forks source link

Error on Nikon D3100 #66

Closed RomeoBravoGolf closed 1 year ago

RomeoBravoGolf commented 1 year ago

Hi, recieving the following error on Nikon D3100


[0000]  INFO usb: found: 04b0:0427
[0000] ERROR mtp: fatal error LIBUSB_ERROR_IO; closing connection.
[0000] FATAL main: failed to detect MTP devices: could not open 04b0:0427: mtp: no MTP extensions in ''

OS Ubuntu 20.04

puhitaku commented 1 year ago

Unfortunately, D3100 is not supported. It has no LV.

RomeoBravoGolf commented 1 year ago

Thanks for the quick reply

RomeoBravoGolf commented 1 year ago

Quick follow up, did some digging and it turns out the de D3100 does have LV mode but for some reason it disables itself when entering USB mode. I have no idea why this happens only in this specific model, ive tried to circumvent this problem with everything from ffmpeg + gphoto2 to digicam Control with no success. Do you think D3000 software could somehow be installed or if there is some other way to have de original software allow LV on USB mode

puhitaku commented 1 year ago

digiCamControl has a longer history in controlling DSLRs than mtplvcap. If digiCamControl does not support a model, we don't have any way to deal with it. There actually exists a modded firmware for Nikons. And you may disassemble it with Ghidra or something to find the flag not to stop LV when it's connected to a USB port, but I'm not sure how the modification will be. It might be a single branch instruction. Or, it might be a more complex modification of the internal state. Or, there's no feature to transmit the frame via USB.

RomeoBravoGolf commented 1 year ago

Thanks I'll look into it