1
0
Fork 0
forked from External/mediamtx

support routing multichannel Opus between RTSP, SRT, HLS, UDP and recording in MPEG-TS and fMP4 (#3355) (#3368)

This commit is contained in:
Alessandro Ros 2024-05-19 14:38:57 +02:00 committed by GitHub
parent d21506182b
commit e283725cde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 23 additions and 34 deletions

View file

@ -180,8 +180,8 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
medi = &description.Media{
Type: description.MediaTypeAudio,
Formats: []format.Format{&format.Opus{
PayloadTyp: 96,
IsStereo: (tcodec.ChannelCount >= 2),
PayloadTyp: 96,
ChannelCount: tcodec.ChannelCount,
}},
}