Skip to content

Commit

Permalink
fix print in fec lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Jan 1, 2022
1 parent 871a130 commit 236ef5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ void benchmark_fec_encode(const Options& options,bool printBlockTime=false){
packetizedBenchmark.end();
std::cout<<"Encoding a block of size:"<<StringHelper::memorySizeReadable(blockSizeBytes)<<
" took "<<(blockEncodingTimeUsTotal/blockEncodingTimeCount)/1000.0f<<" ms on average"<<"\n";
printDetail();
}


Expand Down Expand Up @@ -225,3 +226,8 @@ int main(int argc, char *const *argv) {
return 0;
}

// Quick math:
// With a 20Mbit/s @ 60 fps one frame is on average 20*1024*1024 / 8 / 60 = 43690 bytes.
// With a max usable MTU of 1446 Bytes this means one block ideally consists of up to 443690/1446=306 packets
// if you analyze the dji link (Bitrate and resolution unknown though) you get:
// For an IDR frame: 72674 bytes, for a non-idr frame: 34648, 43647

0 comments on commit 236ef5d

Please sign in to comment.