Adding frame count to movie

because that allow determining synchronisation
Synchronising dual threaded movie input with frame drawing instead of a tick interval

because that allow deterministic recording