[Live-devel] Need help creating a H264 stream from a video encoder source.

Ross Finlayson finlayson at live555.com
Thu Apr 11 12:01:13 PDT 2013


Initially, when debugging your server, you should use "testRTSPClient" - rather than VLC - as your RTSP client.  ("testRTSPClient" will tell you a lot more about what's going on.)  Please post the output from running "testRTSPClient" on your stream.


> The H264VideoVencMediaSubsession::createNewStreamSource returns a H264VideoStreamDiscreteFramer

Please also post the code for your implementation of the "createNewRTPSink()" virtual function.  If possible (if you know, in advance, the SPS/PPS NAL units, or equivalently the 'sprop-parameter-sets" string, for your stream), you should use one of the forms of "H264VideoRTPSink::createNew()" that takes this information as a parameter.


> The Video encoder hands VencSource VCL frames that may contain multiple NALs so the deliverFrame strips off the start NAL frame codes finds the end of the NAL unit and delivers one NAL unit per frame delivery.

Good.  That's the right thing to be doing.  Make sure that you're setting "fFrameSize" correctly (taking into account that you're not delivering the 4-byte 'start code'), and, of course, don't forget to call "FramedSource::afterGetting(this);" to complete the delivery of each NAL unit.


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/20130411/9e10154b/attachment.html>


More information about the live-devel mailing list