mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Test: Use the fatest preset for HEVC blackbox test.
This commit is contained in:
parent
81969b3dbf
commit
57d205d5a0
1 changed files with 12 additions and 4 deletions
16
trunk/3rdparty/srs-bench/blackbox/hevc_test.go
vendored
16
trunk/3rdparty/srs-bench/blackbox/hevc_test.go
vendored
|
@ -74,7 +74,9 @@ func TestRtmpPublish_RtmpPlay_HEVC_Basic(t *testing.T) {
|
||||||
streamURL := fmt.Sprintf("rtmp://localhost:%v/live/%v", svr.RTMPPort(), streamID)
|
streamURL := fmt.Sprintf("rtmp://localhost:%v/live/%v", svr.RTMPPort(), streamID)
|
||||||
ffmpeg := NewFFmpeg(func(v *ffmpegClient) {
|
ffmpeg := NewFFmpeg(func(v *ffmpegClient) {
|
||||||
v.args = []string{
|
v.args = []string{
|
||||||
"-stream_loop", "-1", "-re", "-i", *srsPublishAvatar, "-acodec", "copy", "-vcodec", "libx265", "-f", "flv", streamURL,
|
// Use the fastest preset of x265, see https://x265.readthedocs.io/en/master/presets.html
|
||||||
|
"-stream_loop", "-1", "-re", "-i", *srsPublishAvatar, "-acodec", "copy", "-vcodec", "libx265",
|
||||||
|
"-profile:v", "main", "-preset", "ultrafast", "-f", "flv", streamURL,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
@ -169,7 +171,9 @@ func TestRtmpPublish_HttpFlvPlay_HEVC_Basic(t *testing.T) {
|
||||||
streamURL := fmt.Sprintf("rtmp://localhost:%v/live/%v", svr.RTMPPort(), streamID)
|
streamURL := fmt.Sprintf("rtmp://localhost:%v/live/%v", svr.RTMPPort(), streamID)
|
||||||
ffmpeg := NewFFmpeg(func(v *ffmpegClient) {
|
ffmpeg := NewFFmpeg(func(v *ffmpegClient) {
|
||||||
v.args = []string{
|
v.args = []string{
|
||||||
"-stream_loop", "-1", "-re", "-i", *srsPublishAvatar, "-acodec", "copy", "-vcodec", "libx265", "-f", "flv", streamURL,
|
// Use the fastest preset of x265, see https://x265.readthedocs.io/en/master/presets.html
|
||||||
|
"-stream_loop", "-1", "-re", "-i", *srsPublishAvatar, "-acodec", "copy", "-vcodec", "libx265",
|
||||||
|
"-profile:v", "main", "-preset", "ultrafast", "-f", "flv", streamURL,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
@ -263,7 +267,9 @@ func TestRtmpPublish_HttpTsPlay_HEVC_Basic(t *testing.T) {
|
||||||
streamURL := fmt.Sprintf("rtmp://localhost:%v/live/%v", svr.RTMPPort(), streamID)
|
streamURL := fmt.Sprintf("rtmp://localhost:%v/live/%v", svr.RTMPPort(), streamID)
|
||||||
ffmpeg := NewFFmpeg(func(v *ffmpegClient) {
|
ffmpeg := NewFFmpeg(func(v *ffmpegClient) {
|
||||||
v.args = []string{
|
v.args = []string{
|
||||||
"-stream_loop", "-1", "-re", "-i", *srsPublishAvatar, "-acodec", "copy", "-vcodec", "libx265", "-f", "flv", streamURL,
|
// Use the fastest preset of x265, see https://x265.readthedocs.io/en/master/presets.html
|
||||||
|
"-stream_loop", "-1", "-re", "-i", *srsPublishAvatar, "-acodec", "copy", "-vcodec", "libx265",
|
||||||
|
"-profile:v", "main", "-preset", "ultrafast", "-f", "flv", streamURL,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
@ -356,7 +362,9 @@ func TestRtmpPublish_HlsPlay_HEVC_Basic(t *testing.T) {
|
||||||
streamURL := fmt.Sprintf("rtmp://localhost:%v/live/%v", svr.RTMPPort(), streamID)
|
streamURL := fmt.Sprintf("rtmp://localhost:%v/live/%v", svr.RTMPPort(), streamID)
|
||||||
ffmpeg := NewFFmpeg(func(v *ffmpegClient) {
|
ffmpeg := NewFFmpeg(func(v *ffmpegClient) {
|
||||||
v.args = []string{
|
v.args = []string{
|
||||||
"-stream_loop", "-1", "-re", "-i", *srsPublishAvatar, "-acodec", "copy", "-vcodec", "libx265", "-f", "flv", streamURL,
|
// Use the fastest preset of x265, see https://x265.readthedocs.io/en/master/presets.html
|
||||||
|
"-stream_loop", "-1", "-re", "-i", *srsPublishAvatar, "-acodec", "copy", "-vcodec", "libx265",
|
||||||
|
"-profile:v", "main", "-preset", "ultrafast", "-f", "flv", streamURL,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue