Dynamically switch between progressive and h264 based on capabilities
We only know whether the client supports h264 after negotiating capabilities.
Things are kept as a separate function so we can override and try progressive at runtime in the future.
The environment variable override is reworked to just disable h264 so we can easily test both paths. We don't need to ever force the default.
Edited by David Edmundson