Hi! I'm trying to programmatically take 2 mono mp3 file inputs, and output a stereo mp3 file with 1 input on ch0 and the other input on ch1 - without decoding and re-encoding. I'm using ISO 11172-3 for reference, thought I understood the bit organization, and I've put together some code that creates the output I wanted it to, but the audio's integrity is not maintained. It seems like I've very close, because the peaks and valleys of each channel of the output seem to match the peaks and valleys of their corresponding input, but the audio is garbled. I think bits are slightly skewed
Anybody have any ideas? Below is what I'm doing. I'm arranging the output's side-info like this: - the proper header - main_data_begin - private_bits (3) - scfsi from input 1 - scfsi from input 2 - the 59 bits of the remaining side-info for input 1's gr0 - the 59 bits of the remaining side-info for input 2's gr0 - the 59 bits of the remaining side-info for input 1's gr1 - the 59 bits of the remaining side-info for input 2's gr1 and the output's main data like this: - input 1's gr0 main data according to its corresponding part2_3_len - input 2's gr0 main data according to its corresponding part2_3_len - input 1's gr1 main data according to its corresponding part2_3_len - input 2's gr1 main data according to its corresponding part2_3_len _______________________________________________ mp3encoder mailing list [email protected] http://minnie.tuhs.org/mailman/listinfo/mp3encoder
