Added conditional option so that Ubuntu's packaged version of libav can be used.