Hi,
I'm trying to create a video-refereeing application for fencing. I've browsed through the VLC documentation and I did some initial experiments.
I'm quite certain I can do what I want with VLC. However, it has been a while since I did some serious programming, so I would need a little help to get started. I hope this is the right place.
I'll first give some background on what I try to achieve, and then I'll get more concrete regarding the help I need.
In modern fencing, the two fencers are connected to a central scoring machine. This machine detects if a hit is scored by one fencer. It also checks if the hit was made on valid surface.
The central machine indicates a hit by lighting a lamp on the side of the fencer who made the hit. If it is a valid hit, a colored(red or green) lamp is lit, for non-valid, it is a whithe lamp.
For foil and sabre, the referee has to decide which fencer has priority, in case of double hits.
This is where the video arbitrage comes in: to help the referee in making correct decisions about priority, the actions are recorded in HD video. As the fencers move along the piste, it is not allways possible to see both the central machine (with the lamps) and the fencers.
Therefore, the lamps are inserted digitally into video stream, based on the signals of the central machine.
After a hit, the last few seconds before the hit, are played back at normal or at half the speed.
I have designed my own central scoring machine that can communicate with a PC through the serial port. So the machine can tell the PC which fencer made a hit at what time, and id it was valid or not.
So I need a small (console) apllication on a PC running Windows (XP) that on one hand communicates with the central box through a serial port, and on the other hand can send commands to VLC via a remote interface.
These commands would typically be:
start recording
insert a subpicture for the lamps
stop recording
jump back 5 seconds
play at half the speed.
I guess all this can easily be done.
Could someone get me started by providing me with some C++ code (and some recommendations for a free C++ compiler) for a console app that can send comands to the VLC remote interface? Once I have this, I'll be able to code the rest.
I would really appreciate a lot.