Comments (17)
'packetization-mode': 1,
'profile-level-id': '42e032',
'level-asymmetry-allowed': 1 感觉这块配置和zlm对不上
from zlmediakit.
在ZLM服务器上,抓包分析吧。ZLM的日志呢?是否有丢包的打印
from zlmediakit.
2024-06-04 14:57:09.224 W [MediaServer] [66570-event poller 3] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-04 14:57:12.591 W [MediaServer] [66570-event poller 3] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-04 14:57:15.892 W [MediaServer] [66570-event poller 3] MediaSink.cpp:169 emitAllTrackReady | Track not ready for a long time, ignored: H264
2024-06-04 14:57:33.892 I [MediaServer] [66570-event poller 0] MultiMediaSourceMuxer.cpp:561 onAllTrackReady | stream: rtp://defaultVhost/rtp/294826D8 , codec info: mpeg4-generic[8000/1/16] H264[640/360/0]
2024-06-04 14:57:38.261 W [MediaServer] [66570-event poller 2] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-04 14:57:41.625 W [MediaServer] [66570-event poller 2] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-04 14:57:44.924 W [MediaServer] [66570-event poller 2] MediaSink.cpp:169 emitAllTrackReady | Track not ready for a long time, ignored: H264
2024-06-04 14:58:08.259 W [MediaServer] [66570-event poller 1] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-04 14:58:11.623 W [MediaServer] [66570-event poller 1] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-04 14:58:14.892 W [MediaServer] [66570-event poller 1] MediaSink.cpp:169 emitAllTrackReady | Track not ready for a long time, ignored: H264
2024-06-04 14:58:38.261 W [MediaServer] [66570-event poller 7] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-04 14:58:41.625 W [MediaServer] [66570-event poller 7] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-04 14:58:44.924 W [MediaServer] [66570-event poller 7] MediaSink.cpp:169 emitAllTrackReady | Track not ready for a long time, ignored: H264
2024-06-04 14:59:08.260 W [MediaServer] [66570-event poller 5] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-04 14:59:11.622 W [MediaServer] [66570-event poller 5] MediaSink.cpp:60 operator() | Cached frame of unready track(H264) is too much, now cleared
2024-06-04 14:59:11.662 I [MediaServer] [66570-event poller 5] MultiMediaSourceMuxer.cpp:561 onAllTrackReady | stream: rtp://defaultVhost/rtp/1C4DDFA7 , codec info: mpeg4-generic[8000/1/16] H264[640/360/0]
2024-06-04_00.log
from zlmediakit.
本机的mediasoup和本地的zlm 不存在网络情况
from zlmediakit.
1,你这个是h264 一直不发sps/pps 过来导致h264 等了6.7秒才收到sps/pps/I帧
2,这个你升级下内核吧(4.x及其以上),影响ZLM的性能
from zlmediakit.
本机的mediasoup和本地的zlm 不存在网络情况
如果丢包了 zlm会打印丢包日志。
如果没丢包日志,那么可能是时间戳有问题,或者mediasoup本身丢包了 他把破损的帧重新打包成rtp了 所以seq是连续的
from zlmediakit.
抱歉 我好像把这个issue和另外一个搞混了。 你这个问题应该就是sps pps idr缺失的问题,也就是mediasoup并没有第一次发gop给zlm。 你应该设置下mediasoup的gop间隔,让他大概2秒发一个pli关键帧请求rtcp。
from zlmediakit.
请问下zlm的rtcp端口也是10000吗? 还是10001?
from zlmediakit.
请问下zlm的rtcp端口也是10000吗? 还是10001?
单端口模式不支持rtcp
from zlmediakit.
请问下zlm的rtcp端口也是10000吗? 还是10001?
这个跟zlm没关系 现在的问题是你js端推流到mediasoup gop 60秒才一个 太大了 需要mediasoup主动发pli(rtcp)给浏览器 浏览器才会生成关键帧
from zlmediakit.
看看mediasoup有没有这个配置和设计
from zlmediakit.
@xia-chu @xiongguangjie 二位大佬 ,现在我把方式换成 mediasoup(webrtc)--》rtp-----》ffmpeg(rtp->rtmp) ---》zlm(rtmp),不会再出现蓝屏现象, 但是重新观看rtmp会出现模糊情况
ffmegp脚本
ffmpeg -reorder_queue_size 0 -thread_queue_size 1024 -protocol_whitelist "file,udp,rtp,pipe,rtcp,tcp" -i v.sdp -vcodec copy -fflags +genpts -r 30 -g 0 -b:v 2M -maxrate 2M -bufsize 1M -f flv -y rtmp://127.0.0.1:1935/live/123
ffmpeg日志:
[out#0/flv @ 0x7eac680] Codec AVOption g (set the group of picture (GOP) size) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[out#0/flv @ 0x7eac680] Codec AVOption maxrate (maximum bitrate (in bits/s). Used for VBV together with bufsize.) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[out#0/flv @ 0x7eac680] Codec AVOption bufsize (set ratecontrol buffer size (in bits)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[out#0/flv @ 0x7eac680] Codec AVOption b (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Output #0, flv, to 'rtmp://127.0.0.1:1935/live/123':
Metadata:
title : ffmpeg
encoder : Lavf61.1.100
Stream #0:0: Video: h264 (Constrained Baseline) ([7][0][0][0] / 0x0007), yuv420p(progressive), 320x180, q=2-31, 2000 kb/s, 62.50 tbr, 1k tbn
Press [q] to stop, [?] for help
[flv @ 0x7d7a7c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
size= 1412KiB time=00:00:51.48 bitrate= 224.7kbits/s speed=1.02x
zlm日志(看起来没特别的日志):
2024-06-05_00.log
请问是ffmep推流脚本的Timestamps 存在问题吗?
from zlmediakit.
第二台机器打开rtmp观看 还是会出现蓝屏 60秒后正常 抓包序号看起来是正常
from zlmediakit.
from zlmediakit.
from zlmediakit.
from zlmediakit.
原因定位是h264格式问题 再转码就可以了 感谢大佬们
from zlmediakit.
Related Issues (20)
- Benchmark(测试代码如何编译) HOT 1
- [benchmark](benchmark测试编译) HOT 1
- [BUG] 编译成exe文件加入服务启动报错 HOT 2
- [BUG] 看日志设备推流进来了,但是无法播放 HOT 3
- [BUG] 通过RTMP推流失败 HOT 1
- [BUG]使用RTMP推流失败 HOT 2
- SPSParser 报错 HOT 1
- [BUG] ZLMediakit在开启webrtc进行编译时,视频流有人观看的时候也会在无人观看时间到达时自动触发on_stream_none_reader事件 HOT 3
- 通过addStreamProxy拉取远端的 rtsp时,会出现频繁的注销和注册流 HOT 1
- 通过addStreamProxy拉取远端的 rtsp时,会出现频繁的注销和注册流 HOT 2
- [BUG] \SPSParser.c报错:Unknown HEVC profile: 30 HOT 2
- 我发现请求webrtc的时候有的时候对讲不管用,看zlm日志 HOT 1
- webrtc请求成功,但是没有打印RtpSender.cpp:243 onConnect | 开始发送 rtp:192.168.1.158:55963, 是否为udp方式:0 HOT 4
- ffempg推流成功 ,播放失败 必须要有个活跃的track HOT 1
- [BUG] jessibuca-pro无法播放代理流,ZLM提示 "flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:H265 PCMU" HOT 1
- [BUG] 摄像头重启,拉流代理丢失 HOT 1
- [BUG] 针对zlm代理的rtsp流,ffmpeg截图失败 HOT 4
- [BUG] jessibuca-pro无法播放代理流,ZLM提示 "flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:H265 PCMU" HOT 1
- [BUG] 调用addStreamProxy接口时报none reserved port in pool,修改配置后热重启不生效 HOT 2
- [BUG] 拉取海康平台rtsp报错 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zlmediakit.