-
July 13th, 2007, 01:16 AM
#1
Audio into Jpeg file, .wav
Hi .
I am looking for creation of an application which Can incorporate audio file, to make comments, similar to the captions we give in Images.
I am using VC++ 6.0 ,working in Xp. Is there any way to add .wav files into the Jpeg file?. and i tmust work with the normal Jpeg viewer without sound, and when in used my program, it must play th sound also.
Infact the additional audio information must not alter the JPEG format.
I searched it and got information about Exif tags. But i couldnt find any things about Audio. But i saw some people's experince of audio in their photos taken from Digital camera..
PLese Help me, and please tell HOW TO ADD MUSIC to a JPEG image..
Thanks
Vishnu
-
July 13th, 2007, 02:46 AM
#2
Re: Audio into Jpeg file, .wav
Yes, you can. I've done the reverse, extracting wav files from EXIF files.
By the way, technically speaking JPEG is the image compression algorithm, while JFIF is the file format and EXIF is an extension of JFIF.
What you need to do is insert your own JFIF blocks into the JFIF file. As you have the JFIF specification, you will have noticed that there are ways to insert propriety blocks of data into a JFIF file. You can do that without touching the rest of the data.You do need to break the wav file into 64K chunchs of raw data, because each JFIF block can only hold 64K.
Last edited by Zaccheus; July 13th, 2007 at 02:55 AM.
-
July 13th, 2007, 04:29 AM
#3
Re: Audio into Jpeg file, .wav
Dear Sir,
Thanking you for replying me. Please suggest some topics
or weblinks, so that I can make my goal possible. I am reading the
internet resources to understand these formats and how i can implement in
VC++. If you have any documents that can aid me, please send me to the
mail id vishnupv@gmail.com.
If you have any JPEG file which has the audio content, please send them to me, in this ID,, I can make it as a reference ..and can study detail about the fileformats..
Thanks a lot..
Vishnu.
-
July 13th, 2007, 07:58 AM
#4
Re: Audio into Jpeg file, .wav
The JFIF format is specified here:
http://www.jpeg.org/public/jfif.pdf
Here's an image which has a custom JFIF block (offset 0x56D8) containing some text:
Custom_Block_At_0x56D8.jpeg
0xFFEC is the signature of custom JFIF blocks. That is followed by the length of this JFIF block (in this case 0x003D) and that's followed by the ID - a null-terminated ascii string which specifies the kind of data this block contains. The rest of the block is the raw data, which in your case could be the wav file.
Hope that helps. If you have any specific questions, feel free to ask.
Last edited by Zaccheus; July 13th, 2007 at 08:12 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|