Re: freeformat- how I can create mp3 @ 384kbps? Reply #25 – 2020-04-16 22:31:14 The only way for a stream parser to recognize Free Format properly is to blindly search ahead for the sync word, since there is no other way to detect the length of a packet, other than completely parsing it.
Re: freeformat- how I can create mp3 @ 384kbps? Reply #26 – 2020-04-18 06:04:27 Quote from: kode54 on 2020-04-16 22:31:14The only way for a stream parser to recognize Free Format properly is to blindly search ahead for the sync word, since there is no other way to detect the length of a packet, other than completely parsing it.Theoretically, if we store it in a proper container such as mp4, each frame can be externally delimited on the container side.Quote from: ajp9 on 2020-04-16 18:07:16ffmpeg recognizes and decodes all of the free format MP3s. Really, player decoders are behind on this. I expected more from MPC-HC.Well, which version of ffmpeg have you tried? I just tried with lame --freeformat -b 384, but ffmpeg (version 4.1.4) cannot decode the resulting file.According to a comment in the libavcodec source (mpegaudio_template.c), they are aware of the free format.However, when bitrate_index in the frame header is zero, decode_frame() of the decoder just returns an error.Since this check is in the decoder, ffmpeg won't be able to handle freeformat mp3 even when stored in containers such as mp4.
Re: freeformat- how I can create mp3 @ 384kbps? Reply #27 – 2020-04-19 20:15:43 Huh. I was under the impression that it was ffmpeg under Audacity that loaded free format.Through process of elimination, and checking the source code, it appears that Audacity's built-in MP3 decoder(s) is handling it.