You might reconfigure with –enable-swscale –enable-gpl to rebuild ffmpeg.  See the attached file for details. Then, you can run first example like the following.

Building ffmpeg