CN112153410A - High-concurrency testing method and system for streaming media service - Google Patents
High-concurrency testing method and system for streaming media service Download PDFInfo
- Publication number
- CN112153410A CN112153410A CN202011063161.7A CN202011063161A CN112153410A CN 112153410 A CN112153410 A CN 112153410A CN 202011063161 A CN202011063161 A CN 202011063161A CN 112153410 A CN112153410 A CN 112153410A
- Authority
- CN
- China
- Prior art keywords
- streaming media
- concurrent
- plug
- jmeter
- stream
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 78
- 238000012544 monitoring process Methods 0.000 claims abstract description 31
- 238000000034 method Methods 0.000 claims abstract description 27
- 238000013515 script Methods 0.000 claims abstract description 16
- 238000010998 test method Methods 0.000 claims abstract description 6
- 238000012795 verification Methods 0.000 claims description 17
- 230000002159 abnormal effect Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 4
- 238000012545 processing Methods 0.000 claims description 4
- 230000001186 cumulative effect Effects 0.000 claims 2
- 230000005540 biological transmission Effects 0.000 description 3
- 238000009530 blood pressure measurement Methods 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
- H04L65/401—Support for services or applications wherein the services involve a main real-time session and one or more additional parallel real-time or time sensitive sessions, e.g. white board sharing or spawning of a subconference
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23418—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2347—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
- H04N21/25875—Management of end-user data involving end-user authentication
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Computer Graphics (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The invention provides a high concurrency test method and a high concurrency test system for streaming media service, wherein the method comprises the following steps of: performing user-defined parameter operation and setting a plurality of plug-flow threads in the jmeter; writing a plurality of beaschell scripts by using a jmeter; recording a plurality of test video files, wherein each test video file is correspondingly associated with a beashell script; configuring the initial number of concurrent plug flow threads in the jmeter, randomly starting the corresponding number of plug flow threads, and generating the corresponding number of plug flow URLs; connecting a linux server by using a ssh-command plug-in of a jmeter to acquire a plug-flow test video file corresponding to the plug-flow URL; executing a concurrent stream pushing command by using the ffmpeg tool, and concurrently sending a stream pushing test video file and a corresponding stream pushing URL to the stream media server; the streaming media server forwards the stream pushing test video file to the video monitoring terminal according to the stream pushing URL; and the video monitoring terminal performs pull-stream viewing on the pushed test video file and determines the maximum number of concurrent paths supported by the streaming media service.
Description
Technical Field
The invention relates to the technical field of testing, in particular to a high-concurrency testing method and system for streaming media service.
Background
With the rapid development of audio and video technologies, various video services and products are more and more, users pay more and more attention to video quality and performance verification, and the requirements for video concurrent testing are more and more in the software development process. The existing video concurrency methods are of two types, one is a special srs-bench tool, the concurrency test of srs streaming media service is realized, but the concurrent URL is not supported to increase self-defined parameters, and only the fixed URL address is used for push-pull stream verification. The other method is to manually write a script, a push-pull stream test is realized by using an ffmpeg tool, custom parameters can be added to the push-pull stream URL, but the concurrent operation of the video is realized, a complicated script needs to be manually written, and the operations such as parameterization and the like are not supported.
Disclosure of Invention
In order to solve the above problems, it is necessary to provide a method and a system for high concurrency testing of streaming media services.
The invention provides a high concurrency test method for streaming media service in a first aspect, which comprises the following steps:
performing user-defined parameter operation and setting a plurality of plug-flow threads in the jmeter; the user-defined parameters comprise user identity parameters and live broadcast parameters;
compiling a plurality of beaschell scripts by using a jmeter, wherein different beaschell scripts have different user identity parameter values and different live broadcast parameter values; recording a plurality of test video files, wherein each test video file is correspondingly associated with a beashell script;
configuring the initial number of concurrent plug flow threads in the jmeter, randomly starting the corresponding number of plug flow threads, and generating the corresponding number of plug flow URLs; connecting a linux server by using a ssh-command plug-in of a jmeter to acquire a plug-flow test video file corresponding to the plug-flow URL;
executing a concurrent stream pushing command by using the ffmpeg tool, and concurrently sending a stream pushing test video file and a corresponding stream pushing URL to the stream media server;
the streaming media server forwards the stream pushing test video file to the video monitoring terminal according to the stream pushing URL;
the video monitoring terminal performs pull-stream watching on the pushed test video file, checks whether video playing abnormal conditions occur in the concurrent push-stream process, and determines the maximum concurrent path number supported by the streaming media service when the video playing abnormal conditions occur.
Based on the above, the method starts the plug flow threads with the corresponding number, generates the plug flow URLs with the corresponding number, and specifically includes: randomly running a beaschell script by each thread, carrying out md5 encryption on the user identity parameter value to obtain a user identity abstract value, and carrying out base64 encryption on the live broadcast parameter value to obtain a live broadcast parameter ciphertext; and assembling the plug flow URL based on the user identity abstract value, the live broadcast parameter ciphertext and the user identity parameter.
Based on the above, the streaming media server forwards the stream pushing test video file to the video monitoring terminal according to the stream pushing URL, which specifically includes: after receiving the plug flow URL, carrying out md5 encryption processing on the user identity parameter value from the plug flow to obtain a user identity abstract value, comparing the user identity abstract value with the user identity abstract value from the plug flow to judge whether the user identity abstract value is consistent, if so, successfully verifying the user identity, and accumulating effective concurrent plug flow number; and after all the concurrent plug flow URLs are subjected to identity verification, feeding back the accumulated effective concurrent plug flow number to the jmeter, and simultaneously acquiring a related video file according to the plug flow URL successfully subjected to identity verification and forwarding the video file to the video monitoring terminal.
Based on the above, determining the maximum number of concurrent links supported by the streaming media service when the video playing abnormal condition occurs specifically includes: if the video playing abnormal condition does not occur, adding 1 to the number of the concurrent plug flow threads in the meter, randomly starting the corresponding number of the plug flow threads, and performing a new round of concurrent plug flow; if the video playing is abnormal, the effective concurrent push stream number stream obtained by the previous round of meter is the maximum concurrent path number supported by the streaming media server.
Based on the above, after the streaming media server performs identity verification on all the concurrent plug-flow URLs, whether the accumulated effective concurrent plug-flow number is greater than the accumulated effective concurrent plug-flow number of the previous round is judged, if so, the accumulated effective concurrent plug-flow number is fed back to the jmeter, and meanwhile, a related video file is obtained according to the plug-flow URL successfully verified and forwarded to the video monitoring terminal; otherwise, feeding back a restart concurrent flow request to the jmeter; and after receiving the request for restarting the concurrent flow, the jmeter randomly restarts the corresponding number of the plug flow threads to perform a new round of concurrent plug flow.
Based on the above, the user identity parameter includes any one or more of an IP address, a user name, a user group, and account information.
Based on the above, the user identity parameters further include video playing permission, and after receiving the push stream URL and the push stream test video file, the streaming media server forwards the corresponding push stream test video file to the corresponding video monitoring terminal based on the video playing permission parameter value in the push stream URL.
The second aspect of the present invention provides a high concurrency testing system for streaming media service, including: the system comprises a test end and a tested server end; the testing end comprises a jmeter concurrent pressure testing tool and a video monitoring terminal, and the tested server is a streaming media server; the ssh-command plug-in of the jmeter is associated with a streaming media server based on the ffmpeg; the jmeter concurrent pressure testing tool, the video monitoring terminal and the streaming media server realize the streaming media service high-concurrency testing method.
The third aspect of the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a streaming media service high concurrency test method as described above.
(1) The invention can realize the concurrent URL addition of the self-defined parameters of the video based on the jmeter, can combine the interface request of the jmeter to carry out parameter association, realize the complete operation of the video service of the user, simulate the live broadcast of the real user, realize the storage of live broadcast data and store the file in the server.
(2) The method and the device realize ffmpeg multithreading plug flow based on jmeter visualization, and can quickly realize concurrent thread adjustment. The invention can realize the extension of video concurrency based on the distributed pressure measurement capability of the jmeter. In the concurrency process, a VLC playing tool is used for randomly carrying out pull stream watching, and the video blocking, fluency and other conditions in the concurrency process are checked, so that the performance bottleneck of video concurrency is judged.
(3) According to the method, the user identity digest value is obtained by carrying out md5 encryption on the user identity parameter value, and the live broadcast parameter value is carried out base64 encryption to obtain a live broadcast parameter ciphertext; assembling a plug flow URL based on the user identity abstract value, the live broadcast parameter ciphertext and the user identity parameter; the streaming media server is used for carrying out md5 encryption processing on the user identity parameter value after receiving the plug flow URL to obtain a user identity abstract value, comparing the user identity abstract value with the user identity abstract value, and accumulating effective concurrent plug flow numbers when the comparison is consistent; after all the concurrent plug flow URLs are subjected to identity authentication, feeding back the accumulated effective concurrent plug flow number to the jmeter, and simultaneously acquiring related video files according to the plug flow URLs which are successfully subjected to identity authentication and forwarding the video files to the video monitoring terminal; therefore, the pressure measurement interference of the plug-flow streaming media service which is failed in user verification is eliminated, and the verification accuracy is improved.
(4) After the streaming media server performs identity verification on all the concurrent plug-flow URLs, judging whether the accumulated effective concurrent plug-flow number is larger than the accumulated effective concurrent plug-flow number of the previous round, if so, feeding the accumulated effective concurrent plug-flow number back to the jmeter, and acquiring related video files according to the plug-flow URLs successfully verified by the identity verification and forwarding the video files to the video monitoring terminal; otherwise, feeding back a restart concurrent flow request to the jmeter; after receiving the request for restarting the concurrent flow, the jmeter randomly restarts the corresponding number of plug flow threads to perform a new concurrent plug flow; therefore, the number of the test video files which are simultaneously pushed to the video monitoring terminal by the streaming media server each time is increased.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of a method for testing high concurrency of streaming media services according to the present invention;
fig. 2 shows a block diagram of a high concurrency testing system for streaming media services according to the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
Fig. 1 shows a flow chart of a high concurrency testing method for streaming media service according to the invention.
As shown in fig. 1, a first aspect of the present invention provides a method for testing high concurrency of streaming media service, including the following steps:
performing user-defined parameter operation and setting a plurality of plug-flow threads in the jmeter; the user-defined parameters comprise user identity parameters and live broadcast parameters;
compiling a plurality of beaschell scripts by using a jmeter, wherein different beaschell scripts have different user identity parameter values and different live broadcast parameter values; recording a plurality of test video files, wherein each test video file is correspondingly associated with a beashell script;
configuring the initial number of concurrent plug flow threads in the jmeter, randomly starting the corresponding number of plug flow threads, and generating the corresponding number of plug flow URLs; connecting a linux server by using a ssh-command plug-in of a jmeter to acquire a plug-flow test video file corresponding to the plug-flow URL;
executing a concurrent stream pushing command by using the ffmpeg tool, and concurrently sending a stream pushing test video file and a corresponding stream pushing URL to the stream media server;
the streaming media server forwards the stream pushing test video file to the video monitoring terminal according to the stream pushing URL;
the video monitoring terminal performs pull-stream watching on the pushed test video file, checks whether video playing abnormal conditions occur in the concurrent push-stream process, and determines the maximum concurrent path number supported by the streaming media service when the video playing abnormal conditions occur.
Further, starting the corresponding number of plug flow threads to generate the corresponding number of plug flow URLs, specifically including: randomly running a beaschell script by each thread, carrying out md5 encryption on the user identity parameter value to obtain a user identity abstract value md5str, and carrying out base64 encryption on the live broadcast parameter value to obtain a live broadcast parameter ciphertext base64 str; assembling a plug flow URL based on the user identity abstract value md5str, the live broadcast parameter ciphertext base64 and the user identity parameters (account and group):
correspondingly, the specific steps of executing the concurrent stream pushing command by using the ffmpeg tool are as follows:
further, the streaming media server forwards the streaming test video file to the video monitoring terminal according to the streaming URL, which specifically includes: after receiving the plug flow URL, carrying out md5 encryption processing on the user identity parameter value from the plug flow to obtain a user identity abstract value, comparing the user identity abstract value with the user identity abstract value from the plug flow to judge whether the user identity abstract value is consistent, if so, successfully verifying the user identity, and accumulating effective concurrent plug flow number; and after all the concurrent plug flow URLs are subjected to identity verification, feeding back the accumulated effective concurrent plug flow number to the jmeter, and simultaneously acquiring a related video file according to the plug flow URL successfully subjected to identity verification and forwarding the video file to the video monitoring terminal.
Further, when a video playing abnormal condition occurs, determining the maximum number of concurrent links supported by the streaming media service, specifically including: if the video playing abnormal condition does not occur, adding 1 to the number of the concurrent plug flow threads in the meter, randomly starting the corresponding number of the plug flow threads, and performing a new round of concurrent plug flow; if the video playing is abnormal, the effective concurrent push stream number stream obtained by the previous round of meter is the maximum concurrent path number supported by the streaming media server.
It should be noted that the video playing abnormal condition can be represented as video being stuck, being displayed in a flower screen, not being smooth, and the like. Specifically, if the number of the push streaming concurrent transmission paths is 100, the video playing is normal, and when the number of the push streaming concurrent transmission paths increases to 101, the video playing is abnormal (for example, a jam occurs), and at this time, it may be determined that the maximum number of the concurrent transmission paths supported by the streaming media service is 100.
Further, after all the concurrent plug flow URLs are subjected to identity verification, whether the accumulated effective concurrent plug flow number of the current round is larger than the accumulated effective concurrent plug flow number of the previous round is judged, if so, the accumulated effective concurrent plug flow number is fed back to the jmeter, and meanwhile, a related video file is obtained according to the plug flow URL which is successfully subjected to identity verification and forwarded to the video monitoring terminal; otherwise, feeding back a restart concurrent flow request to the jmeter; after receiving the request for restarting the concurrent flow, the jmeter randomly restarts the corresponding number of plug flow threads to perform a new concurrent plug flow; therefore, the number of the test video files which are simultaneously pushed to the video monitoring terminal by the streaming media server each time is increased, and the waste of the comparison performance and the forwarding performance of the streaming media server caused by the fact that the number of the streaming URL and the test video files received by the streaming media server in the next streaming process is smaller than the number of the streaming URL and the test video files received by the streaming media server in the previous streaming process is avoided.
In addition, in the testing process, concurrent number adjustment is performed on the jmeter according to needs, different concurrent strategies can be set, such as gradient concurrency and the like, and certainly, concurrent number distribution pressure testing can also be performed to achieve concurrent number. In the concurrent stream pushing process, video files with different resolutions and code rates can be set in a user-defined mode according to requirements, and therefore the actual scene is simulated really.
Specifically, the user identity parameter includes any one or more of an IP address, a user name, a user group, and account information.
Based on the above, the user identity parameters further include video playing permission, and after receiving the push stream URL, the streaming media server forwards the corresponding push stream test video file to the corresponding video monitoring terminal based on the video playing permission parameter value in the push stream URL.
Fig. 2 shows a block diagram of a high concurrency testing system for streaming media services according to the present invention.
As shown in fig. 2, the second aspect of the present invention further provides a streaming media service high concurrency test system, including: the system comprises a test end and a tested server end; the testing end comprises a jmeter concurrent pressure testing tool and a video monitoring terminal, and the tested server is a streaming media server; the ssh-command plug-in of the jmeter is associated with a streaming media server based on the ffmpeg; the jmeter concurrent pressure testing tool, the video monitoring terminal and the streaming media server realize the streaming media service high-concurrency testing method.
In the embodiment of the invention, the concurrent pressure testing tool can set the video files with different resolutions and code rates in a user-defined mode according to requirements so as to support the testing of the video files with different resolutions and code rates.
Preferably, the video monitoring terminal is a VLC player, and the streaming media server is an RSR streaming media server.
When the video player is used specifically, players of various types can be set according to the set video playing permission, so that the actual scene can be simulated more truly.
The system of the invention realizes stream pushing of the tested service, such as SRS (streaming media service), based on the ffmpeg video stream pushing capability, and simulates live video broadcast of the client. The srs (simple RTMP server) is a source-opened streaming media server software, which can be used in various scenes such as live broadcast/recorded broadcast/video customer service, and is located in a carrier-level internet live broadcast server cluster.
The third aspect of the present invention also provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements a streaming media service high concurrency test method as described above.
The invention can realize that the video concurrent URL is added with the self-defined parameter, can combine with the interface request of the jmeter to carry out parameter association, realize the complete operation of the video service of the user, simulate the live broadcast of the real user, realize the storage of the live broadcast data, and store the file in the server.
Based on the concurrency capability of the jmeter, the method and the device visually realize ffmpeg multithreading plug flow and can quickly realize concurrent thread adjustment. The invention can realize the extension of video concurrency based on the distributed pressure measurement capability of the jmeter. In the concurrency process, a VLC playing tool is used for randomly carrying out pull stream watching, and the video blocking, fluency and other conditions in the concurrency process are checked, so that the performance bottleneck of video concurrency is judged.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. A high concurrency test method for streaming media service is characterized by comprising the following steps:
performing user-defined parameter operation and setting a plurality of plug-flow threads in the jmeter; the user-defined parameters comprise user identity parameters and live broadcast parameters;
compiling a plurality of beaschell scripts by using a jmeter, wherein different beaschell scripts have different user identity parameter values and different live broadcast parameter values; recording a plurality of test video files, wherein each test video file is correspondingly associated with a beashell script;
configuring the initial number of concurrent plug flow threads in the jmeter, randomly starting the corresponding number of plug flow threads, and generating the corresponding number of plug flow URLs; connecting a linux server by using a ssh-command plug-in of a jmeter to acquire a plug-flow test video file corresponding to the plug-flow URL;
executing a concurrent stream pushing command by using the ffmpeg tool, and concurrently sending a stream pushing test video file and a corresponding stream pushing URL to the stream media server;
the streaming media server forwards the stream pushing test video file to the video monitoring terminal according to the stream pushing URL;
the video monitoring terminal performs pull-stream watching on the pushed test video file, checks whether video playing abnormal conditions occur in the concurrent push-stream process, and determines the maximum concurrent path number supported by the streaming media service when the video playing abnormal conditions occur.
2. The method for testing high concurrency of streaming media services according to claim 1, wherein starting a corresponding number of stream pushing threads and generating a corresponding number of stream pushing URLs specifically comprises: randomly running a beaschell script by each thread, carrying out md5 encryption on the user identity parameter value to obtain a user identity abstract value, and carrying out base64 encryption on the live broadcast parameter value to obtain a live broadcast parameter ciphertext; and assembling the plug flow URL based on the user identity abstract value, the live broadcast parameter ciphertext and the user identity parameter.
3. The method for high concurrency testing of streaming media service according to claim 2, wherein the streaming media server forwards the streaming test video file to the video monitoring terminal according to the streaming URL, specifically comprising: after receiving the plug flow URL, carrying out md5 encryption processing on the user identity parameter value from the plug flow to obtain a user identity abstract value, comparing the user identity abstract value with the user identity abstract value from the plug flow to judge whether the user identity abstract value is consistent, if so, successfully verifying the user identity, and accumulating effective concurrent plug flow number; and after all the concurrent plug flow URLs are subjected to identity verification, feeding back the accumulated effective concurrent plug flow number to the jmeter, and simultaneously acquiring a related video file according to the plug flow URL successfully subjected to identity verification and forwarding the video file to the video monitoring terminal.
4. The method according to claim 3, wherein determining a maximum number of concurrent links supported by the streaming media service when a video playback anomaly occurs specifically comprises: if the video playing abnormal condition does not occur, adding 1 to the number of the concurrent plug flow threads in the meter, randomly starting the corresponding number of the plug flow threads, and performing a new round of concurrent plug flow; if the video playing is abnormal, the effective concurrent push stream number stream obtained by the previous round of meter is the maximum concurrent path number supported by the streaming media server.
5. The method for high concurrency testing of streaming media services according to claim 3, wherein after the streaming media server performs identity verification on all the concurrent streamers URL, whether the cumulative effective concurrent streamers number is greater than that of the previous round is judged, if so, the cumulative effective concurrent streamers number is fed back to the jmeter, and meanwhile, related video files are obtained according to the successful streamers URL of the identity verification and forwarded to the video monitoring terminal; otherwise, feeding back a restart concurrent flow request to the jmeter; and after receiving the request for restarting the concurrent flow, the jmeter randomly restarts the corresponding number of the plug flow threads to perform a new round of concurrent plug flow.
6. The method for testing high concurrency of streaming media services as claimed in claim 1, wherein said user identity parameters comprise any one or more of IP address, user name, user group and account information.
7. The streaming media service high concurrency test method according to claim 6, wherein the user identity parameters further include video playing permissions, and after receiving the push stream URL and the push stream test video file, the streaming media service terminal forwards the corresponding push stream test video file to the corresponding video monitoring terminal based on the video playing permission parameter value in the push stream URL.
8. A streaming media service high concurrency test system, comprising: the system comprises a test end and a tested server end; the testing end comprises a jmeter concurrent pressure testing tool and a video monitoring terminal, and the tested server is a streaming media server; the ssh-command plug-in of the jmeter is associated with a streaming media server based on the ffmpeg; the jmeter concurrency testing tool, the video monitoring terminal and the streaming media server realize a streaming media service high concurrency testing method as claimed in any one of claims 1 to 7.
9. The streaming media service high concurrency test system according to claim 8, wherein the video monitor terminal is a VLC player, and the streaming media server is an RSR streaming media server.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a streaming media service high concurrency testing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011063161.7A CN112153410B (en) | 2020-09-30 | 2020-09-30 | High-concurrency testing method and system for streaming media service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011063161.7A CN112153410B (en) | 2020-09-30 | 2020-09-30 | High-concurrency testing method and system for streaming media service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112153410A true CN112153410A (en) | 2020-12-29 |
CN112153410B CN112153410B (en) | 2022-02-22 |
Family
ID=73951865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011063161.7A Active CN112153410B (en) | 2020-09-30 | 2020-09-30 | High-concurrency testing method and system for streaming media service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112153410B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112954311A (en) * | 2021-02-08 | 2021-06-11 | 福建天晴数码有限公司 | Performance test method and system for live broadcast streaming media |
CN113225508A (en) * | 2021-04-29 | 2021-08-06 | 中山亿联智能科技有限公司 | Section acquisition method based on recording mode |
CN113271474A (en) * | 2021-05-25 | 2021-08-17 | 北京飞讯数码科技有限公司 | Method, device, equipment and storage medium for testing streaming media server |
CN113824973A (en) * | 2021-08-04 | 2021-12-21 | 杭州星犀科技有限公司 | Multi-platform direct-push plug flow method, system, electronic device and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741634A (en) * | 2008-11-25 | 2010-06-16 | 中国联合网络通信集团有限公司 | Method and system for testing performance of stream media |
CN105306299A (en) * | 2015-11-02 | 2016-02-03 | 上海聚力传媒技术有限公司 | Streaming media server performance test method and test system |
CN107454384A (en) * | 2017-07-27 | 2017-12-08 | 网宿科技股份有限公司 | A kind of live performance test methods and device |
WO2018119579A1 (en) * | 2016-12-26 | 2018-07-05 | 深圳中兴力维技术有限公司 | Method and device for testing performance of streaming media server |
CN108304286A (en) * | 2018-01-17 | 2018-07-20 | 杭州当虹科技有限公司 | A kind of system and method carrying out automatic test to transcoding server concurrency performance |
US10282280B1 (en) * | 2018-03-29 | 2019-05-07 | Electronic Arts Inc. | Automated scalable video game testing system |
WO2019169757A1 (en) * | 2018-03-06 | 2019-09-12 | 平安科技(深圳)有限公司 | Test control and test execution device and method, and computer storage medium |
CN110502435A (en) * | 2019-07-26 | 2019-11-26 | 广东睿江云计算股份有限公司 | Automated performance testing method and its system based on Jmeter |
CN110635969A (en) * | 2019-09-30 | 2019-12-31 | 浪潮软件集团有限公司 | High concurrency test method for streaming media direct memory system |
-
2020
- 2020-09-30 CN CN202011063161.7A patent/CN112153410B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741634A (en) * | 2008-11-25 | 2010-06-16 | 中国联合网络通信集团有限公司 | Method and system for testing performance of stream media |
CN105306299A (en) * | 2015-11-02 | 2016-02-03 | 上海聚力传媒技术有限公司 | Streaming media server performance test method and test system |
WO2018119579A1 (en) * | 2016-12-26 | 2018-07-05 | 深圳中兴力维技术有限公司 | Method and device for testing performance of streaming media server |
CN107454384A (en) * | 2017-07-27 | 2017-12-08 | 网宿科技股份有限公司 | A kind of live performance test methods and device |
CN108304286A (en) * | 2018-01-17 | 2018-07-20 | 杭州当虹科技有限公司 | A kind of system and method carrying out automatic test to transcoding server concurrency performance |
WO2019169757A1 (en) * | 2018-03-06 | 2019-09-12 | 平安科技(深圳)有限公司 | Test control and test execution device and method, and computer storage medium |
US10282280B1 (en) * | 2018-03-29 | 2019-05-07 | Electronic Arts Inc. | Automated scalable video game testing system |
CN110502435A (en) * | 2019-07-26 | 2019-11-26 | 广东睿江云计算股份有限公司 | Automated performance testing method and its system based on Jmeter |
CN110635969A (en) * | 2019-09-30 | 2019-12-31 | 浪潮软件集团有限公司 | High concurrency test method for streaming media direct memory system |
Non-Patent Citations (2)
Title |
---|
DEBASISH DAS等: "Hybrid model for validating performance of streaming video signals", 《2016 IEEE 13TH INTERNATIONAL CONFERENCE ON SIGNAL PROCESSING》 * |
卢仕伟: "基于Web的在线交流平台的开发技术研究与应用", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112954311A (en) * | 2021-02-08 | 2021-06-11 | 福建天晴数码有限公司 | Performance test method and system for live broadcast streaming media |
CN112954311B (en) * | 2021-02-08 | 2023-06-02 | 福建天晴数码有限公司 | Performance test method and system for live streaming media |
CN113225508A (en) * | 2021-04-29 | 2021-08-06 | 中山亿联智能科技有限公司 | Section acquisition method based on recording mode |
CN113271474A (en) * | 2021-05-25 | 2021-08-17 | 北京飞讯数码科技有限公司 | Method, device, equipment and storage medium for testing streaming media server |
CN113271474B (en) * | 2021-05-25 | 2023-07-04 | 北京飞讯数码科技有限公司 | Method, device, equipment and storage medium for testing streaming media server |
CN113824973A (en) * | 2021-08-04 | 2021-12-21 | 杭州星犀科技有限公司 | Multi-platform direct-push plug flow method, system, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112153410B (en) | 2022-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112153410B (en) | High-concurrency testing method and system for streaming media service | |
US11507488B2 (en) | Upstream fault detection | |
JP5542330B2 (en) | Method and system for supporting audited reporting of advertising display from video games | |
RU2632403C2 (en) | Terminal device, server device, method of information processing, program and system of related application delivery | |
KR101575010B1 (en) | Validating the resiliency of networked applications | |
CN108431782B (en) | Techniques to determine client-side impact of server-side behavior using canary analysis | |
KR20120010164A (en) | Method and apparatus for providing drm service | |
WO2020233139A1 (en) | Block chain-based copyright protection method and apparatus, and electronic device | |
CA2825048A1 (en) | A method of targeted ad insertion using http live streaming protocol | |
CN101645815B (en) | Video and audio file download prompt method | |
CN108174133B (en) | Court trial video display method and device, electronic equipment and storage medium | |
CN111309632A (en) | Application program testing method and device, computer equipment and storage medium | |
CN108769749A (en) | A kind of determining method, client and server for stealing brush data | |
US20190349618A1 (en) | Content delivery monitor | |
US20080133974A1 (en) | Media player test fixture | |
CN110460884B (en) | Advertisement delivery monitoring method and device | |
US10587661B2 (en) | Method and program for providing content streaming service and managing data statistics of user using QR code | |
US10049158B1 (en) | Analyzing user behavior relative to media content | |
US9189368B2 (en) | System and method for testing a user application using a computing apparatus and a media playback apparatus | |
CN108111880B (en) | Obstacle removing method and obstacle removing system | |
CN114827674B (en) | Network resource display method, device and system | |
CN114598930B (en) | Test method, test device, electronic equipment and computer storage medium | |
US20090228923A1 (en) | Method and apparatus for executing application | |
CN114827731B (en) | Advertisement delivery system and advertisement delivery method | |
FR2881302A1 (en) | METHOD AND SYSTEM FOR PROTECTING COPIES OF TRANSIT-READED FILE DATA (STREAMING) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A high concurrency testing method and system for streaming media services Granted publication date: 20220222 Pledgee: Bank of Zhengzhou Co.,Ltd. Zhongyuan Science and Technology City Sub branch Pledgor: ZHENGZHOU XINDA JIEAN INFORMATION TECHNOLOGY Co.,Ltd. Registration number: Y2024980013861 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |