[Live-devel] OnDemandLiveStream-Server for h264 media

Ross Finlayson finlayson at live555.com
Fri May 25 23:34:15 PDT 2012


At least part of the problem here is that you are trying to feed a "imLiveStreamSource" (your new data source class) directly into a "H264VideoRTPSink".  You can't do this.  "H264VideoRTPSink" objects must be fed from a "H264VideoStreamFramer" (or a "H264VideoStreamDiscreteFramer").

Because your data source object is (I presume) delivering H.264 NAL units, your "createNewStreamSource()" function must return a "H264VideoStreamDiscreteFramer".  So instead of doing
	return imLiveStreamSource::createNew(envir(), param);
you should do
	FramedSource* h264NALSource = imLiveStreamSource::createNew(envir(), param);
	return H264VideoStreamDiscreteFramer::createNew(envir(), h264NALSource);

Note also that your "imLiveStreamSource" object must deliver NAL units, one at a time, *without* any preceding MPEG start code - i.e., *without* any preceding 0x00 0x00 0x00 0x01 bytes.


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/20120526/6a4ea8db/attachment.html>


More information about the live-devel mailing list