C-implementation of Video precis