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 503582 - [avidemux] Extract date tag (contained in the IDIT chunk)
[avidemux] Extract date tag (contained in the IDIT chunk)
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.x
Other Linux
: Normal normal
: 0.10.18
Assigned To: David Schleef
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-14 11:49 UTC by Michael Chudobiak
Modified: 2010-01-08 13:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Michael Chudobiak 2007-12-14 11:49:00 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
Comment 1 Michael Chudobiak 2007-12-14 11:55:57 UTC
Other details: I'm running Fedora 8.

Sample AVI file: http://www.avtechpulse.com/downloads/MVI_1148.AVI 

- Mike
Comment 2 Wim Taymans 2007-12-14 12:17:20 UTC
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.
Comment 3 Michael Chudobiak 2007-12-14 13:00:16 UTC
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
Comment 4 Edward Hervey 2007-12-14 16:16:04 UTC
Seems to the IDIT chunk. Changing title accordingly.
Comment 5 Thijs Vermeir 2007-12-30 18:45:28 UTC
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 ?
Comment 6 Michael Chudobiak 2008-01-03 11:19:55 UTC
I would certainly like to have access to both the date and time ...

- Mike
Comment 7 Michael Chudobiak 2008-01-16 16:53:33 UTC
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
Comment 8 Edgard Lima 2008-02-01 16:18:58 UTC
metadata image element also need date_time (modified, creation and digitized)

see http://bugzilla.gnome.org/show_bug.cgi?id=482947

BR, Edgard
Comment 9 David Schleef 2008-02-20 05:23:14 UTC
(sorry about the bug spam, I was testing a bug in bugzilla)
Comment 10 Michael Chudobiak 2008-08-06 14:20:29 UTC
Would it help if I said "pretty please"?

- Mike
Comment 11 Thiago Sousa Santos 2010-01-07 22:08:23 UTC
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
Comment 12 Michael Chudobiak 2010-01-08 00:33:20 UTC
I have re-uploaded the sample AVI to its original location at http://www.avtechpulse.com/downloads/MVI_1148.AVI.

- Mike
Comment 13 Thiago Sousa Santos 2010-01-08 13:01:31 UTC
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
Comment 14 Michael Chudobiak 2010-01-08 13:19:10 UTC
Thanks!

I have submitted a bug to request a time tag (bug 606405).

- Mike