Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
M115: Update VideoTrackAdapter frame rate reduction logic
VideoTrackAdapter drops frames in order to make sure that the output frame rate is close to the target frame rate despite an arbitrary input frame rate. However, too many frames were dropped occasionally. After digging into this I've found that the logic was very sensitive to jitter in the input. If the input timestamps are 10 fps with the following pattern: 0, 10 ms, 200 ms, 210 ms, 400 ms, 410 ms, 600 ms, 610 ms,... and the max fps is set to 5 fps, VideoTrackAdapter produced something like this: 0, 400 ms, 1000 ms, 1800 ms, 2610 ms, 3800 ms, 4800 ms, 5800 ms,... which is roughly 1 fps. With the current CL, the output is as expected: 0, 200 ms, 400 ms, 600 ms, 800 ms, etc. (cherry picked from commit affcc0f) Bug: chromium:1448046 Change-Id: I71289a7a3986299c447e3d505cf07b52641e4aff Low-Coverage-Reason: Removing unused field. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4555847 Reviewed-by: Guido Urdaneta <guidou@chromium.org> Commit-Queue: Johannes Kron <kron@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Reviewed-by: Henrik Boström <hbos@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1150071} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4575214 Cr-Commit-Position: refs/branch-heads/5790@{#252} Cr-Branched-From: 1d71a33-refs/heads/main@{#1148114}
- Loading branch information
Johannes Kron
authored and
Chromium LUCI CQ
committed
Jun 2, 2023
1 parent
f3b8bcb
commit 14c81e9
Showing
7 changed files
with
144 additions
and
93 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
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
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
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