Embed Audio in JPG

Started by noppf, November 01, 2014, 08:10:47 PM

Previous topic - Next topic

noppf

Hello,
I just came along this great tool.
I know that the Field RelatedSoundFile in an Exif is just used to save the path to an audio file. However, I read out of this thread https://exiftool.org/forum/index.php?topic=4315.0 that some cameras save Audio in a JPG (since you were talking about extracting it).
Is that mean that there is a way to save audio directly in a image file? And if so, how would it be possible with the ExifTool?

Just in case there is still no way to save the audio in the image, but just the path to the separate file: Is there any suggestible image viewer that automatically plays the sound when you view the jpg? Or is there any container format that would be usable for this task?

Thank you for any answers,
Nils

Phil Harvey

Hi Nils,

Unfortunately I know of no standard method to store a sound file inside a JPEG image.  So any method you use to do this won't be compatible with any image viewer.

The JPEG format is crippled by a 64 kB segment-size limitation, so storing large chunks of data like sound files is not straightforward.

ExifTool does not have the ability to do this.

- 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 ($).

noppf

Thank you a lot for the fast reply!

ryerman

Quote from: noppf on November 01, 2014, 08:10:47 PM
Just in case there is still no way to save the audio in the image, but just the path to the separate file: Is there any suggestible image viewer that automatically plays the sound when you view the jpg? Or is there any container format that would be usable for this task?
You might get the effect you want by viewing your photos in an audio player.
When playing a file, a competent player will display an image that is either embedded in the file or is a separate file in the same folder.
MP3 files can accept tags (like an embedded picture) up to 256 MB in size.
I use Winamp for playing audio and Mp3tag to embed pictures in audio files.

I guess a photographer might need a little time to get used to viewing photos with an audio player. :)
Windows 10 Home 64 bit, Exiftool v12.61