I need MP3 file consiting of literally 2 (two) complete frames @ 44100/16 bit/stereo, without any metadata. The issue here is that I need to be able to create it myself as cutting 2 frames from larger file will cause artifacts in my decoder processing.
I tried the following
- windows sound recorder - can record only up to 24 kHz, I need 44100, my decoder can not handle it;
- VLC seems not understanding such small files - I tried to feed 0.02 second WAV file to it, and it refuses to convert (generates output file of size of 0);
- there's an application called FFMPEG, I have it on PC, but can not make it working, too complicated for me. Not sure if it can take fractional input for -t key though.
I am sure those who deal with electronic music can help me. Thank you in advance.
Update: my question really seems to be offtopic here, and DSP (digital signal processing) is not about music, but about technology, however I was hoping that musicians use technology and must know how analog and digital works relating to making a sound.
I found out that I, most probably, need more than 2 frames to fill 2048 bytes of decoder's buffer for decoder to start processing. The main issue I am solving that decoder does not have option to reset (zero) its intermediate buffers, and the only way to reset them is to push several frames of silence through them.
Thus it is just down to the understanding MP3 format, and I even will not need frames, I will need algorithm how to construct data within the frame so that they would decode to all zeros (silence).