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

@ -48,7 +48,7 @@ func (s *rpiCameraSource) run(ctx context.Context) error {
medias := media.Medias{medi}
var stream *stream
onData := func(dts time.Duration, nalus [][]byte) {
onData := func(dts time.Duration, au [][]byte) {
if stream == nil {
res := s.parent.sourceStaticImplSetReady(pathSourceStaticSetReadyReq{
medias: medias,
@ -63,9 +63,9 @@ func (s *rpiCameraSource) run(ctx context.Context) error {
}
err := stream.writeData(medi, medi.Formats[0], &dataH264{
pts: dts,
nalus: nalus,
ntp: time.Now(),
pts: dts,
au: au,
ntp: time.Now(),
})
if err != nil {
s.Log(logger.Warn, "%v", err)