Best format for ripping dvd's that all apple devices recognize?

I have over 750 DVD's and I'm struggleing to store them, so i was going to rip all of them and store the DVD's in our loft. What is the best format to use that my ipad, ipad mini 2, apple tv, imac, macbook pro and iPhone can all recognize and that Itunes will recognize?
I'm currently using any video converter ultimate, however it has different formats for all these devices, is there one universal format. I don't mind buying different software.

MPEG-4/H.264 (a.k.a. H.264/MPEG-4 AVC a.k.a. X264)
That's it, no matter how many nicknames it gets. That's the one. It's the default format for any Apple video software or device (QuickTime, iMovie, iPod, iPad, iPhone), as well as Youtube, Flickr, DailyMotion, and FaceBook.

You will choose different resolution and bit rate depending on the device and the file size you can tolerate. For example, to playback on a 22-inch computer screen or 50-inch TV, you might want 1080p (1920x1080) and 1500 kbps, if the original DVD is HD. For small devices, Any Video Converter Ultimate has a drop list to choose, and it then sets the size to match the device screen.