Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeHLS = "hls" TypeDASH = "dash" TypeRange = "range" FPS30 = 30 FPS60 = 60 )
Variables ¶
View Source
var ( UHD4K = Resolution{Height: 2160} QHD2K = Resolution{Height: 1440} HD1080 = Resolution{Height: 1080} HD720 = Resolution{Height: 720} SD480 = Resolution{Height: 480} SD360 = Resolution{Height: 360} SD240 = Resolution{Height: 240} )
Commonly defined resolutions
View Source
var H264 = Codec{ Format{UHD4K, Bitrate{FPS30: 23000, FPS60: 35000}}, Format{QHD2K, Bitrate{FPS30: 12000, FPS60: 18000}}, Format{HD1080, Bitrate{FPS30: 2300, FPS60: 3500}}, Format{HD720, Bitrate{FPS30: 1400, FPS60: 2200}}, Format{SD480, Bitrate{FPS30: 1100, FPS60: 1700}}, Format{SD360, Bitrate{FPS30: 525, FPS60: 800}}, }
H264 codec with its suggested bitrates
View Source
var Resolutions = []Resolution{ UHD4K, QHD2K, HD1080, HD720, SD480, SD360, SD240, }
Functions ¶
func SetLogger ¶
func SetLogger(l *zap.SugaredLogger)
Types ¶
type Format ¶
type Format struct { Resolution Resolution Bitrate Bitrate }
func (Format) GetBitrateForFPS ¶
type Resolution ¶
type Resolution struct {
Width, Height int
}
Click to show internal directories.
Click to hide internal directories.