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

[ZLM HOOK]流无人观看:123456->hls->live/123 #1697

Open
wangyong5123 opened this issue Nov 19, 2024 · 0 comments
Open

[ZLM HOOK]流无人观看:123456->hls->live/123 #1697

wangyong5123 opened this issue Nov 19, 2024 · 0 comments

Comments

@wangyong5123
Copy link

wangyong5123 commented Nov 19, 2024

环境信息:

    1. 部署方式 编译wvp-pro/ wvp-prp + zlm都是编译部署/
    1. 部署环境ubuntu
    1. 端口开放情况 18080,80,1935
    1. 是否是公网部署 是
    1. 是否使用https no
    1. 方便的话提供下使用的设备品牌或平台:腾讯云
    1. 你做过哪些尝试,ffplay 拉流正常
    1. 代码更新时间(最新)

内容描述:
使用ffplay 拉流正常,web上点击播放,没有数据,提示请稍后视频加载中;
录像的视频,下载到本地可以播放

联想截图_20241119112947

日志 [ZLM HOOK]流无人观看:123456->hls->test/2

web录像存储
截图
联想截图_20241119123337_1
联想截图_20241119123411_2

抓包文件

日志

2024-11-19 10:59:24.344 [main]  INFO --- o.s.b.a.web.servlet.WelcomePageHandlerMapping: 60 Adding welcome page: class path resource [static/index.html]
2024-11-19 10:59:26.214 [main]  INFO --- org.apache.coyote.http11.Http11NioProtocol: 173 Starting ProtocolHandler ["http-nio-18080"]
2024-11-19 10:59:26.286 [main]  INFO --- o.s.boot.web.embedded.tomcat.TomcatWebServer: 220 Tomcat started on port(s): 18080 (http) with context path ''
2024-11-19 10:59:26.287 [main]  INFO --- com.genersoft.iot.vmp.conf.ServiceInfo: 22 项目启动获取启动的端口号:  18080
2024-11-19 10:59:26.885 [main]  INFO --- com.genersoft.iot.vmp.VManageBootstrap: 61 Started VManageBootstrap in 10.141 seconds (JVM running for 10.942)
2024-11-19 10:59:26.895 [main]  INFO --- com.genersoft.iot.vmp.gb28181.SipLayer: 61 [自动配置SIP监听网卡] 网卡接口地址: 10.0.12.3
2024-11-19 10:59:26.899 [main]  INFO --- c.g.i.v.g.t.e.r.i.m.n.c.AlarmNotifyMessageHandler: 59 [SIP日志]已关闭
2024-11-19 10:59:26.960 [main]  WARN --- GB28181_SIP: 451 using default tls security policy
2024-11-19 10:59:26.967 [main]  WARN --- GB28181_SIP: 451 Using default keystore type pkcs12
2024-11-19 10:59:26.969 [main]  WARN --- GB28181_SIP: 451 TLS server settings will be inactive - TLS key store will use JVM defaults keyStoreType=pkcs12 javax.net.ssl.keyStore=null javax.net.ssl.keyStorePassword=null
2024-11-19 10:59:26.969 [main]  INFO --- GB28181_SIP: 461 javax.net.ssl.trustStorePassword is null, using the password passed through javax.net.ssl.keyStorePassword
2024-11-19 10:59:26.970 [main]  WARN --- GB28181_SIP: 451 Using default truststore type pkcs12
2024-11-19 10:59:26.971 [main]  WARN --- GB28181_SIP: 451 TLS trust settings will be inactive - TLS trust store will use JVM defaults. trustStoreType=pkcs12 javax.net.ssl.trustStore=null javax.net.ssl.trustStorePassword=null
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.alibaba.fastjson2.util.JDKUtils (jar:file:/home/lighthouse/wvp-GB28181-pro/target/wvp-pro-2.7.18-11180334.jar!/BOOT-INF/lib/fastjson2-2.0.17.jar!/) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of com.alibaba.fastjson2.util.JDKUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2024-11-19 10:59:27.229 [main]  INFO --- com.genersoft.iot.vmp.gb28181.SipLayer: 114 [SIP SERVER] tcp://10.0.12.3:8116 启动成功
2024-11-19 10:59:27.322 [main]  INFO --- com.genersoft.iot.vmp.gb28181.SipLayer: 131 [SIP SERVER] udp://10.0.12.3:8116 启动成功
2024-11-19 10:59:27.631 [main]  INFO --- com.genersoft.iot.vmp.media.MediaServerConfig: 57 [媒体节点] 加载节点列表, 共1个节点
2024-11-19 10:59:27.648 [wvp-1]  INFO --- c.g.iot.vmp.media.zlm.ZLMMediaServerStatusManager: 75 [ZLM-添加待上线节点] ID:123456
2024-11-19 10:59:27.652 [wvp-1]  INFO --- c.g.iot.vmp.media.zlm.ZLMMediaServerStatusManager: 138 [ZLM-尝试连接] ID:123456, 地址: 10.0.12.3:80
2024-11-19 10:59:27.684 [main]  INFO --- com.genersoft.iot.vmp.conf.CivilCodeFileConf: 74 [行政区划] 加载成功,共加载数据3223条
2024-11-19 10:59:27.732 [main]  INFO --- com.genersoft.iot.vmp.VManageBootstrap: 40 构建版本: 2.7.18
2024-11-19 10:59:27.733 [main]  INFO --- com.genersoft.iot.vmp.VManageBootstrap: 41 构建时间: 20241118
2024-11-19 10:59:27.734 [main]  INFO --- com.genersoft.iot.vmp.VManageBootstrap: 42 GIT信息: 分支: master, ID: 5b393b7,  时间: 20241115
2024-11-19 10:59:27.965 [wvp-1]  INFO --- c.g.iot.vmp.media.zlm.ZLMMediaServerStatusManager: 186 [ZLM-连接成功] ID:123456, 地址: 10.0.12.3:80
2024-11-19 10:59:27.993 [wvp-1]  INFO --- c.g.iot.vmp.media.zlm.ZLMMediaServerStatusManager: 250 [媒体服务节点] 正在设置 :123456 -> 10.0.12.3:80
2024-11-19 10:59:27.999 [wvp-1]  INFO --- c.g.iot.vmp.media.zlm.ZLMMediaServerStatusManager: 307 [媒体服务节点] 设置成功 123456 -> 10.0.12.3:80
2024-11-19 10:59:28.138 [wvp-2]  INFO --- c.g.i.v.s.service.impl.StreamProxyServiceImpl: 359 恢复流代理,wy/12
2024-11-19 10:59:28.150 [wvp-2]  INFO --- c.g.iot.vmp.media.zlm.ZLMMediaNodeServerService: 439 [启动拉流代理] 已存在, 直接返回, app: wy, stream: 12
2024-11-19 10:59:28.157 [wvp-2]  INFO --- c.g.i.v.m.e.m.MediaServerStatusEventListener: 28 [媒体节点] 上线 ID:123456
2024-11-19 10:59:31.950 [http-nio-18080-exec-1]  INFO --- o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]: 173 Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-11-19 10:59:31.950 [http-nio-18080-exec-1]  INFO --- org.springframework.web.servlet.DispatcherServlet: 525 Initializing Servlet 'dispatcherServlet'
2024-11-19 10:59:31.952 [http-nio-18080-exec-1]  INFO --- org.springframework.web.servlet.DispatcherServlet: 547 Completed initialization in 1 ms
2024-11-19 10:59:35.404 [http-nio-18080-exec-2]  INFO --- c.genersoft.iot.vmp.media.zlm.ZLMHttpHookListener: 100 [ZLM HOOK]推流鉴权:123456->OnPublishHookParam{id='292-30', app='live', stream='123', ip='36.22.240.43', params='callId=12345678&sign=285da00062e0741dcfb8e4e8ae17e4e0', port=39494, schema='rtmp', vhost='__defaultVhost__'}
2024-11-19 10:59:35.419 [http-nio-18080-exec-2]  INFO --- c.genersoft.iot.vmp.media.zlm.ZLMHttpHookListener: 112 [ZLM HOOK]推流鉴权 响应:123456->OnPublishHookParam{id='292-30', app='live', stream='123', ip='36.22.240.43', params='callId=12345678&sign=285da00062e0741dcfb8e4e8ae17e4e0', port=39494, schema='rtmp', vhost='__defaultVhost__'}->>>>HookResultForOnPublish{enable_audio=true, enable_mp4=true, mp4_max_second=0, mp4_save_path='null', stream_replace='null', modify_stamp='null'}
2024-11-19 10:59:36.493 [http-nio-18080-exec-6]  INFO --- c.genersoft.iot.vmp.media.zlm.ZLMHttpHookListener: 139 [ZLM HOOK] 流注册, 123456->rtsp->live/123
2024-11-19 10:59:36.495 [wvp-1]  INFO --- c.g.i.v.media.service.impl.MediaServerServiceImpl: 91 流变化:注册 app->live, stream->123
2024-11-19 10:59:36.515 [wvp-2]  INFO --- c.g.i.v.s.service.impl.StreamPushServiceImpl: 201 [添加推流] app: live, stream: 123, 国标编号: null
2024-11-19 10:59:36.533 [wvp-2]  INFO --- c.g.iot.vmp.storager.impl.RedisCatchStorageImpl: 121 [redis 流变化事件] 发送 WVP_MSG_STREAM_CHANGE_PUSH: {"serverId":"000000","app":"live","stream":"123","register":true,"mediaServerId":"123456"}
2024-11-19 11:00:05.368 [http-nio-18080-exec-1]  INFO --- c.genersoft.iot.vmp.media.zlm.ZLMHttpHookListener: 171 [ZLM HOOK]流无人观看:123456->hls->live/123
2024-11-19 11:00:10.428 [http-nio-18080-exec-8]  INFO --- c.genersoft.iot.vmp.media.zlm.ZLMHttpHookListener: 155 [ZLM HOOK] 流注销, 123456->rtsp->live/123
2024-11-19 11:00:10.431 [http-nio-18080-exec-9]  INFO --- c.genersoft.iot.vmp.media.zlm.ZLMHttpHookListener: 293 [ZLM HOOK] 录像完成:时长: 34.86600112915039, 123456->/home/lighthouse/ZLMediaKit/release/linux/Debug/www/record/live/123/2024-11-19/10-59-36-0.mp4
2024-11-19 11:00:10.434 [wvp-1]  INFO --- c.g.i.v.media.service.impl.MediaServerServiceImpl: 105 流变化:注销, app->live, stream->123
2024-11-19 11:00:10.442 [wvp-1]  INFO --- c.g.i.v.s.service.impl.StreamPushServiceImpl: 226 [删除推流] app: live, stream: 123,
2024-11-19 11:00:10.445 [wvp-1]  INFO --- c.g.i.v.s.service.impl.StreamPushServiceImpl: 266 [主动停止推流] id: 1, app: live, stream: 123,
2024-11-19 11:00:10.456 [wvp-2]  INFO --- c.g.iot.vmp.service.impl.CloudRecordServiceImpl: 118 [添加录像记录] live/123, callId: 12345678, 内容:RecordInfo{文件名称='10-59-36-0.mp4', 文件路径='/home/lighthouse/ZLMediaKit/release/linux/Debug/www/record/live/123/2024-11-19/10-59-36-0.mp4', 文件大小=3334516, 开始时间=1731985176, 时长=34.86600112915039, params=null}
2024-11-19 11:00:10.461 [wvp-1]  INFO --- c.g.iot.vmp.media.zlm.ZLMMediaNodeServerService: 140 停止发流结果: can not find the stream, 参数:{"app":"live","vhost":"__defaultVhost__","stream":"123"}
2024-11-19 11:05:14.547 [http-nio-18080-exec-8]  INFO --- c.genersoft.iot.vmp.media.zlm.ZLMHttpHookListener: 100 [ZLM HOOK]推流鉴权:123456->OnPublishHookParam{id='295-28', app='live', stream='123', ip='36.22.240.43', params='callId=12345678&sign=285da00062e0741dcfb8e4e8ae17e4e0', port=39504, schema='rtmp', vhost='__defaultVhost__'}
2024-11-19 11:05:14.551 [http-nio-18080-exec-8]  INFO --- c.genersoft.iot.vmp.media.zlm.ZLMHttpHookListener: 112 [ZLM HOOK]推流鉴权 响应:123456->OnPublishHookParam{id='295-28', app='live', stream='123', ip='36.22.240.43', params='callId=12345678&sign=285da00062e0741dcfb8e4e8ae17e4e0', port=39504, schema='rtmp', vhost='__defaultVhost__'}->>>>HookResultForOnPublish{enable_audio=true, enable_mp4=true, mp4_max_second=0, mp4_save_path='null', stream_replace='null', modify_stamp='null'}
2024-11-19 11:05:14.677 [http-nio-18080-exec-9]  INFO --- c.genersoft.iot.vmp.media.zlm.ZLMHttpHookListener: 139 [ZLM HOOK] 流注册, 123456->rtsp->live/123
2024-11-19 11:05:14.678 [wvp-2]  INFO --- c.g.i.v.media.service.impl.MediaServerServiceImpl: 91 流变化:注册 app->live, stream->123
2024-11-19 11:05:14.682 [wvp-2]  INFO --- c.g.i.v.s.service.impl.StreamPushServiceImpl: 201 [添加推流] app: live, stream: 123, 国标编号: null
2024-11-19 11:05:14.685 [wvp-2]  INFO --- c.g.iot.vmp.storager.impl.RedisCatchStorageImpl: 121 [redis 流变化事件] 发送 WVP_MSG_STREAM_CHANGE_PUSH: {"serverId":"000000","app":"live","stream":"123","register":true,"mediaServerId":"123456"}
2024-11-19 11:05:35.189 [http-nio-18080-exec-6]  INFO --- c.genersoft.iot.vmp.media.zlm.ZLMHttpHookListener: 171 [ZLM HOOK]流无人观看:123456->hls->live/123



@wangyong5123 wangyong5123 changed the title wvp_pro推流鉴权失败: sign 无权限: callId=12345678. sign=3e80d1762a324d5b0ff636e0bd16f1e3 [ZLM HOOK]流无人观看:123456->hls->live/123 Nov 19, 2024
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

1 participant