it will work with both, but dont expect much OC headroom on the RAM.
anyway, even if you want to render videos, high speed memory is not beneficial beyond 2666MHz. even 2400MHz is fine. you can get a cheaper 2400 that costs about a third of the ram you are looking at, and get a better CPU. like, if you are planning on getting the 5930k, you can get the 5960x.