check for libavcode and libavutil before processing