Avoid jpeg compression where you can. If you must compress use lossless (like PNG).
From video sources, bitrate is hugely important. Sites like Youtube crush the bitrate hugely so are not suitable sources for the bulk of a training set.
Avoid HDR content at all costs. HDR content does not train well.