[Live-devel] Problem with fMaxSize after signalNewFrame() for live source

Ross Finlayson finlayson at live555.com
Sat Nov 8 05:02:15 PST 2014


> 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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20141108/b64d5ea8/attachment.html>


More information about the live-devel mailing list