[Live-devel] [live_devel] input from buffer and not file intestH264ViedoStreamer
Nikolai Vorontsov
nikolai.vorontsov at quadrox.be
Fri May 11 07:42:03 PDT 2012
Hello Sudan,
Please find attached sample of buffered stream. You need to make your
own ServerMediaSubsession like:
FramedSource* CQxServerMediaSubsession::createNewStreamSource(unsigned
/*clientSessionId*/, unsigned& estBitrate) {
//TBD
estBitrate = 500; // kbps, estimate
// Create the video source:
if ((m_pSource = CQxByteStreamSource::createNew(envir(),
m_Token)) == NULL)
return NULL;
// Create a framer for the H264 Stream:
return H264VideoStreamFramer::createNew(envir(), m_pSource);
}
and add code to get stream to the CQxByteStreamSource::doGetNextFrame()
It works for me.
Nikolai.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QxByteStreamSource.h
Type: application/octet-stream
Size: 675 bytes
Desc: QxByteStreamSource.h
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120511/01241181/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QxByteStreamSource.cpp
Type: application/octet-stream
Size: 2192 bytes
Desc: QxByteStreamSource.cpp
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120511/01241181/attachment-0001.obj>
More information about the live-devel
mailing list