How to Hex Edit Audio?
-
- Posts: 30
- Joined: Sat Sep 12, 2015 11:59 pm
How to Hex Edit Audio?
I am trying to find the settings (channels, interleave, etc.) for audio files. I am new to hex editing. I am using HxD. Does anyone have any tips? By the way, I apologize if this is in the wrong place.
-
- Posts: 144
- Joined: Fri Aug 08, 2014 11:25 am
Re: How to Hex Edit Audio?
Channels (seems fairly straight forward)
01 - Mono
02 - Stereo
06 - 5.1 Surround
08 - 7.1 Surround
Sample rates in hex
Little Endian
BB80 - 48000
AC44 - 44100
7D00 - 32000
5622 - 22050
2B11 - 11025
Big Endian
80BB - 48000
44AC - 44100
007D - 32000
2256 - 22050
112B - 11025
Interleave can best be explained by doing the following:
Go the the end of a file (should be a block of "00"s) and highlight all of the data from the end until you encounter a second block of "00"s. The first byte after the last "00" on that second block you found is the size of one channel.
Multiply that number by the number of channels the file has to find the interleave/blocksize.
01 - Mono
02 - Stereo
06 - 5.1 Surround
08 - 7.1 Surround
Sample rates in hex
Little Endian
BB80 - 48000
AC44 - 44100
7D00 - 32000
5622 - 22050
2B11 - 11025
Big Endian
80BB - 48000
44AC - 44100
007D - 32000
2256 - 22050
112B - 11025
Interleave can best be explained by doing the following:
Go the the end of a file (should be a block of "00"s) and highlight all of the data from the end until you encounter a second block of "00"s. The first byte after the last "00" on that second block you found is the size of one channel.
Multiply that number by the number of channels the file has to find the interleave/blocksize.
-
- Posts: 30
- Joined: Sat Sep 12, 2015 11:59 pm
Re: How to Hex Edit Audio?
Not all of them have two blocks of 00's. One kind is one 0 short of having a complete block on the bottom. And pardon my ignorance, but which ones are the bytes?
-
- Posts: 144
- Joined: Fri Aug 08, 2014 11:25 am
Re: How to Hex Edit Audio?
A byte is a single "xx" in a hex editor. Every pair of "AB" or "E9" etc is a single byte.
-
- Posts: 654
- Joined: Mon Oct 27, 2014 1:49 pm
Re: How to Hex Edit Audio?
Cameron, why do you need this (just this question)?
Last edited by Mygoshi on Thu Feb 18, 2021 7:42 pm, edited 2 times in total.
-
- Posts: 30
- Joined: Sat Sep 12, 2015 11:59 pm
Re: How to Hex Edit Audio?
Mygoshi wrote:Cameron, why do you need this (just this question).
In the event there is no already existing script to extract audio, I'd like to know the exact parameters of a file. Specifically, how to know whether it is mono or stereo. You ripped The Incredibles in stereo, but I can only do it in mono.
-
- Posts: 654
- Joined: Mon Oct 27, 2014 1:49 pm
Re: How to Hex Edit Audio?
It's normal, PS2 version has 24Khz mono tracks, GC has 32Khz stereo and XBOX has 48Khz stereo (while PC is same as XBOX).