I have been searching for days for a solution to my issue, but apparently lack the terminology required to gain valid results.
I will start with what I am trying to do, and maybe someone on this board could point me in the right direction.
I am trying to stream a video from mencoder to a special file buffer on the local machine.
Described below is what I want the file buffer to do.
First I want to specify the file size of the buffer.
Secondly I need the buffer to be a FIFO.
Operation of the buffer is as follows:
When the file is opened, data will be written as file data is normally written.
If the buffer is full, the data will be discarded in a first in first out manner to allow new data to be written.
On the read side the file is opened and the program can read the oldest bytes first.
As an example ffserver from the ffmpeg package has this feature built in, unfortunately I cannot locate that function in their source code.
I appreciate any reply. I am not looking for someone to write the code for me, just simply assist me in terminology so I may be able to perform a more lucid search. However, if you do happen to have example code, that information would be appreciated as well.