package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Dec 31, 2021
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
start to generate ts file and store to disk.
rtmp->hls 转码有两种方式,懒汉式和饿汉式
饿汉式:流推上来后立即开始转为 hls,不管有没有人拉 hls 流。推流断掉后才停止转码
懒汉式:第一个人拉 hls 时才开始转码,没人拉时就停掉,即使推流还没停
如果需要做录制,需要使用饿汉式,以保证录制到全量流
如果只是为了 hls 实时拉流,就可以使用懒汉式,没人拉 hls 时不用转码,节省性能
type M3U8 struct {
Sequence int
Count int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.