Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Silent frame in Mp3 (Read 2856 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Silent frame in Mp3

I am making a small application that allows me to add silent frames of mp3 in any mp3 file.

I dont want to use any libraries etc. But I should be able to construct this silent frame depending on other frames in the file. for eg. I can copy the frame header of the other mp3 frames and write all other data bytes as 0x00. (if thats one possible method).

Any ideas? Anyone ? About how to construct a Silent frame for Mp3 for any kind of content. - CBR/ VBR/ ABR ?


Any suggestions? PLease get back to me

Silent frame in Mp3

Reply #1
Quote
I am making a small application that allows me to add silent frames of mp3 in any mp3 file.

I dont want to use any libraries etc. But I should be able to construct this silent frame depending on other frames in the file. for eg. I can copy the frame header of the other mp3 frames and write all other data bytes as 0x00. (if thats one possible method).

Any ideas? Anyone ? About how to construct a Silent frame for Mp3 for any kind of content. - CBR/ VBR/ ABR ?


Any suggestions? PLease get back to me
[{POST_SNAPBACK}][/a]


It is possible but more complicated. The method you described (Frame Header + all zeros) works if you add these frames to the start or to the end of your mp3 file. Inserting such a frame in the middle won't work because of the bitreservoir. In the worst case you have to change the content of several preceding frames and add a special new silent frame which also contains some bytes of the bitreservoir for the next frame.

I'm afraid you'll have to dig deeper in the mp3 internals for this task. Check out [a href="http://www.mp3-tech.org/programmer/docs/index.html]Gabriel's MP3 tech page[/url] for more informations (technical audio papers: ISO 11172 Coding of .... Part 3: Audio)

bye,
SebastianG