Open
Description
VideoEncoder can increase coding efficiency by referencing future frames when coding a frame (eg. B-frames). However, this also increases latency since the future frames need to be decoded before the bidirectionally encoded frames. This is not desirable in all use cases such as video conferencing.
How about adding maxPredictionFrames
-
dictionary VideoEncoderEncodeOptions {
..
unsigned long maxPredictionFrames;
};
which gives the maximum number of future frames to use for prediction. Setting maxPredictionFrames to 0 would disable B-frames altogether.
Related to #55 .