decode audio/video on separate thread

(audio soon)