1
0
Fork 0
forked from External/mediamtx

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)