Remove unused codec flags; remove duplicate regex from substitutions.