> I'm writing an application that encodes screen capture (using MS media > foundation h264 encoder) and transmits it via RTSP using liveMedia. > > I've written a wrapper for interfacing with the encoder (based on > DeviceSource.cpp). > When the encoding starts, maxFrameSize eventually grows to BANK_SIZE
This implies that (in your “createNewStreamSource()” implementation) you are feeding incoming H.264 NAL units to a “ H264VideoStreamFramer”. That is wrong; “H264VideoStreamFramer” is used only when reading a H.264 file as a byte stream. If your encoder “FramedSource” subclass is delivering discrete H.264 NAL units (i.e., one NAL unit at a time), then you must feed it into a “H264VideoStreamDiscreteFramer”, *not* a “H264VideoStreamFramer”. (Also, each NAL unit that you feed into the “H264VideoStreamDiscreteFramer” must *not* begin with a ‘start code’ (0x00 0x00 0x00 0x01).) Ross Finlayson Live Networks, Inc. http://www.live555.com/
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel