Alternately, before starting Firefox:
echo 'user_pref("media.gmp-gmpopenh264.autoupdatemedia.gmp-gmpopenh264.enabled", false);' >> user.js
Preferences set in the user.js file are applied after those in
prefs.js, but are persistent - while the current prefs settings
are saved to prefs.js when Firefox exits, the prefs in user.js
are re-applied on every restart of Firefox - so you would have
to edit user.js to persistently change Firefox' behavior.
Thus user.js is handy for knowledgeable users, but could be a bit of
a trap for less capable users. ("I can't make it change!")
While I'm on about:config stuff, a handy way to search for
config variables is a shortcut:
<DT><A HREF="about:config?filter=%s" SHORTCUTURL="ac">[ac] about:config filter</A>
invoked by putting, say,
ac media.gmp
in the address bar.