View Full Version: ops for linux

camerahacks >>Applications >>ops for linux


<< Prev | Next >>

jrobinson5- 10-07-2006
Doesn't work in ubuntu
It didn't work for me, said it couldn't find the camera. Here's the terminal log: (ubuntu dapper, libusb installed version 2:0.1.10a-22ubuntu1) Note: I'm using the photo camera, not the video camera. Does OPS only work with the video camera? jrobinson@laptop:~$ cd /Desktop bash: cd: /Desktop: No such file or directory jrobinson@laptop:~$ cd Desktop jrobinson@laptop:~/Desktop$ alien bash: alien: command not found jrobinson@laptop:~/Desktop$ sudo apt-get install alien Password: Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: debconf-utils debhelper html2text libbeecrypt6 librpm4 rpm Suggested packages: lsb-rpm lintian dh-make The following NEW packages will be installed: alien debconf-utils debhelper html2text libbeecrypt6 librpm4 rpm 0 upgraded, 7 newly installed, 0 to remove and 14 not upgraded. Need to get 2387kB of archives. After unpacking 7913kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://us.archive.ubuntu.com dapper/main html2text 1.3.2a-3 [95.5kB] Get:2 http://us.archive.ubuntu.com dapper/main debconf-utils 1.4.72ubuntu9 [30.9kB] Get:3 http://us.archive.ubuntu.com dapper/main debhelper 5.0.7ubuntu13 [506kB] Get:4 http://us.archive.ubuntu.com dapper/main libbeecrypt6 4.1.2-4 [121kB] Get:5 http://us.archive.ubuntu.com dapper/main librpm4 4.4.1-5ubuntu2 [933kB] Get:6 http://us.archive.ubuntu.com dapper/main rpm 4.4.1-5ubuntu2 [597kB] Get:7 http://us.archive.ubuntu.com dapper/main alien 8.64 [104kB] Fetched 2387kB in 32s (73.2kB/s) Selecting previously deselected package html2text. (Reading database ... 113899 files and directories currently installed.) Unpacking html2text (from .../html2text_1.3.2a-3_i386.deb) ... Selecting previously deselected package debconf-utils. Unpacking debconf-utils (from .../debconf-utils_1.4.72ubuntu9_all.deb) ... Selecting previously deselected package debhelper. Unpacking debhelper (from .../debhelper_5.0.7ubuntu13_all.deb) ... Selecting previously deselected package libbeecrypt6. Unpacking libbeecrypt6 (from .../libbeecrypt6_4.1.2-4_i386.deb) ... Selecting previously deselected package librpm4. Unpacking librpm4 (from .../librpm4_4.4.1-5ubuntu2_i386.deb) ... Selecting previously deselected package rpm. Unpacking rpm (from .../rpm_4.4.1-5ubuntu2_i386.deb) ... Selecting previously deselected package alien. Unpacking alien (from .../archives/alien_8.64_all.deb) ... Setting up html2text (1.3.2a-3) ... Setting up debconf-utils (1.4.72ubuntu9) ... Setting up debhelper (5.0.7ubuntu13) ... Setting up libbeecrypt6 (4.1.2-4) ... Setting up librpm4 (4.4.1-5ubuntu2) ... Setting up rpm (4.4.1-5ubuntu2) ... Setting up alien (8.64) ... jrobinson@laptop:~/Desktop$ alien -help Usage: alien [options] file [...] file [...] Package file or files to convert. -d, --to-deb Generate a Debian deb package (default). Enables these options: --patch=<patch> Specify patch file to use instead of automatically looking for patch in /var/lib/alien. --nopatch Do not use patches. --anypatch Use even old version os patches. -s, --single Like --generate, but do not create .orig directory. --fixperms Munge/fix permissions and owners. ---*test*-('") Test generated packages with lintian. -r, --to-rpm Generate a Red Hat rpm package. --to-slp Generate a Stampede slp package. -l, --to-lsb Generate a LSB package. -t, --to-tgz Generate a Slackware tgz package. Enables these options: --description=<desc> Specify package description. --version=<version> Specify package version. -p, --to-pkg Generate a Solaris pkg package. -i, --install Install generated package. -g, --generate Generate build tree, but do not build package. -c, --scripts Include scripts in package. -v, --verbose Display each command alien runs. --veryverbose Be verbose, and also display output of run commands. -k, --keep-version Do not change version of generated package. --bump=number Increment package version by this number. -h, --help Display this help message. -V, --version Display alien's version number. jrobinson@laptop:~/Desktop$ alien -i ops-for-linux-1.i386.rpm Must run as root to convert to deb format (or you may use fakeroot). jrobinson@laptop:~/Desktop$ sudo alien -i ops-for-linux-1.i386.rpm jrobinson@laptop:~/Desktop$ ops Closing device No device to close ERROR: (open_camcorder.c, 140): Error: Couldn't find camcorder. ERROR: (open_camcorder.c, 153): Init() == FALSE ERROR: (unlock_camcorder.c, 8): Open camcorder first Closing device No device to close ERROR: (open_camcorder.c, 140): Error: Couldn't find camcorder. ERROR: (open_camcorder.c, 153): Init() == FALSE Closing device No device to close ERROR: (open_camcorder.c, 140): Error: Couldn't find camcorder. ERROR: (open_camcorder.c, 153): Init() == FALSE Closing device No device to close ERROR: (open_camcorder.c, 140): Error: Couldn't find camcorder. ERROR: (open_camcorder.c, 153): Init() == FALSE

