GithubHelp home page GithubHelp logo

請教一下 about jtt1078-video-server HOT 3 OPEN

glaciall avatar glaciall commented on June 12, 2024
請教一下

from jtt1078-video-server.

Comments (3)

glaciall avatar glaciall commented on June 12, 2024

不是,推送到rtmp server的实现是我偷了个懒,借用ffmpeg就可以很方便简单的实现rtmp推流而已。
如果想直接串流推送到rtmp服务器,可以看一下https://github.com/faucamp/SimpleRtmp这个项目。

from jtt1078-video-server.

humanjeff avatar humanjeff commented on June 12, 2024

我有發現seq+1的地方好像早了,應該要在publishVideo以後
long timestamp = packet.seek(16).nextLong();
PublishManager.getInstance().publishVideo(tag, sequence, timestamp, pt, data);
// 碰到结束标记时,序号+1
if (pkType == 0 || pkType == 2) {
sequence += 1;
SessionManager.set(nettyChannel, "video-sequence", sequence);
}
這樣在裡面抓Seq變化才可以抓到完整的一禎

from jtt1078-video-server.

glaciall avatar glaciall commented on June 12, 2024

我的那一帧h.264的nalu不是通过消息头来分的,是通过内容的00 00 00 01的标志头进行分的,具体你刚说的那个ffmpeg api怎么用,你得看手册,我没有用过。

from jtt1078-video-server.

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.