After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 634928 - [qtdemux] report creation/modification time via metadata tag
[qtdemux] report creation/modification time via metadata tag
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.25
Other All
: Normal normal
: 0.10.27
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 635031
Blocks:
 
 
Reported: 2010-11-15 18:43 UTC by Adam Dingle
Modified: 2010-12-02 20:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
QuickTime movie (424.74 KB, application/octet-stream)
2010-11-15 18:44 UTC, Adam Dingle
Details

Description Adam Dingle 2010-11-15 18:43:38 UTC
A QuickTime movie may have metadata indicating a creation time and/or modification time.  The qtdump command-line program (which uses libquicktime) can reveal these times:

% qtdump '/home/adam/Desktop/sample.mov' | strings | grep time
quicktime_dump
  creation_time 2010-11-15 03:32:15 (3372665535)
  modification_time 2010-11-15 03:32:15 (3372665535)
...

But it appears that the qtdemux GStreamer element can't report these times via metadata tags.  I built the sample metadata reading program whose source code appears at http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-metadata.html .  When I run this program on the same QuickTime movie, the creation time does not appear:

adam@adam-desktop:~/test$ ./tags 'file:///home/adam/Desktop/sample.mov' 
Got tags from element qtdemux0:
	         video-codec : H.264 / AVC
	       language-code : en

Got tags from element qtdemux0:
	         audio-codec : Raw 16-bit PCM audio
	       language-code : en

Got tags from element qtdemux0:
	      private-qt-tag : buffer of size 20
	    container-format : Quicktime
adam@adam-desktop:~/test$ 

(I recorded this movie using a Canon PowerShot S90 camera.  I'll attach it here if Bugzilla will let me.)
Comment 1 Adam Dingle 2010-11-15 18:44:23 UTC
Created attachment 174533 [details]
QuickTime movie
Comment 2 Thiago Sousa Santos 2010-11-16 22:49:54 UTC
Got a patch for this, will push after the releases.
Comment 3 Adam Dingle 2010-11-16 23:32:06 UTC
Great to hear - thanks!
Comment 4 Thiago Sousa Santos 2010-11-17 11:31:11 UTC
One thing though, is that we only have one tag for datetime, so the patch reports the creation time.
Comment 5 Adam Dingle 2010-11-17 11:33:47 UTC
That's completely adequate for our needs.  (We want this feature so that Shotwell can use it to find the creation time of a video, by the way.)
Comment 6 Thiago Sousa Santos 2010-12-02 20:18:43 UTC
commit 6511730ba1dc6dad2eee93836a77bdf16746e7fb
Author: Thiago Santos <thiago.sousa.santos@collabora.co.uk>
Date:   Tue Nov 16 17:48:16 2010 -0300

    qtdemux: Parse and use creation time tag from mvhd
    
    Expose creation time from mvhd as a datetime tag
    
    Fixes #634928