Multimedia compatibility test method and system, electronic equipment and storage medium
By automatically generating and processing multimedia files, the problem of inefficient testing of existing multimedia compatibility is solved, and more comprehensive test coverage and higher test accuracy is achieved.
Patent Information
- Application Number
- CN202510205197.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-07-18
AI Technical Summary
Existing multimedia compatibility testing relies on manual operations, resulting in inefficiency, high cost and poor testing results, making it difficult to fully cover all formats and scenarios.
Generate and process multimedia files through automated processes, including generating initial multimedia files based on the set of formats to be tested, performing pre-processing, generating target multimedia files, and transmitting them to the terminal under test for testing, obtaining test results in real time, and generating test reports.
It improves the comprehensiveness and accuracy of the test, reduces manual intervention, reduces test errors, and improves test efficiency.
Smart Images

Figure CN120336106A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of compatibility testing, and in particular, to a multimedia compatibility testing method, system, electronic device, and storage medium. Background Art
[0002] With the increasing demand for terminal multimedia, the range of file formats supported by terminal devices for multimedia playback has been continuously expanding, covering various types. In order to ensure that the multimedia functions of terminal devices can be fully compatible with various formats, testers need to widely collect the format files supported by the terminals and verify their compatibility one by one.
[0003] The current multimedia compatibility testing process mainly relies on testers to manually collect and copy media files of various formats to terminal devices for testing. In this process, due to the wide variety of media formats, it not only results in high labor and material costs for testing, but also has low testing efficiency and it is difficult to guarantee the testing effect. In addition, the complicated testing process makes it difficult for testers to fully cover all formats, thus potentially missing incompatibility problems. Summary of the Invention
[0004] The present invention provides a multimedia compatibility testing method, system, electronic device, and storage medium to solve the defects of low efficiency and poor testing effect in multimedia compatibility testing in related technologies.
[0005] The present invention provides a multimedia compatibility testing method, including: Generating initial multimedia files corresponding to each multimedia format in the to-be-tested format set; Processing each initial multimedia file to obtain each target multimedia file, and transmitting the each target multimedia file to the to-be-tested terminal, where the to-be-tested terminal is used to test the each target multimedia file; Obtaining the test results of the to-be-tested terminal for the each target multimedia file, and generating a test report and outputting it based on the test results of the each target multimedia file.
[0006] According to the multimedia compatibility testing method provided by the present invention, the processing each initial multimedia file to obtain each target multimedia file includes: Generating a preprocessing instruction based on the to-be-tested multimedia format parameters; Processing the each initial multimedia file based on the preprocessing instruction to obtain each target multimedia file.
[0007] According to the multimedia compatibility testing method provided by the present invention, the generating initial multimedia files corresponding to each multimedia format in the to-be-tested format set includes: Based on the set of formats to be tested, call a multimedia processing tool to generate initial multimedia files corresponding to each multimedia format in the set of formats to be tested.
[0008] According to a multimedia compatibility testing method provided by the present invention, each of the target multimedia files includes at least one of images, audio, and video with various encodings.
[0009] The present invention also provides a multimedia compatibility testing system, including a multimedia generation module, a central control platform, and a test report output module; The multimedia generation module is used to generate initial multimedia files corresponding to each multimedia format in the set of formats to be tested based on the set of formats to be tested, and transmit each initial multimedia file to the central control platform; The central control platform is used to process each of the initial multimedia files to obtain each target multimedia file, and transmit each of the target multimedia files to the terminal under test, so that the terminal under test tests each of the multimedia files; The central control platform is further used to obtain the test results of each of the target multimedia files by the terminal under test, and synchronize the test results to the test report output module; The test report output module is used to generate and output a test report based on the test results of each of the target multimedia files.
[0010] According to a multimedia compatibility testing system provided by the present invention, the central control platform includes a multimedia access unit, a multimedia codec, a multimedia output manager, and a multimedia detector; The multimedia access unit is used to receive each of the initial multimedia files, generate a preprocessing instruction based on the multimedia format parameters to be tested, and transmit the preprocessing instruction and each of the initial multimedia files to the multimedia codec; The multimedia codec is used to process each of the initial multimedia files based on the preprocessing instruction to generate each target multimedia file; The multimedia output manager is used to transmit each of the target multimedia files to the terminal under test; The multimedia detector is used to obtain the test results of each of the target multimedia files by the terminal under test, and synchronize the test results to the test report output module.
[0011] According to a multimedia compatibility testing system provided by the present invention, there is at least one multimedia output manager, and each multimedia output manager is connected to one or more of the terminals under test.
[0012] A multimedia compatibility test system provided by the present invention, wherein the central control platform is pre-set with test cases, and the test cases define the specific steps and expected results of the multimedia compatibility test to guide the execution of the test process.
[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and running on the processor. When the processor executes the computer program, the multimedia compatibility test method described in any one of the above is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the multimedia compatibility test method described in any one of the above is implemented.
[0015] The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, the multimedia compatibility test method described in any one of the above is implemented.
[0016] The multimedia compatibility test method, system, electronic device, and storage medium provided by the present invention can ensure that all multimedia formats to be tested are included in the test scope by generating initial multimedia files based on the set of formats to be tested, which helps to comprehensively cover various multimedia formats and improve the completeness of the test; by processing each initial multimedia file, a series of target multimedia files that meet the requirements can be generated to ensure that the generated target multimedia files can comprehensively cover various application scenarios that the terminal under test may encounter, thereby improving the comprehensiveness and accuracy of the test. By transmitting each target multimedia file to the terminal under test for testing and detecting and obtaining the test results of the terminal under test in real time, and generating a test report based on the test results, it helps developers quickly locate problems and make targeted modifications and optimizations. The present invention generates and processes multimedia files through an automated process and transmits them to the terminal under test for testing, greatly reducing manual intervention, not only improving the test efficiency but also reducing test errors caused by human operation mistakes. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 is a schematic flowchart of the multimedia compatibility test method provided by the present invention; Figure 2It is a schematic structural diagram of the multimedia compatibility test system provided by the present invention; Figure 3 It is a schematic structural diagram of the central control platform provided by the present invention; Figure 4 It is a schematic structural diagram of the electronic device provided by the present invention. Specific embodiments
[0019] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without creative efforts shall fall within the scope of protection of the present invention.
[0020] With the increasing demand for multimedia on Android terminals, terminal devices such as large-screen and small-screen Android systems support a wider range of file formats for multimedia playback. From traditional MP3, JPEG to modern H.264, HEVC video coding, and lossless audio formats such as FLAC, APE, the types of formats that terminal devices need to be compatible with are increasing. Multimedia compatibility testing, as an important link to ensure that terminal devices can correctly play various multimedia files, is of self-evident importance.
[0021] However, current multimedia compatibility testing mainly relies on manual implementation by testers. Testers need to collect all format files supported by the terminal in detail and verify the support degree of the terminal for these formats one by one. In this process, due to the large number of multimedia file formats and their continuous update and replacement, testers need to spend a lot of time and effort to collect these format files. After collecting various format files, testers need to manually copy these files to the terminal device for testing. This process is not only cumbersome but also inefficient. In addition, manual testing not only causes waste of manpower and material resources, but also due to the cumbersome testing process, it is often difficult for testers to comprehensively cover all formats and scenarios, resulting in poor testing effects.
[0022] In response to this, the present invention provides a multimedia compatibility testing method and system, which generate and process multimedia files through an automated process and transmit them to the terminal under test for testing, greatly reducing manual intervention and improving testing efficiency, thereby overcoming the above defects.
[0023] Figure 1 It is a schematic flow diagram of the multimedia compatibility testing method provided by the present invention. As Figure 1 shown, the method includes: Step 110: Based on the set of formats to be tested, generate initial multimedia files corresponding to each multimedia format in the set of formats to be tested.
[0024] Specifically, the set of formats to be tested refers to a group of multimedia file formats determined in advance before performing multimedia compatibility testing. These formats represent the target formats for which compatibility needs to be verified during the testing process. Each element in the set of formats to be tested represents a specific multimedia format. Here, the multimedia format refers to the file format used to store and transmit multimedia data. For example, in the set of formats to be tested, it can include audio formats (such as MP3, WAV, MIDI), video formats (such as MP4, AVI, MOV), image formats (such as JPEG, PNG, GIF), etc. It should be understood that the set of formats to be tested can be determined in advance based on factors such as test requirements and industry standards and written into a configuration file.
[0025] After determining the set of formats to be tested, one or more initial multimedia files corresponding to each multimedia format in the set can be generated. Here, specific software tools or programming interfaces can be used to generate initial multimedia files that conform to the specified formats. For example, for the MP4 video format, video editing software or command-line tools can be used to generate an MP4 file containing test content. It should be understood that the initial multimedia file refers to a multimedia file generated according to the requirements of each format in the set of formats to be tested and without any additional processing.
[0026] Step 120: Process each initial multimedia file to obtain each target multimedia file, and transmit the target multimedia files to the terminal under test, where the terminal under test is used to test the target multimedia files.
[0027] Specifically, after generating multiple initial multimedia files, each initial multimedia file can be further processed to generate target multimedia files that meet the requirements. Here, the target multimedia file refers to a multimedia file obtained after processing and used for testing by the terminal under test. These files may be different from the initial multimedia files in terms of format, encoding, metadata, quality, and content, aiming to simulate various types of multimedia files that users may encounter in the real world.
[0028] Specifically, the process of processing the initial multimedia file to generate the target multimedia file may include operations such as encoding the file, converting the format, adding specific metadata or watermarks, adjusting the resolution and bit rate, etc. These operations are designed to simulate the multimedia file types and qualities that may be encountered in real application scenarios. For example, a video encoded in H.264 can be converted to VP9 encoding to test the support of the terminal for different video encodings; a video in MP4 format can also be converted to MKV format to verify the support of the terminal for different container formats; in addition, by adjusting parameters such as resolution and bit rate, target multimedia files of different quality levels can be generated to test the performance of the terminal in supporting multimedia files under different network environments. The embodiments of the present invention do not specifically limit the processing process of the initial multimedia file.
[0029] After processing each initial multimedia file to generate multiple target multimedia files, each target multimedia file can be sequentially transmitted to the terminal under test so that the terminal under test can test these target multimedia files. Here, the method of transmitting the target multimedia file to the terminal under test depends on the configuration of the test environment and test requirements. For example, the target multimedia file can be directly copied to the terminal under test through a USB data cable or other wired interfaces; the target multimedia file can also be sent to the terminal under test using Wi-Fi, Bluetooth or other wireless communication technologies; the target multimedia file can also be transmitted as a streaming media to the terminal under test through network protocols such as HTTP and RTSP for testing. The embodiments of the present invention do not specifically limit this.
[0030] It can be understood that the terminal under test refers to the terminal device that needs to perform multimedia compatibility testing, such as smart phones, smart screens, tablets, smart TVs, personal computers, etc. These devices usually have the function of playing multimedia files, but there may be differences in the supported formats, encoding, decoding capabilities, screen resolutions, audio outputs, etc. among different devices.
[0031] After receiving the target multimedia file, the terminal under test can parse information such as the format, encoding, and metadata of the target multimedia file through its multimedia system, and test the target multimedia file according to the parsing results. For example, the terminal under test can perform a playback test on the target multimedia file and monitor various parameters during the playback process, such as frame rate, bit rate, audio-video synchronization, etc. Another example is that in addition to the playback test, the terminal under test can also comprehensively test the target multimedia file from aspects such as data integrity, performance, and file size. The embodiments of the present invention do not specifically limit this.
[0032] Step 130, obtain the test results of the terminal under test for each of the target multimedia files, and generate a test report and output it based on the test results of each of the target multimedia files.
[0033] Specifically, during the process of the DUT testing each target multimedia file, the testing status of the DUT can be monitored in real time to obtain the testing results of the DUT for each target multimedia file. For example, when the DUT conducts a playback test on each target multimedia file, indicators such as the playback progress, audio-video synchronization, and resource occupancy rate (such as CPU, memory, network bandwidth) of the DUT can be monitored in real time; automated detection scripts or tools can also be used to automatically detect abnormal situations during the playback process, such as crashes, freezes, and audio-video desynchronization, and these information can be used as part of the testing results.
[0034] In addition, when the DUT tests each target multimedia file, corresponding test logs will be generated. These logs record various events during the testing process, such as file loading, decoding, playback, pausing, stopping, etc., as well as possible error or warning messages. Therefore, the testing results of the DUT for each target multimedia file can also be obtained by collecting the test logs of the DUT.
[0035] It can be understood that the testing results refer to the comprehensive evaluation of the performance, compatibility, and stability shown by the DUT during the process of testing each target multimedia file. The testing results can include success / failure status, error logs, performance indicators, etc. Among them, the success / failure status is used to indicate whether each target multimedia file has successfully passed the test (for example, whether it has been successfully played); the error log is used to record any error or warning information that occurred during the testing process; the performance indicators can include startup time, playback smoothness, audio-video synchronization error, resource occupancy rate, etc.
[0036] After obtaining the testing results of each target multimedia file, these results can be summarized to generate and output a final test report. Specifically, the test report can be generated and output through the following steps: First, organize and analyze the collected testing results, and extract key information and indicators; design a test report template with a clear structure and comprehensive content, including parts such as test purpose, test environment, test method, test results, problem analysis, and suggestions; fill the organized test data into the report template to ensure that the testing results of each target multimedia file are recorded and analyzed in detail; finally, output the test report in an appropriate format (such as PDF, Word, HTML, etc.). It should be understood that the test report refers to a document that details the testing process, results, and analysis. In the multimedia compatibility testing method, the test report is used to comprehensively display the evaluation results of the support performance, compatibility, and stability of the DUT for each target multimedia file.
[0037] The method provided by the embodiments of the present invention can ensure that all multimedia formats to be tested are included in the test scope by generating initial multimedia files based on the set of formats to be tested, which helps to comprehensively cover various multimedia formats and improve the completeness of the test. By processing each initial multimedia file, a series of target multimedia files that meet the requirements can be generated to ensure that the generated target multimedia files can comprehensively cover various application scenarios that the terminal under test may encounter, thereby improving the comprehensiveness and accuracy of the test. By transmitting each target multimedia file to the terminal under test for testing and detecting the test results of the terminal under test in real time, and generating a test report based on the test results, it helps developers quickly locate problems and make targeted modifications and optimizations. The present invention generates and processes multimedia files through an automated process and transmits them to the terminal under test for testing, greatly reducing manual intervention, not only improving the test efficiency but also reducing test errors caused by human operation mistakes.
[0038] Based on the above embodiments, step 110 specifically includes: Based on the set of formats to be tested, call a multimedia processing tool to generate initial multimedia files corresponding to each multimedia format in the set of formats to be tested.
[0039] It should be noted that after determining the set of formats to be tested, a multimedia processing tool can be called to generate initial multimedia files corresponding to each multimedia format in the set of formats to be tested. Here, the multimedia processing tool refers to a class of software tools that can process, convert, edit, or analyze multimedia files (such as audio, video, images, etc.).
[0040] Specifically, a suitable multimedia processing tool can be selected according to the test requirements and the multimedia formats in the set of formats to be tested. For example, FFmpeg (Fast Forward Mpeg) is a powerful open-source multimedia processing tool that supports the conversion and editing of multiple audio and video formats. Then, prepare some original multimedia materials, such as audio files, video clips, or images, etc., which will be used as the basis for generating the initial multimedia files. According to each multimedia format in the set of formats to be tested, call a multimedia processing tool (such as FFmpeg) to process the prepared input materials to generate initial multimedia files that meet the requirements.
[0041] Based on any of the above embodiments, in step 120, the processing of each initial multimedia file to obtain each target multimedia file includes: Step 121, generate a preprocessing instruction based on the multimedia format parameters to be tested.
[0042] It should be noted that the multimedia format parameters to be measured refer to the specific parameters set for each multimedia format in the multimedia format set during the multimedia compatibility test. These parameters can include video format parameters, audio format parameters, image format parameters, etc. Among them, video format parameters include encoding format (such as H.264, VP8, VP9, etc.), resolution (such as 1920x1080, 1280x720, etc.), frame rate (such as 24fps, 30fps, etc.), bit rate (such as high, medium, low settings or specific values), color depth, color space, etc.; audio format parameters include encoding format (such as AAC, MP3, WAV, etc.), sampling rate (such as 44.1kHz, 48kHz, etc.), bit depth (such as 16bit, 24bit, etc.), number of channels (such as mono, stereo, multi-channel, etc.); image format parameters include image encoding format (such as JPEG, PNG, BMP, etc.), resolution, color mode (such as RGB, CMYK, etc.). The multimedia format parameters to be measured can cover various types of information to ensure that the generated multimedia files can comprehensively cover various playback scenarios that the tested terminal may encounter.
[0043] Specifically, the multimedia format parameters to be measured can be preset according to the specific requirements and objectives of the test. After determining the multimedia format parameters to be measured, the multimedia format parameters to be measured can be parsed to extract key information such as encoding method, resolution, bit rate, etc. According to the parsed parameter information, corresponding preprocessing instructions can be generated, and these instructions can include specifying input files, setting conversion parameters, etc. In addition, the generated preprocessing instructions can be optimized to ensure that they can efficiently and accurately complete the preprocessing task of multimedia files. For example, the conversion parameters can be adjusted to balance the file size and playback quality.
[0044] It can be understood that the preprocessing instructions refer to a series of instructions used to guide multimedia processing tools to process the initial multimedia files during the multimedia compatibility test. These instructions can include operations such as converting formats, adjusting encoding parameters, adding metadata, etc. to ensure that the generated target multimedia files meet the requirements of the multimedia format parameters to be measured.
[0045] Step 122, based on the preprocessing instructions, process the initial multimedia files to obtain target multimedia files.
[0046] Specifically, after generating the preprocessing instructions, corresponding multimedia processing tools (such as FFmpeg) can be called and the preprocessing instructions are passed in. The multimedia processing tool will process the initial multimedia file according to the passed instructions to generate a target multimedia file that meets the requirements. In addition, a media information viewing tool (such as MediaInfo) can be used to check the properties of the file, such as format, encoding, resolution, etc., to verify whether the generated target multimedia file meets the requirements of the multimedia format parameters to be tested.
[0047] The method provided by the embodiments of the present invention can flexibly generate various types of target multimedia files by setting different multimedia format parameters to be tested, meeting different test requirements. The preprocessing instructions can accurately guide the multimedia processing tool to process the initial multimedia file, ensuring that the generated target multimedia file meets specific test standards. In addition, by automatically generating preprocessing instructions and processing the initial multimedia file, the test efficiency can be greatly improved, reducing manual intervention and error rates.
[0048] Based on any of the above embodiments, the target multimedia files include at least one of images, audio, and video in various encodings.
[0049] Specifically, the generated target multimedia file is not limited to a single type of media content, but can include various different types of media content, such as images, audio, video, etc., and these contents can adopt different encoding methods.
[0050] Specifically, images can adopt encoding formats such as JPEG, PNG, BMP, etc.; audio can adopt encoding formats such as MP3, AAC, WAV, etc.; video can adopt container formats such as MP4, AVI, MKV, etc., which encapsulate video encodings such as H.264, HEVC, VP9, etc. and audio encodings such as AAC, AC3, DTS, etc. By including these different types of media content and encoding methods, the target multimedia file can more comprehensively cover various playback scenarios that the tested terminal may encounter, thus ensuring the completeness of the multimedia compatibility test.
[0051] In the embodiments of the present invention, since the target multimedia file includes various types of media content such as images, audio, and video, and each type of content may adopt different encoding methods, this enables the test to more comprehensively cover the playback compatibility of the tested terminal, helping to discover potential problems of the tested terminal under different types of media content and encoding methods.
[0052] In addition, the testing method allows for adjusting the types and encoding methods of target multimedia files according to actual requirements. For example, if the focus is on video playback compatibility, the number and variety of video files can be increased; if the focus is on audio playback quality, the number of audio files and encoding diversity can be increased. This flexibility enables the testing method to adapt to different testing requirements and scenarios.
[0053] The multimedia compatibility testing system provided by the present invention will be described below. The multimedia compatibility testing system described below can be correspondingly referred to with the multimedia compatibility testing method described above.
[0054] Based on any of the above embodiments, Figure 2 is a schematic structural diagram of the multimedia compatibility testing system provided by the present invention, as Figure 2 shown, the system includes a multimedia generation module 210, a central control platform 220, and a test report output module 230; The multimedia generation module 210 is configured to generate initial multimedia files corresponding to each multimedia format in the set of formats to be tested based on the set of formats to be tested, and transmit each initial multimedia file to the central control platform 220; The central control platform 220 is configured to process each of the initial multimedia files to obtain each target multimedia file, and transmit each of the target multimedia files to the device under test 240, so that the device under test 240 tests each of the multimedia files; The central control platform 220 is further configured to obtain the test results of the device under test 240 for each of the target multimedia files, and synchronize the test results to the test report output module 230; The test report output module 230 is configured to generate and output a test report based on the test results of each of the target multimedia files.
[0055] It should be noted that the multimedia compatibility testing system provided by the embodiments of the present invention can be used to execute the multimedia compatibility testing method described in any of the above embodiments. The multimedia compatibility testing system refers to a system specifically designed to test the compatibility of a terminal with multimedia files of different formats. It can include a series of modules that work together to generate multimedia files, process multimedia files, perform tests on the device under test, and collect and analyze test results, and finally generate a test report.
[0056] Specifically, the multimedia compatibility testing system can include a multimedia generation module, a central control platform, and a test report output module. Among them, the multimedia generation module is a part of the multimedia compatibility testing system and is responsible for generating initial multimedia files corresponding to these formats based on the set of formats to be tested. These files can be images, audio, video, or other types of multimedia content.
[0057] Specifically, the multimedia generation module can receive a set of formats to be tested through system configuration or user input. The set of formats to be tested includes multiple multimedia formats that need to be tested. These formats can be predefined or dynamically added by the user according to needs. The multimedia generation module can call multimedia processing tools (such as FFmpeg) to generate multiple initial multimedia files and transfer the generated initial multimedia files to the central control platform through the internal data transfer mechanism of the system (such as network communication, file sharing, etc.).
[0058] The central control platform is the core part of the multimedia compatibility test system. It receives the initial multimedia files from the multimedia generation module and processes these files (such as converting formats, adjusting parameters, etc.) to generate the target multimedia files that will ultimately be tested on the device under test. The central control platform is also responsible for transferring the target multimedia files to the device under test and collecting the test results. Here, the central control platform can transfer the processed target multimedia files to the device under test sequentially through wired or wireless means. After receiving each target multimedia file, the device under test will test it.
[0059] It can be understood that the central control platform can obtain the test results through the communication connection established with the device under test (such as network communication, serial communication, etc.). After testing the target multimedia file, the device under test will send the test results containing playback performance, error information, etc. to the central control platform. After receiving the test results of each target multimedia file, the central control platform can synchronize the collected test results to the test report output module through the internal data transfer mechanism of the system (such as message passing, file sharing, etc.).
[0060] The test report output module is responsible for generating a complete test report based on the test results collected by the central control platform and outputting the test report. The test report can contain detailed information such as the playback performance of the multimedia file on the device under test, compatibility issues, and proposed improvement measures.
[0061] The system provided by the embodiments of the present invention can ensure that all multimedia formats to be tested are included in the test scope by generating initial multimedia files based on the set of formats to be tested, which helps to comprehensively cover various multimedia formats and improve the completeness of the test. By processing each initial multimedia file, a series of target multimedia files that meet the requirements can be generated to ensure that the generated target multimedia files can comprehensively cover various application scenarios that the terminal under test may encounter, thereby improving the comprehensiveness and accuracy of the test. By transmitting each target multimedia file to the terminal under test for testing and detecting the test results of the terminal under test in real time, and generating a test report based on the test results, it helps developers quickly locate problems and make targeted modifications and optimizations. The present invention generates and processes multimedia files through an automated process and transmits them to the terminal under test for testing, greatly reducing manual intervention, not only improving the test efficiency but also reducing test errors caused by human operation mistakes.
[0062] Based on any of the above embodiments, Figure 3 is a schematic structural diagram of the central control platform provided by the present invention, as Figure 3 shown, the central control platform includes a multimedia access unit 221, a multimedia codec 222, a multimedia output manager 223, and a multimedia detector 224; The multimedia access unit 221 is configured to receive the initial multimedia files, generate a preprocessing instruction based on the multimedia format parameters to be tested, and transmit the preprocessing instruction and the initial multimedia files to the multimedia codec 222; The multimedia codec 222 is configured to process the initial multimedia files based on the preprocessing instruction to generate target multimedia files; The multimedia output manager 223 is configured to transmit the target multimedia files to the terminal under test 240; The multimedia detector 224 is configured to obtain the test results of the terminal under test 240 for the target multimedia files and synchronize the test results to the test report output module 230.
[0063] Specifically, the central control platform is the core part of the multimedia compatibility test system, which may include a multimedia access unit, a multimedia codec, a multimedia output manager, and a multimedia detector. Among them, the multimedia access unit is a component of the central control platform and is responsible for receiving the initial multimedia files from the multimedia generation module. In addition, it also receives the multimedia format parameters to be tested and generates preprocessing instructions based on them. These preprocessing instructions will guide the subsequent multimedia file processing process.
[0064] It is understandable that when the test system starts up or initializes, the user can specify the multimedia format parameters to be tested through a configuration file or a setting interface. These parameters are then loaded into the system and read by the multimedia access unit when needed. In some cases, the user may need to dynamically specify the multimedia format parameters to be tested during the test process, which can be achieved through a user interface (such as a command-line interface, a graphical user interface, etc.), where the user can input or select the required parameters.
[0065] The multimedia codec is the core processing unit of the central control platform. It receives the initial multimedia file and the preprocessing instructions from the multimedia access unit, and then processes the multimedia file based on these instructions. This process may include format conversion, encoding adjustment, compression, etc., to generate the target multimedia file for testing the DUT (Device Under Test).
[0066] The multimedia output manager is responsible for sequentially transmitting the processed target multimedia file to the DUT. It ensures that the file can reach the DUT in a predetermined order and manner for testing. The multimedia output manager plays a role of scheduling and transmission in the system.
[0067] The multimedia detector is another key component of the central control platform. It is responsible for obtaining the test results of the DUT on the target multimedia file. These results include playback performance, compatibility issues, etc., which are important bases for generating the test report. The multimedia detector ensures the accuracy and integrity of the test results and synchronizes them to the test report output module.
[0068] Based on any of the above embodiments, at least one multimedia output manager is provided, and each multimedia output manager is connected to one or more of the DUTs.
[0069] Specifically, the multimedia output manager is a key component in the central control platform. It is responsible for transmitting the processed target multimedia file to the DUT for testing. Depending on different test requirements and system designs, the configuration method of the multimedia output manager can vary.
[0070] For example, only one multimedia output manager can be set in the system, and it can be connected to one or more DUTs. In this configuration, the multimedia output manager has powerful output capabilities and scheduling strategies, and can establish connections with multiple DUTs simultaneously. When it is necessary to test the compatibility of multiple DUTs with the same multimedia file, this configuration method can be used to achieve it. It enables the system to be applicable to a one-input multi-output scenario, that is, one multimedia output manager simultaneously sends the target multimedia file to multiple DUTs, thereby completing the compatibility tests of different DUTs at the same time.
[0071] For another example, when the test requirements are more complex or when it is necessary to test the DUTs on different platforms simultaneously, the system can configure multiple multimedia output managers. Each manager can independently establish a connection with one or more DUTs. This configuration provides higher flexibility and parallel processing capabilities, enabling the system to handle multimedia files from different platforms or different test scenarios simultaneously.
[0072] It can be understood that the multimedia output manager has intelligent scheduling capabilities and can dynamically adjust the transmission strategy according to the test requirements and the status of the DUT. For example, during the test, if a DUT fails or cannot receive files, the manager can automatically remove it from the transmission list and continue to send files to other terminals. In addition, the multimedia output manager supports multiple formats of multimedia files and multiple types of DUTs, enabling the system to flexibly adapt to different test scenarios and requirements, and improving the generality and accuracy of the test.
[0073] Based on any of the above embodiments, the central control platform is pre-set with test cases, which define the specific steps and expected results of the multimedia compatibility test to guide the execution of the test process. Here, the specific steps refer to a series of operations or processes that need to be followed when performing the multimedia compatibility test, and the expected results are the outputs or states expected for each step or the entire test process.
[0074] Specifically, during the actual test process, the central control platform can automatically execute the test process by reading and executing the instructions in these test cases. Specifically, the central control platform loads the pre-defined test cases from a storage medium (such as a database, file system), parses the specific steps and expected results in the test cases, and converts them into executable instructions or operations; according to the steps in the test cases, the central control platform automatically calls the multimedia generation module to generate initial multimedia files, then processes these files to generate target multimedia files, and transmits them to the DUT for testing. During the test, the central control platform will, according to the expected results defined in the test cases, monitor the test results of the target multimedia files on the DUT in real time through the multimedia detector. After the test is completed, the central control platform compares the actual results collected with the expected results in the test cases to determine whether the test passes. Finally, the central control platform synchronizes the test results and other relevant information to the test report output module to generate a detailed test report.
[0075] In the embodiments of the present invention, the test cases provide a clear and definite test process guidance for the central control platform, ensuring the accuracy and consistency of the multimedia compatibility test. At the same time, since the test cases are pre-defined, they can also help the development team to clearly plan the test scope and objectives before the test.
[0076] Based on any of the above embodiments, an embodiment of the present invention provides an Android system multimedia compatibility automatic testing method, which is applied to a multimedia compatibility automatic testing system. The system includes a multimedia generation module, a central control platform, and a test report output module. The multimedia generation module generates corresponding multimedia files by calling FFmpeg after inputting the format set to be tested, and then the central control platform processes the multimedia files and transmits them to the terminal under test for playback testing. During the testing process, the central control platform monitors the test results of the terminal under test in real time and synchronizes the results to the test report output module. After the terminal under test completes the test, the test report output module summarizes the test results and outputs a multimedia compatibility test report.
[0077] The focus of the embodiment of the present invention lies in the function implementation of the central control platform. The central control platform is prefabricated with specific test cases, which specifically include a multimedia access unit, a multimedia codec, a multimedia output manager, and a multimedia detector. Among them, the multimedia access unit receives the multimedia format parameters and multimedia files to be tested, generates preprocessing instructions according to the format parameters, and inputs them into the multimedia codec; the multimedia codec processes the multimedia files according to the preprocessing instructions to generate the target multimedia files to be tested, including images, audio, and video in various encodings. When all the target multimedia files to be tested are generated, they are sequentially input into the terminal under test to start playback testing. The multimedia detector detects the test results of the terminal under test in real time and synchronizes them to the test report output module. When all the target multimedia files are tested and the test results are synchronized, the test report output module outputs an overall compatibility test report.
[0078] In addition, the multimedia access can be configured according to user needs. The embodiment of the present invention can be applied to a one-input-one-output scenario or extended to a one-input-multiple-output scenario to simultaneously complete the compatibility testing of terminals under test on different platforms.
[0079] Figure 4 An example of the physical structure diagram of an electronic device is shown in Figure 4As shown in the figure, the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440. Among them, the processor 410, the communication interface 420, and the memory 430 complete communication with each other through the communication bus 440. The processor 410 may call the logical instructions in the memory 430 to execute the multimedia compatibility test method. The method includes: generating initial multimedia files corresponding to each multimedia format in the set of formats to be tested based on the set of formats to be tested; processing each initial multimedia file to obtain each target multimedia file, and transmitting each target multimedia file to the terminal under test, where the terminal under test is used to test each target multimedia file; obtaining the test results of each target multimedia file by the terminal under test, and generating a test report and outputting it based on the test results of each target multimedia file.
[0080] In addition, when the logical instructions in the above-mentioned memory 430 can be implemented in the form of software functional units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the related technology, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0081] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the multimedia compatibility test method provided by the above-mentioned various methods. The method includes: generating initial multimedia files corresponding to each multimedia format in the set of formats to be tested based on the set of formats to be tested; processing each initial multimedia file to obtain each target multimedia file, and transmitting each target multimedia file to the terminal under test, where the terminal under test is used to test each target multimedia file; obtaining the test results of each target multimedia file by the terminal under test, and generating a test report and outputting it based on the test results of each target multimedia file.
[0082] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the multimedia compatibility testing method provided by the above-mentioned various methods. The method includes: generating initial multimedia files corresponding to each multimedia format in the set of formats to be tested based on the set of formats to be tested; processing each initial multimedia file to obtain each target multimedia file, and transmitting the target multimedia files to the terminal under test, where the terminal under test is used to test the target multimedia files; obtaining the test results of the terminal under test for the target multimedia files, and generating a test report and outputting it based on the test results of the target multimedia files.
[0083] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative labor.
[0084] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solutions, in essence, or the part that contributes to the related technologies, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multimedia compatibility testing method, characterized in that, Including: Generating initial multimedia files corresponding to each multimedia format in the to-be-tested format set based on the to-be-tested format set; Processing each initial multimedia file to obtain each target multimedia file, and transmitting the target multimedia files to the to-be-tested terminal, where the to-be-tested terminal is used to test the target multimedia files; Obtaining the test results of the to-be-tested terminal for the target multimedia files, and generating and outputting a test report based on the test results of the target multimedia files.
2. The multimedia compatibility testing method according to claim 1, wherein The processing of each initial multimedia file to obtain each target multimedia file includes: Generating a preprocessing instruction based on the to-be-tested multimedia format parameters; Processing each initial multimedia file based on the preprocessing instruction to obtain each target multimedia file.
3. The multimedia compatibility test method according to claim 1, wherein The generating of the initial multimedia files corresponding to each multimedia format in the to-be-tested format set based on the to-be-tested format set includes: Invoking a multimedia processing tool based on the to-be-tested format set to generate initial multimedia files corresponding to each multimedia format in the to-be-tested format set.
4. The multimedia compatibility testing method according to any one of claims 1 to 3, characterized in that Each of the target multimedia files includes at least one of images, audio, and video in various encodings.
5. A multimedia compatibility testing system, characterized in that, Including a multimedia generation module, a central control platform, and a test report output module; The multimedia generation module is used to generate initial multimedia files corresponding to each multimedia format in the to-be-tested format set based on the to-be-tested format set, and transmit each initial multimedia file to the central control platform; The central control platform is used to process each initial multimedia file to obtain each target multimedia file, and transmit the target multimedia files to the to-be-tested terminal so that the to-be-tested terminal tests the multimedia files; The central control platform is further used to obtain the test results of the to-be-tested terminal for the target multimedia files, and synchronize the test results to the test report output module; The test report output module is used to generate and output a test report based on the test results of the target multimedia files.
6. The multimedia compatibility testing system according to claim 5, characterized in that, The central control platform includes a multimedia access unit, a multimedia codec, a multimedia output manager, and a multimedia detector; The multimedia access unit is used to receive each initial multimedia file, generate a preprocessing instruction based on the to-be-tested multimedia format parameters, and transmit the preprocessing instruction and each initial multimedia file to the multimedia codec; The multimedia codec is used to process each initial multimedia file based on the preprocessing instruction to generate each target multimedia file; The multimedia output manager is used to transmit each target multimedia file to the to-be-tested terminal; The multimedia detector is used to obtain the test results of the to-be-tested terminal for the target multimedia files, and synchronize the test results to the test report output module.
7. The multimedia compatibility test system according to claim 6, characterized in that There is at least one multimedia output manager, and each multimedia output manager is connected to one or more of the to-be-tested terminals.
8. The multimedia compatibility test system according to any one of claims 5 to 7, characterized in that The central control platform is pre-set with test cases, and the test cases define the specific steps and expected results of the multimedia compatibility test to guide the execution of the test process.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the multimedia compatibility testing method according to any one of claims 1 to 4.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the multimedia compatibility testing method according to any one of claims 1 to 4.