[Live-devel] Technical inquiry
Ross Finlayson
finlayson at live555.com
Tue Jun 25 22:53:28 PDT 2024
> On Jun 25, 2024, at 9:38 PM, 강현구 <hyungu.kang at autol.co.kr> wrote:
>
> The doGetNextFrame function should be called when the camera is connected properly, but it is not working.
> Since doGetNextFrame is not called, camera frame data cannot be processed or transmitted.
The problem with your code was that you needed to insert a “H264VideoStreamDiscreteFramer” object ahead of your H.264 source object. (This is mentioned in the FAQ, but is far from obvious - sorry.)
In particular, in your “createNewStreamSource()” implementation, you should replace
return MyH264LiveSource::createNew(envir());
with
FramedSource* videoSource = MyH264LiveSource::createNew(envir());
if (videoSource == NULL) return NULL;
return H264VideoStreamDiscreteFramer::createNew(envir(), videoSource);
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list