mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server / deployment: add VP9 to OPENVIDU_STREAMS_FORCED_VIDEO_CODEC
This was already a possibility but most comments didn't mention itpull/660/head
parent
0678d86eeb
commit
fc61692b09
|
@ -128,7 +128,7 @@ OPENVIDU_STREAMS_VIDEO_MIN_SEND_BANDWIDTH=300
|
||||||
|
|
||||||
# All sessions of OpenVidu will try to force this codec. If OPENVIDU_STREAMS_ALLOW_TRANSCODING=true
|
# All sessions of OpenVidu will try to force this codec. If OPENVIDU_STREAMS_ALLOW_TRANSCODING=true
|
||||||
# when a codec can not be forced, transcoding will be allowed
|
# when a codec can not be forced, transcoding will be allowed
|
||||||
# Values: VP8, H264, NONE
|
# Values: VP8, VP9, H264, NONE
|
||||||
# Default value is VP8
|
# Default value is VP8
|
||||||
# OPENVIDU_STREAMS_FORCED_VIDEO_CODEC=VP8
|
# OPENVIDU_STREAMS_FORCED_VIDEO_CODEC=VP8
|
||||||
|
|
||||||
|
|
|
@ -249,7 +249,7 @@ OPENVIDU_STREAMS_VIDEO_MIN_SEND_BANDWIDTH=300
|
||||||
|
|
||||||
# All sessions of OpenVidu will try to force this codec. If OPENVIDU_STREAMS_ALLOW_TRANSCODING=true
|
# All sessions of OpenVidu will try to force this codec. If OPENVIDU_STREAMS_ALLOW_TRANSCODING=true
|
||||||
# when a codec can not be forced, transcoding will be allowed
|
# when a codec can not be forced, transcoding will be allowed
|
||||||
# Values: VP8, H264, NONE
|
# Values: VP8, VP9, H264, NONE
|
||||||
# Default value is VP8
|
# Default value is VP8
|
||||||
# OPENVIDU_STREAMS_FORCED_VIDEO_CODEC=VP8
|
# OPENVIDU_STREAMS_FORCED_VIDEO_CODEC=VP8
|
||||||
|
|
||||||
|
|
|
@ -246,7 +246,7 @@ OPENVIDU_STREAMS_VIDEO_MIN_SEND_BANDWIDTH=300
|
||||||
|
|
||||||
# All sessions of OpenVidu will try to force this codec. If OPENVIDU_STREAMS_ALLOW_TRANSCODING=true
|
# All sessions of OpenVidu will try to force this codec. If OPENVIDU_STREAMS_ALLOW_TRANSCODING=true
|
||||||
# when a codec can not be forced, transcoding will be allowed
|
# when a codec can not be forced, transcoding will be allowed
|
||||||
# Values: VP8, H264, NONE
|
# Values: VP8, VP9, H264, NONE
|
||||||
# Default value is VP8
|
# Default value is VP8
|
||||||
# OPENVIDU_STREAMS_FORCED_VIDEO_CODEC=VP8
|
# OPENVIDU_STREAMS_FORCED_VIDEO_CODEC=VP8
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class SDPMunging {
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(SDPMunging.class);
|
private static final Logger log = LoggerFactory.getLogger(SDPMunging.class);
|
||||||
|
|
||||||
private Set<VideoCodec> supportedVideoCodecs = new HashSet<>(Arrays.asList(VideoCodec.VP8, VideoCodec.H264));
|
private Set<VideoCodec> supportedVideoCodecs = new HashSet<>(Arrays.asList(VideoCodec.VP8, VideoCodec.VP9, VideoCodec.H264));
|
||||||
|
|
||||||
private final String PT_PATTERN = "a=rtpmap:(\\d+) %s/90000";
|
private final String PT_PATTERN = "a=rtpmap:(\\d+) %s/90000";
|
||||||
private final String EXTRA_PT_PATTERN = "a=fmtp:(\\d+) apt=%s";
|
private final String EXTRA_PT_PATTERN = "a=fmtp:(\\d+) apt=%s";
|
||||||
|
@ -45,7 +45,7 @@ public class SDPMunging {
|
||||||
Arrays.asList("^a=extmap:%s .+$", "^a=rtpmap:%s .+$", "^a=fmtp:%s .+$", "^a=rtcp-fb:%s .+$"));
|
Arrays.asList("^a=extmap:%s .+$", "^a=rtpmap:%s .+$", "^a=fmtp:%s .+$", "^a=rtcp-fb:%s .+$"));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `codec` is a uppercase SDP-style codec name: "VP8", "H264".
|
* `codec` is an uppercase SDP-style codec name: "VP8", "VP9", "H264".
|
||||||
*
|
*
|
||||||
* This looks for all video m-sections (lines starting with "m=video"), then
|
* This looks for all video m-sections (lines starting with "m=video"), then
|
||||||
* searches all of its related PayloadTypes trying to find those which
|
* searches all of its related PayloadTypes trying to find those which
|
||||||
|
|
Loading…
Reference in New Issue