Class MPEGDashUtils
- Object
- 
- com.wowza.wms.httpstreamer.mpegdashstreaming.util.MPEGDashUtils
 
- 
 public class MPEGDashUtils extends Object
- 
- 
Constructor SummaryConstructors Constructor Description MPEGDashUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringaudioCodecIdToString(int codecId, com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)static StringcodecInfoAudioToCodecsStr(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)static StringcodecInfoAudioToCodecsStr(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio, int codecStrFormatId)static StringcodecInfoVideoToCodecsStr(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo, int codecStrFormatId)static StringcodecInfoVideoToCodecsStr(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo, int codecStrFormatId, boolean forceH264BaselineProfile)static StringdimensionsToAspectRatioString(int width, int height)static intencryptSubSample(byte[] buffer, ICencEncryptor encryptor, int offset, PacketFragmentList delimitedNALUnits, int nalUnitLen, int blockSize, int minClear, int nalSize, com.wowza.wms.drm.cenc.CencSampleAuxiliaryData.CencSubSample subSample)static intfilenameToManifestId(String filename)static intfilenameToProfile(String filename)static StringfixupAudioCodecString(String audioCodecStr, int codecId, com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)static StringfixupVideoCodecString(String videoCodecStr, int codecId, com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)static StringframeRateToFrString(double frameRate)static com.wowza.wms.drm.cenc.CencSampleAuxiliaryDatagenerateVideoSAD(ICencEncryptor encryptor, byte[] buffer, int offset, int size, PacketFragmentList delimitedNALUnits, int videoCodec, int nalUnitLen)static CencInfogetCencInfo(IApplicationInstance appInstance, String streamName, IHTTPStreamerSession httpStreamerSession, IHTTPStreamerMPEGDashIndex index, long segmentId, CencInfo cencInfo)static CencInfogetCencInfo(IApplicationInstance appInstance, String streamName, ILiveStreamPacketizer liveStreamPacketizer, long segmentId, CencInfo cencInfo)static voidgetCompatibleBrandsAudio(java.util.List<String> brandsList, boolean isInit, int audioCodec)static voidgetCompatibleBrandsVideo(java.util.List<String> brandsList, boolean isInit, int videoCodec)static byte[]getH264AVCCBytes(byte[] codecConfig)static byte[]getH265CodecHVCCBytes(byte[] codecConfig)static StringgetMajorBrandAudio()static StringgetMajorBrandVideo()static intgetVideoCodecNalType(int videoCodec, byte[] buffer, int offset, int nalUnitLen)static intmanifestIdStrToId(String value)static StringmillisToDurationStr(long millis)static longmsecToSec(long time)static longmsecToTimescaled(long time, long timescale)static voidparseH264CodecConfig(byte[] codecConfig, com.wowza.wms.media.mp4.fragment.MP4FragmentWriterMedia videoHolder)static voidparseH265CodecConfig(byte[] codecConfig, com.wowza.wms.media.mp4.fragment.MP4FragmentWriterMedia videoHolder)static intparseNalUnitLengthForCodec(int videoCodec, byte[] codecConfig)static intprofileStrToId(String value)static doubleroughAspectRatioValue(int width, int height)static StringsegmentFormatToFileExt(com.wowza.wms.httpstreamer.model.SegmentFormat segmentFormat)static StringsegmentTypeIdToStr(int id)static intsegmentTypeStrToId(String value)static booleanshouldEncryptNALUnit(int codec, int nalUnitType)Returns whether a NAL Unit should be encrypted or not based on Codec and NAL Unit type.static longtimescaledToMsec(long time, long timescale)static StringvideoCodecIdToString(int codecId, com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
 
- 
- 
- 
Method Detail- 
getCencInfopublic static CencInfo getCencInfo(IApplicationInstance appInstance, String streamName, IHTTPStreamerSession httpStreamerSession, IHTTPStreamerMPEGDashIndex index, long segmentId, CencInfo cencInfo) 
 - 
getCencInfopublic static CencInfo getCencInfo(IApplicationInstance appInstance, String streamName, ILiveStreamPacketizer liveStreamPacketizer, long segmentId, CencInfo cencInfo) 
 - 
fixupVideoCodecStringpublic static String fixupVideoCodecString(String videoCodecStr, int codecId, com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
 - 
fixupAudioCodecStringpublic static String fixupAudioCodecString(String audioCodecStr, int codecId, com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
 - 
videoCodecIdToStringpublic static String videoCodecIdToString(int codecId, com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
 - 
audioCodecIdToStringpublic static String audioCodecIdToString(int codecId, com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
 - 
millisToDurationStrpublic static String millisToDurationStr(long millis) 
 - 
codecInfoAudioToCodecsStrpublic static String codecInfoAudioToCodecsStr(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio) 
 - 
codecInfoAudioToCodecsStrpublic static String codecInfoAudioToCodecsStr(com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio, int codecStrFormatId)
 - 
codecInfoVideoToCodecsStrpublic static String codecInfoVideoToCodecsStr(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo, int codecStrFormatId)
 - 
codecInfoVideoToCodecsStrpublic static String codecInfoVideoToCodecsStr(com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo, int codecStrFormatId, boolean forceH264BaselineProfile)
 - 
filenameToManifestIdpublic static int filenameToManifestId(String filename) 
 - 
segmentTypeIdToStrpublic static String segmentTypeIdToStr(int id) 
 - 
segmentTypeStrToIdpublic static int segmentTypeStrToId(String value) 
 - 
manifestIdStrToIdpublic static int manifestIdStrToId(String value) 
 - 
profileStrToIdpublic static int profileStrToId(String value) 
 - 
filenameToProfilepublic static int filenameToProfile(String filename) 
 - 
roughAspectRatioValuepublic static double roughAspectRatioValue(int width, int height)
 - 
dimensionsToAspectRatioStringpublic static String dimensionsToAspectRatioString(int width, int height)
 - 
frameRateToFrStringpublic static String frameRateToFrString(double frameRate) 
 - 
timescaledToMsecpublic static long timescaledToMsec(long time, long timescale)
 - 
msecToSecpublic static long msecToSec(long time) 
 - 
msecToTimescaledpublic static long msecToTimescaled(long time, long timescale)
 - 
getMajorBrandAudiopublic static String getMajorBrandAudio() 
 - 
getMajorBrandVideopublic static String getMajorBrandVideo() 
 - 
getCompatibleBrandsAudiopublic static void getCompatibleBrandsAudio(java.util.List<String> brandsList, boolean isInit, int audioCodec)
 - 
getCompatibleBrandsVideopublic static void getCompatibleBrandsVideo(java.util.List<String> brandsList, boolean isInit, int videoCodec)
 - 
segmentFormatToFileExtpublic static String segmentFormatToFileExt(com.wowza.wms.httpstreamer.model.SegmentFormat segmentFormat) 
 - 
shouldEncryptNALUnitpublic static boolean shouldEncryptNALUnit(int codec, int nalUnitType)Returns whether a NAL Unit should be encrypted or not based on Codec and NAL Unit type.- Parameters:
- codec-
- nalUnitType-
- Returns:
 
 - 
generateVideoSADpublic static com.wowza.wms.drm.cenc.CencSampleAuxiliaryData generateVideoSAD(ICencEncryptor encryptor, byte[] buffer, int offset, int size, PacketFragmentList delimitedNALUnits, int videoCodec, int nalUnitLen) 
 - 
encryptSubSamplepublic static int encryptSubSample(byte[] buffer, ICencEncryptor encryptor, int offset, PacketFragmentList delimitedNALUnits, int nalUnitLen, int blockSize, int minClear, int nalSize, com.wowza.wms.drm.cenc.CencSampleAuxiliaryData.CencSubSample subSample)
 - 
getH264AVCCBytespublic static byte[] getH264AVCCBytes(byte[] codecConfig) 
 - 
parseH264CodecConfigpublic static void parseH264CodecConfig(byte[] codecConfig, com.wowza.wms.media.mp4.fragment.MP4FragmentWriterMedia videoHolder)
 - 
getH265CodecHVCCBytespublic static byte[] getH265CodecHVCCBytes(byte[] codecConfig) 
 - 
parseH265CodecConfigpublic static void parseH265CodecConfig(byte[] codecConfig, com.wowza.wms.media.mp4.fragment.MP4FragmentWriterMedia videoHolder)
 - 
parseNalUnitLengthForCodecpublic static int parseNalUnitLengthForCodec(int videoCodec, byte[] codecConfig)
 - 
getVideoCodecNalTypepublic static int getVideoCodecNalType(int videoCodec, byte[] buffer, int offset, int nalUnitLen)
 
- 
 
-