ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: PoP on May 29, 2017, 03:29:53 PM

Title: Feature Request: Extract MMGIF extension data from GIF files
Post by: PoP on May 29, 2017, 03:29:53 PM
GIF files can contain MMGIF extensions (to include MIDI Control and MIDI Songs) see: http://www.midiox.com/home.htm?http://www.midiox.com/mmgif.htm (http://www.midiox.com/home.htm?http://www.midiox.com/mmgif.htm)

The Multimedia GIF Extensions format is documented here: http://www.midiox.com/txt/mmginf.txt (http://www.midiox.com/txt/mmginf.txt)

If only for completeness, it would be nice for the GIF File Decoder to extract this extension data.

Attached is a sample MMGIF file from the program installation:
Title: Re: Feature Request: Extract MMGIF extension data from GIF files
Post by: Phil Harvey on May 29, 2017, 03:34:03 PM
Thanks!  Will do!  And thanks for the sample.

- Phil
Title: Re: Feature Request: Extract MMGIF extension data from GIF files
Post by: PoP on June 24, 2017, 11:03:42 AM
I just noticed, starting with Exiftool 10.55 GIF MIDIControl Tags (MIDICTRL/jon) are now shown.  :)

Thanks Phil!

More greedy request: any chance to also extract the MIDISong (MIDISONG/Dm7) PCM data? Perhaps -b storing it in an external binary file?
Title: Re: Feature Request: Extract MMGIF extension data from GIF files
Post by: Phil Harvey on June 24, 2017, 08:59:16 PM
You should be able to do this already:

exiftool -midisong -b FILE > OUTFILE

- Phil
Title: Re: Feature Request: Extract MMGIF extension data from GIF files
Post by: PoP on June 24, 2017, 09:29:21 PM
Alas using the sample file of the OP on v10.57, the command exiftool -midisong -b FILE *does* recognize the MIDISong tag  but  produces a nil output. The tag http://www.exiftool.org/TagNames/GIF.html (http://www.exiftool.org/TagNames/GIF.html) doesn't appear to be processed.
Title: Re: Feature Request: Extract MMGIF extension data from GIF files
Post by: StarGeek on June 25, 2017, 01:54:32 AM
Are you redirecting the output as in Phil's post?

Are you using CMD if on Windows and not Powershell?  Powershell does not work for binary redirection and you must use CMD.
Title: Re: Feature Request: Extract MMGIF extension data from GIF files
Post by: PoP on June 25, 2017, 05:40:32 AM
I am redirecting > OUTFILE and the OUTFILE created is zero length.
I am using CMD on windows 7.
Title: Re: Feature Request: Extract MMGIF extension data from GIF files
Post by: Phil Harvey on June 25, 2017, 08:29:25 AM
Darn, you're right.  I just tested this out.  I had made a last minute change to the GIF module to move the extensions to a different table and I seem to have broken this.  Sorry. 

This will be fixed in the next release.

- Phil
Title: Re: Feature Request: Extract MMGIF extension data from GIF files
Post by: PoP on June 29, 2017, 01:52:55 PM
v10.58 fixed it. Thanks again Phil.

exiftool -b -MIDISong TFC-006A.MMG > TFC-006A.MMG.midi extracts the song (attached for convenience) which can be played in any midi player.
Title: Re: Feature Request: Extract MMGIF extension data from GIF files
Post by: Phil Harvey on June 29, 2017, 01:56:39 PM
Great!