Re: [Live-devel] MultiFramedRTPSource::doGetNextFrame1 question

2017-09-25 Thread Ross Finlayson
> in MultiFramedRTPSource::doGetNextFrame1, why 'if > (fCurrentPacketCompletesFrame && fFrameSize > 0)' need 'fFrameSize > 0', > fCurrentPacketCompletesFrame is true, the frame is completes,then can break > the while, is not it? I’m not going to answer your question. Here’s why: I’ve fou

[Live-devel] MultiFramedRTPSource::doGetNextFrame1 question

2017-09-25 Thread wangdanhui_jx--- via live-devel
--- Begin Message --- in MultiFramedRTPSource::doGetNextFrame1, why 'if (fCurrentPacketCompletesFrame && fFrameSize > 0)' need 'fFrameSize > 0', fCurrentPacketCompletesFrame is true, the frame is completes,then can break the while, is not it? wangdanhui...@aliyun.com --- End Message ---

Re: [Live-devel] Proxying SIP live RTP to RTSP problem (segfault)

2017-09-25 Thread Ross Finlayson
> Ok then how to fix/debug further this message and SIGSEGV ? Seems like > nobody is using the source twice but the bug is still present. Something is definitely reading from the source more than once (at the same time). I *thought* that it was the call to “startPlaying()” at line 948 of “playC

Re: [Live-devel] Proxying SIP live RTP to RTSP problem (segfault)

2017-09-25 Thread rus
> > Though passing the data through stdin is ugly solution > I don?t think it?s ugly at all. In fact, it?s quite clean, because it uses > familiar Unix I/O stdio and pipes, rather than requiring extra programming. Returning to the stdout->stdin approach: the same SPS/PPS problem is present here

Re: [Live-devel] Proxying SIP live RTP to RTSP problem (segfault)

2017-09-25 Thread rus
> stream? If that?s the case, then you?ll have to implement the > ?getAuxSDPLine()? virtual function in your ?H264LiveServerMediaSession? > class. For guidance on how to do this, see how we implement the > ?H264VideoFileServerMediaSubsession? class. Ok, this approach seems to work - though it p

Re: [Live-devel] Proxying SIP live RTP to RTSP problem (segfault)

2017-09-25 Thread rus
> > While the H264LiveServerMediaSession constructor is called once - the > > createNewRTPSink/createNewStreamSource are called twice (?!) upon RTSP > > connection. May be this is the real reason of > > "FramedSource[0x1bf42e0]::getNextFrame(): > > attempting to read more" message ? > > No, I don