Browse Source

update list of supported codecs inside error messages (#2058) (#2073)

pull/2074/head
Alessandro Ros 3 years ago committed by GitHub
parent
commit
22b120ef22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/core/hls_muxer.go
  2. 2
      internal/core/rtmp_conn.go
  3. 2
      internal/core/webrtc_session.go

2
internal/core/hls_muxer.go

@ -272,7 +272,7 @@ func (m *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{})
if medias == nil { if medias == nil {
return fmt.Errorf( return fmt.Errorf(
"the stream doesn't contain any supported codec, which are currently H264, H265, MPEG4-Audio, Opus") "the stream doesn't contain any supported codec, which are currently H265, H264, Opus, MPEG4-Audio")
} }
var muxerDirectory string var muxerDirectory string

2
internal/core/rtmp_conn.go

@ -404,7 +404,7 @@ func (c *rtmpConn) runRead(ctx context.Context, u *url.URL) error {
if videoFormat == nil && audioFormat == nil { if videoFormat == nil && audioFormat == nil {
return fmt.Errorf( return fmt.Errorf(
"the stream doesn't contain any supported codec, which are currently H264, MPEG-1/2 Audio, MPEG-4 Audio") "the stream doesn't contain any supported codec, which are currently H264, MPEG-4 Audio, MPEG-1/2 Audio")
} }
defer res.stream.readerRemove(c) defer res.stream.readerRemove(c)

2
internal/core/webrtc_session.go

@ -62,7 +62,7 @@ func gatherOutgoingTracks(medias media.Medias) ([]*webRTCOutgoingTrack, error) {
if tracks == nil { if tracks == nil {
return nil, fmt.Errorf( return nil, fmt.Errorf(
"the stream doesn't contain any supported codec, which are currently H264, VP8, VP9, G711, G722, Opus") "the stream doesn't contain any supported codec, which are currently AV1, VP9, VP8, H264, Opus, G722, G711")
} }
return tracks, nil return tracks, nil

Loading…
Cancel
Save