WO2018119579A1 - Method and device for testing performance of streaming media server - Google Patents

Method and device for testing performance of streaming media server Download PDF

Info

Publication number
WO2018119579A1
WO2018119579A1 PCT/CN2016/112119 CN2016112119W WO2018119579A1 WO 2018119579 A1 WO2018119579 A1 WO 2018119579A1 CN 2016112119 W CN2016112119 W CN 2016112119W WO 2018119579 A1 WO2018119579 A1 WO 2018119579A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
video stream
media server
streaming media
preset
Prior art date
Application number
PCT/CN2016/112119
Other languages
French (fr)
Chinese (zh)
Inventor
张敏
夏伟才
Original Assignee
深圳中兴力维技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳中兴力维技术有限公司 filed Critical 深圳中兴力维技术有限公司
Priority to PCT/CN2016/112119 priority Critical patent/WO2018119579A1/en
Publication of WO2018119579A1 publication Critical patent/WO2018119579A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Definitions

  • the present invention relates to the field of test devices, and in particular, to a streaming media server performance test method and apparatus.
  • the video surveillance system is based on the network, and the distributed, independent on-site video capture devices are networked.
  • the recorded video information is aggregated through the streaming media server, and then the video stream information on the streaming media server is retrieved through the client, and displayed on the display screen.
  • the video stream information on the streaming media server is retrieved through the client, and displayed on the display screen.
  • the main object of the present invention is to provide a streaming media server performance testing method and apparatus, which aims to improve the testing efficiency of a streaming media server and improve the user experience.
  • a streaming media server performance testing method for simulating a maximum number of requested video channels of a client test streaming media server, including the following steps:
  • the step of calculating the number of video devices accessing the streaming media server according to the automatic test script includes:
  • the step of sending the first number of video stream requests to the streaming server comprises:
  • the peer sends the first path number T1 corresponding to the SIP device video and the first path number T2 corresponding to the RTSP device video to the streaming media server.
  • the step of determining whether the obtained first or second number of video streams meets the preset fluency condition comprises:
  • the step of performing a sampling test on the first or second number of video streams according to a preset test configuration comprises:
  • the step of determining whether the obtained first or second number of video streams meets the preset fluency condition comprises:
  • the video delay value of the obtained first or second number of video streams is smaller than a preset video delay threshold, and the obtained first or second number of video streams is obtained. If the packet loss rate is less than the preset packet loss threshold, the determination meets the preset fluency condition; otherwise, the determination does not satisfy the preset fluency condition.
  • the streaming media server performance testing method further includes the following steps:
  • determining, by the step of satisfying the preset fluency condition specifically includes:
  • the streaming media server performance testing method further includes the following steps:
  • the number of the video devices of the media server is a third way, and the third stream of video stream requests are sent again to the streaming server;
  • the present invention also provides a streaming media server performance testing device, which is used to simulate the maximum number of requested video channels of a client test streaming media server, including:
  • an input module configured to obtain an automatic test script
  • a first requesting module configured to calculate, according to the automatic test script, a first number of video devices that access the streaming media server, and control a request execution module to send a video of the first number of channels to the streaming media server Stream request
  • the second requesting module is configured to: after receiving the video stream of the first number of channels fed back by the streaming media server, control the smoothness determining module to determine whether the video stream of the first number of channels is smooth; The video stream of one channel meets the preset smooth condition, the current video stream request is ended, and the number of video devices accessing the streaming media server is increased to a second number, and the control request execution module is sent again to the streaming server. All second-numbered video stream requests;
  • the first determining module is configured to: after receiving the video stream of all the second channels fed back by the streaming media server, control the smoothness determining module to determine whether the video stream of the second number of channels is smooth; The video stream of the second number does not satisfy the preset smooth condition, and determines that the first number of channels is the maximum number of requested video channels;
  • a request execution module configured to send a video stream request according to a preset request after receiving the control instruction
  • the sleek determination module is configured to determine whether the video stream meets the preset fluency condition after receiving the control command.
  • the first request module includes:
  • a first speed unit configured to obtain a speed G1 of an adapter where the streaming media server pre-configured in the automatic test script is located;
  • a second speed unit configured to obtain a code stream size of the video source file pre-configured in the automatic test script, G2
  • a number of units configured to obtain a first number of paths according to the speed G1, a code stream size G2, and a preset initial load X%, where the first number of paths is G1/G2*X ⁇ 3 ⁇ 4, where X ⁇ 3 ⁇ 4 is SOy ⁇ O ⁇ ;
  • the requesting unit is configured to control the request execution module to send the first number of video stream requests to the streaming media server.
  • the requesting unit is specifically configured to:
  • the smooth judgment module comprises:
  • a sampling unit configured to perform at least one test on a portion of the video stream of the current number of channels according to a preset test configuration
  • the smoothness determining unit is configured to determine that the video stream of the obtained current number of channels satisfies the preset smooth condition if each of the tests satisfies the preset smooth condition.
  • the step of performing a test on the part of the video stream of the current number of channels in the preset test configuration of the sampling unit includes:
  • the step of determining, by the smooth judgment module, whether the video stream of the current number of channels meets the preset fluency condition comprises:
  • the video delay value of the obtained video stream of the current number of channels is smaller than the preset video delay threshold, and the packet loss rate value of the obtained current channel video stream is smaller than the preset value.
  • the packet loss rate threshold ⁇ determines that the preset fluency condition is met; otherwise, the determination does not satisfy the preset fluency condition.
  • the streaming media server performance testing device further includes:
  • a playing module configured to: after receiving the video stream fed back by the streaming media server, locally decoding and playing the received video stream;
  • the step of the smooth judgment module determining whether the preset fluency condition is met specifically includes:
  • the second requesting module is further configured to: receive a video stream of the first number of channels fed back by the streaming media server, and determine that the obtained video stream of the first number of paths does not meet a preset smooth condition ⁇ , ending the current video stream request, and reducing the number of video devices accessing the streaming media server to a third number, the control request execution module resending all third-channel video stream requests to the streaming media server;
  • the streaming media server performance testing device further includes:
  • the second determining module is configured to: after receiving the video stream of all the third channels that are fed back by the streaming media server, the control smoothness determining module determines whether the video stream of the third channel is smooth, and determines that the video stream is obtained.
  • the video stream of the third channel satisfies the preset smooth condition, and determines that the third channel number is the maximum number of requested video channels.
  • the streaming media server performance testing method and apparatus provided by the present invention automatically increases the number of test paths after the determination is smooth, and performs smooth judgment again, until it is determined that the flow is not smooth, and the number of the last smooth state is automatically determined as The maximum number of ways; This program has the effect of high automation and high test efficiency.
  • FIG. 1 is a flowchart of a first embodiment of a method for testing performance of a streaming media server according to the present invention
  • FIG. 2 is a flowchart of a second embodiment of a method for testing performance of a streaming media server according to the present invention
  • FIG. 3 is a flowchart of a third embodiment of a method for testing performance of a streaming media server according to the present invention.
  • FIG. 4 is a flow chart showing the steps of determining whether the video stream of the Nth channel obtained in FIG. 3 satisfies a preset fluency condition.
  • step S700 of FIG. 4 is a flowchart of a step of randomly sampling once in step S700 of FIG. 4;
  • FIG. 6 is a flowchart of implementing a fourth embodiment of a streaming media server performance testing method according to the present invention.
  • FIG. 7 is a flowchart of implementing a fifth embodiment of a streaming media server performance testing method according to the present invention.
  • 8 is a block diagram showing an embodiment of an embodiment of a streaming media server performance testing apparatus according to the present invention.
  • FIG. 9 is a block diagram of the first request module shown in FIG. 8.
  • FIG. 10 is a block diagram of the smooth judgment module shown in FIG. 8.
  • the first embodiment of the streaming media server performance testing method of the present invention is used to simulate the maximum number of requested video channels of the client test streaming server.
  • the streaming media server performance testing method includes the following steps:
  • Step S100 Obtain an automatic test script.
  • the test script may be input by a user, or may be obtained by automatically detecting a streaming server by an automatic detection scheme.
  • the content of the test script can include the maximum speed of data transmission, the number of connected monitoring video devices, the type of connected device, the automatic decision process, the smoothness of user decisions, and the number of test paths initially initiated.
  • Step S200 calculating, according to the automatic test script, the first number of video devices accessing the streaming media server, and sending a video stream request of the first number of channels to the streaming media server; wherein, the first number of channels It can be any number, for example 1, 50 or 100, etc. It can also be from the calculation, for example, based on 60% of the number of connected devices.
  • Step S300 receiving a video stream of the first number of channels fed back by the streaming media server, and determining that the obtained video stream of the first channel meets the preset smooth condition, ending the current video stream request, and adding the connection
  • the number of video devices entering the media server is a second number, and all the second number of video stream requests are sent again to the streaming server.
  • the preset fluency condition may include a determination condition: whether the packet is lost, whether the frame loss reaches a threshold, whether the frame integrity, the frame interval reaches a threshold, or the like.
  • Step S400 After receiving the video stream of all the second channels fed back by the streaming media server, and determining that the obtained video stream of the second channel does not satisfy the preset smooth condition, determining the first number of channels The maximum number of requested video channels. If the video stream of the second channel is still smooth, perform more test of the number of channels until the video stream card is tested and the frame is stopped, and the number of the last smooth running is determined. The maximum number of ways. For example, when the fourth test is judged to be not smooth for the first time, the third pass of the third test is the maximum number of passes.
  • the number of test paths is automatically increased, and the smooth judgment is performed again, until it is determined that the flow is not smooth, the number of the last smooth state is automatically determined as the maximum number of ways; High degree of automation and high test efficiency.
  • the test described in the claims is completed in the second test, only to make the description of the claim concise, and not only to protect the test in the second test, but to understand that in the subsequent In the N test, if the result is the same as the first time, the test is continued. If the result is opposite to the first time, the number of the N-1th test is the maximum number of ways.
  • the difference between the two adjacent tests may be set to one or two.
  • the streaming media server can be connected to a plurality of monitoring video devices and obtain a real monitoring video stream; or the streaming media server and the analog test device can be connected, and the simulation test device simulates A number of monitoring video devices, and a video stream prepared for each video device.
  • Step S200 calculates a first number of video devices that access the streaming media server, and the step of sending the first video stream request to the streaming media server includes:
  • Step S210 obtaining the speed G1 of the adapter where the streaming media server is pre-configured in the automatic test script; wherein the speed G1 may be input by the user, or may be obtained by automatically detecting the adapter according to the automatic detection scheme. of.
  • Step S220 obtaining a code stream size G2 of the video source file pre-configured in the automatic test script
  • Code stream size G2 can be input by the user, or it can be obtained by automatically detecting the video source file.
  • Step S230 obtaining a first number of paths according to the speed G1, the code stream size G2, and a preset initial load X ⁇ 3 ⁇ 4, where the first path number is G1/G2*X ⁇ 3 ⁇ 4, where X ⁇ 3 ⁇ 4 is SOy ⁇ Oy ⁇
  • G 1024M
  • M 4
  • the initial load X% is 50%, then the first number is 128.
  • Step S240 sending a video stream request of the first number of channels to the streaming media server.
  • the first number of paths used in the first test can be made. Connect Nearly the maximum number of passes, the effect of reducing the number of tests and improving the test efficiency.
  • the preset initial load X% is 60%.
  • the initial load X% is chosen to be 60% ⁇ , and the test results can be obtained with fewer test times, which has the effect of improving test efficiency.
  • step S240 is performed in the manner described above.
  • the streaming server sends out the first number of video stream request steps, including:
  • Step S241 obtaining a device type in the automatic test script; wherein, at least a mainstream session initial protocol SIP (Session Initiation) is obtained.
  • SIP Session Initiation
  • GB28181 devices such as GB28181 devices
  • RTSP Real Time Streaming Protocol
  • Onvif devices The type and amount of equipment can be either user-entered or automatically detected based on an automatic detection scheme.
  • each type of video can only take 1/2, so it needs to be multiplied by 0.5 in the initial load T1* X%.
  • Step S243 The peer sends the first path number T1 corresponding to the SIP device video and the first path number T2 corresponding to the RTSP device video to the streaming media server.
  • the calculation result is a non-integer, and the other method is used. In other embodiments, the rounding or the first method may be used.
  • the first path number of the SIP video stream and the first path number of the RTSP video stream are respectively tested; when the first path number test result of the SIP video stream is smooth, the corresponding SIP is requested.
  • the second number of the video stream the second number of channels is greater than the corresponding first number of channels; when the first path number of the RTSP video stream is fluent, the second number of corresponding RTSP video streams is requested, the second The number of channels is greater than the corresponding number of channels [0101]
  • the subsequent second round of testing the second number of requests for the SIP video stream and the RTSP video stream are sent, and the received video stream is tested accordingly.
  • test result of the second path of the corresponding SIP video stream is smooth, request the third path of the SIP video stream; if the test result of the second path corresponding to the RTSP video stream is not smooth, determine the last time according to the subsequent steps.
  • the first number is the maximum number of requested video channels corresponding to the RTSP video stream.
  • the number of requests for the RTSP video stream is always the maximum number of requested video channels until the maximum number of requested video channels of the SIP video stream is tested.
  • the SIP device video and the RTSP device video are included in the test scenario, and the request including the hybrid type can be issued, and the SIP video stream and the RTSP video stream are separately tested in the test, and then the individual can be obtained.
  • Type of evaluation In this embodiment, the mainstream SIP device video and the RTSP device video can be tested, and the versatility is strong.
  • the test can simulate the actual application of a complex multi-protocol device combination, more realistic test results can be obtained.
  • the step of determining whether the video stream of the Nth path number _ the first or the second number of paths _ satisfies the preset fluency condition includes:
  • Step S700 Perform at least one sampling test on the video stream of the Nth channel according to a preset test configuration.
  • Step S710 If each of the sampling tests meets the preset fluency condition, it is determined that the obtained N-th channel video stream satisfies the preset fluency condition.
  • the number of sampling tests can be 20 ⁇ 3 ⁇ 4 ⁇ 30% of the number of Nth channels, and the maximum number is 30 video streams of the same playing test; of course, after the performance of the device is improved, With more video streams to play the test, even how many video streams are requested from the streaming server, how many video streams are tested.
  • the test of 20% is 12 way, and the first channel of the requested video stream is tested three times, and each test selects a random 12 way of 60 channels for testing. .
  • the results of the three tests are all smooth, it is determined that the first number of passes satisfies the preset fluency condition.
  • the test of 20% of the test is 30 way; the test of the requested second number of video streams is performed three times, and each test selects 30 of the 150 channels for testing.
  • the results of the three tests are all smooth, it is determined that the second number of paths meets the preset fluency condition.
  • step S700 preferably, the steps of randomly sampling once in step S700 are described in detail;
  • Step S701 Obtain a device corresponding to the video stream requested by the Nth channel and the number M thereof, and generate a corresponding
  • step S702 generating a seed by using a first function for generating a seed, and generating a random integer smaller than M by calculating the seed by a second function for generating a 0 ⁇ M interval random integer, and the random
  • the integer forms an array Numbe r [i].
  • the first function can use the smndO function; usually the system can be used to change the seed value of the system, namely srand(time(NULL)) ; the second function can use randO %M, then:
  • a random integer smaller than the Nth channel can be obtained.
  • 20 ⁇ 3 ⁇ 4 ⁇ 30 ⁇ 3 ⁇ 4 or at most 30 random integers of the Nth number are obtained.
  • step S703 the ID by the [M] binding the Numbe r [i], to obtain the device ID corresponding to the sampling number N of the number of ways [Numbe r [i]], and in accordance with the ID [ Numbe r [i]] is tested to obtain a single-pass test result of the Nth number.
  • the number of Nth channels is the first number of paths, and the number of first ways M is 15, and sampling is performed according to 20%
  • mnd (srand(time(NULL))) ⁇ 3 ⁇ 4M obtains 1, 2, 5 three numbers
  • the first ID [Number[i]] includes 1, 2, 5 three numbers, so that the video streams corresponding to number 1, number 2 and number 5 in the 15 request video streams are tested and obtained One test result. If you need to complete three tests according to the configuration, you can evaluate the first number of paths, and then follow the above steps to perform the second and third tests.
  • the determination of the fluency can be further limited. In the determination of whether or not the fluency condition is satisfied, the following method is used for the determination.
  • the video delay value of the video stream of the Nth number obtained is smaller than the preset video delay threshold, and the packet loss rate of the video stream of the Nth number obtained is smaller than the preset
  • the set packet loss threshold ⁇ determines that the preset fluency condition is met; otherwise, the determination does not satisfy the preset fluency condition.
  • the preset time interval may be 10 seconds, the video delay threshold is set to 2 seconds, and the packet loss rate threshold is set to 0.2%.
  • the condition for determining whether the flow is smooth is limited: in the preset time, the video delay value of the received feedback video stream is less than the preset video delay threshold, and is received.
  • the packet loss rate value of the feedback video stream is smaller than the preset packet loss rate threshold ⁇ , and the determination meets the preset fluency condition; otherwise, the determination does not satisfy the preset fluency condition.
  • by detecting the delay value of the screen and the value of the packet loss rate it is judged whether or not the flow is smooth, and the judgment is easy.
  • FIG. 6 a fourth embodiment of a performance testing method for a streaming media server according to the present invention is provided.
  • the present embodiment is based on the first embodiment, and the steps S300 and S400 are described in detail:
  • Step S341 Receive a video stream of the first number of channels fed back by the streaming media server, and locally decode and play the received video stream.
  • the decoded and played image information may be transmitted through an interface for external display display; or the device may directly play the display.
  • Step S342 after receiving the input smooth indication that the image decoded by the local decoding is clear and smooth, it is determined that the preset smooth condition is satisfied. Among them, the user can perform the evaluation after visual inspection, and evaluate the selected flow. A smooth button triggers a smooth evaluation, which determines that the preset fluency condition is met.
  • Step S343 ending the current video stream request, and sending a second number of video stream requests to the streaming media server, where the second number of paths is greater than the first number of channels.
  • Step S400 includes:
  • Step S411 Receive a second video stream that is fed back by the streaming media server, and locally decode and play the received video stream.
  • Step S421 After receiving the input smooth indication that the image decoded by the local decoding is unclear and smooth, it is determined that the preset smooth condition is not satisfied.
  • Step S431 determining that the first number of channels is the maximum number of requested video channels.
  • the streaming media server performance testing method provided in this embodiment further includes the following steps:
  • the received video stream is locally decoded and played.
  • the step of determining that the preset fluency condition is met specifically includes:
  • a fifth embodiment of the performance testing method of the streaming media server of the present invention is provided.
  • steps S500 and S600 are added; and step S300 is described in detail.
  • Step S300 includes:
  • Step S350 Receive a video stream of the first number of paths fed back by the streaming media server.
  • Step S351 Determine whether the obtained video stream of the first path satisfies the preset fluency condition. If yes, go to step S352, if no, go to step S500.
  • Step S352 ending the current video stream request, and sending a second channel number of video stream request to the streaming media server, where the second path number is greater than the first path number.
  • Step S400 After receiving the video stream of the second number of channels fed back by the streaming media server, and determining that the obtained video stream of the second number of paths does not meet the preset smooth condition, determining that the first number of paths is The maximum number of requested video channels.
  • Step S500 ending the current video stream request, and sending a third channel of the video stream request to the streaming media server, where the third path number is smaller than the first path number.
  • Step S600 receiving a third channel of the video stream fed back by the streaming media server, and determining that the obtained third channel of the video stream meets the preset fluency condition, determining that the third channel number is the largest.
  • Request video number In this embodiment, the video stream of the third way is used as an example, but in actual testing, there will be more tests, for example, the video stream flowing with the sixth number in the sixth time is smooth for the first time. Then, the number of sixth paths is determined to be the maximum number of ways.
  • the embodiment further includes another route scheme relative to the first embodiment:
  • the video stream in the first channel is not smooth, and therefore, it has a wider range of effects. It should be noted that the improvement of any of the above embodiments can be applied to the present embodiment without any obvious conflict. For example, before the request is made, the device is proportionally distributed, random sampling is performed, local decoding is performed, and playback is performed. According to the user input, it is determined whether the flow is smooth, and whether the video delay value and the frame drop rate value are used to determine whether the flow is smooth or the like.
  • the number of test paths is automatically reduced, and the smooth judgment is performed again, until it is determined that the flow is smooth, the number of the roads in the current smooth state is automatically determined as the maximum number of ways; High degree of automation and high test efficiency.
  • the test described in the claims is completed in the second test, only to make the description of the claim concise, and not only to protect the test in the second test, but to understand that in the subsequent In the N test, if the result is the same as the first time, the test is continued. If the result is opposite to the first time, the number of ways of the Nth test is the maximum number of ways.
  • a streaming media server performance testing device is configured to simulate a maximum number of requested video channels of a client test streaming media server.
  • the streaming media server 1000 includes:
  • the input module 1100 is configured to obtain an automatic test script.
  • the test script may be input by a user, or may be obtained by automatically detecting a streaming server by an automatic detection scheme.
  • the content of the test script can include the maximum speed of data transmission, the number of connected monitoring video devices, the type of connected device, the automatic determination process, the smoothness of user decisions, and the number of test paths initially initiated.
  • the first requesting module 1200 is configured to calculate, according to the automatic test script, a first number of video devices that access the streaming media server, and control the request execution module to send a video of the first number of channels to the streaming media server.
  • the flow request; wherein, the first way may be any number, for example 1, 50 or 100, etc., or may be from a calculation, for example, based on 60% of the number of connected devices.
  • the second requesting module 1300 is configured to: after receiving the video stream of the first number of channels fed back by the streaming media server, control the smoothness determining module to determine whether the video stream of the first number of channels is smooth; The first channel of the video stream meets the preset fluency condition, the current video stream request is ended, and the number of video devices accessing the streaming media server is increased to a second number, and the control request execution module sends the stream server to the streaming server.
  • the preset fluency condition may include a determination condition: whether the packet is lost, whether the frame loss reaches a threshold, whether the frame integrity, the frame interval reaches a threshold, or the like.
  • the first determining module 1400 is configured to: after receiving the video stream of all the second channels fed back by the streaming media server, control the smoothness determining module to determine whether the video stream of the second number of channels is smooth; The video stream that obtains the second number does not satisfy the preset smooth condition, and determines that the first number of channels is the maximum number of requested video channels. If the video stream of the second channel is still smooth, the test of more channels is performed until the video stream card is tested and the frame is stopped, and the number of the last smooth running is determined as the maximum number of channels. For example, when the fourth test is judged as not smooth for the first time, the third way of the third test is the maximum number of passes.
  • the request execution module 1500 is configured to, when receiving the control instruction, configure to issue a video stream request according to the preset request.
  • the smooth judgment module 1600 is configured to determine whether the video stream satisfies the preset fluency condition after receiving the control command.
  • the number of test paths is automatically increased, and the smooth judgment is performed again.
  • it automatically judges that the number of the last smooth state is the maximum number of ways;
  • This scheme has the effect of high automation and high test efficiency. It should be noted that the test described in the claims is completed in the second test, only to make the description of the claim concise, and not only to protect the test in the second test, but to understand that in the subsequent In the N test, if the result is the same as the first time, the test is continued. If the result is opposite to the first time, the number of the N-1th test is the maximum number of ways.
  • the difference of the number of ways of the two adjacent tests is 1 way or 2 way.
  • the streaming media server can be connected to a plurality of monitoring video devices and obtain a real monitoring video stream; or the streaming media server and the analog test device can be connected, and the simulation test device simulates A number of monitoring video devices, and a video stream prepared for each video device.
  • the first request module 1200 includes:
  • the first speed unit 1210 is configured to obtain a speed G1 of an adapter where the streaming server that is pre-configured in the automatic test script is located, where the speed G1 may be input by a user, or may be according to an automatic detection scheme. Obtained by automatically detecting the adapter.
  • the second speed unit 1220 is configured to obtain a code stream size G2 of the video source file that is pre-configured in the automatic test script.
  • the code stream size G2 may be input by a user, or may automatically detect the video source file. acquired.
  • the number of cells 1230 is configured to obtain a first number of paths according to the speed G1, the code stream size G2, and a preset initial load X ⁇ 3 ⁇ 4, where the first number of paths is G1/G2*X ⁇ 3 ⁇ 4, where X ⁇ 3 ⁇ 4 is SOy ⁇ Oy ⁇
  • G 1024 M
  • M 4M
  • the initial load X% 50%
  • the first number is 128.
  • the requesting unit 1240 is configured to control the request execution module 1500 to send a first channel number of video stream requests to the streaming media server.
  • the first number of paths used in the first test can be made. Close to the maximum number of ways, to reduce the number of tests and improve the efficiency of testing.
  • the preset initial load X% is 60%.
  • the initial load X% is chosen to be 60% ⁇ , and the test results can be obtained with fewer test times, which has the effect of improving test efficiency.
  • the requesting unit 1240 is specifically configured to: [0170] obtaining a device type in the automatic test script; wherein, at least a mainstream session initiation protocol SI P (Session Initiation) is obtained
  • GB28181 devices such as GB28181 devices
  • RTSP Real Time Streaming Protocol
  • Onvif devices The type and amount of equipment can be either user-entered or automatically detected based on an automatic detection scheme.
  • G1/G2*X%*0.5 the number of video channels of the initial RTSP device based on the speed of the adapter and the stream size of the RTSP device video
  • G2' T2 G1/G2'*X%*0.5.
  • each type of video can only take 1/2, so it needs to be multiplied by 0.5 in the initial load T1* X%.
  • the peer sends the first path number T1 corresponding to the SIP device video and the first path number T2 corresponding to the RTSP device video to the streaming media server.
  • the calculation result is a non-integer, and the other method is used. In other embodiments, the rounding or the first method may be used.
  • the first path number of the SIP video stream and the first path number of the RTSP video stream are tested respectively; when the first path number test result of the SIP video stream is smooth, the corresponding SIP is requested.
  • the second number of the video stream, the second number of channels is greater than the corresponding first number of channels; when the first path number of the RTSP video stream is fluent, the second number of corresponding RTSP video streams is requested, the first The number of two channels is greater than the number of corresponding first channels.
  • the peer sends out a second way request for the SIP video stream and the RTSP video stream, and performs corresponding tests on the received video stream. If the test result of the second path of the corresponding SIP video stream is smooth, request the third path of the SIP video stream; if the test result of the second path corresponding to the RTSP video stream is not smooth, determine the last time according to the subsequent steps.
  • the first number is the maximum number of requested video channels corresponding to the RTSP video stream.
  • the request for the SIP video stream, the RTSP video stream The number of request paths is always the maximum number of requested video channels until the maximum number of requested video channels of the SIP video stream is tested.
  • the SIP device video and the RTSP device video are included in the test scenario, and the request including the hybrid type can be issued, and the SIP video stream and the RTSP video stream are respectively tested smoothly after the test, and then the individual can be obtained.
  • Type of evaluation In this embodiment, the mainstream SIP device video and the RTSP device video can be tested, and the versatility is strong.
  • the test can simulate the actual application of a complex multi-protocol device combination, more realistic test results can be obtained.
  • the smooth judgment module 1600 includes:
  • the sampling unit 1610 is configured to perform at least one test on a portion of the video stream of the Nth number_first or second number _ according to a preset test configuration.
  • the smoothness determining unit 1620 is configured to determine that the video stream of the Nth number obtained meets the preset smooth condition if the preset smooth condition is met for each test.
  • the number of sampling tests may be 20 ⁇ 3 ⁇ 4 ⁇ 30% of the number of Nth channels, and the maximum number is 30 video streams of the same playing test; of course, after the performance of the device is improved, With more video streams to play the test, even how many video streams are requested from the streaming server, how many video streams are tested.
  • test device with a maximum of 30 channels of video as an example:
  • the test of 20% of the test is 12 way, and the first channel of the requested video stream is tested three times, and each of the tests selects a random 12 way of 60 channels for testing.
  • the results of the three tests are all smooth, it is determined that the first number of passes meets the preset fluency condition.
  • the test is performed three times for the requested second video stream, and each of the tests selects a random one of the 150 channels for testing.
  • the results of the three tests are all smooth, it is determined that the second number of paths meets the preset fluency condition.
  • a random sampling step of the sampling unit 1610 includes:
  • [0189] generating a seed by a first function for generating a seed, and generating a random integer smaller than M by calculating the seed by a second function for generating a 0-M interval random integer, and forming the random integer into an array Numbe r [i] ;
  • the first function can use the smndO function; usually the system can be used to change the seed value of the system, namely srand(time(NULL)); the second function can use randO ⁇ M, Bay 1J:
  • the step of determining, by the smoothness determining module 1600, whether the obtained video stream of the Nth channel meets the preset fluency condition comprises:
  • the video delay value of the video stream of the Nth number obtained is smaller than the preset video delay threshold, and the packet loss rate of the video stream of the Nth number obtained is smaller than the preset value.
  • the set packet loss threshold ⁇ determines that the preset fluency condition is met; otherwise, the determination does not satisfy the preset fluency condition.
  • the preset time interval may be 10 seconds, the video delay threshold is set to 2 seconds, and the packet loss rate threshold is set to 0.2%.
  • the condition for determining the smoothness is limited: in the preset time, the video delay value of the received feedback video stream is smaller than the preset video delay threshold, and is received.
  • the packet loss rate value of the feedback video stream is smaller than the preset packet loss rate threshold ⁇ , and the determination meets the preset fluency condition; otherwise, the determination does not satisfy the preset fluency condition.
  • by detecting the delay value of the screen and the value of the packet loss rate it is judged whether or not the flow is smooth, and the judgment is easy.
  • the streaming media server performance testing device further includes:
  • the playing module 1700 is configured to: after receiving the video stream fed back by the streaming server, locally decode and play the received video stream.
  • the decoded and played image information can be transmitted through an interface for external display display; or the machine can directly play the display.
  • the step of determining, by the smooth judgment module 1600, whether the preset fluency condition is met specifically includes: [0203] determining that the preset smoothness is satisfied after receiving the input of the smooth and smooth evaluation of the image for local decoding and playing Condition; otherwise, it is determined that the preset fluency condition is not satisfied.
  • the user can perform the evaluation after visual inspection, and the evaluation selects the smooth button, thereby triggering the smooth evaluation, and the determination determines that the preset smooth condition is satisfied.
  • the second request module 1300 is further configured to: receive a video stream of the first number of channels fed back by the streaming media server, and determine that the obtained video stream of the first path does not meet the preset smoothness.
  • Condition ⁇ ending the current video stream request, and the control request execution module 1500 sends a third channel number of video stream requests to the streaming media server, wherein the third path number is less than the first path number.
  • the second determining module 1800 is configured to: after receiving the video stream of the third channel number fed back by the streaming media server, control the smoothness determining module 1600 to determine whether the video stream of the third channel number is smooth, The video stream obtained by the third channel satisfies the preset smooth condition, and the third channel number is determined to be the maximum number of requested video channels.
  • the video stream of the third way is used as an example, but in actual testing, there will be more tests, for example, the video stream flowing with the sixth number in the sixth time is smooth for the first time. Then, the number of sixth paths is determined to be the maximum number of ways.
  • the video stream in the first channel is not smooth, and therefore, it has a wider range of effects.
  • the third path number test and the third way number test in this embodiment can be applied. No test results were obtained, and subsequent tests were performed after that. For example, before the request is made, the device is proportionally distributed, random sampling is performed, local decoding is performed, and playback is performed. According to the user input, it is determined whether the flow is smooth, and whether the video delay value and the frame drop rate value are used to determine whether the flow is smooth or the like.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, In the CD), including several The instructions are for causing a terminal device (which may be a mobile terminal, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a terminal device which may be a mobile terminal, a computer, a server, an air conditioner, or a network device, etc.
  • the streaming media server performance testing method and apparatus provided by the present invention automatically increases the number of test paths after the determination is smooth, and performs smooth judgment again, until it is determined that the flow is not smooth, and the last smooth state is automatically determined.
  • the number of roads is the maximum number of roads; this scheme has the effect of high automation and high test efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Disclosed in the present invention are a method and device for testing the performance of a streaming media server, the method for testing the performance of a streaming media server comprising: obtaining an automatic test script; calculating a first number of video devices which access a streaming media server according to the automatic test script, and issuing to the streaming media server a request for video streams of the first number; when receiving the video streams of the first number fed back by the streaming media server and determining that the obtained video streams of the first number meet a preset fluency condition, ending the current request for video streams, and issuing to the stream media server another request for all video streams of a second number when increasing the number of video devices which access the streaming media server to be the second number; and when receiving all video streams of the second number fed back by the streaming media server and determining that the obtained video streams of the second number do not meet the preset fluency condition, determining that the first number is the maximum number for requesting videos. The present invention has the effects of increasing the testing efficiency of the streaming media server and improving the user experience.

Description

流媒体服务器性能测试方法和装置 技术领域  Streaming media server performance testing method and device
[0001] 本发明涉及测试装置领域, 特别涉及流媒体服务器性能测试方法和装置。  [0001] The present invention relates to the field of test devices, and in particular, to a streaming media server performance test method and apparatus.
背景技术  Background technique
[0002] 目前视频监控系统在社会管理中越来越重要。 视频监控系统以网络为基础, 将 分散、 独立的现场视频采集设备进行联网, 录制的视频信息通过流媒体服务器 汇聚, 再通过客户端调取流媒体服务器上的视频流信息, 而展示于显示屏上, 用以供管理人员査看, 以及备份至储存上以供后期査阅。  [0002] Currently, video surveillance systems are becoming more and more important in social management. The video surveillance system is based on the network, and the distributed, independent on-site video capture devices are networked. The recorded video information is aggregated through the streaming media server, and then the video stream information on the streaming media server is retrieved through the client, and displayed on the display screen. Above, for management to view, and backup to storage for later review.
[0003] 由于对视频监控系统性能的需求不断提高, 导致视频设备的不断增多, 以及提 供视频信息的清晰度不断加强, 从而对视频监控系统的要求也越来越高。 而流 媒体服务器作为视频监控系统的核心, 其性能也提出了更高的要求。 但是, 现 有的对流媒体服务器的测试手段落后, 需要繁琐的人工配置测试条件, 导致测 试效率低, 不能满足用户的需求。 技术问题  [0003] As the demand for the performance of video surveillance systems continues to increase, the number of video devices continues to increase, and the clarity of providing video information continues to increase, so that the requirements for video surveillance systems are becoming higher and higher. As the core of the video surveillance system, the streaming media server also puts forward higher requirements. However, existing testing methods for streaming media servers are backward, requiring cumbersome manual configuration test conditions, resulting in low test efficiency and inability to meet user needs. technical problem
[0004] 本发明的主要目的是提供流媒体服务器性能测试方法和装置, 旨在提高流媒体 服务器的测试效率, 提高用户体验。  [0004] The main object of the present invention is to provide a streaming media server performance testing method and apparatus, which aims to improve the testing efficiency of a streaming media server and improve the user experience.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0005] 为实现上述目的, 本发明提出的一种流媒体服务器性能测试方法, 用于模拟客 户端测试流媒体服务器的最大请求视频路数, 包括如下步骤:  [0005] In order to achieve the above object, a streaming media server performance testing method is provided for simulating a maximum number of requested video channels of a client test streaming media server, including the following steps:
[0006] 获得自动测试脚本; [0006] obtaining an automatic test script;
[0007] 根据所述自动测试脚本, 计算接入流媒体服务器的视频设备数量第一路数, 向 所述流媒体服务器发出第一路数的视频流请求;  [0007] calculating, according to the automatic test script, a first number of video devices that access the streaming media server, and sending a first video stream request to the streaming media server;
[0008] 在接收所述流媒体服务器反馈的第一路数的视频流, 并且判断所获第一路数的 视频流满足预设流畅条件吋, 结束当前视频流请求, 并且增加接入流媒体服务 器的视频设备的数量为第二路数吋, 向所述流媒体服务器再次发出全部第二路 数的视频流请求; Receiving a video stream of the first number of channels fed back by the streaming media server, and determining that the obtained video stream of the first number of channels meets a preset smooth condition, ending the current video stream request, and adding the access streaming media The number of video devices of the server is the second number, and all the second paths are sent again to the streaming server. Number of video stream requests;
[0009] 在接收所述流媒体服务器反馈的全部第二路数的视频流, 并且判定所获第二路 数的视频流不满足预设流畅条件吋, 判定所述第一路数为最大请求视频路数。  [0009] After receiving the video stream of all the second channels fed back by the streaming media server, and determining that the obtained video stream of the second channel does not satisfy the preset smooth condition, determining that the first path is the maximum request Number of video channels.
[0010] 优选的, 所述根据所述自动测试脚本, 计算接入流媒体服务器的视频设备数量 第一路数的步骤包括: [0010] Preferably, the step of calculating the number of video devices accessing the streaming media server according to the automatic test script includes:
[0011] 获得所述自动测试脚本中预配的所述流媒体服务器所在的适配器的速度 G1 ;  [0011] obtaining the speed G1 of the adapter where the streaming server is pre-configured in the automatic test script;
[0012] 获得所述自动测试脚本中预配的视频源文件的码流大小 G2;  [0012] obtaining a code stream size G2 of the video source file pre-configured in the automatic test script;
[0013] 根据所述速度 Gl、 码流大小 G2和预设初始载荷 X%获得第一路数, 所述第一路 数为 G1/G2*X<¾, 其中 X<¾为 SO^ O^;  [0013] obtaining a first number of paths according to the speed G1, a code stream size G2, and a preset initial load X%, where the first path number is G1/G2*X<3⁄4, where X<3⁄4 is SO^O^ ;
[0014] 向所述流媒体服务器发出第一路数的视频流请求。 [0014] issuing a first number of video stream requests to the streaming server.
[0015] 优选的, 向所述流媒体服务器发出第一路数的视频流请求的步骤包括: [0015] Preferably, the step of sending the first number of video stream requests to the streaming server comprises:
[0016] 获得所述自动测试脚本中的设备类型; [0016] obtaining a device type in the automatic test script;
[0017] 在所述自动测试脚本中包括 SIP设备视频和 RTSP设备视频吋, 根据所述适配器 的速度和 SIP设备视频的码流大小 G2获得初始 SIP设备视频路数 T1=G1/G2*X%*0. [0017] the SIP device video and the RTSP device video are included in the automatic test script, and the initial SIP device video channel number T1=G1/G2*X% is obtained according to the speed of the adapter and the code stream size G2 of the SIP device video. *0.
5, 以及根据所述适配器的速度和 RTSP设备视频的码流大小 G2'获得初始 RTSP设 备视频路数 T2=G1/G2'*X<¾*0.5; 5, and according to the speed of the adapter and the stream size of the RTSP device video G2' to obtain the initial RTSP device video channel number T2=G1/G2'*X<3⁄4*0.5;
[0018] 同吋向所述流媒体服务器发出对应 SIP设备视频的第一路数 T1和对应 RTSP设备 视频的第一路数 T2。 [0018] The peer sends the first path number T1 corresponding to the SIP device video and the first path number T2 corresponding to the RTSP device video to the streaming media server.
[0019] 优选的, 判断所获第一或者第二路数的视频流是否满足预设流畅条件的步骤包 括:  [0019] Preferably, the step of determining whether the obtained first or second number of video streams meets the preset fluency condition comprises:
[0020] 按预设测试配置对所述第一或者第二路数的视频流进行至少一次抽检测试; [0021] 若每一次抽检测试都满足预设流畅条件, 则判定所获第一或者第二路数的视频 流满足预设流畅条件。  [0020] performing at least one sampling test on the first or second number of video streams according to a preset test configuration; [0021] determining that the first or the first is obtained if each of the sampling tests meets the preset fluency condition The two-way video stream satisfies the preset fluency condition.
[0022] 优选的, 按预设测试配置对所述第一或者第二路数的视频流进行一次抽检测试 的步骤包括:  [0022] Preferably, the step of performing a sampling test on the first or second number of video streams according to a preset test configuration comprises:
[0023] 获得所述第一或者第二路数所请求视频流对应的设备及其数量 Μ, 生成对应 Μ 个所述设备的设备编号, 并且形成数组 ID[M] ; [0023] obtaining the device corresponding to the video stream requested by the first or second number and its number Μ, generating a device number corresponding to the devices, and forming an array ID [M] ;
[0024] 通过用于生成种子的第一函数生成种子, 并且通过用于产生 0~M区间随机整数 的第二函数计算所述种子而生成小于 M的随机整数, 并且将所述随机整数形成数 组 Number[i] ; [0024] generating a seed by a first function for generating a seed, and by generating a random integer of 0 to M intervals The second function calculates the seed to generate a random integer less than M, and forms the random integer into an array Number[i];
[0025] 通过所述 ID[M]结合所述 Number[i], 获得对应所述第一或者第二路数的设备抽 检编号 ID[Number[i]], 并且按照所述 ID[Number[i]]进行测试, 用以获得所述第一 或者第二路数的一次抽检测试结果。 [0025] by the ID [M] binding the Numbe r [i], corresponding to the first or second obtaining large ones sampling device ID ID [Number [i]], and in accordance with the ID [Number [ i]] performing a test to obtain a one-time test result of the first or second number of passes.
[0026] 优选的, 判断所获第一或者第二路数的视频流是否满足预设流畅条件的步骤具 体包括: [0026] Preferably, the step of determining whether the obtained first or second number of video streams meets the preset fluency condition comprises:
[0027] 在预设吋间内, 所获第一或者第二路数的视频流的视频延吋值小于预设的视频 延吋阈值, 并且所获第一或者第二路数的视频流的丢包率值小于预设的丢包率 阈值吋, 判定满足预设流畅条件; 否则, 判定不满足预设流畅条件。  [0027] in the preset time interval, the video delay value of the obtained first or second number of video streams is smaller than a preset video delay threshold, and the obtained first or second number of video streams is obtained. If the packet loss rate is less than the preset packet loss threshold, the determination meets the preset fluency condition; otherwise, the determination does not satisfy the preset fluency condition.
[0028] 优选的, 所述流媒体服务器性能测试方法, 还包括步骤:  [0028] Preferably, the streaming media server performance testing method further includes the following steps:
[0029] 在接收到所述流媒体服务器反馈的视频流吋, 将所接收的视频流进行本地解码 并播放;  [0029] after receiving the video stream fed back by the streaming media server, locally decoding and playing the received video stream;
[0030] 判定满足预设流畅条件的步骤具体包括:  [0030] determining, by the step of satisfying the preset fluency condition, specifically includes:
[0031] 在接收到输入的用于表示本地解码播放的图像清晰流畅的流畅评价吋, 判定满 足预设流畅条件; 否则, 判定为不满足预设流畅条件。  [0031] Upon receiving the input smooth indication for the clear and smooth image of the local decoded play, it is determined that the preset smooth condition is satisfied; otherwise, it is determined that the preset smooth condition is not satisfied.
[0032] 优选的, 所述流媒体服务器性能测试方法, 还包括步骤: [0032] Preferably, the streaming media server performance testing method further includes the following steps:
[0033] 在接收所述流媒体服务器反馈的第一路数的视频流, 并且判断所获第一路数的 视频流不满足预设流畅条件吋, 结束当前视频流请求, 并且减少接入流媒体服 务器的视频设备的数量为第三路数吋, 向所述流媒体服务器再次发出全部第三 路数的视频流请求;  Receiving a video stream of the first number of channels fed back by the streaming media server, and determining that the obtained video stream of the first path does not satisfy the preset smooth condition, ending the current video stream request, and reducing the access flow The number of the video devices of the media server is a third way, and the third stream of video stream requests are sent again to the streaming server;
[0034] 在接收所述流媒体服务器反馈的全部第三路数的视频流, 并且判断所获第三路 数的视频流满足预设流畅条件吋, 判定所述第三路数为最大请求视频路数。  Receiving a video stream of all the third channels that is fed back by the streaming media server, and determining that the obtained third channel number of video streams meets a preset fluency condition, determining that the third channel number is the maximum request video Number of roads.
[0035] 本发明还提供了一种流媒体服务器性能测试装置, 用于模拟客户端测试流媒体 服务器的最大请求视频路数, 包括:  [0035] The present invention also provides a streaming media server performance testing device, which is used to simulate the maximum number of requested video channels of a client test streaming media server, including:
[0036] 输入模块, 用于获得自动测试脚本;  [0036] an input module, configured to obtain an automatic test script;
[0037] 第一请求模块, 用于根据所述自动测试脚本, 计算接入流媒体服务器的视频设 备数量第一路数, 控制请求执行模块向所述流媒体服务器发出第一路数的视频 流请求; [0037] a first requesting module, configured to calculate, according to the automatic test script, a first number of video devices that access the streaming media server, and control a request execution module to send a video of the first number of channels to the streaming media server Stream request
[0038] 第二请求模块, 用于在接收所述流媒体服务器反馈的第一路数的视频流吋, 控 制流畅判断模块判断所述第一路数的视频流是否流畅; 在判定所获第一路数的 视频流满足预设流畅条件吋, 结束当前视频流请求, 并且增加接入流媒体服务 器的视频设备的数量为第二路数吋, 控制请求执行模块向所述流媒体服务器再 次发出全部第二路数的视频流请求;  [0038] The second requesting module is configured to: after receiving the video stream of the first number of channels fed back by the streaming media server, control the smoothness determining module to determine whether the video stream of the first number of channels is smooth; The video stream of one channel meets the preset smooth condition, the current video stream request is ended, and the number of video devices accessing the streaming media server is increased to a second number, and the control request execution module is sent again to the streaming server. All second-numbered video stream requests;
[0039] 第一判定模块, 用于在接收所述流媒体服务器反馈的全部第二路数的视频流吋 , 控制流畅判断模块判断所述第二路数的视频流是否流畅; 在判定所获第二路 数的视频流不满足预设流畅条件吋, 判定所述第一路数为最大请求视频路数; [0039] The first determining module is configured to: after receiving the video stream of all the second channels fed back by the streaming media server, control the smoothness determining module to determine whether the video stream of the second number of channels is smooth; The video stream of the second number does not satisfy the preset smooth condition, and determines that the first number of channels is the maximum number of requested video channels;
[0040] 请求执行模块, 用于在接收到控制指令吋, 根据预设请求配置发出视频流请求 [0040] a request execution module, configured to send a video stream request according to a preset request after receiving the control instruction
[0041] 流畅判断模块, 用于在接收到控制指令吋, 判断视频流是否满足预设流畅条件 [0042] 优选的, 所述第一请求模块包括: [0041] The sleek determination module is configured to determine whether the video stream meets the preset fluency condition after receiving the control command. [0042] Preferably, the first request module includes:
[0043] 第一速度单元, 用于获得所述自动测试脚本中预配的所述流媒体服务器所在的 适配器的速度 G1 ;  [0043] a first speed unit, configured to obtain a speed G1 of an adapter where the streaming media server pre-configured in the automatic test script is located;
[0044] 第二速度单元, 用于获得所述自动测试脚本中预配的视频源文件的码流大小 G2  [0044] a second speed unit, configured to obtain a code stream size of the video source file pre-configured in the automatic test script, G2
[0045] 路数单元, 用于根据所述速度 Gl、 码流大小 G2和预设初始载荷 X%获得第一路 数, 所述第一路数为 G1/G2*X<¾, 其中 X<¾为 SOy^ O^; [0045] a number of units, configured to obtain a first number of paths according to the speed G1, a code stream size G2, and a preset initial load X%, where the first number of paths is G1/G2*X<3⁄4, where X< 3⁄4 is SOy^ O^;
[0046] 请求单元, 用于控制请求执行模块向所述流媒体服务器发出第一路数的视频流 请求。 [0046] The requesting unit is configured to control the request execution module to send the first number of video stream requests to the streaming media server.
[0047] 优选的, 所述请求单元具体用于:  [0047] Preferably, the requesting unit is specifically configured to:
[0048] 获得所述自动测试脚本中的设备类型; Obtaining a device type in the automatic test script;
[0049] 在所述自动测试脚本中包括 SIP设备视频和 RTSP设备视频吋, 根据所述适配器 的速度和 SIP设备视频的码流大小 G2获得初始 SIP设备视频路数 T1=G1/G2*X%*0. 5, 以及根据所述适配器的速度和 RTSP设备视频的码流大小 G2'获得初始 RTSP设 备视频路数 T2= G1/G2'*X%*0.5; [0050] 同吋向所述流媒体服务器发出对应 SIP设备视频的第一路数 Tl和对应 RTSP设备 视频的第一路数 T2。 [0049] The SIP device video and the RTSP device video are included in the automatic test script, and the initial SIP device video channel number T1=G1/G2*X% is obtained according to the speed of the adapter and the code stream size G2 of the SIP device video. *0. 5, and obtain the initial RTSP device video path number T2 = G1/G2'*X%*0.5 according to the speed of the adapter and the code stream size G2' of the RTSP device video; [0050] The peer sends the first path number T1 corresponding to the SIP device video and the first path number T2 corresponding to the RTSP device video to the streaming media server.
[0051] 优选的, 所述流畅判断模块包括: [0051] Preferably, the smooth judgment module comprises:
[0052] 抽测单元, 用于按预设测试配置对当前路数的视频流中的部分进行至少一次测 试;  [0052] a sampling unit, configured to perform at least one test on a portion of the video stream of the current number of channels according to a preset test configuration;
[0053] 流畅判定单元, 用于若每一次测试都满足预设流畅条件, 则判定所获当前路数 的视频流满足预设流畅条件。  [0053] The smoothness determining unit is configured to determine that the video stream of the obtained current number of channels satisfies the preset smooth condition if each of the tests satisfies the preset smooth condition.
[0054] 优选的, 所述抽测单元的按预设测试配置对当前路数的视频流中的部分进行一 次测试的步骤, 具体包括: [0054] Preferably, the step of performing a test on the part of the video stream of the current number of channels in the preset test configuration of the sampling unit includes:
[0055] 获得所述当前路数所请求视频流对应的设备及其数量 Μ, 生成对应 Μ个所述设 备的设备编号, 并且形成数组 ID[M] ; [0055] obtaining the device corresponding to the video stream requested by the current number of channels and the number thereof, generating a device number corresponding to the devices, and forming an array ID [M] ;
[0056] 通过用于生成种子的第一函数生成种子, 并且通过用于产生 0~M区间随机整数 的第二函数计算所述种子而生成小于 M的随机整数, 并且将所述随机整数形成数 组 Number[i] ; [0056] generating a seed by a first function for generating a seed, and generating a random integer smaller than M by calculating the seed by a second function for generating a 0-M interval random integer, and forming the random integer into an array Number[i] ;
[0057] 通过所述 ID[M]结合所述 Number[i], 获得对应所述当前路数的设备抽检编号 ID[ Number[i]], 并且按照所述 ID[Number[i]]进行测试, 用以获得所述当前路数的一 次抽检测试结果。 [0057] by the ID [M] binding the Numbe r [i], obtained sampling device ID ID [Number [i]] of the current corresponding to the number of ways, and in accordance with the ID [Numbe r [i]] A test is performed to obtain a single test result of the current number of passes.
[0058] 优选的, 所述流畅判断模块判断所获当前路数的视频流是否满足预设流畅条件 的步骤具体包括:  [0058] Preferably, the step of determining, by the smooth judgment module, whether the video stream of the current number of channels meets the preset fluency condition comprises:
[0059] 在预设吋间内, 所获当前路数的视频流的视频延吋值小于预设的视频延吋阈值 , 并且所获当前路数的视频流的丢包率值小于预设的丢包率阈值吋, 判定满足 预设流畅条件; 否则, 判定不满足预设流畅条件。  [0059] In the preset time, the video delay value of the obtained video stream of the current number of channels is smaller than the preset video delay threshold, and the packet loss rate value of the obtained current channel video stream is smaller than the preset value. The packet loss rate threshold 吋 determines that the preset fluency condition is met; otherwise, the determination does not satisfy the preset fluency condition.
[0060] 优选的, 所述流媒体服务器性能测试装置, 还包括:  [0060] Preferably, the streaming media server performance testing device further includes:
[0061] 播放模块, 用于在接收到所述流媒体服务器反馈的视频流吋, 将所接收的视频 流进行本地解码并播放;  [0061] a playing module, configured to: after receiving the video stream fed back by the streaming media server, locally decoding and playing the received video stream;
[0062] 所述流畅判断模块判断是否满足预设流畅条件的步骤具体包括: [0062] The step of the smooth judgment module determining whether the preset fluency condition is met specifically includes:
[0063] 在接收到输入的用于表示本地解码播放的图像清晰流畅的流畅评价吋, 判定满 足预设流畅条件; 否则, 判定为不满足预设流畅条件。 [0064] 优选的, 所述第二请求模块, 还用于在接收所述流媒体服务器反馈的第一路数 的视频流, 并且判断所获第一路数的视频流不满足预设流畅条件吋, 结束当前 视频流请求, 并且减少接入流媒体服务器的视频设备的数量为第三路数吋, 控 制请求执行模块向所述流媒体服务器再次发出全部第三路数的视频流请求;[0063] Upon receiving the input smooth indication for the clear and smooth image of the local decoded play, it is determined that the preset smooth condition is satisfied; otherwise, it is determined that the preset smooth condition is not satisfied. [0064] Preferably, the second requesting module is further configured to: receive a video stream of the first number of channels fed back by the streaming media server, and determine that the obtained video stream of the first number of paths does not meet a preset smooth condition结束, ending the current video stream request, and reducing the number of video devices accessing the streaming media server to a third number, the control request execution module resending all third-channel video stream requests to the streaming media server;
[0065] 所述流媒体服务器性能测试装置还包括: [0065] The streaming media server performance testing device further includes:
[0066] 第二判定模块, 用于在接收所述流媒体服务器反馈的全部第三路数的视频流吋 , 控制流畅判断模块判断所述第三路数的视频流是否流畅, 在判定所获第三路 数的视频流满足预设流畅条件吋, 判定所述第三路数为最大请求视频路数。 发明的有益效果  [0066] The second determining module is configured to: after receiving the video stream of all the third channels that are fed back by the streaming media server, the control smoothness determining module determines whether the video stream of the third channel is smooth, and determines that the video stream is obtained. The video stream of the third channel satisfies the preset smooth condition, and determines that the third channel number is the maximum number of requested video channels. Advantageous effects of the invention
有益效果  Beneficial effect
[0067] 在此处键入有益效果描述段落。 本发明所提供的流媒体服务器性能测试方法和 装置, 通过在判定流畅之后, 自动增加测试路数, 再次进行流畅判断, 直到判 断为不流畅吋, 则自动判断上一次流畅状态吋的路数为最大路数; 本方案具有 自动化程度高, 测试效率高的效果。  [0067] Type a paragraph of beneficial effects description here. The streaming media server performance testing method and apparatus provided by the present invention automatically increases the number of test paths after the determination is smooth, and performs smooth judgment again, until it is determined that the flow is not smooth, and the number of the last smooth state is automatically determined as The maximum number of ways; This program has the effect of high automation and high test efficiency.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0068] 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或 现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的 附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创 造性劳动的前提下, 还可以根据这些附图示出的结构获得其他的附图。  [0068] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and those skilled in the art can obtain other drawings according to the structures shown in the drawings without any creative work.
[0069] 图 1为实现本发明流媒体服务器性能测试方法第一实施例的流程图; 1 is a flowchart of a first embodiment of a method for testing performance of a streaming media server according to the present invention;
[0070] 图 2为实现本发明流媒体服务器性能测试方法第二实施例的流程图; 2 is a flowchart of a second embodiment of a method for testing performance of a streaming media server according to the present invention;
[0071] 图 3为实现本发明流媒体服务器性能测试方法第三实施例的流程图; 3 is a flowchart of a third embodiment of a method for testing performance of a streaming media server according to the present invention;
[0072] 图 4为图 3中判断所获第 N路数的视频流是否满足预设流畅条件的步骤的流程图 4 is a flow chart showing the steps of determining whether the video stream of the Nth channel obtained in FIG. 3 satisfies a preset fluency condition.
[0073] 图 5为图 4中步骤 S700中随机抽检一次的步骤的流程图; 5 is a flowchart of a step of randomly sampling once in step S700 of FIG. 4;
[0074] 图 6为实现本发明流媒体服务器性能测试方法第四实施例的流程图;  6 is a flowchart of implementing a fourth embodiment of a streaming media server performance testing method according to the present invention;
[0075] 图 7为实现本发明流媒体服务器性能测试方法第五实施例的流程图; [0076] 图 8为实现本发明流媒体服务器性能测试装置一实施例的模块示意图; 7 is a flowchart of implementing a fifth embodiment of a streaming media server performance testing method according to the present invention; 8 is a block diagram showing an embodiment of an embodiment of a streaming media server performance testing apparatus according to the present invention;
[0077] 图 9为图 8所示第一请求模块的模块示意图; 9 is a block diagram of the first request module shown in FIG. 8;
[0078] 图 10为图 8所示流畅判断模块的模块示意图。 10 is a block diagram of the smooth judgment module shown in FIG. 8.
[0079] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。  [0079] The implementation, functional features, and advantages of the present invention will be further described with reference to the accompanying drawings.
本发明的实施方式 Embodiments of the invention
[0080] 在此处键入本发明的实施方式描述段落。 应当理解, 此处所描述的具体实施例 仅仅用以解释本发明, 并不用于限定本发明。  [0080] The description paragraphs of the embodiments of the invention are entered here. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0081] 请参看图 1, 本发明流媒体服务器性能测试方法第一实施例, 用于模拟客户端 测试流媒体服务器的最大请求视频路数。 所述流媒体服务器性能测试方法包括 如下步骤: Referring to FIG. 1, the first embodiment of the streaming media server performance testing method of the present invention is used to simulate the maximum number of requested video channels of the client test streaming server. The streaming media server performance testing method includes the following steps:
[0082] 步骤 S100, 获得自动测试脚本; 其中, 测试脚本可以由用户输入, 也可以通过 自动检测方案而自动检测流媒体服务器而获得。 测试脚本的内容可以包括数据 传输最大速度、 连接的监控视频设备数量、 连接的设备类型、 自动判定流程、 用户判定流畅和初始发起的测试路数等。  [0082] Step S100: Obtain an automatic test script. The test script may be input by a user, or may be obtained by automatically detecting a streaming server by an automatic detection scheme. The content of the test script can include the maximum speed of data transmission, the number of connected monitoring video devices, the type of connected device, the automatic decision process, the smoothness of user decisions, and the number of test paths initially initiated.
[0083] 步骤 S200, 根据所述自动测试脚本, 计算接入流媒体服务器的视频设备数量第 一路数, 向所述流媒体服务器发出第一路数的视频流请求; 其中, 第一路数可 以是任意数, 例如 1、 50或 100等, 也可以是来自计算, 例如根据连接的设备数 量的 60%幵始测试。  [0083] Step S200, calculating, according to the automatic test script, the first number of video devices accessing the streaming media server, and sending a video stream request of the first number of channels to the streaming media server; wherein, the first number of channels It can be any number, for example 1, 50 or 100, etc. It can also be from the calculation, for example, based on 60% of the number of connected devices.
[0084] 步骤 S300, 在接收所述流媒体服务器反馈的第一路数的视频流, 并且判断所获 第一路数的视频流满足预设流畅条件吋, 结束当前视频流请求, 并且增加接入 流媒体服务器的视频设备的数量为第二路数吋, 向所述流媒体服务器再次发出 全部第二路数的视频流请求。 其中, 预设流畅条件可以包括判定条件: 包丢失 、 帧丢失是否达到阈值; 帧完整性、 帧间隔是否达到阈值等等。  [0084] Step S300, receiving a video stream of the first number of channels fed back by the streaming media server, and determining that the obtained video stream of the first channel meets the preset smooth condition, ending the current video stream request, and adding the connection The number of video devices entering the media server is a second number, and all the second number of video stream requests are sent again to the streaming server. The preset fluency condition may include a determination condition: whether the packet is lost, whether the frame loss reaches a threshold, whether the frame integrity, the frame interval reaches a threshold, or the like.
[0085] 步骤 S400, 在接收所述流媒体服务器反馈的全部第二路数的视频流, 并且判定 所获第二路数的视频流不满足预设流畅条件吋, 判定所述第一路数为最大请求 视频路数。 其中, 若第二路数的视频流依然流畅, 则进行更多路数的测试, 直 到测试出视频流卡顿掉帧等状态吋停止, 并且判定最后一次流畅运行的路数为 最大路数。 例如当第四次测试吋首次判断为不流畅吋, 则第三次测试吋的第三 路数为最大路数。 [0085] Step S400: After receiving the video stream of all the second channels fed back by the streaming media server, and determining that the obtained video stream of the second channel does not satisfy the preset smooth condition, determining the first number of channels The maximum number of requested video channels. If the video stream of the second channel is still smooth, perform more test of the number of channels until the video stream card is tested and the frame is stopped, and the number of the last smooth running is determined. The maximum number of ways. For example, when the fourth test is judged to be not smooth for the first time, the third pass of the third test is the maximum number of passes.
[0086] 本实施例, 通过在判定流畅之后, 自动增加测试路数, 再次进行流畅判断, 直 到判断为不流畅吋, 则自动判断上一次流畅状态吋的路数为最大路数; 本方案 具有自动化程度高, 测试效率高的效果。 需要说明的是, 权利要求描述的在第 二次测试吋即完成测试, 仅为使得权利要求书的描述简洁, 并不仅仅要求保护 在第二次测试即完成测试, 而应当理解为在后续的 N次测试中, 若结果与第一次 相同则继续测试, 若结果与第一次相反则, 第 N-1次测试的路数为最大路数。  [0086] In the embodiment, after the determination is smooth, the number of test paths is automatically increased, and the smooth judgment is performed again, until it is determined that the flow is not smooth, the number of the last smooth state is automatically determined as the maximum number of ways; High degree of automation and high test efficiency. It should be noted that the test described in the claims is completed in the second test, only to make the description of the claim concise, and not only to protect the test in the second test, but to understand that in the subsequent In the N test, if the result is the same as the first time, the test is continued. If the result is opposite to the first time, the number of the N-1th test is the maximum number of ways.
[0087] 优选的, 为了能够获得较为准确的测试结果, 可以设置相邻两次测试的路数差 别为 1路或 2路。 需要说明的是, 在进行测试吋, 可以是流媒体服务器真实与多 个监控视频设备连接, 并且获得实吋的监控视频流; 也可以是流媒体服务器和 模拟测试装置连接, 模拟测试装置模拟出若干数量的监控视频设备, 并且为每 个视频设备准备的视频流。  [0087] Preferably, in order to obtain a more accurate test result, the difference between the two adjacent tests may be set to one or two. It should be noted that, after the test, the streaming media server can be connected to a plurality of monitoring video devices and obtain a real monitoring video stream; or the streaming media server and the analog test device can be connected, and the simulation test device simulates A number of monitoring video devices, and a video stream prepared for each video device.
[0088] 请参看图 2, 本发明流媒体服务器性能测试方法第二实施例, 本实施例以第一 实施例为基础, 并对步骤 200作进一步说明: 步骤 S200, 所述根据所述自动测试 脚本, 计算接入流媒体服务器的视频设备数量第一路数, 向所述流媒体服务器 发出第一路数的视频流请求的步骤包括:  [0088] Please refer to FIG. 2, a second embodiment of a performance testing method for a streaming media server according to the present invention. This embodiment is based on the first embodiment, and further describes step 200: Step S200, according to the automatic testing. The script calculates a first number of video devices that access the streaming media server, and the step of sending the first video stream request to the streaming media server includes:
[0089] 步骤 S210, 获得所述自动测试脚本中预配的所述流媒体服务器所在的适配器的 速度 G1 ; 其中, 速度 G1可以是用户输入的, 也可以是根据自动检测方案自动检 测适配器而获得的。  [0089] Step S210, obtaining the speed G1 of the adapter where the streaming media server is pre-configured in the automatic test script; wherein the speed G1 may be input by the user, or may be obtained by automatically detecting the adapter according to the automatic detection scheme. of.
[0090] 步骤 S220, 获得所述自动测试脚本中预配的视频源文件的码流大小 G2; 其中 [0090] Step S220, obtaining a code stream size G2 of the video source file pre-configured in the automatic test script;
, 码流大小 G2可以是用户输入的, 也可以是自动检测视频源文件获得的。 , Code stream size G2 can be input by the user, or it can be obtained by automatically detecting the video source file.
[0091] 步骤 S230, 根据所述速度 Gl、 码流大小 G2和预设初始载荷 X<¾获得第一路数, 所述第一路数为 G1/G2*X<¾, 其中 X<¾为 SOy^ Oy^ 例如, 当 G为 1024M, M为 4[0091] Step S230, obtaining a first number of paths according to the speed G1, the code stream size G2, and a preset initial load X<3⁄4, where the first path number is G1/G2*X<3⁄4, where X<3⁄4 is SOy^ Oy^ For example, when G is 1024M, M is 4
M, 初始载荷 X%为 50%, 则第一路数为 128路。 M, the initial load X% is 50%, then the first number is 128.
[0092] 步骤 S240, 向所述流媒体服务器发出第一路数的视频流请求。 [0092] Step S240, sending a video stream request of the first number of channels to the streaming media server.
[0093] 本实施例, 通过获得适配器的速度, 以及视频源文件的码流, 并且根据初始载 荷来计算第一路数, 则能够使得第一次测试吋所采用的第一路数, 能够较为接 近最大路数, 达到减少测试次数而提高测试效率的效果。 [0093] In this embodiment, by obtaining the speed of the adapter, and the code stream of the video source file, and calculating the first number of paths according to the initial load, the first number of paths used in the first test can be made. Connect Nearly the maximum number of passes, the effect of reducing the number of tests and improving the test efficiency.
[0094] 优选的, 所述预设初始载荷 X%为 60%。 通常初始载荷 X%选择为 60%吋, 能够 通过较少的在测试次数而获得测试结果, 具有提高测试效率的效果。  [0094] Preferably, the preset initial load X% is 60%. Usually the initial load X% is chosen to be 60% 吋, and the test results can be obtained with fewer test times, which has the effect of improving test efficiency.
[0095] 请参看图 3, 本发明流媒体服务器性能测试方法第三实施例, 本实施例以第二 实施例为基础, 对步骤 S240进行详细说明; 具体的, 步骤 S240在所述向所述流 媒体服务器发出第一路数的视频流请求的步骤, 包括: [0095] Referring to FIG. 3, a third embodiment of a performance testing method for a streaming media server according to the present invention is provided. The present embodiment is described in detail based on the second embodiment, and step S240 is specifically described. Specifically, step S240 is performed in the manner described above. The streaming server sends out the first number of video stream request steps, including:
[0096] 步骤 S241 , 获得所述自动测试脚本中的设备类型; 其中, 至少获得主流的会话 初始协议 SIP (Session Initiation [0096] Step S241, obtaining a device type in the automatic test script; wherein, at least a mainstream session initial protocol SIP (Session Initiation) is obtained.
Protocol) , 如 GB28181设备等; 实吋流传输协议 RTSP (Real Time Streaming Protocol), 如 Onvif设备等。 设备类型和数量可以是用户输入的, 也可以是根据 自动检测方案而自动检测而获得的。  Protocol), such as GB28181 devices; Real Time Streaming Protocol (RTSP), such as Onvif devices. The type and amount of equipment can be either user-entered or automatically detected based on an automatic detection scheme.
[0097] 步骤 S242, 在所述自动测试脚本中包括 SIP设备视频和 RTSP设备视频吋, 根据 所述适配器的速度和 SIP设备视频的码流大小 G2获得初始 SIP设备视频路数 Tl= G1/G2*X%*0.5 , 以及根据所述适配器的速度和 RTSP设备视频的码流大小 G2'获 得初始 RTSP设备视频路数 T2= G1/G2'*X%*0.5。 其中, 由于同吋请求两种类型 的设备视频, 则每一种类型的视频只能取 1/2, 因此需要在初始载荷 T1* X%情况 下再乘以 0.5。 [0097] Step S242, the SIP device video and the RTSP device video are included in the automatic test script, and the initial SIP device video channel number Tl=G1/G2 is obtained according to the speed of the adapter and the code stream size G2 of the SIP device video. *X%*0.5, and the initial RTSP device video path number T2 = G1/G2'*X%*0.5 is obtained according to the speed of the adapter and the code stream size G2' of the RTSP device video. Among them, since the peers request two types of device video, each type of video can only take 1/2, so it needs to be multiplied by 0.5 in the initial load T1* X%.
[0098] 步骤 S243 , 同吋向所述流媒体服务器发出对应 SIP设备视频的第一路数 T1和对 应 RTSP设备视频的第一路数 T2。  [0098] Step S243: The peer sends the first path number T1 corresponding to the SIP device video and the first path number T2 corresponding to the RTSP device video to the streaming media server.
[0099] 例如, 当所述初始 SIP设备的数量 T1为 256*60%/2=76.8, 所述初始 RTSP设备的 数量 T2为 512*60%/2=153.6。 因此, 在第一次向服务器进行发出视频流请求吋, 请求 SIP设备视频 77 (进一法) 个, 请求 RTSP设备视频 154 (进一法) 个。 本实 施例对计算结果为非整数吋采用进一法, 在其他实施例中也可以采用四舍五入 或者退一法等。  [0099] For example, when the number T1 of the initial SIP devices is 256*60%/2=76.8, the number T2 of the initial RTSP devices is 512*60%/2=153.6. Therefore, after the first time a video stream request is made to the server, the SIP device video 77 (the first method) is requested, and the RTSP device video 154 (the first method) is requested. In this embodiment, the calculation result is a non-integer, and the other method is used. In other embodiments, the rounding or the first method may be used.
[0100] 在后续的步骤中, 分别针对 SIP视频流的第一路数以及 RTSP视频流的第一路数 进行测试; 当 SIP视频流的第一路数测试结果为流畅吋, 则请求对应 SIP视频流的 第二路数, 该第二路数大于对应第一路数; 当 RTSP视频流的第一路数测试结果 为流畅吋, 则请求对应 RTSP视频流的第二路数, 该第二路数大于对应第一路数 [0101] 当后续的第二轮测试吋, 同吋发出对 SIP视频流以及 RTSP视频流的第二路数请 求, 并且对接收的视频流进行相应的测试。 若对应 SIP视频流的第二路数测试结 果为流畅, 则请求 SIP视频流的第三路数; 若对应 RTSP视频流的第二路数测试结 果为不流畅, 则根据后续步骤判定上次的第一路数为对应 RTSP视频流的最大请 求视频路数。 并且在后续测试中在对 SIP视频流进行请求的同吋, 对 RTSP视频流 的请求路数始终为最大请求视频路数, 直到测试出所述 SIP视频流的最大请求视 频路数。 [0100] In the subsequent steps, the first path number of the SIP video stream and the first path number of the RTSP video stream are respectively tested; when the first path number test result of the SIP video stream is smooth, the corresponding SIP is requested. The second number of the video stream, the second number of channels is greater than the corresponding first number of channels; when the first path number of the RTSP video stream is fluent, the second number of corresponding RTSP video streams is requested, the second The number of channels is greater than the corresponding number of channels [0101] When the subsequent second round of testing, the second number of requests for the SIP video stream and the RTSP video stream are sent, and the received video stream is tested accordingly. If the test result of the second path of the corresponding SIP video stream is smooth, request the third path of the SIP video stream; if the test result of the second path corresponding to the RTSP video stream is not smooth, determine the last time according to the subsequent steps. The first number is the maximum number of requested video channels corresponding to the RTSP video stream. And in the subsequent test, in the request for the SIP video stream, the number of requests for the RTSP video stream is always the maximum number of requested video channels until the maximum number of requested video channels of the SIP video stream is tested.
[0102] 当后续测试中, 获得对应 SIP视频流的最大请求视频路数, 以及对应 RTSP视频 流的最大请求视频路数吋, 结束整个测试。  [0102] In the subsequent test, the maximum number of requested video channels corresponding to the SIP video stream and the maximum number of requested video channels corresponding to the RTSP video stream are obtained, and the entire test is ended.
[0103] 本实施例, 在测试场景中包括 SIP设备视频和 RTSP设备视频吋, 能够发出包括 混合类型的请求, 并且在测试吋分别对 SIP视频流和 RTSP视频流进行流畅测试, 则能够获得单独类型的评价。 本实施例从而能测试主流 SIP设备视频和 RTSP设备 视频, 则具有通用性强的效果。 并且, 在测试吋能模拟实际应用吋复杂的多协 议设备组合的场景, 能够获得较为真实的测试结果。 [0103] In this embodiment, the SIP device video and the RTSP device video are included in the test scenario, and the request including the hybrid type can be issued, and the SIP video stream and the RTSP video stream are separately tested in the test, and then the individual can be obtained. Type of evaluation. In this embodiment, the mainstream SIP device video and the RTSP device video can be tested, and the versatility is strong. Moreover, in the scenario where the test can simulate the actual application of a complex multi-protocol device combination, more realistic test results can be obtained.
[0104] 请参看图 4, 优选的, 判断所获第 N路数 _第一或者第二路数 _的视频流是否满 足预设流畅条件的步骤包括: [0104] Referring to FIG. 4, preferably, the step of determining whether the video stream of the Nth path number _ the first or the second number of paths _ satisfies the preset fluency condition includes:
[0105] 步骤 S700, 按预设测试配置对所述第 N路数的视频流进行至少一次抽检测试。 [0105] Step S700: Perform at least one sampling test on the video stream of the Nth channel according to a preset test configuration.
[0106] 步骤 S710, 若每一次抽检测试都满足预设流畅条件, 则判定所获第 N路数的视 频流满足预设流畅条件。 [0106] Step S710: If each of the sampling tests meets the preset fluency condition, it is determined that the obtained N-th channel video stream satisfies the preset fluency condition.
[0107] 其中, 以当前测试设备的性能, 抽检的数量可以采用第 N路数的 20<¾~30%, 最 大数量为 30个视频流同吋播放测试; 当然, 在设备性能提高以后, 可以采用更 多的视频流来同吋播放测试, 甚至是从流媒体服务器请求多少路视频流, 则播 放测试多少路视频流。 [0107] wherein, according to the performance of the current test equipment, the number of sampling tests can be 20<3⁄4~30% of the number of Nth channels, and the maximum number is 30 video streams of the same playing test; of course, after the performance of the device is improved, With more video streams to play the test, even how many video streams are requested from the streaming server, how many video streams are tested.
[0108] 本处以最大 30路视频为例的测试设备为例来进行说明: [0108] This section uses a test device with a maximum of 30 channels as an example to illustrate:
[0109] 例如, 当第一路数为 60路吋, 抽检测试 20%则为 12路, 对请求的第一路数视频 流进行三次测试, 每次测试挑选 60路中的随机 12路进行测试。 当三次测试结果 皆为流畅吋, 判定第一路数满足预设流畅条件。 [0110] 当第二路数为 150路吋, 抽检测试 20%则为 30路; 对请求的第二路数视频流进 行三次测试, 每次测试挑选 150路中的随机 30路进行测试。 当三次测试结果皆为 流畅吋, 判定第二路数满足预设流畅条件。 [0109] For example, when the number of the first way is 60 way, the test of 20% is 12 way, and the first channel of the requested video stream is tested three times, and each test selects a random 12 way of 60 channels for testing. . When the results of the three tests are all smooth, it is determined that the first number of passes satisfies the preset fluency condition. [0110] When the number of the second way is 150 way, the test of 20% of the test is 30 way; the test of the requested second number of video streams is performed three times, and each test selects 30 of the 150 channels for testing. When the results of the three tests are all smooth, it is determined that the second number of paths meets the preset fluency condition.
[0111] 当第三路数为 300路吋, 抽检测试 20%则为 60路; 对请求的第二路数视频流进 行三次测试, 由于设备限制只能最多测试 30路, 则每次测试挑选 300路中的随机 30路进行测试。 当三次测试结果任意一次为不流畅吋, 则判定第三路数不满足 预设流畅条件。  [0111] When the number of the third way is 300, and the test is 20%, the number is 60; for the requested second video stream, three tests are performed, and since the device limit can only test up to 30, each test is selected. Random 30 of the 300 roads were tested. When the results of the three tests are not smooth at any time, it is determined that the third number does not satisfy the preset fluency condition.
[0112] 本实施例, 通过采用抽检测试的方法, 从而避免对测试设备的性能要求过高, 导致成本太高。  [0112] In this embodiment, by adopting the method of sampling test, the performance requirement of the test equipment is prevented from being too high, and the cost is too high.
[0113] 请参看图 5, 优选的, 对步骤 S700中随机抽检一次的步骤进行详细说明;  Referring to FIG. 5, preferably, the steps of randomly sampling once in step S700 are described in detail;
[0114] 步骤 S701, 获得所述第 N路数所请求视频流对应的设备及其数量 M, 生成对应[0114] Step S701: Obtain a device corresponding to the video stream requested by the Nth channel and the number M thereof, and generate a corresponding
M个所述设备的设备编号, 并且形成数组 ID[M]。 M device numbers of the devices, and form an array ID [M].
[0115] 步骤 S702, 通过用于生成种子的第一函数生成种子, 并且通过用于产生 0~M区 间随机整数的第二函数计算所述种子而生成小于 M的随机整数, 并且将所述随机 整数形成数组 Number[i]。 其中, 第一函数可以采用 smndO函数; 通常可以利用 系统吋间来改变系统的种子值, 即 srand(time(NULL)) ; 第二函数可以采用 randO %M, 则: [0115] step S702, generating a seed by using a first function for generating a seed, and generating a random integer smaller than M by calculating the seed by a second function for generating a 0~M interval random integer, and the random The integer forms an array Numbe r [i]. Among them, the first function can use the smndO function; usually the system can be used to change the seed value of the system, namely srand(time(NULL)) ; the second function can use randO %M, then:
[0116] Number[i] = int (rand(srand(time(NULL)))%M)  [0116] Number[i] = int (rand(srand(time(NULL)))%M)
[0117] 通过上式, 可以获得小于第 N路数个随机整数, 例如按照上述的例子, 获得第 N路数的 20<¾~30<¾或者至多 30个随机整数。  [0117] By the above equation, a random integer smaller than the Nth channel can be obtained. For example, according to the above example, 20<3⁄4~30<3⁄4 or at most 30 random integers of the Nth number are obtained.
[0118] 步骤 S703, 通过所述 ID[M]结合所述 Number[i], 获得对应所述第 N路数的设备 抽检编号的 ID[Number[i]], 并且按照所述 ID[Number[i]]进行测试, 用以获得所述 第 N路数的一次抽检测试结果。 [0118] step S703, the ID by the [M] binding the Numbe r [i], to obtain the device ID corresponding to the sampling number N of the number of ways [Numbe r [i]], and in accordance with the ID [ Numbe r [i]] is tested to obtain a single-pass test result of the Nth number.
[0119] 例如, 当第 N路数为第一路数, 第一路数 M为 15, 按照 20%来进行抽检, 则 mnd (srand(time(NULL)))<¾M获得了 1、 2、 5三个数, 则第一 ID[Number[i]]包括 1、 2、 5三个编号, 从而将 15个请求视频流中对应编号 1, 编号 2和编号 5的视频流进行 测试, 并且获得一次测试结果。 若根据配置, 需要完成三次测试, 才能对第一 路数进行评估, 则再按照上述步骤, 进行第二次和第三次测试。 [0120] 当然, 结合上述实施例, 在存在多种设备吋, 可以针对每种设备按照该方法来 计算当前需要请求哪些编号设备的视频。 例如, SIP视频流需要请求 64个, RTSP 视频流需要请求 64个。 进一步的, 通过第一函数和第二函数计算获得随机的 64* 20%个 SIP视频流的设备编号, 并且获得随机的 64*20%个 RTSP视频流的设备编 号, 从而构成对应 13个 SIP视频流和 13个 RTSP视频流的测试。 [0119] For example, when the number of Nth channels is the first number of paths, and the number of first ways M is 15, and sampling is performed according to 20%, mnd (srand(time(NULL)))<3⁄4M obtains 1, 2, 5 three numbers, then the first ID [Number[i]] includes 1, 2, 5 three numbers, so that the video streams corresponding to number 1, number 2 and number 5 in the 15 request video streams are tested and obtained One test result. If you need to complete three tests according to the configuration, you can evaluate the first number of paths, and then follow the above steps to perform the second and third tests. [0120] Of course, in combination with the above embodiments, in the presence of multiple devices, it is possible to calculate, for each device, which videos of the numbered devices are currently required to be requested according to the method. For example, a SIP video stream requires 64 requests and an RTSP video stream requires 64 requests. Further, the device number of the random 64*20% SIP video stream is obtained by using the first function and the second function, and the device number of the random 64*20% RTSP video stream is obtained, thereby forming 13 corresponding SIP videos. Stream and test of 13 RTSP video streams.
[0121] 本实施例, 通过整理设备编号, 并且通过第一函数和第二函数计算获得对应设 备编号的随机数, 并且以该随机数作为抽检的目标, 则达到随机巡检的效果, 从而进一步增强了真实性, 提高了测试结果的可信度。  [0121] In this embodiment, by arranging the device number, and calculating the random number of the corresponding device number by using the first function and the second function, and using the random number as the target of the sampling, the effect of the random inspection is achieved, thereby further Enhance the authenticity and improve the credibility of the test results.
[0122] 优选的, 可以对流畅度的判断进行进一步的限定, 本实施例在进行是否满足流 畅条件的判断中, 采用以下方法来进行判断,  [0122] Preferably, the determination of the fluency can be further limited. In the determination of whether or not the fluency condition is satisfied, the following method is used for the determination.
[0123] 在预设吋间内, 所获第 N路数的视频流的视频延吋值小于预设的视频延吋阈值 , 并且所获第 N路数的视频流的丢包率值小于预设的丢包率阈值吋, 判定满足预 设流畅条件; 否则, 判定不满足预设流畅条件。 优选的, 预设吋间可以是 10秒 , 所述视频延吋阈值设置为 2秒, 丢包率阈值设置为 0.2%。  [0123] In the preset time, the video delay value of the video stream of the Nth number obtained is smaller than the preset video delay threshold, and the packet loss rate of the video stream of the Nth number obtained is smaller than the preset The set packet loss threshold 吋 determines that the preset fluency condition is met; otherwise, the determination does not satisfy the preset fluency condition. Preferably, the preset time interval may be 10 seconds, the video delay threshold is set to 2 seconds, and the packet loss rate threshold is set to 0.2%.
[0124] 即本实施例, 对是否流畅的判定条件进行了限定: 在预设吋间内, 所接收到的 反馈视频流的视频延吋值小于预设的视频延吋阈值, 并且所接收到的反馈视频 流的丢包率值小于预设的丢包率阈值吋, 判定满足预设流畅条件; 否则, 判定 不满足预设流畅条件。 本实施例, 通过检测视屏延吋值和丢包率值, 来判断是 否流畅, 具有判断容易的效果。  [0124] In this embodiment, the condition for determining whether the flow is smooth is limited: in the preset time, the video delay value of the received feedback video stream is less than the preset video delay threshold, and is received. The packet loss rate value of the feedback video stream is smaller than the preset packet loss rate threshold 吋, and the determination meets the preset fluency condition; otherwise, the determination does not satisfy the preset fluency condition. In this embodiment, by detecting the delay value of the screen and the value of the packet loss rate, it is judged whether or not the flow is smooth, and the judgment is easy.
[0125] 为了避免出现自动判断无法正常工作的情况, 优选的, 还可以增加人机交互的 备用方案。 具体的, 请参看下述方案。  [0125] In order to avoid the situation that the automatic judgment fails to work normally, it is preferable to increase the alternative scheme of human-computer interaction. Specifically, please refer to the following scheme.
[0126] 请参看图 6, 本发明流媒体服务器性能测试方法第四实施例, 本实施例以第一 实施例为基础, 对步骤 S300和步骤 S400进行详细说明:  [0126] Referring to FIG. 6, a fourth embodiment of a performance testing method for a streaming media server according to the present invention is provided. The present embodiment is based on the first embodiment, and the steps S300 and S400 are described in detail:
[0127] 步骤 S341, 在接收所述流媒体服务器反馈的第一路数的视频流, 将所接收的视 频流进行本地解码并播放。 其中, 可以是通过一接口将解码并播放的图像信息 传出, 供外接显示屏播放; 也可以是本机自带显示屏直接播放。  [0127] Step S341: Receive a video stream of the first number of channels fed back by the streaming media server, and locally decode and play the received video stream. Wherein, the decoded and played image information may be transmitted through an interface for external display display; or the device may directly play the display.
[0128] 步骤 S342, 在接收到输入的用于表示本地解码播放的图像清晰流畅的流畅评价 吋, 判定满足预设流畅条件。 其中, 用户可以目测后进行评价, 评价吋选中流 畅按钮, 从而触发流畅评价, 此吋判定满足预设流畅条件。 [0128] Step S342, after receiving the input smooth indication that the image decoded by the local decoding is clear and smooth, it is determined that the preset smooth condition is satisfied. Among them, the user can perform the evaluation after visual inspection, and evaluate the selected flow. A smooth button triggers a smooth evaluation, which determines that the preset fluency condition is met.
[0129] 步骤 S343, 结束当前视频流请求, 并且向所述流媒体服务器发出第二路数的视 频流请求, 其中, 所述第二路数大于所述第一路数。  [0129] Step S343, ending the current video stream request, and sending a second number of video stream requests to the streaming media server, where the second number of paths is greater than the first number of channels.
[0130] 步骤 S400包括: [0130] Step S400 includes:
[0131] 步骤 S411 , 在接收所述流媒体服务器反馈的第二路数的视频流, 将所接收的视 频流进行本地解码并播放。  [0131] Step S411: Receive a second video stream that is fed back by the streaming media server, and locally decode and play the received video stream.
[0132] 步骤 S421, 在接收到输入的用于表示本地解码播放的图像不清晰流畅的流畅评 价吋, 判定不满足预设流畅条件。 [0132] Step S421: After receiving the input smooth indication that the image decoded by the local decoding is unclear and smooth, it is determined that the preset smooth condition is not satisfied.
[0133] 步骤 S431 , 判定所述第一路数为最大请求视频路数。 [0133] Step S431, determining that the first number of channels is the maximum number of requested video channels.
[0134] 即本实施例提供的流媒体服务器性能测试方法, 还包括步骤: [0134] That is, the streaming media server performance testing method provided in this embodiment further includes the following steps:
[0135] 在接收到所述流媒体服务器反馈的视频流吋, 将所接收的视频流进行本地解码 并播放。 [0135] After receiving the video stream fed back by the streaming server, the received video stream is locally decoded and played.
[0136] 并且, 在判定满足预设流畅条件的步骤具体包括:  [0136] Moreover, the step of determining that the preset fluency condition is met specifically includes:
[0137] 在接收到输入的用于表示本地解码播放的图像清晰流畅的流畅评价吋, 判定满 足预设流畅条件; 否则, 判定为不满足预设流畅条件。 本实施例, 通过提供了 一种人工评价的方案, 增强了稳定性, 避免设备无法正常自动判断吋而无法工 作。  [0137] Upon receiving the input smooth indication for the clear and smooth image of the locally decoded play, it is determined that the preset smooth condition is satisfied; otherwise, it is determined that the preset smooth condition is not satisfied. In this embodiment, by providing a manual evaluation scheme, the stability is enhanced, and the device cannot be automatically judged automatically and cannot work.
[0138] 在实际测试吋, 还会存在第一次测试的第一路数视频流不流畅的情况, 在该情 况下, 可以采用下述方案进行测试。  [0138] In the actual test, there is also a case where the first video stream of the first test is not smooth, and in this case, the following scheme can be used for testing.
[0139] 请参看图 7, 本发明流媒体服务器性能测试方法第五实施例, 本实施例以第一 实施例为基础, 新增了步骤 S500和步骤 S600; 并且对步骤 S300进行了详细说明 [0139] Referring to FIG. 7, a fifth embodiment of the performance testing method of the streaming media server of the present invention is provided. In this embodiment, based on the first embodiment, steps S500 and S600 are added; and step S300 is described in detail.
[0140] 步骤 S300包括: [0140] Step S300 includes:
[0141] 步骤 S350, 接收所述流媒体服务器反馈的第一路数的视频流。  [0141] Step S350: Receive a video stream of the first number of paths fed back by the streaming media server.
[0142] 步骤 S351, 判断是否所获第一路数的视频流满足预设流畅条件。 若是, 则 执行步骤 S352, 若否, 则执行步骤 S500。  [0142] Step S351: Determine whether the obtained video stream of the first path satisfies the preset fluency condition. If yes, go to step S352, if no, go to step S500.
[0143] 步骤 S352, 结束当前视频流请求, 并且向所述流媒体服务器发出第二路数的视 频流请求, 其中, 所述第二路数大于所述第一路数。 [0144] 步骤 S400, 在接收所述流媒体服务器反馈的第二路数的视频流, 并且判定所获 第二路数的视频流不满足预设流畅条件吋, 判定所述第一路数为最大请求视频 路数。 [0143] Step S352, ending the current video stream request, and sending a second channel number of video stream request to the streaming media server, where the second path number is greater than the first path number. [0144] Step S400: After receiving the video stream of the second number of channels fed back by the streaming media server, and determining that the obtained video stream of the second number of paths does not meet the preset smooth condition, determining that the first number of paths is The maximum number of requested video channels.
[0145] 步骤 S500, 结束当前视频流请求, 并且向所述流媒体服务器发出第三路数的视 频流请求, 其中, 所述第三路数小于所述第一路数。  [0145] Step S500, ending the current video stream request, and sending a third channel of the video stream request to the streaming media server, where the third path number is smaller than the first path number.
[0146] 步骤 S600, 在接收所述流媒体服务器反馈的第三路数的视频流, 并且判断所获 第三路数的视频流满足预设流畅条件吋, 判定所述第三路数为最大请求视频路 数。 其中, 本实施例以第三路数的视频流为流畅为例, 但是在实际测试吋, 会 存在更多次测试, 例如在第六次采用第六路数的视频流吋, 才首次流畅, 则判 定第六路数为最大路数。  [0146] Step S600, receiving a third channel of the video stream fed back by the streaming media server, and determining that the obtained third channel of the video stream meets the preset fluency condition, determining that the third channel number is the largest. Request video number. In this embodiment, the video stream of the third way is used as an example, but in actual testing, there will be more tests, for example, the video stream flowing with the sixth number in the sixth time is smooth for the first time. Then, the number of sixth paths is determined to be the maximum number of ways.
[0147] 即本实施例相对于第一实施例, 还包括另一路方案:  [0147] That is, the embodiment further includes another route scheme relative to the first embodiment:
[0148] 在接收所述流媒体服务器反馈的第一路数的视频流, 并且判断所获第一路数的 视频流不满足预设流畅条件吋, 结束当前视频流请求, 并且向所述流媒体服务 器发出第三路数的视频流请求, 其中, 所述第三路数小于所述第一路数。  [0148] receiving the video stream of the first number of channels fed back by the streaming media server, and determining that the obtained video stream of the first path does not satisfy the preset smooth condition, ending the current video stream request, and forwarding the current video stream to the stream The media server sends a third channel video stream request, where the third channel number is smaller than the first channel number.
[0149] 在接收所述流媒体服务器反馈的第三路数的视频流, 并且判断所获第三路数的 视频流满足预设流畅条件吋, 判定所述第三路数为最大请求视频路数。  [0149] receiving a third channel of the video stream fed back by the streaming media server, and determining that the obtained third channel of the video stream meets the preset fluency condition, determining that the third channel number is the maximum request video path number.
[0150] 本实施例, 能够测试在第一路数视频流不流畅吋的情况, 因此, 具有适用范围 更广的效果。 需要说明的是, 在上述任一实施例的改进, 在没有明显冲突的情 况下, 皆可以适用于本实施例。 例如在发出请求之前, 对根据设备类型进行按 比例分配, 进行随机抽检, 进行本地解码并播放, 根据用户输入来判定是否流 畅, 根据视频延吋值和掉帧率值来判定是否流畅等。  [0150] In this embodiment, it is possible to test that the video stream in the first channel is not smooth, and therefore, it has a wider range of effects. It should be noted that the improvement of any of the above embodiments can be applied to the present embodiment without any obvious conflict. For example, before the request is made, the device is proportionally distributed, random sampling is performed, local decoding is performed, and playback is performed. According to the user input, it is determined whether the flow is smooth, and whether the video delay value and the frame drop rate value are used to determine whether the flow is smooth or the like.
[0151] 本实施例, 通过在判定不流畅之后, 自动减少测试路数, 再次进行流畅判断, 直到判断为流畅吋, 则自动判断上当次流畅状态吋的路数为最大路数; 本方案 具有自动化程度高, 测试效率高的效果。 需要说明的是, 权利要求描述的在第 二次测试吋即完成测试, 仅为使得权利要求书的描述简洁, 并不仅仅要求保护 在第二次测试即完成测试, 而应当理解为在后续的 N次测试中, 若结果与第一次 相同则继续测试, 若结果与第一次相反则, 第 N次测试的路数为最大路数。  [0151] In the embodiment, after the determination is not smooth, the number of test paths is automatically reduced, and the smooth judgment is performed again, until it is determined that the flow is smooth, the number of the roads in the current smooth state is automatically determined as the maximum number of ways; High degree of automation and high test efficiency. It should be noted that the test described in the claims is completed in the second test, only to make the description of the claim concise, and not only to protect the test in the second test, but to understand that in the subsequent In the N test, if the result is the same as the first time, the test is continued. If the result is opposite to the first time, the number of ways of the Nth test is the maximum number of ways.
[0152] 对应上述方法方案, 本具体实施方式还提供了对应的装置方案: [0153] 请参看图 8, 一种流媒体服务器性能测试装置, 用于模拟客户端测试流媒体服 务器的最大请求视频路数, 所述流媒体服务器 1000, 包括: [0152] Corresponding to the above method solution, the specific embodiment further provides a corresponding device solution: [0153] Referring to FIG. 8, a streaming media server performance testing device is configured to simulate a maximum number of requested video channels of a client test streaming media server. The streaming media server 1000 includes:
[0154] 输入模块 1100, 用于获得自动测试脚本; 其中, 测试脚本可以由用户输入, 也 可以通过自动检测方案而自动检测流媒体服务器而获得。 测试脚本的内容可以 包括数据传输最大速度、 连接的监控视频设备数量、 连接的设备类型、 自动判 定流程、 用户判定流畅和初始发起的测试路数等。  [0154] The input module 1100 is configured to obtain an automatic test script. The test script may be input by a user, or may be obtained by automatically detecting a streaming server by an automatic detection scheme. The content of the test script can include the maximum speed of data transmission, the number of connected monitoring video devices, the type of connected device, the automatic determination process, the smoothness of user decisions, and the number of test paths initially initiated.
[0155] 第一请求模块 1200, 用于根据所述自动测试脚本, 计算接入流媒体服务器的视 频设备数量第一路数, 控制请求执行模块向所述流媒体服务器发出第一路数的 视频流请求; 其中, 第一路数可以是任意数, 例如 1、 50或 100等, 也可以是来 自计算, 例如根据连接的设备数量的 60%幵始测试。  [0155] The first requesting module 1200 is configured to calculate, according to the automatic test script, a first number of video devices that access the streaming media server, and control the request execution module to send a video of the first number of channels to the streaming media server. The flow request; wherein, the first way may be any number, for example 1, 50 or 100, etc., or may be from a calculation, for example, based on 60% of the number of connected devices.
[0156] 第二请求模块 1300, 用于在接收所述流媒体服务器反馈的第一路数的视频流吋 , 控制流畅判断模块判断所述第一路数的视频流是否流畅; 在判定所获第一路 数的视频流满足预设流畅条件吋, 结束当前视频流请求, 并且增加接入流媒体 服务器的视频设备的数量为第二路数吋, 控制请求执行模块向所述流媒体服务 器发出第二路数的视频流请求。 其中, 预设流畅条件, 可以包括判定条件: 包 丢失、 帧丢失是否达到阈值; 帧完整性、 帧间隔是否达到阈值等等。  [0156] The second requesting module 1300 is configured to: after receiving the video stream of the first number of channels fed back by the streaming media server, control the smoothness determining module to determine whether the video stream of the first number of channels is smooth; The first channel of the video stream meets the preset fluency condition, the current video stream request is ended, and the number of video devices accessing the streaming media server is increased to a second number, and the control request execution module sends the stream server to the streaming server. The second number of video stream requests. The preset fluency condition may include a determination condition: whether the packet is lost, whether the frame loss reaches a threshold, whether the frame integrity, the frame interval reaches a threshold, or the like.
[0157] 第一判定模块 1400, 用于在接收所述流媒体服务器反馈的全部第二路数的视频 流吋, 控制流畅判断模块判断所述第二路数的视频流是否流畅; 在判定所获第 二路数的视频流不满足预设流畅条件吋, 判定所述第一路数为最大请求视频路 数。 其中, 若第二路数的视频流依然流畅, 则进行更多路数的测试, 直到测试 出视频流卡顿掉帧等状态吋停止, 并且判定最后一次流畅运行的路数为最大路 数。 例如当第四次测试吋首次判断为不流畅吋, 则第三次测试吋的第三路数为 最大路数。  [0157] The first determining module 1400 is configured to: after receiving the video stream of all the second channels fed back by the streaming media server, control the smoothness determining module to determine whether the video stream of the second number of channels is smooth; The video stream that obtains the second number does not satisfy the preset smooth condition, and determines that the first number of channels is the maximum number of requested video channels. If the video stream of the second channel is still smooth, the test of more channels is performed until the video stream card is tested and the frame is stopped, and the number of the last smooth running is determined as the maximum number of channels. For example, when the fourth test is judged as not smooth for the first time, the third way of the third test is the maximum number of passes.
[0158] 请求执行模块 1500, 用于在接收到控制指令吋, 根据预设请求配置发出视频流 请求。  [0158] The request execution module 1500 is configured to, when receiving the control instruction, configure to issue a video stream request according to the preset request.
[0159] 流畅判断模块 1600, 用于在接收到控制指令吋, 判断视频流是否满足预设流畅 条件。  [0159] The smooth judgment module 1600 is configured to determine whether the video stream satisfies the preset fluency condition after receiving the control command.
[0160] 本实施例, 通过在判定流畅之后, 自动增加测试路数, 再次进行流畅判断, 直 到判断为不流畅吋, 则自动判断上一次流畅状态吋的路数为最大路数; 本方案 具有自动化程度高, 测试效率高的效果。 需要说明的是, 权利要求描述的在第 二次测试吋即完成测试, 仅为使得权利要求书的描述简洁, 并不仅仅要求保护 在第二次测试即完成测试, 而应当理解为在后续的 N次测试中, 若结果与第一次 相同则继续测试, 若结果与第一次相反则, 第 N-1次测试的路数为最大路数。 [0160] In this embodiment, after the determination is smooth, the number of test paths is automatically increased, and the smooth judgment is performed again. When it is judged that it is not smooth, it automatically judges that the number of the last smooth state is the maximum number of ways; This scheme has the effect of high automation and high test efficiency. It should be noted that the test described in the claims is completed in the second test, only to make the description of the claim concise, and not only to protect the test in the second test, but to understand that in the subsequent In the N test, if the result is the same as the first time, the test is continued. If the result is opposite to the first time, the number of the N-1th test is the maximum number of ways.
[0161] 优选的, 为了能够获得较为准确的测试结果, 相邻两次测试的路数差别为 1路 或 2路。 需要说明的是, 在进行测试吋, 可以是流媒体服务器真实与多个监控视 频设备连接, 并且获得实吋的监控视频流; 也可以是流媒体服务器和模拟测试 装置连接, 模拟测试装置模拟出若干数量的监控视频设备, 并且为每个视频设 备准备的视频流。  [0161] Preferably, in order to obtain a more accurate test result, the difference of the number of ways of the two adjacent tests is 1 way or 2 way. It should be noted that, after the test, the streaming media server can be connected to a plurality of monitoring video devices and obtain a real monitoring video stream; or the streaming media server and the analog test device can be connected, and the simulation test device simulates A number of monitoring video devices, and a video stream prepared for each video device.
[0162] 请参看图 9, 优选的, 所述第一请求模块 1200包括:  [0162] Referring to FIG. 9, the first request module 1200 includes:
[0163] 第一速度单元 1210, 用于获得所述自动测试脚本中预配的所述流媒体服务器所 在的适配器的速度 G1 ; 其中, 速度 G1可以是用户输入的, 也可以是根据自动检 测方案自动检测适配器而获得的。  [0163] The first speed unit 1210 is configured to obtain a speed G1 of an adapter where the streaming server that is pre-configured in the automatic test script is located, where the speed G1 may be input by a user, or may be according to an automatic detection scheme. Obtained by automatically detecting the adapter.
[0164] 第二速度单元 1220, 用于获得所述自动测试脚本中预配的视频源文件的码流大 小 G2; 其中, 码流大小 G2可以是用户输入的, 也可以是自动检测视频源文件获 得的。 [0164] The second speed unit 1220 is configured to obtain a code stream size G2 of the video source file that is pre-configured in the automatic test script. The code stream size G2 may be input by a user, or may automatically detect the video source file. acquired.
[0165] 路数单元 1230, 用于根据所述速度 Gl、 码流大小 G2和预设初始载荷 X<¾获得第 一路数, 所述第一路数为 G1/G2*X<¾, 其中 X<¾为 SOy^ Oy^ 例如, 当 G为 1024 M, M为 4M, 初始载荷 X%为 50%, 则第一路数为 128路。  [0165] The number of cells 1230 is configured to obtain a first number of paths according to the speed G1, the code stream size G2, and a preset initial load X<3⁄4, where the first number of paths is G1/G2*X<3⁄4, where X<3⁄4 is SOy^ Oy^ For example, when G is 1024 M, M is 4M, and the initial load X% is 50%, the first number is 128.
[0166] 请求单元 1240, 用于控制请求执行模块 1500向所述流媒体服务器发出第一路数 的视频流请求。  [0166] The requesting unit 1240 is configured to control the request execution module 1500 to send a first channel number of video stream requests to the streaming media server.
[0167] 本实施例, 通过获得适配器的速度, 以及视频源文件的码流, 并且根据初始载 荷来计算第一路数, 则能够使得第一次测试吋所采用的第一路数, 能够较为接 近最大路数, 达到减少测试次数而提高测试效率的效果。  [0167] In this embodiment, by obtaining the speed of the adapter, the code stream of the video source file, and calculating the first number of paths according to the initial load, the first number of paths used in the first test can be made. Close to the maximum number of ways, to reduce the number of tests and improve the efficiency of testing.
[0168] 优选的, 所述预设初始载荷 X%为 60%。 通常初始载荷 X%选择为 60%吋, 能够 通过较少的在测试次数而获得测试结果, 具有提高测试效率的效果。  [0168] Preferably, the preset initial load X% is 60%. Usually the initial load X% is chosen to be 60% 吋, and the test results can be obtained with fewer test times, which has the effect of improving test efficiency.
[0169] 优选的, 所述请求单元 1240具体用于: [0170] 获得所述自动测试脚本中的设备类型; 其中, 至少获得主流的会话初始协议 SI P (Session Initiation [0169] Preferably, the requesting unit 1240 is specifically configured to: [0170] obtaining a device type in the automatic test script; wherein, at least a mainstream session initiation protocol SI P (Session Initiation) is obtained
Protocol) , 如 GB28181设备等; 实吋流传输协议 RTSP (Real Time Streaming Protocol), 如 Onvif设备等。 设备类型和数量可以是用户输入的, 也可以是根据 自动检测方案而自动检测而获得的。  Protocol), such as GB28181 devices; Real Time Streaming Protocol (RTSP), such as Onvif devices. The type and amount of equipment can be either user-entered or automatically detected based on an automatic detection scheme.
[0171] 在所述自动测试脚本中包括 SIP设备视频和 RTSP设备视频吋, 根据所述适配器 的速度和 SIP设备视频的码流大小 G2获得初始 SIP设备视频路数 Tl= [0171] the SIP device video and the RTSP device video are included in the automatic test script, and the initial SIP device video channel number is obtained according to the speed of the adapter and the code stream size G2 of the SIP device video. Tl=
G1/G2*X%*0.5 , 以及根据所述适配器的速度和 RTSP设备视频的码流大小 G2'获 得初始 RTSP设备视频路数 T2= G1/G2'*X%*0.5。 其中, 由于同吋请求两种类型 的设备视频, 则每一种类型的视频只能取 1/2, 因此需要在初始载荷 T1* X%情况 下再乘以 0.5。  G1/G2*X%*0.5, and the number of video channels of the initial RTSP device based on the speed of the adapter and the stream size of the RTSP device video G2' T2 = G1/G2'*X%*0.5. Among them, since the peers request two types of device video, each type of video can only take 1/2, so it needs to be multiplied by 0.5 in the initial load T1* X%.
[0172] 同吋向所述流媒体服务器发出对应 SIP设备视频的第一路数 T1和对应 RTSP设备 视频的第一路数 T2。  [0172] The peer sends the first path number T1 corresponding to the SIP device video and the first path number T2 corresponding to the RTSP device video to the streaming media server.
[0173] 例如, 当所述初始 SIP设备的数量 T1为 256*60%/2=76.8, 所述初始 RTSP设备的 数量 T2为 512*60%/2=153.6。 因此, 在第一次向服务器进行发出视频流请求吋, 请求 SIP设备视频 77 (进一法) 个, 请求 RTSP设备视频 154 (进一法) 个。 本实 施例对计算结果为非整数吋采用进一法, 在其他实施例中也可以采用四舍五入 或者退一法等。  [0173] For example, when the number T1 of the initial SIP devices is 256*60%/2=76.8, the number T2 of the initial RTSP devices is 512*60%/2=153.6. Therefore, after the first time a video stream request is made to the server, the SIP device video 77 (the first method) is requested, and the RTSP device video 154 (the first method) is requested. In this embodiment, the calculation result is a non-integer, and the other method is used. In other embodiments, the rounding or the first method may be used.
[0174] 在后续的步骤中, 分别针对 SIP视频流的第一路数以及 RTSP视频流的第一路数 进行测试; 当 SIP视频流的第一路数测试结果为流畅吋, 则请求对应 SIP视频流的 第二路数, 该第二路数大于对应第一路数; 当 RTSP视频流的第一路数测试结果 为流畅吋, 则请求对应 RTSP视频流的第二路数, 该该第二路数大于对应第一路 数。  [0174] In the subsequent steps, the first path number of the SIP video stream and the first path number of the RTSP video stream are tested respectively; when the first path number test result of the SIP video stream is smooth, the corresponding SIP is requested. The second number of the video stream, the second number of channels is greater than the corresponding first number of channels; when the first path number of the RTSP video stream is fluent, the second number of corresponding RTSP video streams is requested, the first The number of two channels is greater than the number of corresponding first channels.
[0175] 当后续的第二轮测试吋, 同吋发出对 SIP视频流以及 RTSP视频流的第二路数请 求, 并且对接收的视频流进行相应的测试。 若对应 SIP视频流的第二路数测试结 果为流畅, 则请求 SIP视频流的第三路数; 若对应 RTSP视频流的第二路数测试结 果为不流畅, 则根据后续步骤判定上次的第一路数为对应 RTSP视频流的最大请 求视频路数。 并且在后续测试中在对 SIP视频流进行请求的同吋, 对 RTSP视频流 的请求路数始终为最大请求视频路数, 直到测试出所述 SIP视频流的最大请求视 频路数。 [0175] When the subsequent second round of testing, the peer sends out a second way request for the SIP video stream and the RTSP video stream, and performs corresponding tests on the received video stream. If the test result of the second path of the corresponding SIP video stream is smooth, request the third path of the SIP video stream; if the test result of the second path corresponding to the RTSP video stream is not smooth, determine the last time according to the subsequent steps. The first number is the maximum number of requested video channels corresponding to the RTSP video stream. And in the subsequent test, the request for the SIP video stream, the RTSP video stream The number of request paths is always the maximum number of requested video channels until the maximum number of requested video channels of the SIP video stream is tested.
[0176] 当后续测试中, 获得对应 SIP视频流的最大请求视频路数, 以及对应 RTSP视频 流的最大请求视频路数吋, 结束整个测试。  [0176] In the subsequent test, the maximum number of requested video channels corresponding to the SIP video stream and the maximum number of requested video channels corresponding to the RTSP video stream are obtained, and the entire test is ended.
[0177] 本实施例, 在测试场景中包括 SIP设备视频和 RTSP设备视频吋, 能够发出包括 混合类型的请求, 并且在测试吋分别对 SIP视频流和 RTSP视频流进行流畅测试, 则能够获得单独类型的评价。 本实施例从而能测试主流 SIP设备视频和 RTSP设备 视频, 则具有通用性强的效果。 并且, 在测试吋能模拟实际应用吋复杂的多协 议设备组合的场景, 能够获得较为真实的测试结果。  [0177] In this embodiment, the SIP device video and the RTSP device video are included in the test scenario, and the request including the hybrid type can be issued, and the SIP video stream and the RTSP video stream are respectively tested smoothly after the test, and then the individual can be obtained. Type of evaluation. In this embodiment, the mainstream SIP device video and the RTSP device video can be tested, and the versatility is strong. Moreover, in the scenario where the test can simulate the actual application of a complex multi-protocol device combination, more realistic test results can be obtained.
[0178] 请参看图 10, 所述流畅判断模块 1600包括:  [0178] Referring to FIG. 10, the smooth judgment module 1600 includes:
[0179] 抽测单元 1610, 用于按预设测试配置对第 N路数 _第一或者第二路数 _的视频 流中的部分进行至少一次测试。  [0179] The sampling unit 1610 is configured to perform at least one test on a portion of the video stream of the Nth number_first or second number _ according to a preset test configuration.
[0180] 流畅判定单元 1620, 用于若每一次测试都满足预设流畅条件, 则判定所获第 N 路数的视频流满足预设流畅条件。 [0180] The smoothness determining unit 1620 is configured to determine that the video stream of the Nth number obtained meets the preset smooth condition if the preset smooth condition is met for each test.
[0181] 其中, 以当前测试设备的性能, 抽检的数量可以采用第 N路数的 20<¾~30%, 最 大数量为 30个视频流同吋播放测试; 当然, 在设备性能提高以后, 可以采用更 多的视频流来同吋播放测试, 甚至是从流媒体服务器请求多少路视频流, 则播 放测试多少路视频流。 [0181] wherein, according to the performance of the current test equipment, the number of sampling tests may be 20<3⁄4~30% of the number of Nth channels, and the maximum number is 30 video streams of the same playing test; of course, after the performance of the device is improved, With more video streams to play the test, even how many video streams are requested from the streaming server, how many video streams are tested.
[0182] 本处以最大 30路视频为例的测试设备为例来进行说明: [0182] The following is an example of a test device with a maximum of 30 channels of video as an example:
[0183] 例如, 当第一路数为 60路吋, 抽检测试 20%则为 12路, 对请求的第一路数视频 流进行三次测试, 每次测试挑选 60路中的随机 12路进行测试。 当三次测试结果 皆为流畅吋, 判定第一路数满足预设流畅条件。  [0183] For example, when the number of the first way is 60 way, the test of 20% of the test is 12 way, and the first channel of the requested video stream is tested three times, and each of the tests selects a random 12 way of 60 channels for testing. . When the results of the three tests are all smooth, it is determined that the first number of passes meets the preset fluency condition.
[0184] 当第二路数为 150路吋, 抽检测试 20%则为 30路; 对请求的第二路数视频流进 行三次测试, 每次测试挑选 150路中的随机 30路进行测试。 当三次测试结果皆为 流畅吋, 判定第二路数满足预设流畅条件。  [0184] When the number of the second way is 150, and the 20% of the test is 30, the test is performed three times for the requested second video stream, and each of the tests selects a random one of the 150 channels for testing. When the results of the three tests are all smooth, it is determined that the second number of paths meets the preset fluency condition.
[0185] 当第三路数为 300路吋, 抽检测试 20%则为 60路; 对请求的第二路数视频流进 行三次测试, 由于设备限制只能最多测试 30路, 则每次测试挑选 300路中的随机 30路进行测试。 当三次测试结果任意一次为不流畅吋, 则判定第三路数不满足 预设流畅条件。 [0185] When the number of the third way is 300, and the test is 20%, the number is 60; for the requested second video stream, three tests are performed, and since the device limit can only test up to 30, each test is selected. Random 30 of the 300 roads were tested. When the results of the three tests are not smooth at any time, it is determined that the third number is not satisfied. Preset fluency conditions.
[0186] 本实施例, 通过采用抽检测试的方法, 从而避免对测试设备的性能要求过高, 导致成本太高。  [0186] In this embodiment, by adopting the method of sampling test, the performance requirement of the test equipment is prevented from being too high, and the cost is too high.
[0187] 优选的, 所述抽测单元 1610的一次随机抽检步骤包括:  [0187] Preferably, a random sampling step of the sampling unit 1610 includes:
[0188] 获得所述第 N路数所请求视频流对应的设备及其数量 M, 生成对应 M个所述设 备的设备编号, 并且形成数组 ID[M] ; 其中, 设备的数量 M可以是用户输入的, 也可以是根据自动检测方案而自动检测获得的。 [0188] Obtaining the device corresponding to the requested video stream of the Nth channel and the number M thereof, generating a device number corresponding to the M devices, and forming an array ID [M] ; wherein the number M of devices may be a user The input can also be automatically detected according to the automatic detection scheme.
[0189] 通过用于生成种子的第一函数生成种子, 并且通过用于产生 0~M区间随机整数 的第二函数计算所述种子而生成小于 M的随机整数, 并且将所述随机整数形成数 组 Number[i] ; 其中, 第一函数可以采用 smndO函数; 通常可以利用系统吋间来 改变系统的种子值, 即 srand(time(NULL)); 第二函数可以采用 randO^M, 贝 1J : [0189] generating a seed by a first function for generating a seed, and generating a random integer smaller than M by calculating the seed by a second function for generating a 0-M interval random integer, and forming the random integer into an array Numbe r [i] ; where the first function can use the smndO function; usually the system can be used to change the seed value of the system, namely srand(time(NULL)); the second function can use randO^M, Bay 1J:
[0190] Number[i] = int (rand(srand(time(NULL)))%M)  [0190] Number[i] = int (rand(srand(time(NULL)))%M)
[0191] 通过上式, 可以获得小于第 N路数个随机整数, 例如按照上述的例子, 获得第 [0191] By using the above formula, a number of random integers smaller than the Nth channel can be obtained, for example, according to the above example,
N路数的 20<¾~30<¾或者至多 30个随机整数。 20<3⁄4~30<3⁄4 or up to 30 random integers for the number of N channels.
[0192] 通过所述 ID[M]结合所述 Number[i], 获得对应所述第 N路数的设备抽检编号 ID[[0192] by the ID [M] binding the Numbe r [i], to obtain the corresponding N-th of the sampling device large ones ID ID [
Number[i]], 并且按照所述 ID[Number[i]]进行测试, 用以获得所述第 N路数的一 次抽检测试结果。 Number[i]], and tested according to the ID [Number[i]], to obtain a single test result of the Nth number.
[0193] 例如, 当第 N路数为第一路数, 第一路数 M为 15, 按照 20%来进行抽检, 则 mnd (srand(time(NULL)))<¾M获得了 1、 2、 5三个数, 则第一 ID[Number[i]]包括 1、 2、 [0193] For example, when the number of Nth channels is the first number of paths, and the number of first ways M is 15, and sampling is performed according to 20%, then mnd (srand(time(NULL)))<3⁄4M obtains 1, 2, 5 three numbers, then the first ID [Number[i]] includes 1, 2
5三个编号, 从而将 15个请求视频流中对应编号 1, 编号 2和编号 5的视频流进行 测试, 并且获得一次测试结果。 若根据配置, 需要完成三次测试, 才能对第一 路数进行评估, 则再按照上述步骤, 进行第二次和第三次测试。 5 three numbers, so that the video streams corresponding to number 1, number 2 and number 5 in the 15 request video streams are tested, and a test result is obtained. If you need to complete three tests according to the configuration, you can evaluate the first number of paths, and then follow the above steps to perform the second and third tests.
[0194] 当然, 结合上述实施例, 在存在多种设备吋, 可以针对每种设备按照该方法来 计算当前需要请求哪些编号设备的视频。 例如, SIP视频流需要请求 64个, RTSP 视频流需要请求 64个。 进一步的, 通过第一函数和第二函数计算获得随机的 64* 20%个 SIP视频流的设备编号, 并且获得随机的 64*20%个 RTSP视频流的设备编 号, 从而构成对应 13个 SIP视频流和 13个 RTSP视频流的测试。  [0194] Of course, in combination with the above embodiments, in the presence of multiple devices, it is possible to calculate, for each device, which videos of the numbered devices are currently required to be requested according to the method. For example, a SIP video stream requires 64 requests and an RTSP video stream requires 64 requests. Further, the device number of the random 64*20% SIP video stream is obtained by using the first function and the second function, and the device number of the random 64*20% RTSP video stream is obtained, thereby forming 13 corresponding SIP videos. Stream and test of 13 RTSP video streams.
[0195] 本实施例, 通过整理设备编号, 并且通过第一函数和第二函数计算获得对应设 备编号的随机数, 并且以该随机数作为抽检的目标, 则达到随机巡检的效果, 从而进一步增强了真实性, 提高了测试结果的可信度。 [0195] In this embodiment, by arranging the device number, and calculating the corresponding device by using the first function and the second function The random number of the number is prepared, and the random number is used as the target of the sampling, and the effect of the random inspection is achieved, thereby further enhancing the authenticity and improving the credibility of the test result.
[0196] 优选的, 所述流畅判断模块 1600判断所获第 N路数的视频流是否满足预设流畅 条件的步骤具体包括:  [0196] Preferably, the step of determining, by the smoothness determining module 1600, whether the obtained video stream of the Nth channel meets the preset fluency condition comprises:
[0197] 在预设吋间内, 所获第 N路数的视频流的视频延吋值小于预设的视频延吋阈值 , 并且所获第 N路数的视频流的丢包率值小于预设的丢包率阈值吋, 判定满足预 设流畅条件; 否则, 判定不满足预设流畅条件。 优选的, 预设吋间可以是 10秒 , 所述视频延吋阈值设置为 2秒, 丢包率阈值设置为 0.2%。  [0197] In the preset time, the video delay value of the video stream of the Nth number obtained is smaller than the preset video delay threshold, and the packet loss rate of the video stream of the Nth number obtained is smaller than the preset value. The set packet loss threshold 吋 determines that the preset fluency condition is met; otherwise, the determination does not satisfy the preset fluency condition. Preferably, the preset time interval may be 10 seconds, the video delay threshold is set to 2 seconds, and the packet loss rate threshold is set to 0.2%.
[0198] 即本实施例, 对是否流畅的判定条件进行了限定: 在预设吋间内, 所接收到的 反馈视频流的视频延吋值小于预设的视频延吋阈值, 并且所接收到的反馈视频 流的丢包率值小于预设的丢包率阈值吋, 判定满足预设流畅条件; 否则, 判定 不满足预设流畅条件。 本实施例, 通过检测视屏延吋值和丢包率值, 来判断是 否流畅, 具有判断容易的效果。  [0198] In this embodiment, the condition for determining the smoothness is limited: in the preset time, the video delay value of the received feedback video stream is smaller than the preset video delay threshold, and is received. The packet loss rate value of the feedback video stream is smaller than the preset packet loss rate threshold 吋, and the determination meets the preset fluency condition; otherwise, the determination does not satisfy the preset fluency condition. In this embodiment, by detecting the delay value of the screen and the value of the packet loss rate, it is judged whether or not the flow is smooth, and the judgment is easy.
[0199] 为了避免出现自动判断无法正常工作的情况, 优选的, 还可以增加人机交互的 备用方案。 具体的, 请参看下述方案。  [0199] In order to avoid the situation that the automatic judgment fails to work normally, it is preferable to increase the standby scheme of human-computer interaction. Specifically, please refer to the following scheme.
[0200] 优选的, 所述流媒体服务器性能测试装置, 还包括:  [0200] Preferably, the streaming media server performance testing device further includes:
[0201] 播放模块 1700, 用于在接收到所述流媒体服务器反馈的视频流吋, 将所接收的 视频流进行本地解码并播放。 其中, 可以是通过一接口将解码并播放的图像信 息传出, 供外接显示屏播放; 也可以是本机自带显示屏直接播放。  [0201] The playing module 1700 is configured to: after receiving the video stream fed back by the streaming server, locally decode and play the received video stream. Among them, the decoded and played image information can be transmitted through an interface for external display display; or the machine can directly play the display.
[0202] 所述流畅判断模块 1600判断判定是否满足预设流畅条件的步骤具体包括: [0203] 在接收到输入的用于表示本地解码播放的图像清晰流畅的流畅评价吋, 判定满 足预设流畅条件; 否则, 判定为不满足预设流畅条件。 其中, 用户可以目测后 进行评价, 评价吋选中流畅按钮, 从而触发流畅评价, 此吋判定满足预设流畅 条件。 [0202] The step of determining, by the smooth judgment module 1600, whether the preset fluency condition is met specifically includes: [0203] determining that the preset smoothness is satisfied after receiving the input of the smooth and smooth evaluation of the image for local decoding and playing Condition; otherwise, it is determined that the preset fluency condition is not satisfied. Among them, the user can perform the evaluation after visual inspection, and the evaluation selects the smooth button, thereby triggering the smooth evaluation, and the determination determines that the preset smooth condition is satisfied.
[0204] 本实施例, 通过提供了一种人工评价的方案, 增强了稳定性, 避免设备无法正 常自动判断吋而无法工作。  [0204] In this embodiment, by providing a manual evaluation scheme, stability is enhanced, and the device is prevented from being unable to work normally and automatically cannot be operated.
[0205] 在实际测试吋, 还会存在第一次测试的第一路数视频流不流畅的情况, 在该情 况下, 可以采用下述方案进行测试。 [0206] 优选的, 所述第二请求模块 1300, 还用于在接收所述流媒体服务器反馈的第一 路数的视频流, 并且判断所获第一路数的视频流不满足预设流畅条件吋, 结束 当前视频流请求, 并且控制请求执行模块 1500向所述流媒体服务器发出第三路 数的视频流请求, 其中, 所述第三路数小于所述第一路数。 [0205] In the actual test, there is also a case where the first channel video stream of the first test is not smooth, and in this case, the following scheme can be used for testing. [0206] Preferably, the second request module 1300 is further configured to: receive a video stream of the first number of channels fed back by the streaming media server, and determine that the obtained video stream of the first path does not meet the preset smoothness. Condition 吋, ending the current video stream request, and the control request execution module 1500 sends a third channel number of video stream requests to the streaming media server, wherein the third path number is less than the first path number.
[0207] 第二判定模块 1800, 用于在接收所述流媒体服务器反馈的第三路数的视频流吋 , 控制流畅判断模块 1600判断所述第三路数的视频流是否流畅, 在判定所获第 三路数的视频流满足预设流畅条件吋, 判定所述第三路数为最大请求视频路数 。 其中, 本实施例以第三路数的视频流为流畅为例, 但是在实际测试吋, 会存 在更多次测试, 例如在第六次采用第六路数的视频流吋, 才首次流畅, 则判定 第六路数为最大路数。  [0207] The second determining module 1800 is configured to: after receiving the video stream of the third channel number fed back by the streaming media server, control the smoothness determining module 1600 to determine whether the video stream of the third channel number is smooth, The video stream obtained by the third channel satisfies the preset smooth condition, and the third channel number is determined to be the maximum number of requested video channels. In this embodiment, the video stream of the third way is used as an example, but in actual testing, there will be more tests, for example, the video stream flowing with the sixth number in the sixth time is smooth for the first time. Then, the number of sixth paths is determined to be the maximum number of ways.
[0208] 本实施例, 能够测试在第一路数视频流不流畅吋的情况, 因此, 具有适用范围 更广的效果。 需要说明的是, 在上述根据第一路数和第二路数测试步骤改进, 在没有明显冲突的情况下, 皆可以适用于本实施例的第三路数测试, 以及第三 路数测试而未获得测试结果, 从那之后进行的后续测试。 例如在发出请求之前 , 对根据设备类型进行按比例分配, 进行随机抽检, 进行本地解码并播放, 根 据用户输入来判定是否流畅, 根据视频延吋值和掉帧率值来判定是否流畅等。  [0208] In this embodiment, it is possible to test that the video stream in the first channel is not smooth, and therefore, it has a wider range of effects. It should be noted that, in the above-mentioned improvement according to the first path number and the second path number test step, in the case of no obvious conflict, the third path number test and the third way number test in this embodiment can be applied. No test results were obtained, and subsequent tests were performed after that. For example, before the request is made, the device is proportionally distributed, random sampling is performed, local decoding is performed, and playback is performed. According to the user input, it is determined whether the flow is smooth, and whether the video delay value and the frame drop rate value are used to determine whether the flow is smooth or the like.
[0209] 需要说明的是, 在本文中, 术语"包括"、 "包含 "或者其任何其他变体意在涵盖 非排他性的包含, 从而使得包括一系列要素的过程、 方法、 物品或者装置不仅 包括那些要素, 而且还包括没有明确列出的其他要素, 或者是还包括为这种过 程、 方法、 物品或者装置所固有的要素。 在没有更多限制的情况下, 由语句 "包 括一个 ...... "限定的要素, 并不排除在包括该要素的过程、 方法、 物品或者装置 中还存在另外的相同要素。  [0209] It is to be noted that the terms "comprising", "including", or any other variants thereof are intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes Those elements, but also other elements not explicitly listed, or elements that are inherent to such a process, method, item or device. An element defined by the phrase "comprises a ..." without further restrictions does not exclude the presence of additional elements in the process, method, article, or device that comprises the element.
[0210] 上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。  [0210] The foregoing serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
[0211] 通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到上述实施例 方法可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本 质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计 算机软件产品存储在一个存储介质 (如 ROM/RAM、 磁碟、 光盘) 中, 包括若干 指令用以使得一台终端设备 (可以是移动终端, 计算机, 服务器, 空调器, 或 者网络设备等) 执行本发明各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former It is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, In the CD), including several The instructions are for causing a terminal device (which may be a mobile terminal, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
[0212] 以上仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本 发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运用在 其他相关的技术领域, 均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the contents of the drawings may be directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present invention.
工业实用性  Industrial applicability
[0213] 本发明所提供的流媒体服务器性能测试方法和装置, 通过在判定流畅之后, 自 动增加测试路数, 再次进行流畅判断, 直到判断为不流畅吋, 则自动判断上一 次流畅状态吋的路数为最大路数; 本方案具有自动化程度高, 测试效率高的效 果。  [0213] The streaming media server performance testing method and apparatus provided by the present invention automatically increases the number of test paths after the determination is smooth, and performs smooth judgment again, until it is determined that the flow is not smooth, and the last smooth state is automatically determined. The number of roads is the maximum number of roads; this scheme has the effect of high automation and high test efficiency.

Claims

权利要求书 Claim
[权利要求 1] 一种流媒体服务器性能测试方法, 用于模拟客户端测试流媒体服务器 的最大请求视频路数, 其特征在于, 包括如下步骤:  [Claim 1] A streaming media server performance testing method, which is used to simulate a maximum number of requested video channels of a client test streaming server, and is characterized by the following steps:
获得自动测试脚本;  Get an automated test script;
根据所述自动测试脚本, 计算接入流媒体服务器的视频设备数量第一 路数, 向所述流媒体服务器发出第一路数的视频流请求;  And calculating, according to the automatic test script, a first number of video devices that access the streaming media server, and sending a first video stream request to the streaming media server;
在接收所述流媒体服务器反馈的第一路数的视频流, 并且判断所获第 一路数的视频流满足预设流畅条件吋, 结束当前视频流请求, 并且增 加接入流媒体服务器的视频设备的数量为第二路数吋, 向所述流媒体 服务器再次发出全部第二路数的视频流请求;  Receiving the first channel of the video stream fed back by the streaming media server, and determining that the obtained first channel of the video stream meets the preset smooth condition, ending the current video stream request, and increasing the video of the access streaming server The number of devices is the second number of channels, and the second stream of video stream requests are sent again to the streaming server;
在接收所述流媒体服务器反馈的全部第二路数的视频流, 并且判定所 获第二路数的视频流不满足预设流畅条件吋, 判定所述第一路数为最 大请求视频路数。  After receiving the video stream of all the second channels fed back by the streaming media server, and determining that the obtained video stream of the second channel does not meet the preset smooth condition, determining that the first number of channels is the maximum number of requested video channels .
[权利要求 2] 如权利要求 1所述的流媒体服务器性能测试方法, 其特征在于, 所述 根据所述自动测试脚本, 计算接入流媒体服务器的视频设备数量第一 路数的步骤包括:  [Claim 2] The method for testing the performance of the streaming media server according to claim 1, wherein the step of calculating the first number of video devices accessing the streaming media server according to the automatic test script includes:
获得所述自动测试脚本中预配的所述流媒体服务器所在的适配器的速 度 G1 ;  Obtaining a speed G1 of an adapter where the streaming server is pre-configured in the automatic test script;
获得所述自动测试脚本中预配的视频源文件的码流大小 G2;  Obtaining a code stream size G2 of the video source file pre-configured in the automatic test script;
根据所述速度 Gl、 码流大小 G2和预设初始载荷 X%获得第一路数, 所 述第一路数为 G1/G2*X<¾, 其中 X<¾为 SOy^ O^;  Obtaining a first number of paths according to the speed G1, a code stream size G2, and a preset initial load X%, where the first number of paths is G1/G2*X<3⁄4, where X<3⁄4 is SOy^O^;
向所述流媒体服务器发出第一路数的视频流请求。  Sending a first number of video stream requests to the streaming server.
[权利要求 3] 如权利要求 2所述的流媒体服务器性能测试方法, 其特征在于, 向所 述流媒体服务器发出第一路数的视频流请求的步骤包括: [Claim 3] The streaming media server performance testing method according to claim 2, wherein the step of issuing a first number of video stream requests to the streaming server comprises:
获得所述自动测试脚本中的设备类型;  Obtaining the type of device in the automatic test script;
在所述自动测试脚本中包括 SIP设备视频和 RTSP设备视频吋, 根据所 述适配器的速度和 SIP设备视频的码流大小 G2获得初始 SIP设备视频 路数 T1=G1/G2*X%*0.5, 以及根据所述适配器的速度和 RTSP设备视 频的码流大小 G2'获得初始 RTSP设备视频路数 T2=G1/G2' *X%*0.5; 同吋向所述流媒体服务器发出对应 SIP设备视频的第一路数 T1和对应 RTSP设备视频的第一路数 T2。 The SIP device video and the RTSP device video are included in the automatic test script, and the initial SIP device video channel number T1=G1/G2*X%*0.5 is obtained according to the speed of the adapter and the code stream size G2 of the SIP device video. And depending on the speed of the adapter and the RTSP device Frequency code stream size G2' obtains the initial RTSP device video channel number T2=G1/G2'*X%*0.5; simultaneously sends the first channel number T1 corresponding to the SIP device video and the corresponding RTSP device video to the streaming media server The first number of roads is T2.
[权利要求 4] 如权利要求 1所述的流媒体服务器性能测试方法, 其特征在于, 判断 所获第一或者第二路数的视频流是否满足预设流畅条件的步骤包括: 按预设测试配置对所述第一或者第二路数的视频流进行至少一次抽检 测试; [Claim 4] The streaming media server performance testing method according to claim 1, wherein the step of determining whether the obtained first or second number of video streams meets a preset smooth condition comprises: pressing a preset test Configuring to perform at least one sampling test on the first or second number of video streams;
若每一次抽检测试都满足预设流畅条件, 则判定所获第一或者第二路 数的视频流满足预设流畅条件。  If each of the sampling tests satisfies the preset fluency condition, it is determined that the obtained first or second number of video streams satisfy the preset fluency condition.
[权利要求 5] 如权利要求 4所述的流媒体服务器性能测试方法, 其特征在于, 按预 设测试配置对所述第一或者第二路数的视频流进行一次抽检测试的步 骤包括: [Claim 5] The streaming media server performance testing method according to claim 4, wherein the step of performing a sampling test on the first or second number of video streams according to the preset test configuration comprises:
获得所述第一或者第二路数所请求视频流对应的设备及其数量 Μ, 生 成对应 Μ个所述设备的设备编号, 并且形成数组 ID[M] ; Obtaining the device corresponding to the video stream requested by the first or second number of channels and the number thereof, generating a device number corresponding to the devices, and forming an array ID [M] ;
通过用于生成种子的第一函数生成种子, 并且通过用于产生 0~M区间 随机整数的第二函数计算所述种子而生成小于 M的随机整数, 并且将 所述随机整数形成数组 Number[i];  Generating a seed by a first function for generating a seed, and generating a random integer smaller than M by calculating the seed by a second function for generating a 0-M interval random integer, and forming the random integer into an array Number[i ];
通过所述 ID[M]结合所述 Number[i], 获得对应所述第一或者第二路数 的设备抽检编号 ID[Number[i]], 并且按照所述 ID[Number[i]]进行测试By the ID [M] binding the Numbe r [i], corresponding to the first or second obtaining large ones sampling device ID ID [Number [i]], and in accordance with the ID [Number [i]] carry out testing
, 用以获得所述第一或者第二路数的一次抽检测试结果。 And obtaining a single-draw test result of the first or second number of paths.
[权利要求 6] 如权利要求 1所述的流媒体服务器性能测试方法, 其特征在于, 判断 所获第一或者第二路数的视频流是否满足预设流畅条件的步骤具体包 括: [Claim 6] The streaming media server performance testing method according to claim 1, wherein the step of determining whether the obtained first or second number of video streams meets a preset fluency condition comprises:
在预设吋间内, 所获第一或者第二路数的视频流的视频延吋值小于预 设的视频延吋阈值, 并且所获第一或者第二路数的视频流的丢包率值 小于预设的丢包率阈值吋, 判定满足预设流畅条件; 否则, 判定不满 足预设流畅条件。  In the preset time, the video delay value of the obtained first or second number of video streams is smaller than a preset video delay threshold, and the packet loss rate of the first or second number of obtained video streams is obtained. If the value is less than the preset packet loss threshold 吋, the determination meets the preset fluency condition; otherwise, the determination does not satisfy the preset fluency condition.
[权利要求 7] 如权利要求 1所述的流媒体服务器性能测试方法, 其特征在于, 所述 流媒体服务器性能测试方法, 还包括步骤: [Claim 7] The streaming media server performance testing method according to claim 1, wherein The streaming media server performance testing method also includes the steps:
在接收到所述流媒体服务器反馈的视频流吋, 将所接收的视频流进行 本地解码并播放;  Receiving the video stream fed back by the streaming media server, locally decoding and playing the received video stream;
判定满足预设流畅条件的步骤具体包括:  The steps of determining that the preset fluency condition is met specifically include:
在接收到输入的用于表示本地解码播放的图像清晰流畅的流畅评价吋 , 判定满足预设流畅条件; 否则, 判定为不满足预设流畅条件。  After receiving the input of the smooth and smooth evaluation of the image for local decoding playback, it is determined that the preset smooth condition is satisfied; otherwise, it is determined that the preset smooth condition is not satisfied.
[权利要求 8] 如权利要求 1所述的流媒体服务器性能测试方法, 其特征在于, 所述 流媒体服务器性能测试方法, 还包括步骤:  [Claim 8] The streaming media server performance testing method according to claim 1, wherein the streaming media server performance testing method further comprises the steps of:
在接收所述流媒体服务器反馈的第一路数的视频流, 并且判断所获第 一路数的视频流不满足预设流畅条件吋, 结束当前视频流请求, 并且 减少接入流媒体服务器的视频设备的数量为第三路数吋, 向所述流媒 体服务器再次发出全部第三路数的视频流请求; 在接收所述流媒体服务器反馈的全部第三路数的视频流, 并且判断所 获第三路数的视频流满足预设流畅条件吋, 判定所述第三路数为最大 请求视频路数。  Receiving a video stream of the first number of channels fed back by the streaming media server, and determining that the obtained video stream of the first path does not satisfy the preset smooth condition, ending the current video stream request, and reducing access to the streaming media server The number of video devices is a third way, and the third stream video stream request is sent again to the streaming server; and all third channel video streams fed back by the streaming server are received, and the The video stream obtained by the third channel satisfies the preset smooth condition, and the third channel number is determined to be the maximum number of requested video channels.
[权利要求 9] 一种流媒体服务器性能测试装置, 用于模拟客户端测试流媒体服务器 的最大请求视频路数, 其特征在于, 包括:  [Claim 9] A streaming media server performance testing device, which is configured to simulate a maximum number of requested video channels of a client test streaming server, and is characterized by:
输入模块, 用于获得自动测试脚本;  An input module for obtaining an automatic test script;
第一请求模块, 用于根据所述自动测试脚本, 计算接入流媒体服务器 的视频设备数量第一路数, 控制请求执行模块向所述流媒体服务器发 出第一路数的视频流请求;  a first requesting module, configured to calculate, according to the automatic test script, a first number of video devices that access the streaming media server, and control a request execution module to send a first video stream request to the streaming media server;
第二请求模块, 用于在接收所述流媒体服务器反馈的第一路数的视频 流吋, 控制流畅判断模块判断所述第一路数的视频流是否流畅; 在判 定所获第一路数的视频流满足预设流畅条件吋, 结束当前视频流请求 , 并且增加接入流媒体服务器的视频设备的数量为第二路数吋, 控制 请求执行模块向所述流媒体服务器再次发出全部第二路数的视频流请 求;  a second requesting module, configured to: after receiving the video stream of the first number of channels fed back by the streaming media server, the control smoothness determining module determines whether the video stream of the first number of channels is smooth; determining the first number of paths obtained The video stream satisfies the preset smooth condition, ends the current video stream request, and increases the number of video devices accessing the streaming server to the second number, and the control request execution module sends all the seconds to the streaming server again. Video stream request for the number of channels;
第一判定模块, 用于在接收所述流媒体服务器反馈的全部第二路数的 视频流吋, 控制流畅判断模块判断所述第二路数的视频流是否流畅; 在判定所获第二路数的视频流不满足预设流畅条件吋, 判定所述第一 路数为最大请求视频路数; a first determining module, configured to receive all the second paths of the feedback from the streaming server The video streamer, the control smoothness determining module determines whether the video stream of the second number of channels is smooth; and determines that the first channel number is the maximum request after determining that the obtained second channel number of video streams does not satisfy the preset smooth condition Number of video channels;
请求执行模块, 用于在接收到控制指令吋, 根据预设请求配置发出视 频流请求;  a request execution module, configured to: after receiving the control command, configure to send a video stream request according to the preset request;
流畅判断模块, 用于在接收到控制指令吋, 判断视频流是否满足预设 流畅条件。  The smooth judgment module is configured to determine whether the video stream meets the preset fluency condition after receiving the control command.
[权利要求 10] 如权利要求 9所述的流媒体服务器性能测试装置, 其特征在于, 所述 第一请求模块包括:  [Claim 10] The streaming server performance testing apparatus according to claim 9, wherein the first request module comprises:
第一速度单元, 用于获得所述自动测试脚本中预配的所述流媒体服务 器所在的适配器的速度 G1 ;  a first speed unit, configured to obtain a speed G1 of an adapter where the streaming server pre-configured in the automatic test script is located;
第二速度单元, 用于获得所述自动测试脚本中预配的视频源文件的码 流大小 G2;  a second speed unit, configured to obtain a code stream size G2 of the video source file pre-configured in the automatic test script;
路数单元, 用于根据所述速度 Gl、 码流大小 G2和预设初始载荷 X%获 得第一路数, 所述第一路数为 G1/G2*X<¾, 其中 X<¾为 SOy^ O^; 请求单元, 用于控制请求执行模块向所述流媒体服务器发出第一路数 的视频流请求。  a circuit number unit, configured to obtain a first path number according to the speed G1, a code stream size G2, and a preset initial load X%, where the first path number is G1/G2*X<3⁄4, where X<3⁄4 is SOy a request unit, configured to control a request execution module to send a first number of video stream requests to the streaming server.
[权利要求 11] 如权利要求 10所述的流媒体服务器性能测试装置, 其特征在于, 所述 请求单元具体用于:  [Claim 11] The streaming media server performance testing apparatus according to claim 10, wherein the requesting unit is specifically configured to:
获得所述自动测试脚本中的设备类型;  Obtaining the type of device in the automatic test script;
在所述自动测试脚本中包括 SIP设备视频和 RTSP设备视频吋, 根据所 述适配器的速度和 SIP设备视频的码流大小 G2获得初始 SIP设备视频 路数 T1=G1/G2*X%*0.5, 以及根据所述适配器的速度和 RTSP设备视 频的码流大小 G2'获得初始 RTSP设备视频路数 T2= G1/G2' *Χ%*0.5; 同吋向所述流媒体服务器发出对应 SIP设备视频的第一路数 T1和对应 RTSP设备视频的第一路数 T2。  The SIP device video and the RTSP device video are included in the automatic test script, and the initial SIP device video channel number T1=G1/G2*X%*0.5 is obtained according to the speed of the adapter and the code stream size G2 of the SIP device video. And obtaining the initial RTSP device video path number T2=G1/G2'*Χ%*0.5 according to the speed of the adapter and the code stream size G2' of the RTSP device video; simultaneously sending the corresponding SIP device video to the streaming media server. The first number T1 and the first number T2 of the corresponding RTSP device video.
[权利要求 12] 如权利要求 9所述的流媒体服务器性能测试装置, 其特征在于, 所述 流畅判断模块包括: 抽测单元, 用于按预设测试配置对当前路数的视频流中的部分进行至 少一次测试; [Claim 12] The streaming media server performance testing device according to claim 9, wherein the smooth judgment module comprises: a sampling unit, configured to perform at least one test on a portion of the video stream of the current number of channels according to a preset test configuration;
流畅判定单元, 用于若每一次测试都满足预设流畅条件, 则判定所获 当前路数的视频流满足预设流畅条件。  The fluency determining unit is configured to determine that the video stream of the obtained current number of paths satisfies the preset fluency condition if each of the tests satisfies the preset fluency condition.
[权利要求 13] 如权利要求 12所述的流媒体服务器性能测试装置, 其特征在于, 所述 抽测单元的按预设测试配置对当前路数的视频流中的部分进行一次测 试的步骤, 具体包括: [Claim 13] The streaming media server performance testing apparatus according to claim 12, wherein the step of performing a test on the portion of the video stream of the current number of channels by the sampling test unit according to the preset test configuration, Includes:
获得所述当前路数所请求视频流对应的设备及其数量 M, 生成对应 M 个所述设备的设备编号, 并且形成数组 ID[M] ; Obtaining the device corresponding to the video stream requested by the current number of channels and the number M thereof, generating a device number corresponding to the M devices, and forming an array ID [M] ;
通过用于生成种子的第一函数生成种子, 并且通过用于产生 0~M区间 随机整数的第二函数计算所述种子而生成小于 M的随机整数, 并且将 所述随机整数形成数组 Number[i];  Generating a seed by a first function for generating a seed, and generating a random integer smaller than M by calculating the seed by a second function for generating a 0-M interval random integer, and forming the random integer into an array Number[i ];
通过所述 ID[M]结合所述 Number[i], 获得对应所述当前路数的设备抽 检编号 ID[Number[i]], 并且按照所述 ID[Number[i]]进行测试, 用以获 得所述当前路数的一次抽检测试结果。 Combining the Numbe r [i] with the ID [M], obtaining a device sampling number ID [Number[i]] corresponding to the current number of channels, and performing testing according to the ID [Number[i]], Obtaining a single test result of the current number of passes.
[权利要求 14] 如权利要求 9所述的流媒体服务器性能测试装置, 其特征在于, 所述 流畅判断模块判断所获当前路数的视频流是否满足预设流畅条件的步 骤具体包括: [Claim 14] The device for testing the performance of the streaming media server according to claim 9, wherein the step of determining, by the smoothness determining module, whether the video stream of the current number of channels meets the preset fluency condition comprises:
在预设吋间内, 所获当前路数的视频流的视频延吋值小于预设的视频 延吋阈值, 并且所获当前路数的视频流的丢包率值小于预设的丢包率 阈值吋, 判定满足预设流畅条件; 否则, 判定不满足预设流畅条件。  In the preset time, the video delay value of the video stream obtained by the current number of channels is smaller than the preset video delay threshold, and the packet loss rate of the obtained current channel number is smaller than the preset packet loss rate. The threshold value 吋, the determination meets the preset fluency condition; otherwise, the determination does not satisfy the preset fluency condition.
[权利要求 15] 如权利要求 9所述的流媒体服务器性能测试装置, 其特征在于, 所述 流媒体服务器性能测试装置, 还包括: [Claim 15] The streaming media server performance testing device according to claim 9, wherein the streaming media server performance testing device further includes:
播放模块, 用于在接收到所述流媒体服务器反馈的视频流吋, 将所接 收的视频流进行本地解码并播放;  a playing module, configured to: after receiving the video stream fed back by the streaming media server, locally decoding and playing the received video stream;
所述流畅判断模块判断是否满足预设流畅条件的步骤具体包括: 在接收到输入的用于表示本地解码播放的图像清晰流畅的流畅评价吋 , 判定满足预设流畅条件; 否则, 判定为不满足预设流畅条件。 [权利要求 16] 如权利要求 9所述的流媒体服务器性能测试装置, 其特征在于, 所述 第二请求模块, 还用于在接收所述流媒体服务器反馈的第一路数的视 频流, 并且判断所获第一路数的视频流不满足预设流畅条件吋, 结束 当前视频流请求, 并且减少接入流媒体服务器的视频设备的数量为第 三路数吋, 控制请求执行模块向所述流媒体服务器再次发出全部第三 路数的视频流请求; The step of determining, by the smooth judgment module, whether the preset fluency condition is met specifically includes: determining that the preset smooth condition is satisfied after receiving the input of the smooth and smooth evaluation of the image for local decoding and playing; otherwise, determining that the content is not satisfied Preset fluency conditions. [Claim 16] The streaming media server performance testing apparatus according to claim 9, wherein the second requesting module is further configured to receive a first video stream that is fed back by the streaming media server, And determining that the obtained video stream of the first path does not satisfy the preset smooth condition, ending the current video stream request, and reducing the number of video devices accessing the streaming media server to a third number, and controlling the request execution module to the location The streaming media server sends out all the third-way video stream requests again;
所述流媒体服务器性能测试装置还包括:  The streaming media server performance testing device further includes:
第二判定模块, 用于在接收所述流媒体服务器反馈的全部第三路数的 视频流吋, 控制流畅判断模块判断所述第三路数的视频流是否流畅, 在判定所获第三路数的视频流满足预设流畅条件吋, 判定所述第三路 数为最大请求视频路数。  a second determining module, configured to receive a video stream of all the third channels that is fed back by the streaming media server, and control the smoothness determining module to determine whether the video stream of the third channel is smooth, and determine the obtained third channel The number of video streams meets the preset fluency condition, and the number of the third channels is determined to be the maximum number of requested video channels.
PCT/CN2016/112119 2016-12-26 2016-12-26 Method and device for testing performance of streaming media server WO2018119579A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112119 WO2018119579A1 (en) 2016-12-26 2016-12-26 Method and device for testing performance of streaming media server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112119 WO2018119579A1 (en) 2016-12-26 2016-12-26 Method and device for testing performance of streaming media server

Publications (1)

Publication Number Publication Date
WO2018119579A1 true WO2018119579A1 (en) 2018-07-05

Family

ID=62706530

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112119 WO2018119579A1 (en) 2016-12-26 2016-12-26 Method and device for testing performance of streaming media server

Country Status (1)

Country Link
WO (1) WO2018119579A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385557A (en) * 2018-12-27 2020-07-07 浙江宇视科技有限公司 Method and device for testing pressure of monitoring video stream and electronic equipment
CN112073597A (en) * 2020-08-14 2020-12-11 北京三快在线科技有限公司 Visual stability detection method, device, equipment and storage medium
CN112153410A (en) * 2020-09-30 2020-12-29 郑州信大捷安信息技术股份有限公司 High-concurrency testing method and system for streaming media service
CN113382233A (en) * 2021-06-10 2021-09-10 展讯通信(上海)有限公司 Method, system, medium and terminal for detecting video recording abnormity of terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072327A (en) * 2007-06-19 2007-11-14 中兴通讯股份有限公司 Flow media performance testing method
CN101083568A (en) * 2007-07-06 2007-12-05 中国人民解放军国防科学技术大学 Method for evaluating service capability of stream media server
CN101674492A (en) * 2008-09-09 2010-03-17 中兴通讯股份有限公司 Method and device for testing performance of stream media server
CN103401727A (en) * 2013-07-24 2013-11-20 佳都新太科技股份有限公司 Method, device and system for testing performance of streaming media server based on virtual DVR (digital video recorder)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072327A (en) * 2007-06-19 2007-11-14 中兴通讯股份有限公司 Flow media performance testing method
CN101083568A (en) * 2007-07-06 2007-12-05 中国人民解放军国防科学技术大学 Method for evaluating service capability of stream media server
CN101674492A (en) * 2008-09-09 2010-03-17 中兴通讯股份有限公司 Method and device for testing performance of stream media server
CN103401727A (en) * 2013-07-24 2013-11-20 佳都新太科技股份有限公司 Method, device and system for testing performance of streaming media server based on virtual DVR (digital video recorder)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385557A (en) * 2018-12-27 2020-07-07 浙江宇视科技有限公司 Method and device for testing pressure of monitoring video stream and electronic equipment
CN111385557B (en) * 2018-12-27 2022-02-01 浙江宇视科技有限公司 Method and device for testing pressure of monitoring video stream and electronic equipment
CN112073597A (en) * 2020-08-14 2020-12-11 北京三快在线科技有限公司 Visual stability detection method, device, equipment and storage medium
CN112153410A (en) * 2020-09-30 2020-12-29 郑州信大捷安信息技术股份有限公司 High-concurrency testing method and system for streaming media service
CN112153410B (en) * 2020-09-30 2022-02-22 郑州信大捷安信息技术股份有限公司 High-concurrency testing method and system for streaming media service
CN113382233A (en) * 2021-06-10 2021-09-10 展讯通信(上海)有限公司 Method, system, medium and terminal for detecting video recording abnormity of terminal

Similar Documents

Publication Publication Date Title
WO2018119579A1 (en) Method and device for testing performance of streaming media server
CN1756369B (en) Media speed conversion over a bandwidth-limited network
JP6582100B2 (en) Method and apparatus for providing voice service
US20090240833A1 (en) Method and Apparatus for Realizing Positioning Play of Content Stream in Peer-to-Peer Network
CN108769171A (en) The copy of distributed storage keeps verification method, device, equipment and storage medium
US20140243083A1 (en) Apparatus and method of providing cloud service using game platform based on streaming
US20150032797A1 (en) Distributed audio playback and recording
CN110769380A (en) Video distribution method and device
JP2014090379A (en) Remote conference storage system and remote conference storage method
WO2016118668A1 (en) Multiple protocol media streaming
CN109039959B (en) SDN rule consistency judgment method and related device
US20130262625A1 (en) Pipelining for parallel network connections to transmit a digital content stream
JP5742841B2 (en) Centralized control verification device, centralized control verification program, centralized control verification method
CN102714652B (en) Monitoring Data network comprises the conversational communication of multiple data flow
JP2008177719A (en) Method, device, program and system for monitoring viewing status
JP5137984B2 (en) Field network system
JP2017028507A (en) Moving image reproduction program, device, and method
CN109889922A (en) Retransmission method, device, equipment and the storage medium of stream medium data
JP4830419B2 (en) Moving picture viewing system, moving picture viewing apparatus, control method thereof, and program
CN110602515B (en) Data processing method based on block chain, server and storage medium
JP6385474B2 (en) Cloud streaming-based broadcast-linked service system, broadcast-linked service client device, trigger content providing server, and method using the same
JP2017168940A (en) Playback control program, conversion program, playback control device, terminal device, moving image playback system, playback control method, and conversion method
KR20240033134A (en) Method and system for reproducing audio using multi channel
KR102293878B1 (en) Method and apparatus for generating quality-of-service support blockchain
CN113271474A (en) Method, device, equipment and storage medium for testing streaming media server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16925100

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16925100

Country of ref document: EP

Kind code of ref document: A1