GNOME Bugzilla – Bug 503582
[avidemux] Extract date tag (contained in the IDIT chunk)
Last modified: 2010-01-08 13:19:10 UTC
I'm trying to modify gthumb to allow it to read video metadata using gstreamer. It works, but I seem to be missing something - exiftool can extract much more metadata than gstreamer - like the original recording date. That's a key piece of metadata that I would like to extract. For instance, an AVI from my Canon PowerShot SD800IS gives the following in exiftool: [mjc@gormenghast 2007-12]$ exiftool -s -G1 MVI_1148.AVI [ExifTool] ExifToolVersion : 7.00 [File] FileName : MVI_1148.AVI [File] Directory : . [File] FileSize : 12 MB [File] FileModifyDate : 2007:12:14 08:41:10 [File] FileType : AVI [File] MIMEType : video/avi [RIFF] FrameRate : 30 [RIFF] MaxDataRate : 1965 kB/s [RIFF] FrameCount : 206 [RIFF] StreamCount : 2 [RIFF] StreamType : Audio [RIFF] Codec : [RIFF] Quality : 10000 [RIFF] SampleSize : 1 byte [RIFF] Encoding : Microsoft PCM [RIFF] NumChannels : 1 [RIFF] SampleRate : 11024 [RIFF] AvgBytesPerSec : 11024 [RIFF] BitsPerSample : 8 [RIFF] DateTimeOriginal : 2007:12:14 08:41:10 [RIFF] Software : CanonMVI06 [BMP] ImageWidth : 640 [BMP] ImageHeight : 480 [BMP] Planes : 1 [BMP] BitDepth : 24 [BMP] Compression : Unknown (MJPG) [BMP] ImageLength : 921600 [BMP] PixelsPerMeterX : 0 [BMP] PixelsPerMeterY : 0 [BMP] NumColors : Use BitDepth [BMP] NumImportantColors : All [Composite] Duration : 6.87s [Composite] ImageSize : 640x480 (Beware that Exiftool renames all the tags using its own scheme...) The gstreamer debug output only shows: Tags: taglist, video-codec=(string)"Motion\ JPEG"; Tags: taglist, audio-codec=(string)"Uncompressed\ 8-bit\ PCM\ audio"; Tags: taglist, encoder=(string)CanonMVI06; A bit more info (height, width, framerate, etc) is provided by GstStructure. The source code for my metadata reader is here http://svn.gnome.org/viewvc/gthumb/trunk/libgthumb/gth-gstreamer-utils.c?view=markup If you run gthumb from trunk, pressing Ctrl+2 in the browser mode will show the file metadata. Any help would be appreciated! - Mike
Other details: I'm running Fedora 8. Sample AVI file: http://www.avtechpulse.com/downloads/MVI_1148.AVI - Mike
What exactly do you want to extract more? I don't see that much useful info in the output of exiftool that is worth showing to the user. Most of the format, duration, codecs, tags can be retrieved with gstreamer.
I want the date tag. Knowing when the video was recorded is very useful. gthumb allows sorting by exif DateTime (for photos). It would be nice if we could extract the analogous data for videos, to permit consistent sorting. The other stuff is mostly trivia, though it would be nice if it was available for the user to see. - Mike
Seems to the IDIT chunk. Changing title accordingly.
Now there is only a GST_TAG_DATE in the GDate format, thus we are loosing the time of creation. Should we add another TAG like GST_TAG_CREATION_TIME in the GTime format and set 2 tags for the date and time of creation ?
I would certainly like to have access to both the date and time ... - Mike
Perhaps this would be a suitable issue for a gstreamer maintainer to submit as a gnome-ghop task - http://code.google.com/p/google-highly-open-participation-gnome/. - Mike
metadata image element also need date_time (modified, creation and digitized) see http://bugzilla.gnome.org/show_bug.cgi?id=482947 BR, Edgard
(sorry about the bug spam, I was testing a bug in bugzilla)
Would it help if I said "pretty please"? - Mike
Could you attach another sample? The link is not valid anymore. Do we have conversion routines from text to date? Seems that IDIT is a text field
I have re-uploaded the sample AVI to its original location at http://www.avtechpulse.com/downloads/MVI_1148.AVI. - Mike
Fixed with the below commit, but unfortunately it seems we don't have a date tag that also includes time information (only the usual day, month, year), if having the time is relevant to you, please open another bug for it. Module: gst-plugins-good Branch: master Commit: a5197a94ee7fafdd95aa3114066fe2b967260728 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=a5197a94ee7fafdd95aa3114066fe2b967260728 Author: Thiago Santos <thiago.sousa.santos@collabora.co.uk> Date: Fri Jan 8 09:17:22 2010 -0300 avidemux: Parse and post IDIT dates Parses and post date tags contained in IDIT chunks. Fixes #503582
Thanks! I have submitted a bug to request a time tag (bug 606405). - Mike