19 lines
372 B
Python
19 lines
372 B
Python
|
from pydantic import BaseModel
|
||
|
|
||
|
class Stream(BaseModel):
|
||
|
# 视频编码器
|
||
|
cv: str = "libx264"
|
||
|
# 预设
|
||
|
preset: str = "ultrafast"
|
||
|
# 优化
|
||
|
tune: str = "zerolatency"
|
||
|
# 音频编码器
|
||
|
ca: str = "aac"
|
||
|
# 音频比特率
|
||
|
ba: str = "128k"
|
||
|
# 帧间隔
|
||
|
g: str = '5'
|
||
|
# 码率
|
||
|
bv: str = "6000k"
|
||
|
# 帧率
|
||
|
r: str = "30"
|