GNOME Bugzilla – Bug 634928
[qtdemux] report creation/modification time via metadata tag
Last modified: 2010-12-02 20:18:43 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.)
Created attachment 174533 [details] QuickTime movie
Got a patch for this, will push after the releases.
Great to hear - thanks!
One thing though, is that we only have one tag for datetime, so the patch reports the creation time.
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.)
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