Bug 414473

Summary: Importing problem with M2Ts video files
Product: [Applications] digikam Reporter: FG <fgenestcvdl>
Component: Import-AlbumsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: metzpinguin
Priority: NOR    
Version First Reported In: 6.4.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 7.0.0
Sentry Crash Report:

Description FG 2019-11-24 20:37:15 UTC
I have many m2ts ( videos from a 4K Sony camcorder) files to import in my collections.

When i import the files few are sent to the right directory ( date taken based ) most of the are sent to a directory at the date of the upload form the camera ( done a few days ago with Sony display memories  )

None of them are present in the database after the import.




I used 


STEPS TO REPRODUCE
1. Get a few M2ts files in a directory a
2. Import images all, with directory a as source and collection XXX as destination  
3. 

OBSERVED RESULT
1. With the file explorer. 
   a) a few files are in the good directory ( 00002_ok.m2ts )
   b) other files are not in the good directory (20181019055430_non_ok.m2ts)


2. none of the imported files are in the databse
3. none of the files are displayed in the XXX collection


EXPECTED RESULT
 
These should be stored in the good directory
     00002_ok.m2ts  in 2018-05-28   ( witch is ok )
     20181019055430_non_ok.m2ts in 2018-10-19  (witch is non ok it is 
                                                getting to 2019-11-14 )   
Be present in the database
Be displayed normaly in the album view


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I would have liked to includeds two sample files for testing but the tool limit the file size to 4000 kb and the two files are 220 000 kb when zipped. I could send them by another way on request.
Comment 1 Maik Qualmann 2019-11-24 20:46:51 UTC
The extension "m2ts" is unknown to digiKam. You can add these in the digiKam Setup-> View-> Mime Types under Video. Then also "m2ts" files are recognized.

Maik