mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
support reading H265 tracks with HLS (#1342)
* support reading H265 tracks with HLS * update README
This commit is contained in:
parent
37baa33fc8
commit
5de600ffaa
24 changed files with 595 additions and 260 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue