Bug 307840

Summary: digikam ptp, only import photos
Product: [Applications] digikam Reporter: Philippe ROUBACH <philippe.roubach>
Component: Import-Gphoto2Assignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 2.9.0   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0
Sentry Crash Report:

Description Philippe ROUBACH 2012-10-04 13:15:11 UTC
when accesing to my nokia 5800 xpressmusic via usb ptp
digikam list only my photos

my photos are in a folder and my videos are in another folder in my smartphone
is it normal for usb ptp (<=> ptp is not concerned by video folder) or is it a bug ?



Reproducible: Always
Comment 1 caulier.gilles 2012-10-04 13:31:09 UTC
PTP driver is ... gphoto2. This one list, typically contents from camera...

If you use a memory card reader, where digiKam driver is used, the problem still the same ?

Gilles Caulier
Comment 2 Philippe ROUBACH 2012-10-04 13:37:58 UTC
(In reply to comment #1)
> PTP driver is ... gphoto2. This one list, typically contents from camera...
> 
> If you use a memory card reader, where digiKam driver is used, the problem
> still the same ?
> 
> Gilles Caulier

i dont' understand
please describe step by step the experiment
Comment 3 caulier.gilles 2012-10-04 13:40:59 UTC
Well, it's simple : don't use your camera as memory card reader, and try a dedicated memory card reader, connected to USB and running with Usb Mass Storage (as an USB key)

Gilles Caulier
Comment 4 Philippe ROUBACH 2012-10-04 13:58:20 UTC
i add an info

when i say digikam lists only photos i want to say more accurately : when using import tool
then this import tool only lists photos.

name of the folders in my smartphone :
- Clips vidéos
- Photos

i can acces to my smartphone with umsp, i will try
Comment 5 Philippe ROUBACH 2012-10-04 14:20:52 UTC
i selected in my smartphone the umsp
then
i plug it to the pc

with dolphin no pb to access to content of the card we see well the folders Photos and Videos (not Clips video)

with digikam 
when accessing "disque usb S60 à /media/CDF2-6BE2/"
the import tool is launched
then freezes during several minute
then
digikam crashes or lists all the photos and videos

note : no preview thumbnail for video (it is an mp4 one), very old pb (true also with usb ptp)
Comment 6 caulier.gilles 2012-10-04 14:29:40 UTC
In UMS video thumbs are generated by KDELibs through a ffmpeg codec.

In PTP, Gphoto2 driver do not support video thumb.

What's the crash trace ?

Gilles Caulier
Comment 7 Philippe ROUBACH 2012-10-04 14:41:03 UTC
i tried several time, i can't reproduce crash

résumé :
ptp : digikam import tool lists all photos but not the videos
umsp : digikam import tool lists all photos and videos

perhaps an enhancement would be good : only list photos from "Photos" folder and only list videos from "Videos" folders because the background, the icons and other images are not very useful
Comment 8 caulier.gilles 2012-10-04 14:52:41 UTC
The only improvement that i see is to support video media with Gphoto2 PTP driver. Please report this problem to Gphoto2 bugzilla

Gilles Caulier
Comment 9 Philippe ROUBACH 2012-10-04 15:26:38 UTC
(In reply to comment #8)
> The only improvement that i see is to support video media with Gphoto2 PTP
> driver. Please report this problem to Gphoto2 bugzilla
> 
> Gilles Caulier

or use mtp : the mtp protocol is concerned with videos, isn't it
but see my bug #307848
Comment 10 caulier.gilles 2012-10-04 16:12:51 UTC
I don't know if MTP is suported by Gphoto2 currently

Gilles Caulier