Changes between Initial Version and Version 1 of Ticket #3449, comment 4


Ignore:
Timestamp:
Mar 10, 2014, 4:57:31 PM (6 years ago)
Author:
lordAtticus
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3449, comment 4

    initial v1  
    11It's more about parsing here, rather then actual decoding. The stream I added contains 4 nalus(h264 packet), a PPS, SPS a SEI and an I frame. This makes it valid video and can be played back even in vlc. Parser is meant to be used when we have in same buffer multiple frames. The parser identifies the boundaries between multiple nalus so we can split the buffer and feed it step by step to decoder. So the generic approach in streaming video is to first parse the incoming buffer to identify individual nalus, then feed them individually to the decoder, something like this:
    22
     3{{{
    34        // parse buffer until complete
    45        while(inLength) {
     
    1819                }
    1920            }
     21}}}
    2022
    2123The problem since 2.x releases is that the parser sets outData to NULL, outSize to 0 and parsedLength to inLength, forcing code to exit the loop and discard data.