Thanks for the replies
I'm using dvgrab to catch live video from a camcorder and rawplay to show it on screen. Eventually what I want to achieve is a setup where I can press a button (or send a network signal or sth) so that the video instantly jumps back a fixed amount of seconds (45 sec in my case). Much like a replay of a goal in a sports match.
The main problem has been to figure out how to save those 45 seconds in a proper way. That's where I thought it made sense to store in a file in a FIFO kind of way..
A mock-up way of achieving what I want is to use two terminals.
In the first terminal, issue the following command:
dvgrab -|tee temp.dv|rawplay
And then in the second terminal 45sec later:
By doing that there will be two videos running, one of which is 45 sec delayed and we can easily switch between them with alt-tab. But there are of course drawbacks:
- Both windows play the sound at the same time
- temp.dv is constantly growing
- There are two cpu-heavy rawplay instances at the same time.
- I don't know how to switch between the two windows over network or from a program