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

我希望用xiu将海康NVR的RTSP转成HLS流如何配置 #138

Closed
wcpsoft opened this issue Jul 14, 2024 · 3 comments
Closed

我希望用xiu将海康NVR的RTSP转成HLS流如何配置 #138

wcpsoft opened this issue Jul 14, 2024 · 3 comments
Labels
new feature new feature

Comments

@wcpsoft
Copy link

wcpsoft commented Jul 14, 2024

类似源地址rtsp://admin:[email protected]:554/Streaming/Channels/101

目前我的配置文件是
[rtsp]
enabled = true
port = 445

[rtsp.auth]
pull_enabled = true
push_enabled = true
algorithm = "simple"

[httpflv]
enabled = true
port = 8081

[httpflv.auth]
pull_enabled = true
algorithm = "simple"

[log]
level = "info"

[log.file]
enabled = false
rotate = "hour"
path = "./logs"

[authsecret]
key = "admin"
password = "testAy2024"

[[streams.sources]]
url = "rtsp://admin:[email protected]:554/Streaming/Channels/101"
app = "live"
name = "stream"

@harlanc
Copy link
Owner

harlanc commented Jul 15, 2024

目前xiu只能接受RTSP推流,海康可以把RTSP流推到server端吗?

@wcpsoft
Copy link
Author

wcpsoft commented Jul 15, 2024

目前xiu只能接受RTSP推流,海康可以把RTSP流推到server端吗?

可以GB28181协议推流

@harlanc harlanc added the new feature new feature label Aug 9, 2024
@harlanc
Copy link
Owner

harlanc commented Aug 9, 2024

#live server configu/rations
##########################
#   RTMP configurations  #
##########################
[rtmp]
enabled =  true 
port = 1935
gop_num = 0
[rtmp.auth]
pull_enabled = false
push_enabled = false
# simple or md5
algorithm = "simple"


[httpnotify]
enabled = false
on_publish = "http://localhost:3001/on_publish"
on_unpublish = "http://localhost:3001/on_unpuslish"
on_play = "http://localhost:3001/on_play"
on_stop = "http://localhost:3001/on_stop"

[authsecret]
# used for md5 authentication
key = "123"
# used for simple authentication
password = "123"


[httpapi]
port = 8001

##########################
#    RTSP configurations  #
##########################
[rtsp]
enabled = true
port = 5545
relay_enabled = true
[rtsp.auth]
pull_enabled = false
push_enabled = false
# simple or md5
algorithm = "simple"



##########################
#    HLS configurations  #
##########################
[hls]
enabled = true
port = 8080
need_record = true
[hls.auth]
pull_enabled = false 
# simple or md5
algorithm = "simple"


##########################
#   LOG configurations   #
##########################
[log]
level = "info"
[log.file]
# write log to file or not(Writing logs to file or console cannot be satisfied at the same time).
enabled = false
rotate = "hour" #[day,hour,minute]
path = "/app/logs"

添加了拉取camera RTSP流到本地的功能,使用上面的配置可以转成HLS,使用说明 #144

@harlanc harlanc closed this as completed Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature new feature
Projects
None yet
Development

No branches or pull requests

2 participants