Modernize libavfilter usage

Use the refcounted frame based API and clean up the deprecation warnings with FFmpeg 2.0.