Red5/FMS live video bandwidth computing

Source: Internet
Author: User

VideoRecording is a function that is often used by the FCS. The important thing is to evaluateVideoSuitable size and rate are required for recording bandwidth.
Its roughAlgorithmYes:
Video width x video height x playback rate (FPS) = Total Bandwidth (bits/sec)
However, you must note that BPS is used when recording with the FCS, instead of kbps. To convert (8 bits = 1 byte)
For example, a video window of 320x240 is recorded at a rate of 30 FPS. The bandwidth consumption is calculated as follows:

320x240x30 FPS = 2.3 Mbps = 288 Kbyte

 

So how can we set different video settings based on bandwidth conditions? Here are some suggestions.
1: // If the width above 1 m is used, you can use the following settings:
2: Camera. setmode (320,240, 15 );
3: setkeyframe (60 );
4: Camera. setquality (144,000, 85 );
5: microphone. setrate (22 );
6: // total consumed bandwidth: 1,196 kbps = 144 Kbyte

1: // 786 kbps Broadband:
2: Camera. setmode (240,180, 12 );
3: setkeyframe (48 );
4: Camera. setquality (64,800, 85 );
5: microphone. setrate (22 );
6: // total consumed bandwidth: 562 kbps = 70 Kbyte

1: // 384 kbps Broadband:
2: Camera. setmode (192,144, 7 );
3: setkeyframe (28 );
4: Camera. setquality (24,192, 85 );
5: microphone. setrate (11 );
6: // total consumed bandwidth: 216 kbps = 27 Kbyte

1: // 56 kbps Dialing:
2: Camera. setmode (80, 60, 8 );
3: setkeyframe (32 );
4: Camera. setquality (4,800, 85 );
5: microphone. setrate (8 );
6: // total consumed bandwidth: 54 kbps = 7 Kbyte

Assume that the bandwidth required for a video is 8 K and the number of connections in the bandwidth requirement table is

Number of connections bandwidth required for video publishing bandwidth required for video playback server requirements
2 8 KB/S 8 KB/S 32 kb/s
3 8 KB/S 16 kb/s 72 KB/S
4 8 KB/S 24 KB/S 128 kb/s
5 8 KB/S 32 kb/s 200 kb/s
10 8 KB/S 72 KB/S 800 KB/S
20 8 KB/S 152 kb/s 3.2 Mb/s
50 8 KB/S 392 kb/s 20 Mb/s

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.