x264 is an encoder. Browsers need a decoder. The most popular open source H.264 decoder is the one that's part of FFmpeg, which is used both by applications that do pay a license fee (Google Chrome) and applications that don't (VLC).