When compiling for 64bit you need to make sure that FFMpeg, libx264 and libav is configured with 'configure --enable-pic'. But from the error it would appear that FFMpeg does not include the x264 codec. So maybe try to install libx264 first.