Replace test::FrameGenerator::ChromaGenerator with new FrameGenerator::SquareGenerator The problem with the ChromaGenerator is that the VP8 encoder produce a too low bitrate for each frame. The squaregenerator make the VP8 encoder produce about 600kbit/s at VGA.
SquareGenerator is a FrameGenerator that draws 10 randomly sized and colored squares. Between each new generated frame, the squares are moved slightly towards the lower right corner. BUG=webrtc:7192 Review-Url: https://codereview.webrtc.org/2705973002 Cr-Commit-Position: refs/heads/master@{#16870}
This commit is contained in:
@ -404,9 +404,9 @@ class TestVideoSenderWithVp8 : public TestVideoSender {
|
||||
const char* input_video = "foreman_cif";
|
||||
const int width = 352;
|
||||
const int height = 288;
|
||||
generator_.reset(FrameGenerator::CreateFromYuvFile(
|
||||
generator_ = FrameGenerator::CreateFromYuvFile(
|
||||
std::vector<std::string>(1, test::ResourcePath(input_video, "yuv")),
|
||||
width, height, 1));
|
||||
width, height, 1);
|
||||
|
||||
codec_ = MakeVp8VideoCodec(width, height, 3);
|
||||
codec_.minBitrate = 10;
|
||||
|
||||
Reference in New Issue
Block a user