[perf] boosting video decoding performance by 1.3~2x with opencv as decoding backend#13565
Closed
WingEdge777 wants to merge 7 commits intosgl-project:mainfrom
Closed
[perf] boosting video decoding performance by 1.3~2x with opencv as decoding backend#13565WingEdge777 wants to merge 7 commits intosgl-project:mainfrom
WingEdge777 wants to merge 7 commits intosgl-project:mainfrom
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Contributor
Author
|
@yhyang201 @JustinTong0323 @mickqian @hnyls2002, could you please take a look at this, thanks. |
Collaborator
We are currently reviewing it and setting up the video bench methodology. We will validate this PR and merge it as soon as possible! |
Collaborator
|
Great work, and thank you for your contribution! We will trigger the CI and proceed with the merge. |
Contributor
Author
|
Thank you too! For taking your time reviewing |
c3292f3 to
26a66b6
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
We conducted some video decoding benchmark tests, and the results indicate that there always exists a large performance gap between
decord2andOpenCVin the sparse/random video frame sampling scenario.OpenCVcould be nearly 2x faster thandecord2in some cases.Modifications
Thus, we should or could at least use
OpenCVas one optional backend for video decoding. Use an env as a switcher for now.benchmark
test_data: here
benchmark code
benchmark result
Cases: different sampling fps to full frames extraction;
Time unit: s
result table
Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz + T4
AMD EPYC 7W83 64-Core Processor + A10
AMD EPYC 9K84 96-Core Processor + L20
AMD EPYC 9K84 96-Core Processor + H20
Checklist