Use pkg-config to find lib{swscale,avutil,avcodec,ass}.