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 636143 - avidemux: report creation date/time via GST_TAG_DATE_TIME
avidemux: report creation date/time via GST_TAG_DATE_TIME
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks: 716977
 
 
Reported: 2010-11-30 16:36 UTC by Adam Dingle
Modified: 2019-05-07 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
avidemux: Also emit DateTime tag (1.96 KB, patch)
2010-11-30 18:22 UTC, Edward Hervey
rejected Details | Review
avidemux: Also extract IDIT tags present too early (935 bytes, patch)
2010-11-30 18:22 UTC, Edward Hervey
committed Details | Review
avidemux: Also emit DateTime tag (2.17 KB, patch)
2010-11-30 19:05 UTC, Edward Hervey
committed Details | Review

Description Adam Dingle 2010-11-30 16:36:15 UTC
Currently the avidemux element can report an AVI video's creation date (but not time) using the GST_TAG_DATE tag.  GStreamer now has a GST_TAG_DATE_TIME tag, so we should enhance avidemux to report the full date/time using this tag.
Comment 1 Edward Hervey 2010-11-30 18:22:43 UTC
Created attachment 175561 [details] [review]
avidemux: Also emit DateTime tag
Comment 2 Edward Hervey 2010-11-30 18:22:47 UTC
Created attachment 175562 [details] [review]
avidemux: Also extract IDIT tags present too early
Comment 3 Edward Hervey 2010-11-30 19:05:47 UTC
Created attachment 175569 [details] [review]
avidemux: Also emit DateTime tag
Comment 4 Edward Hervey 2010-11-30 19:06:47 UTC
latest version parses as much as possible from the IDIT tags.
Comment 5 Edward Hervey 2010-11-30 19:27:17 UTC
FWIW, most of the remaining info is in proprietary blobs. A good chunk of them are detailed here : http://search.cpan.org/~exiftool/Image-ExifTool-8.15/lib/Image/ExifTool/TagNames.pod

The question is ... where to put all that parsing :(
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2011-02-14 14:45:26 UTC
Edward, the patches look good, can you push them? Support in the muxer would be nice too.

Form the RIFF-Tags
http://search.cpan.org/~exiftool/Image-ExifTool-8.15/lib/Image/ExifTool/TagNames.pod#RIFF_Tdat_Tags
we can easily add exif/xmp support, by calling the exif/xmp helpers now :)
Comment 7 Edward Hervey 2011-02-14 17:16:15 UTC
(In reply to comment #6)
> Edward, the patches look good, can you push them? Support in the muxer would be
> nice too.

  They were pushed some time ago

> 
> Form the RIFF-Tags
> http://search.cpan.org/~exiftool/Image-ExifTool-8.15/lib/Image/ExifTool/TagNames.pod#RIFF_Tdat_Tags
> we can easily add exif/xmp support, by calling the exif/xmp helpers now :)

  I meant the non exif/xmp ones.

commit 86933b40e928d1697a1eb72ded294e8714f00b9b
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Tue Nov 30 19:22:11 2010 +0100

    avidemux: Also extract IDIT tags present too early
    
    https://bugzilla.gnome.org/show_bug.cgi?id=636143

commit 0cff917a519da449a9dc6f26def7a1b4531c2056
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Tue Nov 30 19:21:23 2010 +0100

    avidemux: Also emit DateTime tag
    
    https://bugzilla.gnome.org/show_bug.cgi?id=636143
Comment 8 Adam Dingle 2011-02-21 19:46:29 UTC
Great.  Can this now be marked fixed?
Comment 9 Edward Hervey 2011-02-21 19:59:39 UTC
It can't be closed, a lot of files still fail as mentionned in comment #5
Comment 10 Adam Dingle 2011-02-21 20:16:28 UTC
OK - thanks for the explanation.  By the way, this page contains a set of sample AVI files from many different cameras, submitted by Shotwell users:

http://trac.yorba.org/wiki/AVISamples

