Feature Request: Extract MMGIF extension data from GIF files

Started by PoP, May 29, 2017, 03:29:53 PM

Previous topic - Next topic

PoP

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

The Multimedia GIF Extensions format is documented here: 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:

Phil Harvey

Thanks!  Will do!  And thanks for the sample.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

PoP

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?

Phil Harvey

You should be able to do this already:

exiftool -midisong -b FILE > OUTFILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

PoP

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 doesn't appear to be processed.

StarGeek

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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

PoP

I am redirecting > OUTFILE and the OUTFILE created is zero length.
I am using CMD on windows 7.

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

PoP

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.

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).