[Live-devel] H264 StreamParser.cpp thrown exception

admin at awright2009.com admin at awright2009.com
Tue Jul 19 07:36:37 PDT 2011


I just noticed that my forked h264 process is dying on startup due to a
thrown integer exception in StreamParser.cpp NO_MORE_BUFFERED_INPUT.
Looking into H264VideoStreamParser::parse() method as an example I see
that this is caught and treated as non fatal. However, the code I'm
working on doesnt attempt to catch this exception. I'm assuming the
previously working version of live I had: 2010.07.29 simply didnt throw
this exception on startup.

I get encoded h264 data from another process and do a little parsing of
the raw stream before copying it to the fTo pointer in a method called
VideoOpenFileSource::readFromFile(). There is also a little state
machine that ensures an SPS and PPS are sent at the begining of each
stream within this class. Where would be the best place to put the
try/catch blocks to correctly handle this exception? I'm not sure which
function call in my code triggers the exception. (Again, this code was
originally based on the wis-streamer code and most of the structure is
the same)

Defining the MJPEG restartInterval() function fixed the MJPEG streaming
issue I had before, thanks for the help! And sorry if I'm asking too
many questions

-Thanks
Alex Wright




More information about the live-devel mailing list