Skip to content

Commit

Permalink
Update MiniRTMP.java
Browse files Browse the repository at this point in the history
While the MovieFragment interface can keep up with high quality streams, the MiniRTMP had too low of numbers to ingest them.

25 frames per second and 1500kbits stream with an keyframe every 2 seconds would need about 10kbytes. So the next good number would be 16384. Also the needs to be big enough to keep the new bigger Buffersize. At last i also increased chunkStreamCount and assemblyBufferCount because stream m kept on running into errors.
  • Loading branch information
mbattista committed Mar 11, 2020
1 parent 9f339c6 commit 2df91b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/czentral/minirtmp/MiniRTMP.java
Expand Up @@ -80,11 +80,11 @@ public void run() {
}

ResourceLimit limit = new ResourceLimit();
limit.chunkStreamCount = 8;
limit.assemblyBufferCount = 2;
limit.assemblyBufferSize = 4096;
limit.chunkStreamCount = 32;
limit.assemblyBufferCount = 8;
limit.assemblyBufferSize = 16384;

Feeder feeder = new Feeder(new Buffer(65536), is);
Feeder feeder = new Feeder(new Buffer(262144), is);

HandshakeProcessor handshake = new HandshakeProcessor(os);
feeder.feedTo(handshake);
Expand Down

0 comments on commit 2df91b8

Please sign in to comment.