When I'm trying to do gphoto2 -L with my picture frame connected, the contents cannot be displayed. I suspect my particular picture frame is not supported yet. I have attached the debug log. I'm using gphoto2 version 2.5.3.
Where XXX and YYY are the resolution of your lcd-screen and then (re-)build and install libgphoto2 from sources, and see if things work properly then ?
Thanks & Regards,
Hans
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After spending an age finding a working Windows system to connect this thing to, I found the images that came off it were 320x240, so I used this patch:
--- libgphoto2-2.5.3.1.orig/camlibs/ax203/ax203.c+++ libgphoto2-2.5.3.1/camlibs/ax203/ax203.c@@ -650,6 +650,7 @@ static int ax203_read_parameter_block(Ca if (i < 0) return i;
switch (i) {
case 0:
+ case 1: camera->pl->width = 320;
camera->pl->height = 240;
break;
Then I get the attached output for gphoto2 -L and gphoto2 -P but nothing is put on my disk. Also there are not that many pictures on the frame. So it seems there is still something going wrong.
Can you do another run with the patches code with --debug -L and then attach the output here?
Also I see you're Dutch like me. Do you live in the Netherlands, and if so do you happen to live near Delft / The Hague (I'm asking because debugging this may be easier with hardware access).
Regards,
Hans
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ik woon zelf in Amersfoort, dus niet echt in de buurt. Ik kom af en toe wel bij familie in Den Haag, dus misschien kan ik dan wel wat regelen. Het zou fantastisch zijn als ik hem dan direct met gphoto2 zou kunnen gebruiken!!
Looking properly at the debug log again, I noticed gphoto2 is trying to get PNG images off the device, but as far as I remember, there are JPEG images stored on it. Could this be the problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you give that change a try please (the change is in the ax3003_read_v3_5_x_fileinfo function) ?
As for it not saving any pictures, please re-run ./configure and make sure that it finfds both libjpeg and gd, if it does not then you need to install the necessary -dev packages and re-run ./configure again.
As for the JOEG versus PNG issues, the frames use a custom JPEG format, so we have a custom decompressor for it in libgphoto2, which outputs raw rgb value, which then gets saved to a png.
Regards,
Hans
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
IT'S WORKING!!!
I just downloaded all the pictures correctly off the frame!!!
I had to switch my mail client to plain-text to get the patch out and I indeed had to upgrade my gd version, but it's all working now. The pictures even didn't have any corruption (which they somehow did show on Windows).
Thank you very much! Now I need to try to get new pictures on there :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Marcus, as mentioned in my last comment, this is fixed in svn now. It seems I lack rights to close this bug, so I assume you will close it (be it now or on the next release).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No edit for me (well one for each comment including comments not by me), only follow and unsubscribe icons in the top-bar.
Note this bug tracker has been acting weird for me the last couple of days anyways, in many cases it showed me a "you need to log in" message even though I was already logged in (and ate the comment I just typed, so I had to type most of my comments twice).
Maybe some weird interaction between my firefox and sf.net bugs tracking code. Just go ahead and close this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Thanks for the bug-report. What resolution does the lcd screen of your photo-frame have?
If you look at camlibs/ax203/ax203.c in the libgphoto2 sources then around line 647 you will
find the following there:
Can you try changing this to:
Where XXX and YYY are the resolution of your lcd-screen and then (re-)build and install libgphoto2 from sources, and see if things work properly then ?
Thanks & Regards,
Hans
After spending an age finding a working Windows system to connect this thing to, I found the images that came off it were 320x240, so I used this patch:
Then I get the attached output for gphoto2 -L and gphoto2 -P but nothing is put on my disk. Also there are not that many pictures on the frame. So it seems there is still something going wrong.
What else could I try?
Thanks!
Last edit: Julius 2014-03-17
Hi,
Can you do another run with the patches code with --debug -L and then attach the output here?
Also I see you're Dutch like me. Do you live in the Netherlands, and if so do you happen to live near Delft / The Hague (I'm asking because debugging this may be easier with hardware access).
Regards,
Hans
Bij deze!
Ik woon zelf in Amersfoort, dus niet echt in de buurt. Ik kom af en toe wel bij familie in Den Haag, dus misschien kan ik dan wel wat regelen. Het zou fantastisch zijn als ik hem dan direct met gphoto2 zou kunnen gebruiken!!
Looking properly at the debug log again, I noticed gphoto2 is trying to get PNG images off the device, but as far as I remember, there are JPEG images stored on it. Could this be the problem?
Hi Again,
Thanks for the log. So as for gphoto2 seeing way to much pictures that should be fixed by something like this:
--- camlibs/ax203/ax203.c (revision 14829)
+++ camlibs/ax203/ax203.c (working copy)
@@ -936,6 +936,11 @@
AX3003_ABFS_FILE_OFFSET (idx),
&raw, sizeof(raw)))
+
fileinfo->present = raw.address && raw.size;
fileinfo->address = be16toh (raw.address) * 0x100;
fileinfo->size = be16toh (raw.size) * 0x100;
Can you give that change a try please (the change is in the ax3003_read_v3_5_x_fileinfo function) ?
As for it not saving any pictures, please re-run ./configure and make sure that it finfds both libjpeg and gd, if it does not then you need to install the necessary -dev packages and re-run ./configure again.
As for the JOEG versus PNG issues, the frames use a custom JPEG format, so we have a custom decompressor for it in libgphoto2, which outputs raw rgb value, which then gets saved to a png.
Regards,
Hans
IT'S WORKING!!!
I just downloaded all the pictures correctly off the frame!!!
I had to switch my mail client to plain-text to get the patch out and I indeed had to upgrade my gd version, but it's all working now. The pictures even didn't have any corruption (which they somehow did show on Windows).
Thank you very much! Now I need to try to get new pictures on there :)
Uploading works fine too! Thanks again!! Should I provide any extra information to get these changes applied to gPhoto trunk?
No extra information is needed, I've just committed the fix to libgphoto2 svn:
https://sourceforge.net/p/gphoto/code/14830/
Thanks for the bug report and the required testing to get this fixed.
Marcus, as mentioned in my last comment, this is fixed in svn now. It seems I lack rights to close this bug, so I assume you will close it (be it now or on the next release).
can you try now? Its hard to figure out the permission framework here
Still no joy, or I'm misunderstanding the UI, I assume I should be able to change the status at the top, were it currently says: " Status: open" ?
you need to press on Edit in the top bar, then it should be possible?
No edit for me (well one for each comment including comments not by me), only follow and unsubscribe icons in the top-bar.
Note this bug tracker has been acting weird for me the last couple of days anyways, in many cases it showed me a "you need to log in" message even though I was already logged in (and ate the comment I just typed, so I had to type most of my comments twice).
Maybe some weird interaction between my firefox and sf.net bugs tracking code. Just go ahead and close this.
I see the same behaviour for months now. and I do not understand the permission system. :/