add hints

This commit is contained in:
Leandro Moreira
2024-02-13 16:19:47 -03:00
parent 564861880e
commit e2f211c00e
2 changed files with 4 additions and 1 deletions

View File

@@ -144,6 +144,9 @@ func (c *SrtMpegTs) fillStreamInfoFromMpegTS(streamInfo map[entities.Codec]entit
}
if mpegTSDemuxData.PMT != nil {
// TODO: add timing information
// pts https://github.com/asticode/go-astits/blob/b0b19247aa31633650c32638fb55f597fa6e2468/cmd/astits-es-split/main.go#L206
// https://github.com/asticode/go-astits/blob/master/packet.go#L46
for _, es := range mpegTSDemuxData.PMT.ElementaryStreams {
streamInfo[c.m.FromMpegTsStreamTypeToCodec(es.StreamType)] = c.m.FromStreamTypeToEntityStream(es)
}

View File

@@ -70,7 +70,7 @@ func (h *SignalingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) err
}
// TODO: introduce a mode to deal with transcoding recipes
// selects prober media that client and server has adverted.
// selects proper media that client and server has adverted.
compatibleStreams := donutEngine.CompatibleStreamsFor(serverStreamInfo, clientStreamInfo)
if compatibleStreams == nil || len(compatibleStreams) == 0 {
return entities.ErrMissingCompatibleStreams