Coder Social home page Coder Social logo

Comments (8)

xia-chu avatar xia-chu commented on June 20, 2024

听你的意思是 startSendRtp级联出现问题了,排查手段可以这样:

  • 1、观察上级zlm的日志 看看是否有丢包日志。
  • 2、使用ffplay、vlc播放上级zlm rtsp/rtmp/fmp4等协议,看看是否正常。

from zlmediakit.

xia-chu avatar xia-chu commented on June 20, 2024

有可能是startSendRtp是udp模式 丢包了。不过听你的意思H264级联却没问题,猜测也可能是H265 ps打包有问题

from zlmediakit.

pinkcao avatar pinkcao commented on June 20, 2024

有可能是startSendRtp是udp模式 丢包了。不过听你的意思H264级联却没问题,猜测也可能是H265 ps打包有问题

  1. 观察上级zlm日志,发现无丢包日志
  2. 使用vlc播放上级zlm rtsp, fmp4, hls可以正常播放,rtmp, flv无法正常播放
    image

如果是H265 ps打包有问题,我应该做什么修改?

from zlmediakit.

xia-chu avatar xia-chu commented on June 20, 2024

rtmp本来就不支持265 vlc无法识别是正常的

from zlmediakit.

xia-chu avatar xia-chu commented on June 20, 2024

那我怀疑 有没有可能是rtsp播放时 选择的udp模式 丢包了?

from zlmediakit.

pinkcao avatar pinkcao commented on June 20, 2024

我们这里排查下来与网络问题应该是没有关系,从日志以及抓包看均无丢包现象,我们怀疑可能是解码器写死了payload type的解析,没有根据服务器给的rtpmap去做正确的解码,在下级流媒体正常解码的rtsp交互中,服务器给出的payload type为98,在上级流媒体异常解码的rtsp交互中,服务器给出的payload type为96,为了做测试,我有没有什么办法能够让上级流媒体在回复DESCRIBE时携带rtpmap:98 H265/90000 ?

from zlmediakit.

xia-chu avatar xia-chu commented on June 20, 2024

打个补丁即可:

Index: src/Rtsp/RtspMuxer.cpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Rtsp/RtspMuxer.cpp b/src/Rtsp/RtspMuxer.cpp
--- a/src/Rtsp/RtspMuxer.cpp	(revision 5a137f8b8ed3aafce7f05dd0b0291554738a14ae)
+++ b/src/Rtsp/RtspMuxer.cpp	(date 1710836327713)
@@ -67,7 +67,7 @@
     CHECK(!encoder);
 
     // payload type 96以后则为动态pt
-    Sdp::Ptr sdp = track->getSdp(96 + _index);
+    Sdp::Ptr sdp = track->getSdp(98 + _index);
     if (!sdp) {
         WarnL << "Unsupported codec: " << track->getCodecName();
         return false;

from zlmediakit.

pinkcao avatar pinkcao commented on June 20, 2024

异常h265 2024-04-01.zip

from zlmediakit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.