replace vlc with libavformat