It appears that GStreamer 0.10.32 can read date/time information from some, but not all, of these files.  It would be great if GStreamer could handle them all since then Shotwell could switch to using GStreamer for this purpose.  :)
Comment 11 Edward Hervey 2011-02-21 20:51:57 UTC
... those were the files I was talking about (yes, we do track your work) :) Just needs a good soul to write that boring parsing code though.
Comment 12 Adam Dingle 2011-02-21 21:07:02 UTC
OK - glad you knew about those files.  :)  You might be able to lift some AVI date-time parsing code from Shotwell itself.  We've implemented it there since GStreamer doesn't have this capability yet.  See

http://trac.yorba.org/browser/shotwell/trunk/src/VideoMetadata.vala
Comment 13 Edward Hervey 2013-07-17 09:25:55 UTC
Still applies.

Here are the updated links for links above:

http://redmine.yorba.org/projects/shotwell/wiki/AVISamples

http://git.yorba.org/cgit.cgi/shotwell/tree/src/VideoMetadata.vala
Comment 14 Stefan Sauer (gstreamer, gtkdoc dev) 2014-01-04 10:25:07 UTC
It would be useful to have sections in the wiki for

* files that work
* files with missing metadata
* new files

Also having the files in a place that one can rsync would be sweet.
Comment 15 Stefan Sauer (gstreamer, gtkdoc dev) 2014-01-04 10:36:35 UTC
For reference, this command works to fetch/update all files:
wget -m -nd --accept=AVI,avi,MPG,mpg,MP4,mp4,MOV,mov http://redmine.yorba.org/projects/shotwell/wiki/AVISamples
Comment 16 Stefan Sauer (gstreamer, gtkdoc dev) 2014-01-04 11:00:56 UTC
I went through all the files and for those where we don't show a DATETIME in discoverer checked with tabriffdump/mp4info/ffprobe to check that they don't have datetimes either.

The only stuff that seem to be left are nikon files:
http://www.eden-foundation.org/products/code/film_date_stamp/
from LIST/ncdt we can get Maker/Model and Datetime. Will make a patch later today.
Comment 17 Stefan Sauer (gstreamer, gtkdoc dev) 2014-01-04 20:39:47 UTC
commit f653aa8c8562dda69e2be13d2b305a0ff4361690
Author: Stefan Sauer <ensonic@users.sf.net>
Date:   Sat Jan 4 21:31:07 2014 +0100

    riff: add support for nikon tags
    
    Nikon cameras store metadata in a custom format. Add parsing of the chunk and
    extract some initial data.
    API: gst_riff_parse_ncdt()
    Fixes #636143

commit f48bb20b4f2852166d897ac03fa89b4a3a396b59
Author: Stefan Sauer <ensonic@users.sf.net>
Date:   Sat Jan 4 21:34:38 2014 +0100

    avi: use new riff api to extract nikon metadata
    
    Fixes #636143

This gets us tags for 4 more files:
DSC_0001.AVI
DSC_6519.AVI
DSCN2516.AVI
Nikon_Coolpix_S3000.AVI

There is still one variant left - the fuji specific strd tag.
Comment 18 Tim-Philipp Müller 2014-01-05 00:24:17 UTC
Cool that you're fixing these, but did we really need to add new public API for a function that will likely only ever be used by avidemux?
Comment 19 Stefan Sauer (gstreamer, gtkdoc dev) 2014-01-05 11:27:39 UTC
I was wondering too. There is a bit of reuse for the function I extracted. But I can also just copy this to avidemux if thats preferable. I did not found anything wheter this can occur in asf files.
Comment 20 Stefan Sauer (gstreamer, gtkdoc dev) 2014-01-05 20:41:23 UTC
Tim, I moved the code to avidemux.
Comment 21 Stefan Sauer (gstreamer, gtkdoc dev) 2014-01-05 21:53:17 UTC
commit 5384da2a1f821ee1272eeaf2dbda0983eb8ec708
Author: Stefan Sauer <ensonic@users.sf.net>
Date:   Sun Jan 5 22:41:24 2014 +0100

    avidemux: parse fuji strd
    
    We can get maker, model and capture date from this chunk.
    Fixes #636143

Closing this bug. Please let us know if there are new files/chunks/...
Comment 22 Stefan Sauer (gstreamer, gtkdoc dev) 2014-01-05 21:57:18 UTC
Adam, not sure if this got merged in shotwell, but now you won't need it anymore:
https://github.com/Sanva/shotwell-gsoc/blob/master/src/VideoMetadata.vala