[Live-devel] H.264 PPS/SPS for the second client

Dmitry Bely d.bely at recognize.ru
Mon May 17 11:11:20 PDT 2021


On Mon, May 17, 2021 at 8:02 PM Ross Finlayson <finlayson at live555.com> wrote:
>
> Feel free to file bug reports with that project.
> Feel free to file a bug report with “ffmpeg”.

OK, your point is taken.

> >>> Is it absolutely impossible to
> >>> discard all NALs for the given RTP stream on the server side until
> >>> SPS/PPS arrive?
> >>
> >> If your server is using our “H264VideoFileServerMediaSubsession” class, then it’s already doing this.  However, the problem is that - for many H.264 video sources - the PPS and SPS NAL units appear only at the very start of the stream, and never thereafter.  That’s why - if you set “reuseFirstSource” to True - the second and subsequent receivers will not get the SPS/PPS NAL units in the media stream.  But, as I’ve already noted, this is not something that receivers should be relying on anyway.
> >
> > No, it's based on H264LiveServerMediaSubsession
>
> I don’t know what “H264LiveServerMediaSubsession” is.  We have no class with that name,.

Sorry, copy/paste error. Actually H264LiveServerMediaSubsession is my
subclass of OnDemandServerMediaSubsession with createNewRTPSink()
creating H264VideoRTPSink instance.

- Dmitry Bely



More information about the live-devel mailing list