At Fliva we had an issue; customers kept uploading iPhone footage in HDR formats with varying framerates, and our software could not handle it. The colors looked washed out, and just plain wrong.
Our first stab at a solution was, of course, to use ffmpeg. However ffmpeg produced the same