News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Extracting GAudio from jpg

Started by CardboadPhotoFran, May 20, 2022, 07:20:55 PM

Previous topic - Next topic

CardboadPhotoFran

Hi folks,

I have a panorama image captured with the old Google Cardboard Camera App. While taking the panorama and rotating with the smartphone in a circle, it captures the audio and saves it in the image. With exiftool I can see:

[XMP-GImage]    Image Mime Type                 : image/jpeg
[XMP-GImage]    Image Data                      : (Binary data 1011802 bytes, use -b option to extract)
[XMP-GAudio]    Audio Mime Type                 : audio/mp4a-latm
[XMP-GAudio]    Audio Data                      : (Binary data 533905 bytes, use -b option to extract)

If I use -b, it seems to save both the image and the audio into one blob? I would like to extract only the audio, ideally already base64-decoded so that I could play that file.

Is that possible and how?

Thanks!

StarGeek

What command did you use?

Try
exiftool -AudioData -W %d%f.%s -b file.jpg

That will extract the data in the AudioData tag and try to give it the proper extension if exiftool can figure it out.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

CardboadPhotoFran

Awesome! It worked! Thanks a lot!

(earlier I just used -b on the file without the -AudioData and rerouted it to >output.mp4, which of course didn't work)