View Full Version: ops for linux

camerahacks >>Applications >>ops for linux


<< Prev | Next >>

qodsec- 09-20-2005

I just deleted the originals but here is another new one http://www.megaupload.com/?d=8XF8JTI5 btw. yes I did the modprobe zr364xx debug=1

ygfperson- 09-20-2005

This is very promising. That is real output you have in that file. Do this: mplayer tv:// -tv driver=v4l when the camera is using the zr364xx module. Copy and paste the output here

qodsec- 09-20-2005

PoweBook user # rmmod zr364xx # the module autoloads when I plug in the camcorder PoweBook user # lsmod Module Size Used by cpufreq_ondemand 7548 0 psmouse 32132 0 snd_powermac 53796 1 PoweBook ops-for-linux # ./ops & Starting threading... Threading started Starting gtk... main window created Closing device trying bus 0 usb device with VID==0000 PID==0000 trying bus 1 usb device with VID==0000 PID==0000 trying bus 2 usb device with VID==05ac PID==1000 usb device with VID==0000 PID==0000 trying bus 3 usb device with VID==167b PID==0101 Found the camcorder: Pure Digital Inc. , VID:167B PID:0101 Found camcorder. Connected to camcorder. Challenge Key: 0305d6eb04dd53a4888213994b96fda30ee9752ce54ada9fe19d531deb2ecc72 f3453b474bfb28984d4b6c69446c39b58a5e5aa8edc4bc0e57f12e0aaf45650b faba43fcc6ba59bbc834aacdc4eeb150ad1da6300e33fe9ea8f831be5cdcbfa0 4c8b75723ec3ecf44162542c92c46f5ac04be02e0f3fa6391ad9e4a2bd9ae31a Response Key: 3167cd83ac578c0a4cb1520ea017984fd3d0b53a372146634dea326c2efa2275 2182abaebd4ddffa15dc47c72b8988b8ae61a412048781e99179f52279ee11ad caa7e6d0041638bdbce1eab27e57e2d411c30bdd52ffaf58e3e6edfac377c0a5 0b2f9f7828cc3f7e16028102f3daea5a777e68ca06426f0adf522c3d3445eb33 succeeded in unlocking camcorder PoweBook user # modprobe zr364xx debug=1 PoweBook user # lsmod Module Size Used by zr364xx 45104 0 cpufreq_ondemand 7548 0 psmouse 32132 0 snd_powermac 53796 1 PoweBook user # mplayer tv:// -tv driver=v4l MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team AltiVec found CPU: PowerPC 85 audio & 196 video codecs Playing tv://. Cache fill: 0.00% (0 bytes) TV detected! ;-) Selected driver: v4l name: Video 4 Linux input author: Alex Beregszaszi comment: under development unable to open '/dev/video0': No such file or directory Exiting... (End of file) PoweBook user # ls /dev/vide* ls: /dev/vide*: No such file or directory

BillW- 09-20-2005

It looks like you're missing the /dev/video0 device. Build it with the following command as root: mknod /dev/video0 c 81 0

qodsec- 09-22-2005

no luck PoweBook zr364xx-0.61 # lsmod Module Size Used by zr364xx 45104 0 cpufreq_ondemand 7548 0 psmouse 32132 0 snd_powermac 53796 3 PoweBook zr364xx-0.61 # mplayer tv:// -tv driver=v4l MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team AltiVec found CPU: PowerPC 85 audio & 196 video codecs Playing tv://. Cache fill: 0.00% (0 bytes) TV detected! ;-) Selected driver: v4l name: Video 4 Linux input author: Alex Beregszaszi comment: under development unable to open '/dev/video0': No such device Exiting... (End of file) PoweBook zr364xx-0.61 # ls /dev/vid* /dev/video /dev/video0 PoweBook zr364xx-0.61 #

ygfperson- 09-23-2005

Maybe your kernel doesn't have video4linux compiled?

ygfperson- 09-23-2005
RELEASE
Version 0.12 is released http://www.sourceforge.net/projects/saturntools Features: Enable Mass Storage added GetClock and SetClock buttons implemented GUI redesign new pretty file icons in camera tree view A linux binary and a win32 one are included. You need a bunch of dll's for the windows one, they can be obtained by googling for a set of gtk dll's Screenshot:

qodsec- 09-23-2005

Maybe your kernel doesn't have video4linux compiled? I did compile v4l into the kernel │ │ <*> Video For Linux │ │ │ │ Video For Linux ---> │ │ --- Video Adapters │ │ │ │ < > BT848 Video For Linux │ │ │ │ < > CPiA Video For Linux │ │ │ │ < > SAA5246A, SAA5281 Teletext processor │ │ │ │ < > SAA5249 Teletext processor │ │ │ │ < > SAB3036 tuner │ │ │ │ < > Stradis 4:2:2 MPEG-2 video driver (EXPERIMENTAL) │ │ │ │ <M> Zoran ZR36057/36067 Video For Linux │ │ │ │ < > Iomega Buz support │ │ │ │ <M> Pinnacle/Miro DC10(+) support │ │ │ │ <M> Pinnacle/Miro DC30(+) support │ │ │ │ <M> Linux Media Labs LML33 support │ │ │ │ <M> Linux Media Labs LML33R10 support

