Git Product home page Git Product logo

Comments (7)

akanchi avatar akanchi commented on June 17, 2024

这个也不能改进推流延迟呀,建议直接用原作者的java版本(yasea也是用的这个)https://github.com/faucamp/SimpleRtmp

from csimplertmp.

xieyilong avatar xieyilong commented on June 17, 2024

我在yasea 上面 有人说使用 libsimplermtp 改进 ,延迟 可以降低到几百ms,我已经移植到 android jni 但是 握手 失败,无法连接

from csimplertmp.

akanchi avatar akanchi commented on June 17, 2024

那应该不是说我这个项目了,本项目只是用于学习rtmp协议的相关流程。延迟有很多因素的,比如编码的参数等。rtmp实际应用中延迟几百ms基本无法达到

from csimplertmp.

xieyilong avatar xieyilong commented on June 17, 2024

是你这,yasea 目前用的是 java版本,你这个是c版本,socket ,他们说用 c版本的socket 推流发送视频帧数据快很多,现在就是不知道为何 握手失败,我已经通过 jni 调到了你的 bool RtmpClient::connect(const std::string &url) 方法,执行到这里就失败了 if (!(ret = handshake())) {
// 握手失败
return ret;
}

from csimplertmp.

akanchi avatar akanchi commented on June 17, 2024

可以单步进去或者加点日志看看。
还有c版本和推流快不快没关系呀。。。

from csimplertmp.

xieyilong avatar xieyilong commented on June 17, 2024

FrankLove commented on 8 Sep
@begeekmyfriend 好的,现在已经可以了。博主,给你提个建议,数据发送这块不建议用java的原生socket,改成jni调用C语言的tcp效率会大幅提高

from csimplertmp.

akanchi avatar akanchi commented on June 17, 2024

我这个项目主要是为了学习rtmp,还有问题没解决呢。。
实际项目建议使用这个库哦,https://github.com/ossrs/srs-librtmp

from csimplertmp.

Related Issues (1)

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.