I am looking to decode real-time streaming H.264 video that comes in via packets. My thought was to use the umc_video_dec_con example as a framework for implementing this functionality. Here are my thoughts that I'm currently stuck with that I would like some help:
1) I was going to use the MemoryReader as my DataReader class, but it seems to be setup such that you have all the data you want to decode in advance. There is no methods for "adding" data to the reader memory nor is there a method for telling the MemoryReader that more data is available. What is the method I should be using for adding video packets that are received so they can get decoded?
2) The splitter initialize functions again seems to need the whole video file available to the reader as it searches the video stream for information at initialize time. If I look at the InitSplitter function of the umc_dec_con example, the Init function for the MP4Splitter will return errors because it might not have all the data to properly initialize. My thought was to keep adding data to my DataReader and continually call Init until there is enough data there for the Splitter to properly initialize. Is this the proper way to setup the splitter?
3) I think once everything is initialized, I should be able to call GetNextData on the splitter until it stops returning UMC_ERR_NOT_ENOUGH_DATA. Once that happens, I would have enough data for a frame and call GetFrame on the decoder to get the decoded frame. I would just keep repeating this process as done in umc_video_dec_con example. Does this sound correct?
Is the approach outlined above the correct way for decoding real-time packet data of H.264 utilizing UMC? It seems like all the example code is geared around opening files which you already have all the data and are formed properly. I'm unsure how to use UMC when the data will come in chunks, some data may be lost if there is a bad ethernet connection, etc. How would UMC handle such scenarios? Any help would be greatly appreciated.
I am using Linux IPP7.1.0.011 samples


