Bug 369629 - digikam does not use GPS data from video files
Summary: digikam does not use GPS data from video files
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Geolocation-Engine (show other bugs)
Version: 5.4.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-02 08:41 UTC by Philippe ROUBACH
Modified: 2018-03-03 08:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0
Sentry Crash Report:


Attachments
movie geolocation (428.36 KB, image/png)
2016-10-02 08:42 UTC, Philippe ROUBACH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2016-10-02 08:41:58 UTC
opendigikam
then
watch a movie thumbnail. there is no little earth at the upper right corner
then
click on a movie in an album. no map is displayed

see the capture

this problem is not new it was solved in the past.
it reappears at least with digikam 4.14.10


Reproducible: Always
Comment 1 Philippe ROUBACH 2016-10-02 08:42:51 UTC
Created attachment 101372 [details]
movie geolocation
Comment 2 Philippe ROUBACH 2016-10-02 08:51:18 UTC
at google photo site we can check that google photo takes care of the geolocation of movie
Comment 3 caulier.gilles 2016-12-18 10:00:55 UTC
*** Bug 330116 has been marked as a duplicate of this bug. ***
Comment 4 Philippe ROUBACH 2016-12-23 15:37:49 UTC
5.4.0

not fixed
Comment 5 caulier.gilles 2016-12-23 17:05:02 UTC
Which kind of video file you use. 5.4.0 bundle use Exiv2 026-svn with video metadata support that must do the stuff. Do you see any GPS info in Exif metadata viewer ?

Gilles Caulier
Comment 6 caulier.gilles 2016-12-23 17:06:12 UTC
Or in your comment #4 you want mean "now fixed" instead "not fixed" ?

Gilles Caulier
Comment 7 Philippe ROUBACH 2016-12-23 17:36:25 UTC
it is not fixed

mp4 video

nothing in exif media data viewer
Comment 8 caulier.gilles 2016-12-23 17:48:16 UTC
It's abnormal. MP4 must be supported by Exiv2 0.26-svn.

Please report this problem to Exiv2 bugzilla. Share MP4 file for investigations.

Thanks in advance

Gilles Caulier
Comment 9 Philippe ROUBACH 2016-12-23 17:49:07 UTC
from google photo site i imported the video.

i check that google photo displaysa map with a pointer about this movie.
Comment 10 Philippe ROUBACH 2016-12-23 17:50:01 UTC
the link to get the movie

https://goo.gl/photos/4732E3QexiVnHbSt8
Comment 11 caulier.gilles 2016-12-23 18:05:07 UTC
As i said, something is wrong in Exiv2 0.26. It report nothing in Exif.

