Linux: cat /dev/video0 TS into some kind of ring puffer

Posted by user155384 on Super User See other posts from Super User or by user155384
Published on 2012-08-30T09:14:32Z Indexed on 2012/08/30 9:41 UTC
Read the original article Hit count: 336

Filed under:
|

I want to cat a /dev/video0 device output (Transport Stream) into a temporary ring buffer. In fact i do not want that the file is growing over the time. Simultaneously access is not possible.

So the purpose is to have a file (buffer, Fifo, whatever) to be accessed by more than one consumer (example: tail -f, mencoder, VLC, ....).

Some kind of scenario: 
1# cat /dev/video0 > mybuffer.ts
And then multiple access
2# tail -f mybuffer.ts > extract1.ts
2# tail -f mybuffer.ts > extract2.ts
3# ffmpeg ... 

Does someone have an idea how to do something like this?

© Super User or respective owner

Related posts about linux

Related posts about cat