I'm not sure that's the best solution, although perhaps the easiest. The h264parse plugin is sometimes not available. We don't have it in Proton for instance.
True, but we need *something* that can do its job. I think when it comes to encoders, Proton has bigger problems than h264parse anyway.
Ideally we shouldn't be creating h264parse manually, but rather autoplugging. It may be worth looking into encodebin.