can u try to link those libraries like -lavutil -lavcodec -lavformat <br>y because some fn.s may depend on the first directory...