That's pretty much what I did with a bunch of boxes a few houses ago; consolidated the foam pieces into a couple of boxes and flattened the remaining boxes. The best way to move electronics is in the original box it came in.

I wrote what each Styrofoam piece went to right on the piece itself with a Sharpie. E.G. "Bluray left/Bluray right" etc.