[gilles@localhost Videos]$ exiv2 -pr 20161223T153428.mp4 
exiv2: Unrecognized print mode `r'
Usage: exiv2 [ options ] [ action ] file ...

Manipulate the Exif metadata of images.
[gilles@localhost Videos]$ exiv2 -pa 20161223T153428.mp4 
Xmp.video.FileSize                           XmpText     7  12.5339
Xmp.video.FileName                           XmpText    19  20161223T153428.mp4
Xmp.video.MimeType                           XmpText    15  video/quicktime
Xmp.video.MajorBrand                         XmpText    21  MP4 v2 [ISO 14496-14]
Xmp.video.MinorVersion                       XmpText     1  0
Xmp.video.CompatibleBrands                   XmpSeq      2  MP4 Base Media v1 [IS0 14496-12:2003], MP4 v2 [ISO 14496-14]
Xmp.video.MovieHeaderVersion                 XmpText     1  0
Xmp.video.DateUTC                            XmpText    10  3565359971
Xmp.video.ModificationDate                   XmpText    10  3565359971
Xmp.video.TimeScale                          XmpText     3  600
Xmp.video.Duration                           XmpText     5  11168
Xmp.video.PreferredRate                      XmpText     1  1
Xmp.video.PreferredVolume                    XmpText     3  100
Xmp.video.PreviewTime                        XmpText     1  0
Xmp.video.PreviewDuration                    XmpText     1  0
Xmp.video.PosterTime                         XmpText     1  0
Xmp.video.SelectionTime                      XmpText     1  0
Xmp.video.SelectionDuration                  XmpText     1  0
Xmp.video.CurrentTime                        XmpText     1  0
Xmp.video.NextTrackID                        XmpText     1  3
Xmp.video.TrackHeaderVersion                 XmpText     1  0
Xmp.video.TrackCreateDate                    XmpText     1  0
Xmp.video.TrackModifyDate                    XmpText    10  3565359971
Xmp.video.TrackID                            XmpText     1  1
Xmp.video.TrackDuration                      XmpText     2  11
Xmp.video.TrackLayer                         XmpText     1  0
Xmp.video.TrackVolume                        XmpText     3  100
Xmp.video.Width                              XmpText     4  1920
Xmp.video.Height                             XmpText     4  1080
Xmp.video.MediaHeaderVersion                 XmpText     1  0
Xmp.video.MediaCreateDate                    XmpText     1  0
Xmp.video.MediaModifyDate                    XmpText    10  3565359971
Xmp.video.MediaTimeScale                     XmpText     2  30
Xmp.video.MediaDuration                      XmpText     2  11
Xmp.video.MediaLangCode                      XmpText     5  21956
Xmp.video.HandlerType                        XmpText    11  Video Track
Xmp.video.GraphicsMode                       XmpText     7  srcCopy
Xmp.video.OpColor                            XmpText     1  0
Xmp.video.URL                                XmpText     0  
Xmp.video.Codec                              XmpText    39  MP4 Base w/ AVC ext [ISO 14496-12:2005]
Xmp.video.SourceImageWidth                   XmpText     4  1920
Xmp.video.SourceImageHeight                  XmpText     4  1080
Xmp.video.XResolution                        XmpText     2  72
Xmp.video.YResolution                        XmpText     2  72
Xmp.video.Compressor                         XmpText     0  
Xmp.video.BitDepth                           XmpText     2  24
Xmp.video.FrameRate                          XmpText     3  600
Xmp.audio.TrackHeaderVersion                 XmpText     1  0
Xmp.audio.TrackCreateDate                    XmpText    10  3565359971
Xmp.audio.TrackModifyDate                    XmpText    10  3565359971
Xmp.audio.TrackID                            XmpText     1  2
Xmp.audio.TrackDuration                      XmpText     2  11
Xmp.audio.TrackLayer                         XmpText     1  0
Xmp.audio.MediaHeaderVersion                 XmpText     1  0
Xmp.audio.MediaCreateDate                    XmpText    10  3565359971
Xmp.audio.MediaModifyDate                    XmpText    10  3565359971
Xmp.audio.MediaTimeScale                     XmpText     5  44100
Xmp.audio.MediaDuration                      XmpText     2  11
Xmp.audio.MediaLangCode                      XmpText     4  5575
Xmp.audio.HandlerType                        XmpText    11  Audio Track
Xmp.audio.Balance                            XmpText     1  0
Xmp.audio.URL                                XmpText     0  
Xmp.audio.Compressor                         XmpText     4  mp4a
Xmp.audio.ChannelType                        XmpText     1  1
Xmp.audio.BitsPerSample                      XmpText     2  16
Xmp.audio.SampleRate                         XmpText     5  44100
Xmp.video.AspectRatio                        XmpText     4  16:9
[gilles@localhost Videos]$ 

Only XMP. There is no GPS metadata inside XMP. Perhaps Exiv2 don't know yet how to extract Exiv2 from this file.

Please, report this problem as UPSTREAM BUG in EXIV2 bugzilla.

Gilles Caulier
Comment 12 caulier.gilles 2016-12-23 18:14:14 UTC
with Exiftool, no GPS metadata can be extracted :

gilles@localhost Videos]$ exiftool -a -u -g1 20161223T153428.mp4
---- ExifTool ----
ExifTool Version Number         : 10.15
---- System ----
File Name                       : 20161223T153428.mp4
Directory                       : .
File Size                       : 13 MB
File Modification Date/Time     : 2016:12:23 18:54:26+01:00
File Access Date/Time           : 2016:12:23 18:54:26+01:00
File Inode Change Date/Time     : 2016:12:23 18:54:26+01:00
File Permissions                : rw-rw-r--
---- File ----
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
---- QuickTime ----
Major Brand                     : MP4 v2 [ISO 14496-14]
Minor Version                   : 0.0.0
Compatible Brands               : isom, mp42
Movie Header Version            : 0
Create Date                     : 2016:12:23 17:46:11
Modify Date                     : 2016:12:23 17:46:11
Time Scale                      : 600
Duration                        : 11.17 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Initial Object Descriptor       : (Binary data 13 bytes, use -b option to extract)
Movie Data Size                 : 13137831
Movie Data Offset               : 4890
Movie Data                      : (Binary data 13137831 bytes, use -b option to extract)
---- Track1 ----
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 2016:12:23 17:46:11
Track ID                        : 1
Track Duration                  : 11.03 s
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 1920
Image Height                    : 1080
Unknown edts                    : (Binary data 28 bytes, use -b option to extract)
Media Header Version            : 0
Media Create Date               : 0000:00:00 00:00:00
Media Modify Date               : 2016:12:23 17:46:11
Media Time Scale                : 30
Media Duration                  : 11.03 s
Media Language Code             : und
Handler Type                    : Video Track
Handler Description             : VideoHandler
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 1920
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Unknown avcC                    : (Binary data 45 bytes, use -b option to extract)
Buffer Size                     : 124798
Max Bitrate                     : 10111712
Average Bitrate                 : 9380128
Video Frame Rate                : 30
Sync Sample Table               : (Binary data 32 bytes, use -b option to extract)
Sample To Chunk                 : (Binary data 212 bytes, use -b option to extract)
Sample Sizes                    : (Binary data 1336 bytes, use -b option to extract)
Chunk Offset                    : (Binary data 100 bytes, use -b option to extract)
---- Track2 ----
Track Header Version            : 0
Track Create Date               : 2016:12:23 17:46:11
Track Modify Date               : 2016:12:23 17:46:11
Track ID                        : 2
Track Duration                  : 11.17 s
Track Layer                     : 0
Track Volume                    : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2016:12:23 17:46:11
Media Modify Date               : 2016:12:23 17:46:11
Media Time Scale                : 44100
Media Duration                  : 11.17 s
Media Language Code             : eng
Handler Type                    : Audio Track
Handler Description             : IsoMedia File Produced by Google, 5-11-2011
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 1
Audio Bits Per Sample           : 16
Audio Sample Rate               : 44100
Unknown esds                    : (Binary data 45 bytes, use -b option to extract)
Time To Sample Table            : (Binary data 16 bytes, use -b option to extract)
Sample To Chunk                 : (Binary data 44 bytes, use -b option to extract)
Sample Sizes                    : (Binary data 1936 bytes, use -b option to extract)
Chunk Offset                    : (Binary data 100 bytes, use -b option to extract)
---- Composite ----
Avg Bitrate                     : 9.41 Mbps
Image Size                      : 1920x1080
Megapixels                      : 2.1
Rotation                        : 0

... so i suspect that GPS info are registered somewhere in un-decoded markernotes.

Nothingh can be done in digiKam side. Exiv2 has all mechanisms to do this job. Please report as UPSTREAM to Exiv2 as i explain before.

Gilles Caulier
Comment 13 Maik Qualmann 2016-12-23 20:51:48 UTC
I think there is no GPS data in this video. When I upload it to my Google Photo user account, Google does not show me a GPS position. I think the GPS data comes from the recorded user motion profile and Google links this data.

Maik
Comment 14 Philippe ROUBACH 2016-12-23 22:16:16 UTC
there is gps data

roubach@linux-9vc6:~/Documents/photo/Images/mes_depots/urbanisme_architecture/Musée_FLV> exiftool -a -u -g1 20161223T153428.mp4
---- ExifTool ----
ExifTool Version Number         : 10.20
---- System ----
File Name                       : 20161223T153428.mp4
Directory                       : .
File Size                       : 23 MB
File Modification Date/Time     : 2016:12:23 15:34:28+01:00
File Access Date/Time           : 2016:12:23 15:54:39+01:00
File Inode Change Date/Time     : 2016:12:23 15:54:39+01:00
File Permissions                : rwx------
---- File ----
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
---- QuickTime ----
Major Brand                     : MP4 v2 [ISO 14496-14]
Minor Version                   : 0.0.0
Compatible Brands               : isom, mp42
Movie Header Version            : 0
Create Date                     : 2016:12:10 12:00:02
Modify Date                     : 2016:12:10 12:00:02
Time Scale                      : 1000
Duration                        : 11.12 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
GPS Coordinates                 : 48 deg 52' 35.76" N, 2 deg 15' 52.20" E
Handler Type                    : Metadata Tags
Com Android Version             : 6.0.1
Free                            : (Binary data 399751 bytes, use -b option to extract)
Movie Data Size                 : 23630064
Movie Data Offset               : 405185
Movie Data                      : (Binary data 23630064 bytes, use -b option to extract)
---- Track1 ----
Track Header Version            : 0
Track Create Date               : 2016:12:10 12:00:02
Track Modify Date               : 2016:12:10 12:00:02
Track ID                        : 1
Track Duration                  : 11.03 s
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 1920
Image Height                    : 1080
Media Header Version            : 0
Media Create Date               : 2016:12:10 12:00:02
Media Modify Date               : 2016:12:10 12:00:02
Media Time Scale                : 90000
Media Duration                  : 11.03 s
Handler Type                    : Video Track
Handler Description             : VideoHandle
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 1920
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Unknown avcC                    : (Binary data 34 bytes, use -b option to extract)
Pixel Aspect Ratio              : 65536:65536
Video Frame Rate                : 30.021
Sync Sample Table               : (Binary data 52 bytes, use -b option to extract)
Sample Sizes                    : (Binary data 1336 bytes, use -b option to extract)
Sample To Chunk                 : (Binary data 44 bytes, use -b option to extract)
Chunk Offset                    : (Binary data 52 bytes, use -b option to extract)
---- Track2 ----
Track Header Version            : 0
Track Create Date               : 2016:12:10 12:00:02
Track Modify Date               : 2016:12:10 12:00:02
Track ID                        : 2
Track Duration                  : 11.12 s
Track Layer                     : 0
Track Volume                    : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2016:12:10 12:00:02
Media Modify Date               : 2016:12:10 12:00:02
Media Time Scale                : 48000
Media Duration                  : 11.11 s
Handler Type                    : Audio Track
Handler Description             : SoundHandle
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 1
Audio Bits Per Sample           : 16
Audio Sample Rate               : 48000
Unknown esds                    : (Binary data 31 bytes, use -b option to extract)
Time To Sample Table            : (Binary data 24 bytes, use -b option to extract)
Sample Sizes                    : (Binary data 2096 bytes, use -b option to extract)
Sample To Chunk                 : (Binary data 44 bytes, use -b option to extract)
Chunk Offset                    : (Binary data 56 bytes, use -b option to extract)
---- Composite ----
Avg Bitrate                     : 17 Mbps
GPS Latitude                    : 48 deg 52' 35.76" N
GPS Longitude                   : 2 deg 15' 52.20" E
Image Size                      : 1920x1080
Megapixels                      : 2.1
Rotation                        : 0
GPS Position                    : 48 deg 52' 35.76" N, 2 deg 15' 52.20" E
Comment 15 Maik Qualmann 2016-12-23 22:41:45 UTC
In this video after the download are no GPS data.
See exiftool output from Gilles Comment 12.

https://goo.gl/photos/4732E3QexiVnHbSt8
Comment 16 Philippe ROUBACH 2016-12-23 22:55:33 UTC
you have not the right to manage the album only to download the video.

i assume google photo grant my privacy and take away all about privacy.

so you don't gate the original video.

i can't upload it to bugs.kde.org because this video have a size of 22 MB

i will try to cut it and upload it.
Comment 17 Philippe ROUBACH 2016-12-24 06:26:02 UTC
see my upstream report
http://dev.exiv2.org/issues/1267

in particular comment #1
and
http://dev.exiv2.org/issues/1068

interesting data about our problem
Comment 18 caulier.gilles 2018-03-03 08:38:17 UTC
With 6.0.0, we have now a FFMpeg low level metadata parser based on libav C API
for video files database registration.

The Exiv2 video support is not used anymore as this code is buggous and nobody
sound motivated in Exiv2 to finalize the code.

The original post for this file must be fixed now and video metadata support
with ffmpeg must be enough to populate database entries.

Gilles Caulier