Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问推流信息在哪配置,我在appsettings找不到 #29

Open
Starry-Sky-World opened this issue Oct 18, 2024 · 6 comments
Open

Comments

@Starry-Sky-World
Copy link

日志如下:

2024/10/18 03:57:13.464|INFO|没有插件需要加载。
2024/10/18 03:57:15.152|INFO|同步数据库...
2024/10/18 03:57:19.279|INFO|Now listening on: http://[::]:18686
2024/10/18 03:57:19.281|INFO|Application started. Press Ctrl+C to shut down.
2024/10/18 03:57:19.281|INFO|Hosting environment: Production
2024/10/18 03:57:19.283|INFO|Content root path: /Projects/AutoLive/BilibiliAutoLiver_Linux_ARM64
2024/10/18 03:57:24.774|INFO|用户工具人_Live(1786938707)登录成功!
2024/10/18 03:57:28.865|WARN|请先配置推流信息
2024/10/18 03:57:28.867|WARN|自动开启推流失败!请先配置推流信息

配置文件

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"AppSettings": {
//存放数据文件夹,{BaseDirectory}为通配符,表示应用程序根目录
"DataDirectory": "{BaseDirectory}/data",
//数据库配置,一般情况勿动
"DbConnectionString": "Data Source={BaseDirectory}/data/db/app.db",
//严格模式。启用之后,高级模式命令只能使用ffmpeg开头,且以{URL}结尾。禁用后命令中只需包含{URL},禁用后可调用自定义命令
"AdvanceStrictMode": true,
//允许上传的文件类型
"AllowExtensions": [
{
"Type": "Video",
"Values": [
".wmv",
".asf",
".asx",
".rm",
".rmvb",
".mp4",
".mov",
".m4v",
".avi",
".dat",
".mkv",
".flv",
".txt"
]
},
{
"Type": "Music",
"Values": [
".wav",
".flac",
".ape",
".alac",
".mp3",
".aac"
]
}
],
//FFMpeg预设参数,不明白勿修改。预设参数经过不完全的测试,满足大部分情况下,大部分设备推流需求。
"FFmpegPresetParams": {
"PixelFormat": "yuv420p",
//低延迟参数,开启可以降低推流延迟。但是在树莓派上面,开启可能导致推流黑屏
"LowDelayFlags": false,
"Format": "flv",
"InputQuality": {
"VideoCustomArgument": null,
"AudioCustomArgument": null
},
"OutputQuality": {
"High": {
"Bitrate": 8000,
//支持值:Fast,Faster,VeryFast,SuperFast,UltraFast。
//从前往后,推流质量递减,但是CPU占用也递减
"SpeedPreset": "Fast",
"FpsMode": "vfr",
"ZeroLatency ": true,
"GOP": 10,
"ConstantRateFactor": 23,
"CustomArgument": null
},
"Medium": {
"Bitrate": 4000,
"SpeedPreset": "VeryFast",
"FpsMode": "vfr",
"ZeroLatency": true,
"GOP": 20,
"ConstantRateFactor": 28,
"CustomArgument": null
},
"Low": {
"Bitrate": 2000,
"SpeedPreset": "UltraFast",
"FpsMode": "vfr",
"ZeroLatency": true,
"GOP": 30,
"ConstantRateFactor": 33,
"CustomArgument": null
}
}
}
}
}

@withsalt
Copy link
Owner

扫码登录之后,没有跳转到管理界面?

@Starry-Sky-World
Copy link
Author

扫码登录之后,没有跳转到管理界面?

跳转了,但是日志死活提示未配置

@withsalt
Copy link
Owner

直播设置->推流设置。里面配置了推流信息吗?

@Starry-Sky-World
Copy link
Author

直播设置->推流设置。里面配置了推流信息吗?

空白一片

@withsalt
Copy link
Owner

有报错信息吗?估计是报错了没有加载出来

@Starry-Sky-World
Copy link
Author

有报错信息吗?估计是报错了没有加载出来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants