Improved audio/video detection