Shared Media Library hosted on Amazon S3

Looking for suggestions on how to have a common shared media library to share media files for multiple subsites which is hosted on Amazon S3. subsites also need to have their own private file storage.