aribn- 09-25-2005
Success on Mac OS X!
I've gotten ops-for-linux 0.12 up and running on Mac OS X. Ceres, too, but I'll describe that elsewhere. 1) In ops-linux.h, on line 24, add these two lines after the line "#define __LITTLE_ENDIAN 1:" #elif defined(__APPLE__) && defined(__MACH__) #include <machine/endian.h> 2) In the Makefile, remove "-warn-common" from PKG_LDFLAGS 3) In the Makefile, add "-bind_at_load" to LDFLAGS Next, try to make, and use FinkCommander to install binaries for each of the assorted missing libraries that cause errors. After this, if you want to "make install", you need to do a few more changes: 1) In Makefile, change: install := install -D --owner 0 --group 0 to install := install -o 0 -g 0 2) In Makefile, change both occurences of: "$(install) --mode" ... to "$(install) -m" . Then... sudo make install --- I -*test*-('")ed most buttons (details below) and, for the most part, everything worked smoothly. The only functionality that appears to be broken is "set camera settings." The highlight of the experience was watching the results of the "Enable Mass Storage" button. A "NO_NAME" drive mounted (no surprise), and then iPhoto 5 launched, and prompted me to name and describe the film to be imported. The iPhoto import was smooth, but the resulting files still need ffmpeg post-processing (described elsewhere) to fix audio for Quicktime-based applications. --- notes on functionality: Fully functional: "Open Camcorder" "Unlock" "Close Camcorder" "Download All Movies" "Update Directory Listing" "Get Clock value" "Delete File" "Powerdown Camcorder" "Download Flash" "Enable Mass Storage" !! "Download Last Movie" "Set clock value" "Toggle camera lcd screen" "Send Monitor Command" "Camera Settings" "download file" "Upload file" Un-*test*-('")ed: "Download Memory" "Format Storage" Problems: "Capture Video" (no file created) 0xd000 returned: 00 04 30 0b failure on 0xd000 0xd000 returned: 00 00 00 00

ygfperson- 09-26-2005

That's awesome! I'll look into adding those changes into ops-linux.h asap, and into fixing your other problems //edit: just fyi, Enable Mass Storage uses Send Monitor Command so both are actually confirmed

ygfperson- 09-26-2005

http://www.rpi.edu/~schneg/ops-for-linux-mac-alpha.tar.gz Try compiling and using this version. (Mostly I just want to see if it works without changes.) I've added a messagebox to say when setclock works (before it was completely silent.) I'm going to ignore the capture video stuff since that's questionable on windows also and since it doesn't do anything useful yet it's not really worth poring over. Could you download USP.BIN from your camera and send it to me? It could be corrupted, possibly (which is not a fatal thing). I want to do comparisons with my USP.BIN file and see if yours was messed up in downloading or just a little different from what we expected. Also, could you post the binary you get from compiling the program? I'm sure all the mac people on this forum would appreciate it :)

bri-bri- 09-26-2005

Yes indeed mac users would be happy :lol: I'd be happy cause then i'd not feel like an idiot for not being able to figure this out myself! I'm not a programmer, but I thought I'd give compilation a go... I have the developer tools installed, x-11 is installed, i got fink installed and had it download and install libusb and gtk2+. then i downloaded this and made the changes (also tried the new link to the one including the changes).... cd'd to the source directory, in terminal typed 'sudo make install' and got the following errors (maybe just path errors, but i don't know what to do to fix them): Brians-PB15:~/Desktop/ops/ops-for-linux brian$ sudo make install make: pkg-config: Command not found make: pkg-config: Command not found cc -c -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -O2 -s set_clock.c -o set_clock.o In file included from set_clock.c:1: ops-linux.h:55:21: error: gtk/gtk.h: No such file or directory ops-linux.h:56:17: error: usb.h: No such file or directory In file included from set_clock.c:1: ops-linux.h:110: error: parse error before 'GtkWidget' ops-linux.h:110: warning: no semicolon at end of struct or union ops-linux.h:111: warning: type defaults to 'int' in declaration of 'b' ops-linux.h:111: warning: data definition has no type or storage class AND SO ON... for another couple hundred lines so any tips to a novice or link to a binary are equally welcome and thanks in advance.

ygfperson- 09-26-2005

You need the gtk 2.0 library and libusb to compile this program

bri-bri- 09-26-2005

as i mentioned, i DID obtain and install the libusb and gtk 2+ libraries from the Fink (install from source) command. I assume that the original post which said 'install necessary componants from Fink' just meant those two, although if thats the case I dont know what I missed. it seems like my errors are indicating that they are not installed in the 'right place'. but again, i don't know how to remedy that....

ygfperson- 09-27-2005

You're also missing pkg-config apparently. That's not essential though: just replace `pkg-config --cflags gtk+-2.0` with -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include and replace `pkg-config --libs gtk+-2.0` with -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 That might be causing everything else.

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