support reading H265 tracks with HLS (#1342)

* support reading H265 tracks with HLS

* update README
This commit is contained in:
Alessandro Ros
2022-12-29 20:46:31 +01:00
committed by GitHub
parent 37baa33fc8
commit 5de600ffaa
24 changed files with 595 additions and 260 deletions

View File

@@ -84,11 +84,11 @@ func (s *hlsSource) run(ctx context.Context) error {
return nil
}
onVideoData := func(pts time.Duration, nalus [][]byte) {
onVideoData := func(pts time.Duration, au [][]byte) {
err := stream.writeData(videoMedia, videoMedia.Formats[0], &dataH264{
pts: pts,
nalus: nalus,
ntp: time.Now(),
pts: pts,
au: au,
ntp: time.Now(),
})
if err != nil {
s.Log(logger.Warn, "%v", err)