Neil Smith [MVP Digital M
Guest
|
Posted:
Mon Dec 26, 2005 9:30 pm Post subject:
Re: Inserting Pictures in audio files |
|
|
On Wed, 14 Dec 2005 03:22:02 -0800, "Karthik"
<Karthik@discussions.microsoft.com> wrote:
| Quote: | Hi,
I am trying hard to insert a JPG image into an windows media audio file.
According to the specification given in the link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmform95/htm/id3tagsupport.asp
it is said that APIC ID3 Tag is similar to WM/Picture.
These are the exact steps that I have followed to try and insert a JPG into
the audio file.
1. Open Windows Media Encoder. (I have the latest one installed)
2. Choose an input audio file. (Convert from mp3 to wma and adding tags)
3. Choose all the required settings.
4. When all the settings are done. I click on the Properties button (next to
start encoding)
5. Choose Attributes.
6. I try to insert all the tags given in the above mentioned link.
7. For WM/Picture, I cannot give an input. The input validator recognises it
as a error always.
|
I was able to see this error "Incorrect Parameter" when adding
WM/Picture as the attribute. However I'm not clear how the "input" you
provided is intended to used in the context of a text box.
This page details the data type fot WM/Picture :
http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/wmform95/htm/wm_picture.asp
Unlike the other attributes on the webpage you referenced, which are
strings, it's a complex metadata type consisting of a MIME type,
picture type, a pointer and some binary data (a "byte array" as they
call it).
| Quote: | I have tried to copy the hex of the jpeg into the text box.
I have tried to copy the ascii of the jpeg into the text box.
Drag and drop the jpeg.
|
IMO I can't see it likely that the text input box you are provided
with will be capable of creating that sort of data structure. Probably
you'd need to speak to a programmer to have them write a program that
can attach the binary structured metadata to your file after it's
encoded.
An example of this (decoding only) is in the GetID3 PHP script :
http://gallery.menalto.com/files/getid3_2005_12_22.tgz.txt , search
for case 'wm/picture': in that page.
HTH
Cheers - Neil
|
|