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/

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to