I have ffmpeg with libx264 enabled from BtbN for Windows 10. This is the command:
ffmpeg -f gdigrab -c:v libx264 -framerate 30 -i title="FiveM" -f flv rtmp://MYSITE.COM/stream/MYSECRETKEY
Unfortunately I get this output:
Unknown decoder 'libx264'