Support publishing with RTMP and H265 (for OBS Studio) (#1333)

* support publishing with RTMP and H265 (for OBS Studio)

* rtmp source: block H265 tracks
This commit is contained in:
Alessandro Ros
2022-12-27 13:55:30 +01:00
committed by GitHub
parent 4ebf4f7398
commit ad52b3fab7
5 changed files with 283 additions and 119 deletions

View File

@@ -121,6 +121,10 @@ func (s *rtmpSource) run(ctx context.Context) error {
return err
}
if _, ok := videoFormat.(*format.H265); ok {
return fmt.Errorf("proxying H265 streams with RTMP is not supported")
}
var medias media.Medias
var videoMedia *media.Media
var audioMedia *media.Media