ry.david- 10-07-2006
Re: Doesn't work in ubuntu
Note: I'm using the photo camera, not the video camera. Does OPS only work with the video camera? Yes, OPS is for the Video Camcorder. PV2Tool is the same as OPS but for the "still" picture cameras

SaturnNiGHTS- 11-03-2006

Did you get code from CVS or somewhere else? How old? For example, RIGHT NOW the code in CVS should work. works thanks. btw. was anyone able to get the capture video working?? here is the error when I try to play back what was recorded and my lsmod. mplayer zz MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team AltiVec found CPU: PowerPC 85 audio & 196 video codecs Playing zz. TiVo file format detected. MPEG: No audio stream found -> no sound. MPEG: FATAL: EOF while searching for sequence header. Video: Cannot read properties. No stream found. Exiting... (End of file) PoweBook ops-for-linux # lsmod Module Size Used by zr364xx 45104 0 videodev 11360 1 zr364xx cpufreq_ondemand 7548 0 psmouse 32132 0 snd_powermac 53796 1 I changed the source in the zr364xx.c file to have {USB_DEVICE (0x167b, 0x0101)}, // add your custom entry here ... { 0x167b, 0x0101, 0, "CVS Camcorder" }, // ... and here ! here is my cat /proc/bus/usb/devices T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 4 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=167b ProdID=0101 Rev= 0.00 S: Manufacturer=Pure Digital Inc. S: Product=Saturn S: SerialNumber=PS0000010 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 96mA I: If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none) E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms and dmesg usb 1-2: new high speed USB device using ehci_hcd and address 2 Linux video capture interface: v1.00 usbcore: registered new driver zoran /home/abdulmajed/down/zr364xx-0.61/zr364xx.c: Zoran 364xx module loaded if you need some more info please tell me. your /proc/bus/usb/devices shows the saturncam as running the full 480Mbps! is your video transfer faster with the zr364xx driver loaded? this just might be what we needed...i'll try it here. i was hoping a driver override would be what we needed to force a speed change

flyAkite- 11-19-2006

Hi All, I'm not sure why I got all these problems with the M230 camera (fw 53.12): if it because my linux version (ubuntu 6.10) or is due to the camera itself, but I had to do some modification of the source code of ops-for-linux-14 to get this camera working. This is the complete list of all the changes so far, and where I got stuck and I need some help (#5) ;-) # First problem: I couldn't unlock the camera, to fix this I used: forumer.com/viewtopic.php?t=4032" target="_blank">http://camerahacks.10.forumer.com/viewtopic.php?t=4032 # Second (but not real one ;-)) problem: I could dump the directory from the camera, but I got these warnings in the terminal: WARNING: (update_directory_listing.c, 130): unknown file type: 0x5a attr 0x4d WARNING: (update_directory_listing.c, 130): unknown file type: 0x2e attr 0x50 WARNING: (update_directory_listing.c, 130): unknown file type: 0x2e attr 0x42 To fix this I changed the update_directory_listing.c line 128-134 from: default: Log(WARNING, "unknown file type: 0x%02x attr 0x%02x", data.filetype, data.fileattr); case 0x20: thisfileinfo->filetype = FIFILE; break; to case 0x20: thisfileinfo->filetype = FIFILE; break; default: // Log(WARNING, "unknown file type: 0x%02x attr 0x%02x", data.filetype, data.fileattr); break; # Third problem: the "download last movie" button worked, but "donwload file" button did not. The symptom was that only an empty file was generated. The fix was to change the download_file.c file: line 106 add: char my_dir[STRINGSIZE]; line 128 add: if (CheckCameraOpen() == FALSE) return FALSE; change line 133 from: if(ChangeDirectory(currently_selected_file->dirpath)== FALSE) { to //if(ChangeDirectory(currently_selected_file->dirpath)== FALSE) { strcpy(my_dir,currently_selected_file->dirpath); if (my_dir[strlen(my_dir)-1]=='/') { my_dir[strlen(my_dir)-1]=0; } if(ChangeDirectory(my_dir)== FALSE) { # Fourth problem: the "download all movies" button was hunging OPS with the error: Xlib: unexpected async reply (sequence 0xe93)! the fix for this was to change the download_all_movies.c fle: change line 53, from: char* foldername = get_download_folder(); to: char* foldername = data; comment out line 55: // free(foldername); change line 78 from: if (!g_thread_create((GThreadFunc)download_all_movies_start_thread, NULL, FALSE, &error)) { to: char* foldername = get_download_folder(); if (!g_thread_create((GThreadFunc)download_all_movies_start_thread, foldername, FALSE, &error)) { line 83, change from: EnableControls(TRUE); to (add free): free(foldername); EnableControls(TRUE); # Fifth problem (and current one): the "camera setting" button doesn't work. When I click on it I'm getting the following error: ERROR: (usp.c, 598): bad magic2a and nothing cames up; I traced it down to the function: verify_usp_data called by change_camera_settings at line 596 and in particular to the line 184 in the same file: if(memcmp(ud->magic2a, "\x6c\x0f\x00\x03\x00\x01\x15\x03\x01\x01\x01\xff", sizeof ud->magic2a)) But here I stop I have no idea what this mean and how to fix it, so my work around was to comment out the call to this function in line 596: //const char *msg = verify_usp_data(&original_usp.data); //if(msg){ // Log(ERROR, "%s", msg); // return FALSE; //} But off course I don't consider this a fix ;-) Somebody can help me here? Thanks,

SaturnNiGHTS- 11-19-2006

ops-for-linux-14 doesn't unlock right, you have to use ops-for-linux-new. and the warnings are there for a reason...it means a problem in coding logic. ygf, enigma, anyone have an idea about the bad magic?

enigma-- 11-20-2006

ops-for-linux-14 doesn't unlock right, you have to use ops-for-linux-new. and the warnings are there for a reason...it means a problem in coding logic. ygf, enigma, anyone have an idea about the bad magic? um... i have a build that works here http://jeff.crowell.googlepages.com/ops-for-linux.tar.gz

SaturnNiGHTS- 11-20-2006

enigma, could you version that link correctly? so far we've had 14, 14-new, and now just "ops-for-linux"

enigma-- 12-29-2006

this topic is broken, i cant see page six

SaturnNiGHTS- 12-29-2006

you are correct. i can only see it in reply style. unfortunately, now no one will see our posts, since page six is broken.

BillW- 12-29-2006

oh ye of little faith... problem fixed.

SaturnNiGHTS- 12-29-2006

heh...thanks billw

BillW- 12-30-2006

Not a problem! :D

ygfperson- 12-30-2006

i'm going to upload enigma's tarball to sourceforge to make it obvious to people that there's a newer one around. i'm naming it 0.15 unless someone disagrees. (I've only just skimmed this thread so I might be missing something important.) If anyone wants to get in contact with me, my aim's ygfperson, and i'm almost always online. You probably can't rely on me checking the forums that often; it's the last semester of college and I probably won't have time.

SaturnNiGHTS- 04-29-2007

i'm publicly announcing that i will be taking the newest source tree , fold in my da-*test*-('")amp folders . i'm a bit dead with gtk programming , but i'll attempt to add in missing features between ops-linux 0.15 and ops-win32 0.21. once they're synced , i'll submit it upstream as ops-linux 0.21 Thanks, GTK and C is where I am weak. When I sort of took over the job of maintaining ops for linux it was way out of my league. Python is where I feel much more comfortable as well as bash, if only PyUSB was a bit more documented I would be a lot more useful 'round here.

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