pion / rtp

A Go implementation of RTP
https://pion.ly/
MIT License
363 stars 112 forks source link

Color Space: RTP Header Extension for color space #212

Open triggerfinger-debug opened 1 year ago

triggerfinger-debug commented 1 year ago

Summary

Hello, does Pion RTP support color space RTP Header Extensions? I would like to pass HLG color space primaries, transfer characteristics, and matrix coefficients with VP9 codec.

Motivation

I would like to produce High Dynamic Range WebRTC with RTP/VP9.

Describe alternatives you've considered

It would be great if color space information could be appended and relayed to a new endpoint.

Additional context

References:

https://webrtc.googlesource.com/src/+/refs/heads/main/docs/native-code/rtp-hdrext/color-space

https://github.com/webrtc-uwp/webrtc/blob/master/modules/rtp_rtcp/source/rtp_header_extensions.cc