1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Add codec OPUS/HEVC to FLV

This commit is contained in:
winlin 2019-01-17 09:24:17 +08:00
parent b2d1d84634
commit e77b570636
4 changed files with 12 additions and 2 deletions

View file

@ -60,6 +60,8 @@ enum SrsVideoCodecId
SrsVideoCodecIdOn2VP6WithAlphaChannel = 5,
SrsVideoCodecIdScreenVideoVersion2 = 6,
SrsVideoCodecIdAVC = 7,
// See page 79 at @doc https://github.com/CDN-Union/H265/blob/master/Document/video_file_format_spec_v10_1_ksyun_20170615.doc
SrsVideoCodecIdHEVC = 12,
};
std::string srs_video_codec_id2str(SrsVideoCodecId codec);
@ -152,6 +154,8 @@ enum SrsAudioCodecId
SrsAudioCodecIdReserved = 9,
SrsAudioCodecIdAAC = 10,
SrsAudioCodecIdSpeex = 11,
// For FLV, it's undefined, we define it as Opus for WebRTC.
SrsAudioCodecIdOpus = 13,
SrsAudioCodecIdReservedMP3_8kHz = 14,
SrsAudioCodecIdReservedDeviceSpecificSound = 15,
};