Bug 135640

Summary: gphoto-2.1.99head-4.x86_64.rpm --> 10 MB limit for Files on digicams
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Andreas Schneider <spam>
Component: OtherAssignee: Marcus Meissner <meissner>
Status: RESOLVED FIXED QA Contact: Adrian Schröter <adrian.schroeter>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Schneider 2005-11-28 08:03:36 UTC
Hello,
the current gphoto2 packet is compiled with the 10 MB max size for downloadable datase from digicams. Therefor you won't be able to download for example video files from your digicam if they exceed the 10 MB limit. (What actually happened with my ne Canon digital ixus 55).
This limit can be increased in the source code and the package has to be recompiled. 

Here are some further descriptions how to fix this error or feature:
http://wintersun.org/linux/ixus.html

In older packages (SuSE 9.3) this 10 MB limit wasn't active.
Comment 1 Marcus Meissner 2005-11-28 10:37:51 UTC
This should not be the case.

Also it does not even list the IXUS 55 except in PTP mode.

Can you please provide:

gphoto2 --auto-detect

and download debuginfo:
gphoto2 -...whatever options for downloadyou used... --debug
Comment 2 Marcus Meissner 2005-11-28 13:55:52 UTC
move to suselinux 10.0 product (openSUSE is just for the project, not for the resxulting distro)
Comment 3 Andreas Schneider 2005-11-28 16:43:06 UTC
Ok,
with the installed gphoto-2.1.99head*.rpm I got the result described above.
I searched the web for a solution and found the link.
But I couldn't compile gphoto2 from source, because I got some make errors.
So I looked for another package and installed the one for SuSE 9.3
gphoto-2.1.5head-3.x86_64.rpm

And with this package I'm able to get my files which are bigger than 10 MB.
So I think the problem ist somewhere in the sourcecode and could be the 10 MB limit described in the link.

For me gphoto2 works, but perhaps others will encounter the problem.


But here are additional infos:
Modell                         Port
----------------------------------------------------------
USB PTP Class Camera           usb:
USB PTP Class Camera           usb:001,004



Shall I reinstall the other package for testing?
Comment 4 Marcus Meissner 2005-11-28 16:47:54 UTC
actually "libgphoto2" is the driver package which should show significant changes.

The PTP driver is not limited in download size, so this problem is likely showing a different error.

I would still like a gphoto2 --debug trace of a failing download.
Comment 5 Andreas Schneider 2005-11-29 09:39:22 UTC
I'll try to provide the information this evening.
Is there a way to reduce the output?

I have one big avi on my canon camera (about 50 MB).
I reinstalled the 2.1.99head gphoto2 package.

I download the avi via:
gphoto2 -P
-p = download all files and ther is only one file, the big avi.

With gphoto2 -P --debug the output is very big.
And I try to redirect the output in a file
gphoto2 -P --debug 1>file.txt 2>&1

This file is becoming very big and so is it possible to reduce the output?
Comment 6 Marcus Meissner 2005-11-29 09:44:55 UTC
hmm.

gphoto2 --auto-detect  would be interesting first. shoudl only result in 3 - 4 lines of output.

as for -P --debug ... it cannot be easily avoided, although it will only
dump 1 MB for every datablob read.

The lines before the large dataset and the lines afterwards with just the 
start and the end of data would be sufficient and could be extracted with 
|head -1000 and |tail -1000 or so.

Comment 7 Andreas Schneider 2005-11-29 09:48:07 UTC
ok, I'll try this today,
but here's the output from gphoto2 --auto-detect

Modell                         Port
----------------------------------------------------------
USB PTP Class Camera           usb:
USB PTP Class Camera           usb:001,004
Comment 8 Andreas Schneider 2005-11-30 21:19:38 UTC
This is strange,
I'm not able to reproduce the error.
It works but I don't know why.

Before: gphoto-2.1.99head --> didn't work for files bigger than 10 MB
After:  gphoto-2.1.5      --> everything works

I tried to reproduce and reinstalled the gphoto-2.1.99
But: The 10 MB error isn't there.


So sorry, it works, that's good, but I can't find the error I had before
Comment 9 Marcus Meissner 2005-12-01 07:34:34 UTC
the 10MB logic hides in the libgphoto2 package... the "gphoto" package just is the commandline frontend.

but if this is fixed now, we can close the report. :)
Comment 10 Andreas Schneider 2005-12-01 19:30:46 UTC
yes, you can close the record, I'm happy :-)
Comment 11 Marcus Meissner 2005-12-06 08:11:05 UTC
marking fixed