View Full Version: ops for linux

camerahacks >>Applications >>ops for linux


<< Prev | Next >>

ygfperson- 09-15-2005

NEW OPS FOR LINUX RELEASE v0.11a See https://sourceforge.net/projects/saturntools This release has the following improvements over last release (and possibly some I forgot to mention): - icons in camera file listings - single-clicking of files updates the information instead of double-clicking - tree is expanded by default - Uploads work. You must select the directory to upload to, not the file to overwrite. If you wish to overwrite, you have to upload a file named the same name to the same folder. - All major downloads and uploads show the transfer bitrate in kilobytes. Most downloads and uploads also have a progressbar - Download Flash is implemented. (However I forgot the option menu to select a type of flash download, so it only does full flash downloads for now) - Changing and viewing camera settings works There are a few command line options to automatically download all files and format the camera. use --help to find those The CVS version (not the convienence store) has the following additional features: - windows Ops's Enable Mass Storage button is implemented - I added a Get Clock button to read the camcorder's time and spit the output to console. It's something to play with

qodsec- 09-15-2005

It did not compile correctly in previous versions but the newest release compiles on linux PPC. I think I am now in heaven. :D btw. it seems that capture video is not working. Is there something in the kernel such as video for linux that I need to enable for such a thing to work. thanks ygfperson, please continue with the good work

ygfperson- 09-15-2005

Capture Video is a work in progress. Lots more needs to be done to make it useful. You could try out the module zr364xx (http://royale.zerezo.com/phpwiki/?zr364xx), although you'll need to put in the camera's VID and PID into the source file and compile (use method=1) and you'll need to unlock your camera beforehand, and it may freeze your computer. :p The 64-bit work is albert's, who signed onto the project pretty much for that purpose. (He also did the 'change/view camera settings' box.) He deserves the thanks for that one.

qodsec- 09-15-2005

I think I will wait until it becomes more stable. thanks anyways I still need to try many of the other features of your program.

wai- 09-15-2005

now, back to our program.. ygfp, using the "more warnings" version, I get the following: sh-2.05b# ./ops-linux Starting threading... Threading started Starting gtk... main window created Closing device trying bus 0 Error: Couldn't find camcorder. Init() == FALSE are we having fun yet? the success on ppc suggests the endian code works, at least.

qodsec- 09-15-2005

did you try LINUX RELEASE v0.11a ?? that is the only one that worked on PPC. I tried it on a kanotix 2005.3 and the app worked fine, I even used the precompiled binary.

ygfperson- 09-15-2005

are we having fun yet? the success on ppc suggests the endian code works, at least. haha... I'm quite baffled myself. It looks like usb bus 0 exists, but it doesn't have any devices attached. Your saturndownload output shows a device on bus 0 being recognized. Soo.... the same series of commands are being issued by two different programs, but only one recognizes anything. For reference, here are the two programs's opening device sequences. SaturnTools: for (bus = usb_get_busses(); bus; bus = bus->next) { printf("Scanning bus: %d\n",buscount); devcount = 0; for (dev = bus->devices; dev; dev = dev->next) { printf("Scanning device: %d P,V: 0x%04X,0x%04X\n", devcount,dev->descriptor.idVendor, dev->descriptor.idProduct); ops-linux: Close (); // Just in case if already connected. m_usb_device = NULL; for (p_bus = usb_get_busses(); p_bus != NULL; p_bus = p_bus->next, ++bus_no) { struct usb_device *p_device;// = p_bus->devices; fprintf(stderr, "trying bus %d\n", bus_no); for (p_device = p_bus->devices; p_device != NULL; p_device = p_device->next ) { fprintf(stderr, "usb device with VID==%04x PID==%04x\n", p_device->descriptor.idVendor, p_device->descriptor.iProduct); I'd check the cable connections.

ygfperson- 09-16-2005

wai: Also, try the new release at the sourceforge site. I just remembered that I fixed the opening sequence so that may or may not help matters for you.

wai- 09-16-2005

I would check my cable if: 1)It didn't work fine, and 2)Your code snippet matched what I actually have! Here's what you had in the last "attempt" you pointed me to... Close (); // Just in case if already connected. m_usb_device = NULL; for (p_bus = usb_get_busses(); p_bus != NULL; p_bus = p_bus->next, ++bus_no) { struct usb_device *p_device = p_bus->devices; fprintf(stderr, "trying bus %d\n", bus_no); while (p_device) { fprintf(stderr, "usb device with VID==%04x PID==%04x\n", p_device->descriptor.idVendor, p_device->descriptor.iProduct); notice the device loop logic is not what you show above :) I think we have a codebase problem.

wai- 09-16-2005

wai: Also, try the new release at the sourceforge site. I just remembered that I fixed the opening sequence so that may or may not help matters for you. ya. i'll try that now.

wai- 09-16-2005

using 0.11a got failure to load icons. added return TRUE; at end of load-file-icons which fixed startup. now shows scanning bus 0, then 1, but no devices

ygfperson- 09-17-2005

I would check my cable if: 1)It didn't work fine, and 2)Your code snippet matched what I actually have! Here's what you had in the last "attempt" you pointed me to... **snip** notice the device loop logic is not what you show above :) I think we have a codebase problem. The code I posted was from 0.11a, which is why it didn't match... I probably should have told you to just try that first. now shows scanning bus 0, then 1, but no devices hmm... I don't know. Maybe Close() intereferes with stuff, so you could try and remove that, but I very much doubt it since m_usb_device is set to NULL in main() and Close() won't do anything then. It'd be something to try though. I can't just drop in SaturnDownload's open_camcorder code since the GPL is incompatable with her code. I doubt it would do much anyway to remedy the problem, but you can try messing around with it if you want. I'm baffled as to the cause of this. It should report any device it finds until it finds the camcorder. Since you're not getting any device output, it means something about ops-for-linux makes it unable to find the right device where SaturnDownload can. If you're able to use SaturnDownload and ops-linux in quick succession, and ops-linux reports no device but SaturnDownload does, then it's definitely a codebase problem. I'd say the best thing to do now is to plug in a usb mouse or some other usb device (not the camcorder or camera) and run saturndownload and ops-linux, and post the outputs to this forum so I can check it out. This will take out any possible cable error from the equation, and also it should tell if ops-linux detects usb devices, period.

wai- 09-17-2005

i'll play with it some when i have time. obviously, it would be nice to get this working on osx. The mouse idea is a good one. the gtk front end makes it a bit clunky to install and use but the unified codebase for all platforms is very attractive. It would be great to get everyone working off the same page to reduce duplicated effort. BTW, note the bug fix I mentioned. Also, I assume in fprintf(stderr, "usb device with VID==%04x PID==%04x\n", p_device->descriptor.idVendor, p_device->descriptor.iProduct); iProduct should be idProduct?

camerabuser- 09-17-2005

did you try LINUX RELEASE v0.11a ?? that is the only one that worked on PPC. I tried it on a kanotix 2005.3 and the app worked fine, I even used the precompiled binary. The way it works: 1. ops (windows version) gets a change 2. change is copied to ops-linux, breaking PowerPC 3. albert fixes the byte order problems 4. goto #1 I think the releases tend to be after adding the features that break PowerPC.

qodsec- 09-17-2005

Ok I am getting the following error when I am trying to change my camera's settings ChangeDirectory "/" GetAnyFileInfo start success in Read in GetAnyFileInfo success in GetAnyFileInfo Failed, file is larger than memory buffer. FileToMemory failed in get_usp_file Closing device Camcorder USB device closed.

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.