forked from deepmedia/Transcoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doing the downsampling on many small buffers prevent an optimal appro…
…ximation and causes a lot of noise. This commit fixes it by processing fewer bigger buffers: - The decoder buffers are accumulated into one big buffer (mToProcessBuffer) until it is full or the end of the stream has been reached and then it is processed. - The encoder output buffer has been made bigger (1mb) to accomodate the larger input buffers. The concept of "output buffer overflow" has been removed because they output buffer should now always be big enough. - mLastEncoderUs is now stored in the mPresentationtime to prevent the first buffer from each data source to be dropped
- Loading branch information
Christian Bernier
committed
May 13, 2020
1 parent
0b8ebbb
commit 86986f9
Showing
4 changed files
with
63 additions
and
55 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