support publishing H265 and AV1 tracks with Enhanced RTMP (#1393) (#1446) (#1621) (#1756)

This commit is contained in:
Alessandro Ros 2023-05-04 20:37:25 +02:00 committed by GitHub
parent 225220ddd5
commit e8124e2f56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 1971 additions and 1716 deletions

View file

@ -0,0 +1,24 @@
package message
import (
"fmt"
"github.com/aler9/mediamtx/internal/rtmp/rawmessage"
)
// ExtendedMPEG2TSSequenceStart is a MPEG2-TS sequence start extended message.
type ExtendedMPEG2TSSequenceStart struct {
FourCC [4]byte
}
// Unmarshal implements Message.
func (m *ExtendedMPEG2TSSequenceStart) Unmarshal(raw *rawmessage.Message) error {
copy(m.FourCC[:], raw.Body[1:5])
return fmt.Errorf("ExtendedMPEG2TSSequenceStart is not implemented yet")
}
// Marshal implements Message.
func (m ExtendedMPEG2TSSequenceStart) Marshal() (*rawmessage.Message, error) {
return nil, fmt.Errorf("TODO")
}