Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve heuristic for variable frame rate detection (#1242)
Description: Previous heuristic would fail for videos with a fractional fps, such as 29.97(30000/1001). It would classify such videos as vfr even if they might be cfr. This change will compare the frame rate reported by the container to an estimate based off on the first video frame. While this check is not exhaustive, but in my testing it was accurate. Why we need this PR? Refactoring to improve what Improves vfr detection heuristic. What happened in this PR? Explain solution of the problem, new feature added. Compare the frame rate reported by the container to an estimate based off on the first video frame What was changed, added, removed? Replaced old check with new check for vfr. Was this PR tested? How? Tested with constant frame rate video with 29.97 fps Were docs and examples updated, if necessary? No Signed-off-by: Abhishek Sansanwal <asansanwal@nvidia.com>
- Loading branch information
1 parent
edfca46
commit 801c888
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
c5b3b50608fbe293a5cca49b72763e3ec8f80801 | ||
1b224243c057d413cf3e1c75694d4d1acf73d0dc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters