Simultaneous capture of multiple rtsp streams

Hi

I am looking into simultaneous frame acquisition from multiple ipcameras,is there any codec which can take input from multiple sources and decode the frames ,probabaly sneding it to buffer and then later recover it based on metadata and camera identity?