I am writing a streaming application for MP3 (CBR). It is all passthru, meaning I don't have to decode/encode, I just need to pass on the data as I see it come through. I want to be able to count the MP3 frames as they passthru (and some other stuff like throughput calculations).
According to the MP3 frame header spec, the sync word appears to be eleven (11) bits of 1s, however I notice (naturally) that the frame payload which I should safely assume to be binary and thus it is not odd at all to see eleven (11) 1s in sequence.
My questions:
dd
-style) that can pull numbered frames from an MP3 file/pipe? Thanks,
I'll take a stab at #2.
It is my understanding that the common way to sync to the MP3 stream (and thus allow for your counting of the frames) is to do this:
I saw a page recently with documentation on this, but I can't find it at the moment. If I find it again, I will post it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With