mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
H265: Support HEVC over RTMP or HTTP-FLV. (#3272)
1. Support configure with --h265=on. 2. Parse HEVC(H.265) from FLV or RTMP packet. 3. Support HEVC over RTMP or HTTP-FLV. Co-authored-by: runner365 <shi.weibd@hotmail.com>
This commit is contained in:
parent
7e02d972ea
commit
178e40a5fc
17 changed files with 440 additions and 44 deletions
|
@ -622,6 +622,17 @@ void SrsStatistic::dumps_hints_kv(std::stringstream & ss)
|
|||
if (kbps->get_send_kbps_30s()) {
|
||||
ss << "&send=" << kbps->get_send_kbps_30s();
|
||||
}
|
||||
|
||||
#ifdef SRS_H265
|
||||
// For HEVC, we should check active stream which is HEVC codec.
|
||||
for (std::map<std::string, SrsStatisticStream*>::iterator it = streams.begin(); it != streams.end(); it++) {
|
||||
SrsStatisticStream* stream = it->second;
|
||||
if (stream->vcodec == SrsVideoCodecIdHEVC) {
|
||||
ss << "&h265=1";
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void SrsStatistic::dumps_cls_summaries(SrsClsSugar* sugar)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue