split av thread into audio/video threads