Adaptive keyframe selection
Detects the level of difference between the current frame and the previous frame, and if the difference is above a preset threshold, encodes the current frame as a keyframe. Introduces a new CLI option, --max-keyint (-i), to set the maximum interval between two keyframes. Reuses the existing --keyint (-I) option as the minimum interval between two keyframes. Sets the default minimum to be 12 frames. To disable scenechange detection, set the max and min to be equal via the CLI.
Showing
- src/api.rs 262 additions, 124 deletionssrc/api.rs
- src/bin/common.rs 16 additions, 8 deletionssrc/bin/common.rs
- src/encoder.rs 59 additions, 0 deletionssrc/encoder.rs
- src/lib.rs 1 addition, 0 deletionssrc/lib.rs
- src/scenechange/mod.rs 65 additions, 0 deletionssrc/scenechange/mod.rs
- src/test_encode_decode.rs 38 additions, 9 deletionssrc/test_encode_decode.rs
Loading
Please register or sign in to comment