Wowza Transcoder 插件同时提供硬件加速编码和非硬件加速编码两种能力,具体依赖于你的硬件配置。这篇文章提供的最新的性能基准数据来自软编码(默认)、Intel Quick Sync(Ivy Bridge)加速编码以及NVIDIA NVENC 加速编码。
这些数据仅供参考,你能得到的性能很大程度上依赖于你的网络带宽、视频源的编码、Wowza的配置以及整个操作系统的瓶颈等等。了解更多Wowza产品的细节
本文的性能测试采用的Wowza版本是Wowza Streaming Engine 4.1.2
本文所有的测试都采用了相同的机制:持续增加输入流的数量直到服务器的CPU利用率接近65%。我们建议在实际商业运营环境下,转码工作不能消耗超过50%-55%的CPU资源。这将会为转码后的输出流播放保留一定的CPU资源。
注意:
- 本文的性能测试只针对Wowza Streaming Engine™ 软件或Wowza Media Server® 软件 (版本3)以上的版本。
- 要获得你的Wowza环境上的转码性能指标,请参考如何获得你的Wowza Transcoder 插件的转码性能指标。
- 重要:在最新的NVIDIA 图形驱动中(340 或以上版本),已经不再支持NVIDIA CUDA 加速编码功能了,因此从Wowza Streaming Engine 4.1.2开始就不再支持基于CUDA的加速编码了。
概述
本文的性能测试采用的Wowza版本是Wowza Streaming Engine 4.1.2
本文所有的测试都采用了相同的机制:持续增加输入流的数量直到服务器的CPU利用率接近65%。我们建议在实际商业运营环境下,转码工作不能消耗超过50%-55%的CPU资源。这将会为转码后的输出流播放保留一定的CPU资源。
注意:在执行这些测试之前,Wowza Streaming Engine 已经按照性能调优指南进行了性能优化。
下面是本次测试用的服务器
-
服务器1
- Processor: Single Intel® Xeon® CPU E3-1285 V3 @ 3.60GHz
- Cores/Threads: 4/8
- Memory: 32 GB
- Motherboard: Supermicro X10SAE
- OS: Windows 7 Ultimate (64-bit)
- Java: Java 8 (64-bit)
- GPU/Acceleration: Built-in HD4000 with Intel Quick Sync
-
服务器2
- Processor: Single Intel® Xeon® CPU E3 1285 V3 @ 3.60GHz
- Cores/Threads: 4/8
- Memory: 32 GB
- Motherboard: Supermicro X10SAE
- OS: Windows 7 Ultimate (64-bit)
- Java: Java 8 (64-bit)
- GPU/Acceleration: NVIDIA Quadro K5000 with 340 drivers
-
服务器3
- Processor: Single Intel Xeon CPU E3-1285 V3 @ 3.60GHz
- Cores/Threads: 4/8
- Memory: 32 GB
- Motherboard: Supermicro X10SAE
- OS: Ubuntu 12.04(64-bit)
- Java: Java 8 (64-bit)
- GPU/Acceleration: Built-in HD4600 with Intel Quick Sync
-
服务器4
- Processor:Single Intel Xeon CPU E3-1285 V3 @ 3.60GHz
- Cores/Threads: 4/8
- Memory: 32 GB
- Motherboard: Supermicro X10SAE
- OS: Ubuntu 12.04 (64-bit)
- Java: Java 8 (64-bit)
- GPU/Acceleration:NVIDIA Quadro K5000 with 340 drivers
-
服务器5
- Processor:Dual Intel Xeon CPU X5650 @ 2.66GHz
- Cores/Threads: 12/24
- Memory: 32 GB
- Motherboard: SuperServer 7046GT-TRF 4U Xeon DP 4xGPU Ready
- OS: Windows 8.1 (64-bit)
- Java: Java 8 (64-bit)
- GPU/Acceleration:NVIDIA Quadro K5000 with 340 drivers
-
服务器6
- Processor:Dual Intel Xeon CPU X5650 @ 2.66GHz
- Cores/Threads: 12/24
- Memory: 32 GB
- Motherboard: SuperServer 7046GT-TRF 4U Xeon DP 4xGPU Ready
- OS: Ubuntu 12.04(64-bit)
- Java: Java 8 (64-bit)
- GPU/Acceleration:NVIDIA Quadro K5000 with 340 drivers
-
服务器7
- EC2 Instance: Extra Large Instance - m1.xlarge
- Memory: 15 GB
- 8 EC2 Compute Units: 4 virtual cores with 2 EC2 Compute Units each
- Java: Java 7 (64-bit)
- OS: Amazon Linux
- EC2 AMI: m1.xlarge
- GPU/Acceleration: None
-
服务器8
- EC2 Instance: High-CPU Extra Large Instance - c3.8xlarge
- Memory: 60 GB
- 20 EC2 Compute Units: 32 virtual cores with 3.37 EC2 Compute Units each
- Java: Java 7 (64-bit)
- OS: Amazon Linux
- EC2 AMI: c3.8xlarge
- GPU/Acceleration: None
用于测试的输入流
-
转码率(Transrate 720p)
- Video Codec: H.264
- Video Frame Size: 1280x720
- Video Frame Rate: 24 fps
- Video Bitrate: 5.588 Mbps
- Audio Codec: AAC
- Audio Sample Rate: 48 kHz
- Audio Channels: Stereo
- Audio Bitrate: 97 kbps
-
转码率(Transrate 1080p)
- Video Codec: H.264
- Video Frame Size: 1920x1080
- Video Frame Rate: 24 fps
- Video Bitrate: 9.7208 Mbps
- Audio Codec: AAC
- Audio Sample Rate: 48 kHz
- Audio Channels: Stereo
- Audio Bitrate: 97 kbps
-
转编码(Transcode)
- Video Codec: MPEG-2
- Video Frame Size: 1280x720
- Video Frame Rate: 23.98 fps
- Video Bitrate: 3.0 Mbps
- Audio Codec: MPEG-1 Layer 2
- Audio Sample Rate: 48 kHz
- Audio Channels: Stereo
- Audio Bitrate: 128 kbps
转码率(Transrate 720p)
注意: 下表中的横杠(-)表示由于超出了CPU的能力,这个输入流无法被转码。
输入流 | 输出流 | 服务器 1: default | 服务器 1: Quick Sync | 服务器 2: NVENC | 服务器 3: default | 服务器 3: Quick Sync | 服务器 4: NVENC | 服务器 5: default | 服务器 5: NVENC | 服务器 6: default | 服务器 6: NVENC | 服务器 7: default | 服务器 8: default |
1 x 720p @ 5.588 Mbps |
|
33% | 13% | 22% | 29% | 15% | 19% | 19% | 6% | 18% | 6% | 69% | 5% |
2 x 720p @ 5.588 Mbps |
|
50% | 23% | 29% | 38% | 18% | 26% | 34% | 13% | 31% | 13% | - |
11% |
3 x 720p @ 5.588 Mbps |
|
56% | 26% | 30% | 63% | 27% | 29% | 50% | 20% | 48% | 18% | __ |
17% |
4 x 720p @ 5.588 Mbps |
|
76% | 30% | 36% | - |
37% | 34% | 61% | 28% | 57% | 24% | - |
25% |
5 x 720p @ 5.588 Mbps |
|
- |
37% | 45% | - |
41% | 41% | 77% | 34% | 68% | 28% | __ |
32% |
6 x 720p @ 5.588 Mbps |
|
__ |
45% | 53% | __ |
52% | 52% | __ |
40% | __ |
33% | __ |
42% |
7 x 720p @ 5.588 Mbps |
|
__ |
55% | 60% | __ |
61% | 59% | __ |
47% | __ |
37% | __ |
48% |
8 x 720p @ 5.588 Mbps |
|
__ |
60% | 66% | __ |
69% | 65% | __ |
53% | __ |
43% | __ |
65% |
转编码(Transrate 1080p)
注意: 下表中的横杠(-)表示由于超出了CPU的能力,这个输入流无法被转码。
Input |
Output |
Server 1 Default |
Server 1 Quick Sync |
Server 2 NVENC |
Server 3 Default |
Server 3 Quick Sync |
Server 4 NVENC |
Server 5 Default |
Server 5 NVENC |
Server 6 Default |
Server 6 NVENC |
Server 7 Default |
Server 8 Default |
1x1080p @ 9.720 Mbps | 1x720p 1x360p 1x240p 1x160p |
35% | 20% | 26% | 27% | 18% | 24% | 21% | 13% | 22% | 13% | 77% | 7% |
2x1080p @ 9.720 Mbps | 2x720p 2x360p 2x240p 2x160p |
56% | 28% | 37% | 57% | 35% | 33% | 43% | 24% | 43% | 25% | - |
15% |
3x1080p @ 9.720 Mbps | 3x720p 3x360p 3x240p 3x160p | 78% | 46% | 51% | 79% | 48% | 48% | 66% | 32% | 66% | 30% | - |
20% |
4x1080p @ 9.720 Mbps | 4x720p 4x360p 4x240p 4x160p |
- |
56% | 61% | - |
61% | 58% | - |
44% | 88% | 43% | - |
35% |
5x1080p @ 9.720 Mbps | 5x720p 5x360p 5x240p 5x160p |
- |
65% | 75% | - |
75% | 72% | - |
55% | - |
57% | - |
42% |
6x1080p @ 9.720 Mbps | 6x720p 6x360p 6x240p 6x160p |
- |
- |
- |
- |
- |
- |
- |
68% | - |
64% | - |
60% |
7x1080p @ 9.720 Mbps | 7x720p 7x360p 7x240p 7x160p |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
65% |
Transcode
注意: 下表中的横杠(-)表示由于超出了CPU的能力,这个输入流无法被转码。
Input |
Output |
Server 1 Default |
Server 1 Quick Sync |
Server 2 NVENC |
Server 3 Default |
Server 3 Quick Sync |
Server 4 NVENC |
Server 5 Default |
Server 5 NVENC |
Server 6 Default |
Server 6 NVENC |
Server 7 Default |
Server 8 Default |
1x720p @ 3.0 Mbps | 1x720p 1x360p 1x240p 1x160p |
40% | 15% | 23% | 29% | 13% | 23% | 22% | 9% | 20% | 8% | 69% | 7% |
2x720p @ 3.0 Mbps | 2x720p 2x360p 2x240p 2x160p |
56% | 22% | 32% | 52% | 22% | 29% | 38% | 15% | 35% | 15% | - |
15% |
3x720p @ 3.0 Mbps | 3x720p 3x360p 3x240p 3x160p |
64% | 26% | 39% | 78% | 30% | 35% | 62% | 24% | 50% | 21% | - |
25% |
4x720p @ 3.0 Mbps | 4x720p 4x360p 4x240p 4x160p |
76% | 36% | 44% | - |
44% | 41% | 71% | 30% | 66% | 27% | - |
40% |
5x720p @ 3.0 Mbps | 5x720p 5x360p 5x240p 5x160p |
- |
38% | 48% | - |
54% | 49% | - |
38% | - |
32% | - |
43% |
6x720p @ 3.0 Mbps | 6x720p 6x360p 6x240p 6x160p |
- |
45% | 56% | - |
60% | 55% | - |
46% | - |
37% | - |
54% |
7x720p @ 3.0 Mbps | 7x720p 7x360p 7x240p 7x160p |
- |
59% | 65% | - |
71% | 61% | - |
53% | - |
44% | - |
69% |
8x720p @ 3.0 Mbps | 8x720p 8x360p 8x240p 8x160p |
- |
68% | 68% | - |
- |
68% | - |
61% | - |
50% | - |
- |
9x720p @ 3.0 Mbps | 9x720p 9x360p 9x240p 9x160p |
- |
- |
- |
- |
- |
- |
- |
- |
- |
55% | - |
- |