go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

Add support for transcoding to L16 codec on backchannel

Open oNaiPs opened this issue 2 years ago • 1 comments

Changes:

  • Receiver's usage of WriteRTP is wrapped with a Handler function (similar to the Sender struct)
  • Add code on webrtc producer to support transcoding from PCMA to PCM (based on https://github.com/AlexxIT/go2rtc/blob/master/pkg/webrtc/consumer.go#L67)

TODO:

  • Add resampling functions (@AlexxIT do you happen to have them already?)

Closes https://github.com/AlexxIT/go2rtc/issues/696

oNaiPs avatar Oct 18 '23 16:10 oNaiPs

I don't think it's a good idea to change the receiver. In all other cases receiver produce codec as is. There should be a pipeline between the receiver and the sender that converts the codec.

AlexxIT avatar Nov 02 '23 14:11 AlexxIT