Hardware H.264 encoding in Electron's WebRTC requires SDP profile negotiation changes (NVENC rejects Constrained Baseline), not command-line flags. VP9 via libvpx is the correct default — proven by empirical benchmarks (CS2: VP9 60fps vs H.264 30fps).