The easiest option would be to Export your library to Separate files for Video and Single File for Music.
Perform your fresh install, then when you add back your sources, you can rebuild the library exactly as you had it by running the normal Update Library.
Don't export artwork if you already have local artwork.