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:
Thanks! Will do! And thanks for the sample.
- Phil
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?
You should be able to do this already:
exiftool -midisong -b FILE > OUTFILE
- Phil
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.
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.
I am redirecting > OUTFILE and the OUTFILE created is zero length.
I am using CMD on windows 7.
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
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.
Great!