cricket::VideoCodec codec(cricket::kH264CodecName);
  codec.SetParam(cricket::kH264FmtpPacketizationMode, "1");
  codec.SetParam(kH264FmtpProfileLevelId, kH264ProfileLevelConstrainedBaseline);
  codec.SetParam(kH264FmtpLevelAsymmetryAllowed, "1");
  _codecs.push_back(std::move(codec));a=rtpmap:100 H264/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f;x-google-start-bitrate=3000;x-google-max-bitrate=8000;x-google-min-bitrate=2000
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:127 H264/90000
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f;x-google-start-bitrate=3000;x-google-max-bitrate=8000;x-google-min-bitrate=2000
a=rtpmap:123 rtx/90000
a=fmtp:123 apt=127
a=rtpmap:125 H264/90000
a=rtcp-fb:125 ccm fir
a=rtcp-fb:125 nack
a=rtcp-fb:125 nack pli
a=rtcp-fb:125 goog-remb
a=rtcp-fb:125 transport-cc
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f;x-google-start-bitrate=3000;x-google-max-bitrate=8000;x-google-min-bitrate=2000--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/26e9ecba-9d8b-4200-9e5f-5b885853c355%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/26e9ecba-9d8b-4200-9e5f-5b885853c355%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/38bf954a-7e8e-44ff-952f-dfd562477808%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/38bf954a-7e8e-44ff-952f-dfd562477808%40googlegroups.com.
#pragma pack(push, NALU, 1)
      enum H264Profile
      {
        Baseline = (uint8_t)66, //BP
        Extended = (uint8_t)88, //XP
        Main = (uint8_t)77,//MP
        High = (uint8_t)100,//HiP
      };
      // The bit fields follow Little Endian layout
      struct ProfileHeader
      {
        uint8_t  profile_idc : 8; //H264Profile
        uint8_t  flags_and_reserved : 8;
        uint8_t  level_idc : 8;
      };
#pragma pack(pop, NALU)
bool parse_profile(const uint8_t * buffer, ProfileHeader& out)
{
  memcpy(&out, buffer, sizeof(out));
  return true;
}
//Insert here the profile-level-id from SDP
bool parse_profile(const char* str, ProfileHeader& out)
{
  bool ret = false;
  std::string hex = str;
  if (hex.size() > 1) 
  {
    uint8_t* hexBuff = new uint8_t[hex.size()/2];
    size_t hi = 0;
    for (size_t i = 0; i < hex.length(); i += 2) 
    {
      std::string byteStr = hex.substr(i, 2);
      hexBuff[hi] = strtol(byteStr.c_str(), NULL, 16);
      hi++;
    }
    ret = parse_profile(hexBuff,out);
  }
  return ret;
}
a=rtpmap:100 H264/90000 a=rtcp-fb:100 goog-remb a=rtcp-fb:100 transport-cc a=rtcp-fb:100 ccm fir a=rtcp-fb:100 nack a=rtcp-fb:100 nack pli a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f a=rtpmap:101 rtx/90000 a=fmtp:101 apt=100 a=rtpmap:102 H264/90000 a=rtcp-fb:102 goog-remb a=rtcp-fb:102 transport-cc a=rtcp-fb:102 ccm fir a=rtcp-fb:102 nack a=rtcp-fb:102 nack pli a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f.....
a=rtpmap:102 H264/90000 a=rtcp-fb:102 goog-remb a=rtcp-fb:102 transport-cc a=rtcp-fb:102 ccm fir a=rtcp-fb:102 nack a=rtcp-fb:102 nack pli a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f;x-google-start-bitrate=4000;x-google-max-bitrate=8000;x-google-min-bitrate=3000.....
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/36d94820-3242-42c4-809a-60defd6c101a%40googlegroups.com.--
---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/c65RKaqr6yk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.