Put sample x264 params in correct location
Fix deinterlace so it works
set more reference frames for animation

Documentation at the following site recommends using higher -refs value
for animated content:

https://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping