basically works, but mplayer only reliably captures frames when launched every 2 seconds