mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
move format processors into dedicated folder
This commit is contained in:
parent
535cbe41e8
commit
e3fff72b7c
26 changed files with 690 additions and 912 deletions
|
|
@ -7,6 +7,7 @@ import (
|
|||
"github.com/aler9/gortsplib/v2/pkg/format"
|
||||
"github.com/aler9/gortsplib/v2/pkg/media"
|
||||
|
||||
"github.com/aler9/rtsp-simple-server/internal/formatprocessor"
|
||||
"github.com/aler9/rtsp-simple-server/internal/logger"
|
||||
"github.com/aler9/rtsp-simple-server/internal/rpicamera"
|
||||
)
|
||||
|
|
@ -62,10 +63,10 @@ func (s *rpiCameraSource) run(ctx context.Context) error {
|
|||
stream = res.stream
|
||||
}
|
||||
|
||||
err := stream.writeData(medi, medi.Formats[0], &dataH264{
|
||||
pts: dts,
|
||||
au: au,
|
||||
ntp: time.Now(),
|
||||
err := stream.writeData(medi, medi.Formats[0], &formatprocessor.DataH264{
|
||||
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