Solved the problem. av_register_all() was missing before calling av_open_input_file. -- View this message in context: http://libav-users.943685.n4.nabble.com/av-open-input-file-returns-2-but-file-exists-libav-in-NS2-tp3723236p3723411.html Sent from the libav-users mailing list archive at Nabble.com.