gphoto / gphoto2

The gphoto2 commandline tool for accessing and controlling digital cameras.
GNU General Public License v2.0
718 stars 116 forks source link

Samsung NX1 (Partially Supported) #329

Open ttbek opened 4 years ago

ttbek commented 4 years ago

Not a new camera, but still sort of semi-supported.

Is there anything I can do to help get this camera to the point where we can get the capture preview? I would really like to use it as a webcam in these times. My 5DSR is good... but I don't have a false battery to keep it even remotely charged, so I'm ferrying around batteries whereas the NX1 will charge over USB even while shooting (though maybe not while PTP? not sure on that, but at least it would be charging whenever not in an active call). I don't have the time to do deep reading on PTP, but I can run commands, compile test versions and test, etc... to help get this working. It shouldn't be impossible, since I think it is probably what Samsung does in Samsung Remote Studio (Windows only), but maybe I can poke around and see what they send to the camera. I don't know how to capture the USB communication though, but if somebody does I can run commands.

Fill in fields below. If you don't know how, leave it free.

*Name of the camera Use the Marketing name.

Samsung NX1

USB IDs e.g. by running: lsusb

Bus 006 Device 002: ID 04e8:140c Samsung Electronics Co., Ltd SAMSUNG

gphoto2 --port usb: --abilities Abilities for camera : Samsung NX1
Serial port support : no USB support : yes Capture choices : : Capture not supported by the driver Configuration support : no Delete selected files on camera : yes Delete all files on camera : no File preview (thumbnail) support : yes File upload support : yes

camera summary output run

gphoto2 --summary > summary.txt

Error
This camera does not support summaries. Error (-6: 'Unsupported operation')

attach summary.txt here summary.txt

camera configuration output

gphoto2 --list-all-config > list-all-config.txt

Error
This camera does not provide any configuration options. Error (-6: 'Unsupported operation')

and attach list-all-config.txt here list-all-config.txt

test capture

test if capture perhaps already works:

gphoto2 --capture-image-and-download Error
This camera can not capture. ERROR: Could not capture image. ERROR: Could not capture. Error (-6: 'Unsupported operation')

For debugging messages, please use the --debug option. Debugging messages may help finding a solution to your problem. If you intend to send any error or debug messages to the gphoto developer mailing list gphoto-devel@lists.sourceforge.net, please run gphoto2 as follows:

env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image-and-download

Please make sure there is sufficient quoting around the arguments.

gphoto2 --capture-preview Error
This camera can not capture previews. Error (-6: 'Unsupported operation')

For debugging messages, please use the --debug option. Debugging messages may help finding a solution to your problem. If you intend to send any error or debug messages to the gphoto developer mailing list gphoto-devel@lists.sourceforge.net, please run gphoto2 as follows:

env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-preview

Please make sure there is sufficient quoting around the arguments.

Tried each command with debug as each failed command suggested, that debug is here: my-logfile.txt

msmeissn commented 4 years ago

run gphoto2 --auto-detect

There is a SD card plugged in that is detected:

disk:/media/kunji/EOS_DIGITAL

this blocks camera operations on the PTP camera.

ttbek commented 4 years ago

Hey msmeissn, thanks very much, I didn't realize that.

gphoto2 --auto-detect
Model                          Port                                            
----------------------------------------------------------
Samsung NX1                    usb:006,003     
gphoto2 --port usb: --abilities
Abilities for camera             : Samsung NX1                                 
Serial port support              : no
USB support                      : yes
Capture choices                  :
                                 : Capture not supported by the driver
Configuration support            : no
Delete selected files on camera  : yes
Delete all files on camera       : no
File preview (thumbnail) support : yes
File upload support              : yes

camera summary output run

gphoto2 --summary > summary.txt summary.txt

camera configuration output

gphoto2 --list-all-config > list-all-config.txt list-all-config.txt

test capture

test if capture perhaps already works:

gphoto2 --capture-image-and-download

*** Error ***              
Sorry, your camera does not support generic capture
ERROR: Could not capture image.
ERROR: Could not capture.
*** Error (-6: 'Unsupported operation') ***       

For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:

    env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image-and-download

Please make sure there is sufficient quoting around the arguments.

And once more with --debug: gphoto2 --debug --capture-image-and-download > debug.txt 2>&1 debug.txt

msmeissn commented 4 years ago

The debug output of the camera shows it only supports the normal PTP + MTP functionality, but not remote control at all.

It seems not exposed over USB, sorry.

ttbek commented 4 years ago

Dear msmeissn,

I know it is controllable over USB with Samsung Remote Studio. Is there a way I can test if Samsung Remote Studio is using these protocols? I can get a copy of the software to you if you wish to examine it (it is Windows only and they no longer make it available but I have version 1.0.0 and 1.0.1.

msmeissn commented 4 years ago

https://www.eoshd.com/comments/topic/8759-samsung-remote-studio/

msmeissn commented 4 years ago

a german article https://www.fotointern.ch/archiv/2015/01/21/samsung-nx1-wichtiges-firmware-update-fuer-videofilmer/

Says firmware 1.2 adds USB remote control features ... which firmware version do you have currently? Can you see if you can upgrade if not yet at 1.2?

ttbek commented 4 years ago

My NX1 has firmware 1.41 and I can confirm that it works with Samsung Remote Studio over USB on Windows. Samsung Remote Studio is similar to other tethering apps in features, live preview, remote trigger and download of photo, also for video capture. What I cannot confirm yet is that it necessarily uses mtp/ptp to do these things. Is there a way I can check that?