2013-07-09 08:02:33 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
2013-07-10 15:02:02 +00:00
|
|
|
#include "testing/gtest/include/gtest/gtest.h"
|
2015-09-17 05:30:24 -07:00
|
|
|
#include "webrtc/video/video_quality_test.h"
|
2013-07-09 08:02:33 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2014-07-09 11:29:06 +00:00
|
|
|
static const int kFullStackTestDurationSecs = 60;
|
2013-12-03 10:13:04 +00:00
|
|
|
|
2015-09-17 05:30:24 -07:00
|
|
|
class FullStackTest : public VideoQualityTest {
|
2013-07-09 08:02:33 +00:00
|
|
|
public:
|
2015-09-17 05:30:24 -07:00
|
|
|
void RunTest(const VideoQualityTest::Params ¶ms) {
|
|
|
|
|
RunWithAnalyzer(params);
|
2013-10-16 11:05:37 +00:00
|
|
|
}
|
2016-02-12 13:16:43 -08:00
|
|
|
|
|
|
|
|
void ForemanCifWithoutPacketLoss(const std::string& video_codec) {
|
|
|
|
|
// TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif.
|
|
|
|
|
VideoQualityTest::Params foreman_cif = {
|
|
|
|
|
{352, 288, 30, 700000, 700000, 700000, video_codec, 1},
|
|
|
|
|
{"foreman_cif"},
|
|
|
|
|
{},
|
|
|
|
|
{"foreman_cif_net_delay_0_0_plr_0_" + video_codec, 0.0, 0.0,
|
|
|
|
|
kFullStackTestDurationSecs}};
|
|
|
|
|
RunTest(foreman_cif);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ForemanCifPlr5(const std::string& video_codec) {
|
|
|
|
|
VideoQualityTest::Params foreman_cif = {
|
|
|
|
|
{352, 288, 30, 30000, 500000, 2000000, video_codec, 1},
|
|
|
|
|
{"foreman_cif"},
|
|
|
|
|
{},
|
|
|
|
|
{"foreman_cif_delay_50_0_plr_5_" + video_codec, 0.0, 0.0,
|
|
|
|
|
kFullStackTestDurationSecs}};
|
|
|
|
|
foreman_cif.pipe.loss_percent = 5;
|
|
|
|
|
foreman_cif.pipe.queue_delay_ms = 50;
|
|
|
|
|
RunTest(foreman_cif);
|
|
|
|
|
}
|
2013-07-09 08:02:33 +00:00
|
|
|
};
|
|
|
|
|
|
2015-11-02 07:23:20 -08:00
|
|
|
// VideoQualityTest::Params params = {
|
|
|
|
|
// { ... }, // Common.
|
|
|
|
|
// { ... }, // Video-specific settings.
|
|
|
|
|
// { ... }, // Screenshare-specific settings.
|
|
|
|
|
// { ... }, // Analyzer settings.
|
|
|
|
|
// pipe, // FakeNetworkPipe::Config
|
|
|
|
|
// { ... }, // Spatial scalability.
|
|
|
|
|
// logs // bool
|
|
|
|
|
// };
|
2013-07-09 08:02:33 +00:00
|
|
|
|
2016-02-12 13:16:43 -08:00
|
|
|
TEST_F(FullStackTest, ForemanCifWithoutPacketLossVp9) {
|
|
|
|
|
ForemanCifWithoutPacketLoss("VP9");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_F(FullStackTest, ForemanCifPlr5Vp9) {
|
|
|
|
|
ForemanCifPlr5("VP9");
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-27 08:47:52 +00:00
|
|
|
TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) {
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params paris_qcif = {
|
|
|
|
|
{176, 144, 30, 300000, 300000, 300000, "VP8", 1},
|
|
|
|
|
{"paris_qcif"},
|
|
|
|
|
{},
|
|
|
|
|
{"net_delay_0_0_plr_0", 36.0, 0.96, kFullStackTestDurationSecs}};
|
2014-07-09 11:29:06 +00:00
|
|
|
RunTest(paris_qcif);
|
2013-07-09 08:02:33 +00:00
|
|
|
}
|
|
|
|
|
|
2014-06-27 08:47:52 +00:00
|
|
|
TEST_F(FullStackTest, ForemanCifWithoutPacketLoss) {
|
2014-07-09 11:29:06 +00:00
|
|
|
// TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif.
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params foreman_cif = {
|
|
|
|
|
{352, 288, 30, 700000, 700000, 700000, "VP8", 1},
|
|
|
|
|
{"foreman_cif"},
|
|
|
|
|
{},
|
|
|
|
|
{"foreman_cif_net_delay_0_0_plr_0", 0.0, 0.0, kFullStackTestDurationSecs}
|
|
|
|
|
};
|
2014-07-09 11:29:06 +00:00
|
|
|
RunTest(foreman_cif);
|
2014-10-14 10:38:49 +00:00
|
|
|
}
|
|
|
|
|
|
2015-02-23 08:34:17 +00:00
|
|
|
TEST_F(FullStackTest, ForemanCifPlr5) {
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params foreman_cif = {
|
|
|
|
|
{352, 288, 30, 30000, 500000, 2000000, "VP8", 1},
|
|
|
|
|
{"foreman_cif"},
|
|
|
|
|
{},
|
|
|
|
|
{"foreman_cif_delay_50_0_plr_5", 0.0, 0.0, kFullStackTestDurationSecs}};
|
|
|
|
|
foreman_cif.pipe.loss_percent = 5;
|
|
|
|
|
foreman_cif.pipe.queue_delay_ms = 50;
|
2014-10-14 10:38:49 +00:00
|
|
|
RunTest(foreman_cif);
|
2014-07-09 11:29:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_F(FullStackTest, ForemanCif500kbps) {
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params foreman_cif = {
|
|
|
|
|
{352, 288, 30, 30000, 500000, 2000000, "VP8", 1},
|
|
|
|
|
{"foreman_cif"},
|
|
|
|
|
{},
|
|
|
|
|
{"foreman_cif_500kbps", 0.0, 0.0, kFullStackTestDurationSecs}};
|
|
|
|
|
foreman_cif.pipe.queue_length_packets = 0;
|
|
|
|
|
foreman_cif.pipe.queue_delay_ms = 0;
|
|
|
|
|
foreman_cif.pipe.link_capacity_kbps = 500;
|
2014-07-09 11:29:06 +00:00
|
|
|
RunTest(foreman_cif);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_F(FullStackTest, ForemanCif500kbpsLimitedQueue) {
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params foreman_cif = {
|
|
|
|
|
{352, 288, 30, 30000, 500000, 2000000, "VP8", 1},
|
|
|
|
|
{"foreman_cif"},
|
|
|
|
|
{},
|
|
|
|
|
{"foreman_cif_500kbps_32pkts_queue", 0.0, 0.0, kFullStackTestDurationSecs}
|
|
|
|
|
};
|
|
|
|
|
foreman_cif.pipe.queue_length_packets = 32;
|
|
|
|
|
foreman_cif.pipe.queue_delay_ms = 0;
|
|
|
|
|
foreman_cif.pipe.link_capacity_kbps = 500;
|
2014-07-09 11:29:06 +00:00
|
|
|
RunTest(foreman_cif);
|
2014-06-27 08:47:52 +00:00
|
|
|
}
|
2013-07-09 08:02:33 +00:00
|
|
|
|
2014-07-09 11:29:06 +00:00
|
|
|
TEST_F(FullStackTest, ForemanCif500kbps100ms) {
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params foreman_cif = {
|
|
|
|
|
{352, 288, 30, 30000, 500000, 2000000, "VP8", 1},
|
|
|
|
|
{"foreman_cif"},
|
|
|
|
|
{},
|
|
|
|
|
{"foreman_cif_500kbps_100ms", 0.0, 0.0, kFullStackTestDurationSecs}};
|
|
|
|
|
foreman_cif.pipe.queue_length_packets = 0;
|
|
|
|
|
foreman_cif.pipe.queue_delay_ms = 100;
|
|
|
|
|
foreman_cif.pipe.link_capacity_kbps = 500;
|
2014-07-09 11:29:06 +00:00
|
|
|
RunTest(foreman_cif);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueue) {
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params foreman_cif = {
|
|
|
|
|
{352, 288, 30, 30000, 500000, 2000000, "VP8", 1},
|
|
|
|
|
{"foreman_cif"},
|
|
|
|
|
{},
|
|
|
|
|
{"foreman_cif_500kbps_100ms_32pkts_queue", 0.0, 0.0,
|
|
|
|
|
kFullStackTestDurationSecs}};
|
|
|
|
|
foreman_cif.pipe.queue_length_packets = 32;
|
|
|
|
|
foreman_cif.pipe.queue_delay_ms = 100;
|
|
|
|
|
foreman_cif.pipe.link_capacity_kbps = 500;
|
2014-07-09 11:29:06 +00:00
|
|
|
RunTest(foreman_cif);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_F(FullStackTest, ForemanCif1000kbps100msLimitedQueue) {
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params foreman_cif = {
|
2015-09-22 01:09:11 -07:00
|
|
|
{352, 288, 30, 30000, 2000000, 2000000, "VP8", 1},
|
2015-09-17 05:30:24 -07:00
|
|
|
{"foreman_cif"},
|
|
|
|
|
{},
|
|
|
|
|
{"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0,
|
|
|
|
|
kFullStackTestDurationSecs}};
|
|
|
|
|
foreman_cif.pipe.queue_length_packets = 32;
|
|
|
|
|
foreman_cif.pipe.queue_delay_ms = 100;
|
|
|
|
|
foreman_cif.pipe.link_capacity_kbps = 1000;
|
2014-07-09 11:29:06 +00:00
|
|
|
RunTest(foreman_cif);
|
|
|
|
|
}
|
2015-02-18 12:46:06 +00:00
|
|
|
|
2015-10-06 02:04:06 -07:00
|
|
|
TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL) {
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params screenshare = {
|
2015-11-02 07:23:20 -08:00
|
|
|
{1850, 1110, 5, 50000, 200000, 2000000, "VP8", 2, 1, 400000},
|
|
|
|
|
{},
|
|
|
|
|
{true, 10},
|
2015-09-17 05:30:24 -07:00
|
|
|
{"screenshare_slides", 0.0, 0.0, kFullStackTestDurationSecs}};
|
|
|
|
|
RunTest(screenshare);
|
2015-09-03 15:58:05 +02:00
|
|
|
}
|
|
|
|
|
|
2015-10-06 02:04:06 -07:00
|
|
|
TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) {
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params config = {
|
2015-11-02 07:23:20 -08:00
|
|
|
{1850, 1110 / 2, 5, 50000, 200000, 2000000, "VP8", 2, 1, 400000},
|
2015-09-17 05:30:24 -07:00
|
|
|
{},
|
|
|
|
|
{true, 10, 2},
|
|
|
|
|
{"screenshare_slides_scrolling", 0.0, 0.0, kFullStackTestDurationSecs}};
|
|
|
|
|
RunTest(config);
|
2015-07-30 02:15:56 -07:00
|
|
|
}
|
|
|
|
|
|
2015-11-23 06:10:23 -08:00
|
|
|
TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_LossyNet) {
|
|
|
|
|
VideoQualityTest::Params screenshare = {
|
|
|
|
|
{1850, 1110, 5, 50000, 200000, 2000000, "VP8", 2, 1, 400000},
|
|
|
|
|
{}, // Video-specific.
|
|
|
|
|
{true, 10}, // Screenshare-specific.
|
|
|
|
|
{"screenshare_slides_lossy_net", 0.0, 0.0, kFullStackTestDurationSecs}};
|
|
|
|
|
screenshare.pipe.loss_percent = 5;
|
|
|
|
|
screenshare.pipe.queue_delay_ms = 200;
|
|
|
|
|
screenshare.pipe.link_capacity_kbps = 500;
|
|
|
|
|
RunTest(screenshare);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_VeryLossyNet) {
|
|
|
|
|
VideoQualityTest::Params screenshare = {
|
|
|
|
|
{1850, 1110, 5, 50000, 200000, 2000000, "VP8", 2, 1, 400000},
|
|
|
|
|
{}, // Video-specific.
|
|
|
|
|
{true, 10}, // Screenshare-specific.
|
|
|
|
|
{"screenshare_slides_very_lossy", 0.0, 0.0, kFullStackTestDurationSecs}};
|
|
|
|
|
screenshare.pipe.loss_percent = 10;
|
|
|
|
|
screenshare.pipe.queue_delay_ms = 200;
|
|
|
|
|
screenshare.pipe.link_capacity_kbps = 500;
|
|
|
|
|
RunTest(screenshare);
|
|
|
|
|
}
|
|
|
|
|
|
Reland of Work on flexible mode and screen sharing. (patchset #1 id:1 of https://codereview.webrtc.org/1438543002/ )
Reason for revert:
Failed test not related to this CL (test fails on
master at an earlier date), re-landing original CL..
(This time from my @webrtc account.)
Original issue's description:
> Revert of Work on flexible mode and screen sharing. (patchset #28 id:520001 of https://codereview.webrtc.org/1328113004/ )
>
> Reason for revert:
> Seems to break VideoSendStreamTest.ReconfigureBitratesSetsEncoderBitratesCorrectly on Linux Memcheck buildbot.
>
> Original issue's description:
> > Work on flexible mode and screen sharing.
> >
> > Implement VP8 style screensharing but with spatial layers.
> > Implement flexible mode.
> >
> > Files from other patches:
> > generic_encoder.cc
> > layer_filtering_transport.cc
> >
> > BUG=webrtc:4914
> >
> > Committed: https://crrev.com/77ccfb4d16c148e61a316746bb5d9705e8b39f4a
> > Cr-Commit-Position: refs/heads/master@{#10572}
>
> TBR=sprang@webrtc.org,stefan@webrtc.org,philipel@google.com,asapersson@webrtc.org,mflodman@webrtc.org,philipel@webrtc.org
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:4914
>
> Committed: https://crrev.com/0be8f1d347bdb171462df89c2a4c69b3f3eb7519
> Cr-Commit-Position: refs/heads/master@{#10578}
TBR=sprang@webrtc.org,stefan@webrtc.org,philipel@google.com,asapersson@webrtc.org,mflodman@webrtc.org,terelius@webrtc.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:4914
Review URL: https://codereview.webrtc.org/1431283002
Cr-Commit-Position: refs/heads/master@{#10581}
2015-11-10 07:17:23 -08:00
|
|
|
TEST_F(FullStackTest, ScreenshareSlidesVP9_2SL) {
|
2015-09-17 05:30:24 -07:00
|
|
|
VideoQualityTest::Params screenshare = {
|
Reland of Work on flexible mode and screen sharing. (patchset #1 id:1 of https://codereview.webrtc.org/1438543002/ )
Reason for revert:
Failed test not related to this CL (test fails on
master at an earlier date), re-landing original CL..
(This time from my @webrtc account.)
Original issue's description:
> Revert of Work on flexible mode and screen sharing. (patchset #28 id:520001 of https://codereview.webrtc.org/1328113004/ )
>
> Reason for revert:
> Seems to break VideoSendStreamTest.ReconfigureBitratesSetsEncoderBitratesCorrectly on Linux Memcheck buildbot.
>
> Original issue's description:
> > Work on flexible mode and screen sharing.
> >
> > Implement VP8 style screensharing but with spatial layers.
> > Implement flexible mode.
> >
> > Files from other patches:
> > generic_encoder.cc
> > layer_filtering_transport.cc
> >
> > BUG=webrtc:4914
> >
> > Committed: https://crrev.com/77ccfb4d16c148e61a316746bb5d9705e8b39f4a
> > Cr-Commit-Position: refs/heads/master@{#10572}
>
> TBR=sprang@webrtc.org,stefan@webrtc.org,philipel@google.com,asapersson@webrtc.org,mflodman@webrtc.org,philipel@webrtc.org
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:4914
>
> Committed: https://crrev.com/0be8f1d347bdb171462df89c2a4c69b3f3eb7519
> Cr-Commit-Position: refs/heads/master@{#10578}
TBR=sprang@webrtc.org,stefan@webrtc.org,philipel@google.com,asapersson@webrtc.org,mflodman@webrtc.org,terelius@webrtc.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:4914
Review URL: https://codereview.webrtc.org/1431283002
Cr-Commit-Position: refs/heads/master@{#10581}
2015-11-10 07:17:23 -08:00
|
|
|
{1850, 1110, 5, 50000, 200000, 2000000, "VP9", 1, 0, 400000},
|
2015-09-17 05:30:24 -07:00
|
|
|
{},
|
|
|
|
|
{true, 10},
|
2015-11-13 02:08:04 -08:00
|
|
|
{"screenshare_slides_vp9_2sl", 0.0, 0.0, kFullStackTestDurationSecs},
|
Reland of Work on flexible mode and screen sharing. (patchset #1 id:1 of https://codereview.webrtc.org/1438543002/ )
Reason for revert:
Failed test not related to this CL (test fails on
master at an earlier date), re-landing original CL..
(This time from my @webrtc account.)
Original issue's description:
> Revert of Work on flexible mode and screen sharing. (patchset #28 id:520001 of https://codereview.webrtc.org/1328113004/ )
>
> Reason for revert:
> Seems to break VideoSendStreamTest.ReconfigureBitratesSetsEncoderBitratesCorrectly on Linux Memcheck buildbot.
>
> Original issue's description:
> > Work on flexible mode and screen sharing.
> >
> > Implement VP8 style screensharing but with spatial layers.
> > Implement flexible mode.
> >
> > Files from other patches:
> > generic_encoder.cc
> > layer_filtering_transport.cc
> >
> > BUG=webrtc:4914
> >
> > Committed: https://crrev.com/77ccfb4d16c148e61a316746bb5d9705e8b39f4a
> > Cr-Commit-Position: refs/heads/master@{#10572}
>
> TBR=sprang@webrtc.org,stefan@webrtc.org,philipel@google.com,asapersson@webrtc.org,mflodman@webrtc.org,philipel@webrtc.org
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:4914
>
> Committed: https://crrev.com/0be8f1d347bdb171462df89c2a4c69b3f3eb7519
> Cr-Commit-Position: refs/heads/master@{#10578}
TBR=sprang@webrtc.org,stefan@webrtc.org,philipel@google.com,asapersson@webrtc.org,mflodman@webrtc.org,terelius@webrtc.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:4914
Review URL: https://codereview.webrtc.org/1431283002
Cr-Commit-Position: refs/heads/master@{#10581}
2015-11-10 07:17:23 -08:00
|
|
|
{},
|
|
|
|
|
false,
|
|
|
|
|
{std::vector<VideoStream>(), 0, 2, 1}};
|
2015-09-17 05:30:24 -07:00
|
|
|
RunTest(screenshare);
|
2015-02-18 12:46:06 +00:00
|
|
|
}
|
2013-07-09 08:02:33 +00:00
|
|
|
} // namespace webrtc
|