I've done the same with my CDs and DVDs but using my desktop computer. To rip CDs you don't actually need extra software, you can use Windows' built-in Windows Media Player which will rip in FLAC format.
There is plenty of other free software out there but, if you really want to buy a package, I have Nero.
To rip DVD/BlueRay/4K videos I use Wondershare UniConverter.