It's more better, such as ffmpegsource.
by the way, ffmpeg/libav is continuous change the APIs,so we should follow them.
enjoy!
regards,Kanryu