CN108630242A - media file compatibility test method, device, storage medium and computer equipment - Google Patents
media file compatibility test method, device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN108630242A CN108630242A CN201810292066.0A CN201810292066A CN108630242A CN 108630242 A CN108630242 A CN 108630242A CN 201810292066 A CN201810292066 A CN 201810292066A CN 108630242 A CN108630242 A CN 108630242A
- Authority
- CN
- China
- Prior art keywords
- equipment
- tested
- media file
- file
- compatibility
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/18—Error detection or correction; Testing, e.g. of drop-outs
- G11B20/1816—Testing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
Abstract
A kind of media file compatibility test method, device, storage medium and computer equipment, test method include:Inquire whether equipment to be tested connects preset storage device;If so, sending test instruction to the equipment to be tested, so that the equipment to be tested plays the media file in the storage device according to the test instruction, and the record file played during the media file is generated;The record file is obtained, and determines the compatibility of the media file according to the record file.The embodiment of the present invention can realize that the compatibility of the media file of Devices to test is tested automatically, improve testing efficiency.
Description
Technical field
The present invention relates to data processing fields, more particularly to a kind of media file compatibility test method, device, storage
Medium and computer equipment.
Background technology
Multimedia player, if audio player, video player are widely used in electronic equipment, such as computer, tablet
Computer, mobile phone, television set etc..In order to ensure the multi-media player function of electronic equipment, when electronic product dispatches from the factory, it is required for pair
The multimedia player of electronic product carries out compatibility test.
In the prior art, the compatibility test of the multimedia player of electronic equipment is carried out using artificial, i.e., artificial behaviour
Make, plays the media file of different file formats on an electronic device, and by manually carrying out seeing whether to be compatible with.This method
It is very cumbersome, need artificial operation repeatedly and manually recorded broadcasting record, inefficiency.
Invention content
In view of above-mentioned condition, it is necessary to play compatibility test effect for the multimedia file of electronic equipment in the prior art
The low problem of rate provides a kind of media file compatibility test method, device, storage medium and computer equipment.
A kind of media file compatibility test method, including:
Inquire whether equipment to be tested connects preset storage device;
If so, sending test instruction to the equipment to be tested, so that the equipment to be tested is instructed according to the test
The media file in the storage device is played, and generates the record file played during the media file;
The record file is obtained, and determines the compatibility of the media file according to the record file.
In the embodiment of the present invention, the storage device for being stored with media file is connected in equipment to be tested, when being connected to
After the equipment to be tested, test instruction is sent to equipment to be tested, to control the media in device plays storage device to be tested
File, and generate the record file played during the media file.Test machine is according to record file automatic decision media text
The compatibility of part.The present embodiment can realize that the compatibility of the media file of Devices to test is tested automatically, improve test effect
Rate.
Above-mentioned media file compatibility test method, wherein when the storage device stores multiple media files,
The transmission test instruction is to the equipment to be tested, so that the equipment to be tested is deposited according to described in test instruction broadcasting
The media file in equipment is stored up, and the step of generating the record file during playing the media file includes:
Test instruction is sent to the equipment to be tested, so that the equipment to be tested is broadcast successively at predetermined intervals
The media file in the storage device is put, and generates the record file for playing each media file.
Above-mentioned media file compatibility test method, wherein the transmission test is instructed to the equipment to be tested, so that
The equipment to be tested plays the media file in the storage device according to the test instruction, and generates and play the media
The step of record file in file processes includes:
Test instruction is sent to the equipment to be tested, so that the equipment to be tested is instructed according to the test plays institute
The media file in storage device is stated, and generates the running log for playing the media file;
It is described to obtain the record file, and according to the step for recording file and determining the compatibility of the media file
Including:
The running log is obtained, and determines the compatibility of the media file according to the running log.
Above-mentioned media file compatibility test method, wherein described that the media file is determined according to the running log
Compatibility step include:
Judge to whether there is error message in the running log;
If so, determining that the media file is incompatible.
Above-mentioned media file compatibility test method, wherein the transmission test is instructed to the equipment to be tested, so that
The equipment to be tested plays the media file in the storage device according to the test instruction, and generates and play the media
The step of record file in file processes includes:
Judge the media file to be tested whether be display type file;
If so, sending test instruction to the equipment to be tested, so that the equipment to be tested is instructed according to the test
The media file in the storage device is played, and sectional drawing is carried out to the broadcast interface of the media file;
It is described to obtain the record file, and according to the step for recording file and determining the compatibility of the media file
Including:
The equipment truncated picture to be tested is obtained, and described image is compared with corresponding baseline chart, works as institute
When stating image with corresponding baseline image difference, determine that the media file is incompatible.
Above-mentioned media file compatibility test method, wherein described to send test instruction to the step of the equipment to be tested
Further include before rapid:
The IP address of equipment to be tested is obtained, and the connection with the equipment to be tested is established according to the IP address.
Above-mentioned media file compatibility test method, wherein described established according to the IP address to be tested sets with described
Further include before the step of standby connection:
Whether the IP address for detecting the equipment to be tested is complete and whether detect the network connection of the equipment to be tested
Normally;
When the IP address of the equipment to be tested is complete and the network connection of the equipment to be tested is normal, determines and establish
With the connection of the equipment to be tested;
When the IP address of the equipment to be tested is imperfect or the network connection exception of the equipment to be tested, sends out and carry
Show information.
The embodiment of the present invention additionally provides a kind of media file device for testing compatibility, including:
Enquiry module, for inquiring whether equipment to be tested connects preset storage device;
Sending module, for sending test instruction to the equipment to be tested, so that the equipment to be tested is according to
Test instruction plays the media file in the storage device, and generates the record file played during the media file;
Determining module determines the simultaneous of the media file for obtaining the record file, and according to the record file
Capacitive.
Above-mentioned media file device for testing compatibility, wherein when the storage device stores multiple media files,
The sending module is specifically used for:
Test instruction is sent to the equipment to be tested, so that the equipment to be tested is broadcast successively at predetermined intervals
The media file in the storage device is put, and generates the record file for playing each media file.
Above-mentioned media file device for testing compatibility, wherein the sending module is specifically used for:
Test instruction is sent to the equipment to be tested, so that the equipment to be tested is instructed according to the test plays institute
The media file in storage device is stated, and generates the running log for playing the media file;
The determining module includes:
First acquisition module, for obtaining the running log;
First determination sub-module is used for and is determined according to the running log compatibility of the media file.
Above-mentioned media file device for testing compatibility, wherein first determination sub-module is specifically used for:
Judge to whether there is error message in the running log;
If so, determining that the media file is incompatible.
Above-mentioned media file device for testing compatibility, wherein the sending module includes:
Judgment module, for judge the media file to be tested whether be display type file;
Sending submodule, for when the media file to be tested is the file of display type, sending test instruction extremely
The equipment to be tested, so that the equipment to be tested plays the media text in the storage device according to the test instruction
Part, and sectional drawing is carried out to the broadcast interface of the media file;
The determining module includes:
Second acquisition module, for obtaining the equipment truncated picture to be tested;
Second determination sub-module, for described image to be compared with corresponding baseline chart, when described image with it is corresponding
Baseline image difference when, determine that the media file is incompatible.
Further, above-mentioned media file device for testing compatibility further includes:Connection establishment module, it is to be measured for obtaining
The IP address of equipment is tried, and the connection with the equipment to be tested is established according to the IP address.
Further, above-mentioned media file device for testing compatibility further includes:
Detection module, whether the IP address for detecting the equipment to be tested is complete and detects the equipment to be tested
Whether network connection is normal;
Determining module is established in connection, is used for when the IP address of the equipment to be tested is complete and the net of the equipment to be tested
When network connection is normal, the connection established with the equipment to be tested is determined;
Reminding module is used for when the IP address of the equipment to be tested is imperfect or the network connection of the equipment to be tested
When abnormal, prompt message is sent out.
The embodiment of the present invention additionally provides a kind of storage medium, is stored thereon with computer program, and described program is handled
The step of above method is realized when device executes.
The embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and is stored in memory
The step of computer program that is upper and can running on a processor, the processor realizes the above method when executing described program.
Description of the drawings
Fig. 1 is the flow chart of the media file compatibility test method in first embodiment of the invention;
Fig. 2 is the flow chart of the media file compatibility test method in second embodiment of the invention;
Fig. 3 is the flow chart of the media file compatibility test method in third embodiment of the invention;
Fig. 4 is the structure diagram of the media file device for testing compatibility in fourth embodiment of the invention;
Fig. 5 is the structure diagram of the media file device for testing compatibility in fifth embodiment of the invention;
Fig. 6 is the structure diagram of Computer equipment of the embodiment of the present invention.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not considered as limiting the invention.
With reference to following description and drawings, it will be clear that these and other aspects of the embodiment of the present invention.In these descriptions
In attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, to indicate to implement the implementation of the present invention
Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, the present invention
Embodiment includes all changes, modification and the equivalent fallen within the scope of the spirit and intension of attached claims.
Media file compatibility test in the embodiment of the present invention is based on the test procedure document being installed on test machine
It realizes, the media player for treating test equipment carries out compatibility test, and equipment to be tested is, for example, computer, tablet electricity
Brain, mobile phone, television set etc. have the electronic equipment of the media players such as audio player, video player.The test machine is for example
For computer equipment, test procedure document is installed thereon.The data of the test procedure document are exposed to after data encapsulate
Upper layer is unified file read-write interface, and its bottom layer realization can then handle the different access modes of file.The test
Program file includes configuration file and API test files, and configuration file is used to configure the information of equipment to be tested, as configuration waits for
The IP address of test equipment, the essential information etc. of equipment to be tested, API test files are used to treat the media file of test equipment
The execution file of compatibility test.
It please refers to Fig.1 as the media compatibility test method in first embodiment of the invention, including step S11~S13.
Step S11, inquires whether equipment to be tested connects preset storage device, if so, executing step S12.
In order not to be limited by the memory capacity of equipment to be tested, the present embodiment is by media file storage in storage device
In, storage device is, for example, USB flash disk, RAM card etc., easy to operation, this storage device can be used to any one equipment to be tested.
Storage device is previously stored with multimedia file library thereon, which can store the media text for the format that user specifies
Part.
When it is implemented, the device identification letter of storage device can be configured in the configuration file of test procedure document in advance
Breath, and storage device is connected to by USB interface in equipment to be tested.When being tested, test program on testing results machine
File, test machine are sent in inquiry instruction to equipment to be tested, which includes storage device device identification.It is to be tested to set
For when receiving the inquiry instruction, according to the device identification, inquire whether equipment to be tested is connected with corresponding storage device, and
Feedback query information is to test machine.
Further, test machine inquire before whether equipment to be tested connects preset storage device also need to establish with it is to be measured
The communication connection between equipment is tried, to carry out information exchange.Test machine is established with equipment to be tested there are many modes of connection, example
It can be such as attached by WIFI, bluetooth, USB data line.
Step S12 sends test instruction to the equipment to be tested, so that the equipment to be tested refers to according to the test
The media file played in the storage device is enabled, and generates the record file played during the media file.
When test machine according to device identification inquire equipment to be tested be connected with the equipment identification information it is corresponding storage set
When standby, test instruction is sent to equipment to be tested, which instructs for controlling the matchmaker in device plays storage device to be tested
Body file, and generate the record file played during the media file.The record file is during playback of media files
The running log generated during the information of record, such as recording played, or sectional drawing when broadcasting media file.
The media file stored in storage device can be inquired according to the storage address of the media file configured in configuration file.
The storage address of media file is for being directed toward the media file stored in storage device.
Multimedia APP in equipment to be tested includes a variety of players, such as audio player, video player, figure
Piece player need to call the type media file is corresponding to broadcast when the media file to a certain type carries out compatibility test
Device is put to play out.Therefore, the identification information of configuration media player is also needed in configuration file.The identification information of media player
Including the packet name of multimedia APP and the title of player interface, in order to the equipment calls to be tested media player.
When equipment to be tested receives test instruction, according to the identification information-enquiry of media player to corresponding media
Player, and the media file in the media renderer plays storage device by inquiring.
When it is implemented, storage device can pre-establish at least one media file library, a kind of media file library can prestore
A type of media file is stored up, such as only includes video type or only includes the media file of audio types, it is corresponding, every time
Test is only corresponding to call a type of media player to play out.It may include the matchmaker of at least one format in media file library
Body file, such as video file library may include at least one of the video file of AVI, DVD, RM, MP4 format.When matchmaker's file
The storage address of multiple media files is configured when library includes multiple media files, in configuration file, test machine is according to storage
Location sends corresponding test instruction to equipment to be tested, so that equipment to be tested successively plays out each media file.
Further, it does not inquire equipment to be tested according to equipment identification information when test machine and connects corresponding storage device
When, prompt message is sent, to prompt user not find target storage device, in order to which user checks whether storage device connects
Equipment to be tested, or whether it is connected to the storage device of mistake.
Step S13 obtains the record file, and the compatibility of the media file is determined according to the record file.
When it is implemented, test machine sends the control instruction for obtaining record file to equipment to be tested, so as to be tested set
For according to the control instruction, record file is sent to test equipment.Test machine gets the record file that equipment to be tested is sent
Afterwards, judge whether the media file played is compatible with according to the record file.Whether media file is compatible with, which is
The no media file for supporting to play the format illustrates to be compatible with, if not propping up if Devices to test support plays matchmaker's file of the format
Hold broadcasting then illustrate it is incompatible.
Above-mentioned steps are carried out by an API test file in test procedure document, which includes more
Control instruction executes different control instructions and executes different actions for controlling Devices to test.Testing results program file
When, test machine, which can one by one be sent in control instruction to equipment to be tested, to be implemented.
In the present embodiment, the storage device for being stored with media file is connected in equipment to be tested, is waited for when being connected to this
After test equipment, sends test and instruct to equipment to be tested, to control the media file in device plays storage device to be tested,
And generate the record file played during the media file.Test machine is simultaneous according to the record file automatic decision media file
Capacitive.The present embodiment can realize that the compatibility of the media file of Devices to test is tested automatically, improve testing efficiency.
Referring to Fig. 2, for the media file compatibility test method in second embodiment of the invention, including step S21~
S24。
Step S21 obtains the IP address of equipment to be tested, and is established and the equipment to be tested according to the IP address
Connection.
It treats test equipment to be tested, needs to carry out information exchange between test machine and equipment to be tested, it is to be tested to set
Standby and test machine interaction can be realized by same LAN.Equipment to be tested to be tested is connected network by user, to be tested
An IP address is configured after equipment connection network, and the connection with the equipment to be tested is established according to the IP address.User exists
The designated position of configuration file is written the IP address of equipment to be tested, when testing results program file, obtains the IP address.
When test, equipment to be tested and test machine are in same LAN, test machine and equipment to be tested are established and led to
Letter connects laggard row information interaction.Such as system of testing be realized based on Android operation system, and equipment to be tested use
Operating system is android system, test machine and equipment to be tested can be based on ADB (Android Debug Bridge,
Android debugs bridge) establish interface channel progress information exchange.
Further, when getting the IP address of equipment to be tested, test machine with detecting the IP of equipment to be tested first
Whether location is sound, whether the network connection of equipment to be tested is normal, is connected with being confirmed whether to establish with equipment to be tested.If inspection
It surveys and completes and after success, the interface channel with equipment to be tested is established, to carry out information exchange.If with surveying the IP of equipment to be tested
When location is unsound or the network connection of equipment to be tested is abnormal, prompt message is sent out, to remind user not surveyed normally
Examination, and the network connection for treating test equipment is checked.
Step S22, inquires whether equipment to be tested connects preset storage device, if so, executing step S23.
It in the present embodiment, tests each time, needs to call a kind of media player, to the media file to a certain type
Test.When carrying out compatibility test therefore, it is necessary to the media file to a certain type, generally in storage device there are many storages
The media file of the type of format, such as the video file or audio file or picture of multiple format.
Step S23 sends test instruction to the equipment to be tested, so that the equipment to be tested is between the preset time
Every the running log for plaing in order the media file in the storage device, and being generated during recording played.
In above-mentioned steps, automatic media playing file at predetermined intervals.The time interval can be pre-set, such as
When media file is video file or audio file, 1min is may be configured as, i.e., is played automatically after each playback of media files 1min
Next media file.As media file be picture when, shorter time interval, such as 30s can be set.
When equipment to be tested receives the test instruction of test machine transmission, the multimedia text in automatic broadcasting memory
Part, and the running log generated during the recording played media file.The running log includes but not limited to media file
Title, type and broadcast information.Wherein, record information when broadcast information indicates the device plays to be tested media file, if
The broadcast information includes error message (error), then it represents that equipment to be tested is not supported to play the media file.
Step S24 obtains the running log in the equipment to be tested, and determines the media according to the running log
The compatibility of file.
Test machine can obtain the broadcasting of media file when monitoring that equipment to be tested has run all media files
Log.Test machine analyzes the running log of acquisition, to judge the compatibility of media file.When it is implemented, surveying
Test-run a machine extract running log in media file title, type and corresponding broadcast information, when in the broadcast information comprising mistake
When false information, determine that the media file is incompatible media file.
It should be understood that test machine can also carry out obtaining running log in real time in the playing process of operation media file,
It not limits herein.
Compared with first implements, in the present embodiment, judged according to the running log generated during playback of media files
Its compatibility, carries out compatibility test to media file automatically, and testing efficiency is high.And no matter when video file, audio file
Or picture file etc. is all made of time method and is tested automatically, and test scope is wide.
Referring to Fig. 3, for the media file compatibility test method in third embodiment of the invention, including step S31~
S35。
Step S31 obtains the IP address of equipment to be tested, and is established and the equipment to be tested according to the IP address
Connection.
Step S32, inquires whether equipment to be tested connects preset storage device, if so, executing step S33.
The media file for carrying out compatible detection is stored in preset storage device, test machine need to judge equipment to be tested
It whether is connected with the storage device, next step is carried out if in connection, prompt is sent out if not connecting, to remind user to connect
Connect correct storage device.
Step S33, judges whether the media file to be tested is the file of display type, if so, executing step S34.
Display type file is the file, such as video file, picture file etc. watched for user.In the present embodiment,
It is illustrated with video file, i.e., stores the video file of multiple format in storage device.
Step S34 sends test instruction to the equipment to be tested, so that the equipment to be tested is between the preset time
Every plaing in order the media file in the storage device, and sectional drawing is carried out to the broadcast interface of each media file.
In above-mentioned steps, for test equipment in the test instruction for receiving test machine transmission, control media player one is pre-
If time interval broadcasting memory in media file, and during playing media file intercept broadcast interface figure
Picture, herein can full screen printscreen.
The reproduction time interval of media file can be pre-set, and the image of the broadcast interface of interception can also be each media
The sectional drawing at interface of the file when playing specific time.For example, test equipment interval 1min plays a media file, and control
The image of broadcast interface is intercepted in each playback of media files 0.5min.
Step S35, obtains the equipment truncated picture to be tested, and described image and corresponding baseline chart are carried out pair
Than when described image is with corresponding baseline image difference, determining that the media file is incompatible.
Test machine can obtain equipment truncated picture to be tested after all media files play, and respectively with
Corresponding baseline image is compared.It should be understood that in the other embodiment of the present invention, each media can also intercepted
Immediately the image of equipment to be tested is obtained after file, and is compared with corresponding baseline image;Can also when interval it is certain when
Between obtain sectional drawing, and be compared with corresponding baseline image, do not limit herein.
The standard picture that intercepts when baseline image is media file normal play, with the media image that is intercepted when test
Interception time is consistent, for example, all when truncated picture when playing 0.5min.By test when sectional drawing media image with it is corresponding
Baseline image be compared, if the two is different, it is determined that the media file can not play, i.e., incompatible.General media file
When can not play, image is blank screen, inevitable different from baseline image, can determine whether that the media file is incompatible accordingly.
It is appreciated that because of the influence of the conditions such as pixel, the resolution ratio of the equipment that play media file, allow to intercept when test
Image and baseline image have certain error, for example, when two images of comparison have 10% then to determine test when not being overlapped
When truncated picture it is different from baseline image.
It should be understood that the method in the present embodiment is applied equally to the compatibility test of picture file, testing
Cheng Zhong, intercepts the image of the broadcast interface of a picture file, and is compared with corresponding baseline image, whether to determine the two
It is identical, determine that the picture file can not play if different, i.e., it is incompatible.
It should be understood that for non-video or the media file of picture, then carry out judging compatibility still according to running log,
Its judgment method can be carried out according to the method in second embodiment.
In the present embodiment, when carrying out compatibility test for video file or picture file, in the mistake for playing media file
The image at sectional drawing playback of media files interface in journey, and be compared with preset baseline image, it should in Devices to test to determine
The compatibility of media file.The comparison process of picture is relatively simple, and without complicated program operation, testing efficiency is high, and
User can check that the sectional drawing that test machine obtains can clearly and intuitively know the broadcasting situation of each media file, and be directed to
Abnormal conditions are made a concrete analysis of and are improved, and operation is more convenient.
Referring to Fig. 4, for a kind of media file device for testing compatibility in fourth embodiment of the invention, including:
Enquiry module 200, for inquiring whether equipment to be tested connects preset storage device;
Sending module 300, for sending test instruction to the equipment to be tested, so that the equipment to be tested is according to institute
The media file in the test instruction broadcasting storage device is stated, and generates the record text during playing the media file
Part;
Determining module 400 determines the media file for obtaining the record file, and according to the record file
Compatibility.
Further, above-mentioned media file device for testing compatibility, wherein when the storage device stores multiple matchmakers
When body file, the sending module 300 is specifically used for:
Test instruction is sent to the equipment to be tested, so that the equipment to be tested is broadcast successively at predetermined intervals
The media file in the storage device is put, and generates the record file for playing each media file.
Further, above-mentioned media file device for testing compatibility, wherein the sending module 300 is specifically used for:
Test instruction is sent to the equipment to be tested, so that the equipment to be tested is instructed according to the test plays institute
The media file in storage device is stated, and generates the running log for playing the media file;
The determining module 400 includes:
First acquisition module 410, for obtaining the running log;
First determination sub-module 420, the compatibility for determining the media file according to the running log.
Further, first determination sub-module is specifically used for:
Judge to whether there is error message in the running log;
If so, determining that the media file is incompatible.
Further, above-mentioned media file device for testing compatibility further includes connection establishment module 100, is waited for for obtaining
The IP address of test equipment, and the connection with the equipment to be tested is established according to the IP address.
Further, above-mentioned media file device for testing compatibility further includes:
Detection module 500, whether the IP address for detecting the equipment to be tested is complete and detects described to be tested set
Whether standby network connection is normal;
Determining module 600 is established in connection, is used for when the IP address of the equipment to be tested is complete and the equipment to be tested
Network connection it is normal when, determine and establish and the connection of the equipment to be tested;
Reminding module 700 is used for when the IP address of the equipment to be tested is imperfect or the network of the equipment to be tested
When connection is abnormal, prompt message is sent out.
Its implementing principle and technical effect of the media file device for testing compatibility of the present embodiment and above-described embodiment one or
Embodiment two is similar, and details are not described herein again.
Referring to Fig. 5, for the media file device for testing compatibility in fifth embodiment of the invention, not with fourth embodiment
With, in the present embodiment, when the media file be display type file, when such as video file or picture file, the hair
The module 300 is sent to include:
Judgment module 310, for judge the media file to be tested whether be display type file;
Sending submodule 320, for when the media file to be tested is the file of display type, sending test instruction
To the equipment to be tested, so that the equipment to be tested plays the media text in the storage device according to the test instruction
Part, and sectional drawing is carried out to the broadcast interface of the media file;
The determining module 400 includes:
Second acquisition module 430, for obtaining the equipment truncated picture to be tested;
Second determination sub-module 440, for described image to be compared with corresponding baseline chart, when described image with it is right
When the baseline image difference answered, determine that the media file is incompatible.
In its implementing principle and technical effect of the media file device for testing compatibility of the present embodiment and above-described embodiment
Similar, details are not described herein again.
The present invention also provides a kind of readable storage medium storing program for executing, are stored thereon with computer program, described program is by processor
The step of any one method in above-described embodiment 1 to 3 is realized when execution.
As shown in fig. 6, for the structural schematic diagram of the computer equipment in the embodiment of the present invention, including memory 11, processing
Device 12 and it is stored in the computer program that can be run on memory 11 and on the processor 12, the processor 12 executes described
The step of method of any one in above-described embodiment 1 to 3 is realized when program.The computer equipment 10 further includes a display device
13 and input unit 14.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (system of such as computer based system including processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.
The more specific example (non-exhaustive list) of computer-readable medium includes following:It is connected up with one or more
Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiments or example in can be combined in any suitable manner.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of media file compatibility test method, which is characterized in that including:
Inquire whether equipment to be tested connects preset storage device;
If so, sending test instruction to the equipment to be tested, played so that the equipment to be tested is instructed according to the test
Media file in the storage device, and generate the record file played during the media file;
The record file is obtained, and determines the compatibility of the media file according to the record file.
2. media file compatibility test method as described in claim 1, which is characterized in that when storage device storage is more
When a media file, the transmission test instruction is to the equipment to be tested, so that the equipment to be tested is according to
Test instruction plays the media file in the storage device, and generates record file during playing the media file
Step includes:
Test instruction is sent to the equipment to be tested, so that the equipment to be tested plays in order institute at predetermined intervals
The media file in storage device is stated, and generates the record file for playing each media file.
3. media file compatibility test method as described in claim 1, which is characterized in that the transmission test instruction to institute
Equipment to be tested is stated, so that the equipment to be tested plays the media file in the storage device according to the test instruction,
And the step of generating the record file during playing the media file, includes:
Test instruction is sent to the equipment to be tested, so that the equipment to be tested is deposited according to described in test instruction broadcasting
The media file in equipment is stored up, and generates the running log for playing the media file;
It is described to obtain the record file, and according to the step packet for recording file and determining the compatibility of the media file
It includes:
The running log is obtained, and determines the compatibility of the media file according to the running log.
4. media file compatibility test method as claimed in claim 3, which is characterized in that described according to the running log
Determine that the step of the compatibility of the media file includes:
Judge to whether there is error message in the running log;
If so, determining that the media file is incompatible.
5. media file compatibility test method as described in claim 1, which is characterized in that the transmission test instruction to institute
Equipment to be tested is stated, so that the equipment to be tested plays the media file in the storage device according to the test instruction,
And the step of generating the record file during playing the media file, includes:
Judge the media file to be tested whether be display type file;
If so, sending test instruction to the equipment to be tested, played so that the equipment to be tested is instructed according to the test
Media file in the storage device, and sectional drawing is carried out to the broadcast interface of the media file;
It is described to obtain the record file, and according to the step packet for recording file and determining the compatibility of the media file
It includes:
The equipment truncated picture to be tested is obtained, and described image is compared with corresponding baseline chart, when the figure
When as with corresponding baseline image difference, determine that the media file is incompatible.
6. media file compatibility test method as described in claim 1, which is characterized in that the transmission test instruction to institute
Further include before the step of stating equipment to be tested:
The IP address of equipment to be tested is obtained, and the connection with the equipment to be tested is established according to the IP address.
7. media file compatibility test method as claimed in claim 6, which is characterized in that described to be built according to the IP address
Further include before the step of standing the connection with the equipment to be tested:
Whether the IP address network connection that is whether complete and detecting the equipment to be tested for detecting the equipment to be tested is normal;
When the IP address of the equipment to be tested is complete and the network connection of the equipment to be tested is normal, determines and establish and institute
State the connection of equipment to be tested;
When the IP address of the equipment to be tested is imperfect or the network connection exception of the equipment to be tested, prompt letter is sent out
Breath.
8. a kind of media file device for testing compatibility, which is characterized in that including:
Enquiry module, for inquiring whether equipment to be tested connects preset storage device;
Sending module is instructed for when detecting that equipment to be tested is connected with preset storage device, sending test to described
Equipment to be tested, so that the equipment to be tested plays the media file in the storage device according to the test instruction, and
Generate the record file played during the media file;
Determining module, for obtaining the record file, and according to the compatibility for recording file and determining the media file.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that realized when described program is executed by processor
The step of method as described in any one of claim 1-7.
10. a kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor
Computer program, which is characterized in that the processor is realized when executing described program such as any one of claim 1-7 institutes
The step of method stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810292066.0A CN108630242A (en) | 2018-04-03 | 2018-04-03 | media file compatibility test method, device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810292066.0A CN108630242A (en) | 2018-04-03 | 2018-04-03 | media file compatibility test method, device, storage medium and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108630242A true CN108630242A (en) | 2018-10-09 |
Family
ID=63704730
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810292066.0A Pending CN108630242A (en) | 2018-04-03 | 2018-04-03 | media file compatibility test method, device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108630242A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111277818A (en) * | 2020-01-15 | 2020-06-12 | 深圳市康冠智能科技有限公司 | Multimedia format test method, device, system, terminal and storage medium |
CN113068022A (en) * | 2021-04-02 | 2021-07-02 | 斑马网络技术有限公司 | Vehicle-mounted machine multimedia compatibility testing method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030099051A1 (en) * | 2001-11-28 | 2003-05-29 | Funai Electric Co., Ltd. | Disk processing apparatus |
CN104053051A (en) * | 2014-06-12 | 2014-09-17 | 广东欧珀移动通信有限公司 | Automated testing method and device achieving compatibility of mobile phone audios and mobile phone videos |
CN104536888A (en) * | 2014-12-24 | 2015-04-22 | 网易(杭州)网络有限公司 | Game testing method and system for mobile devices |
CN105373470A (en) * | 2014-08-28 | 2016-03-02 | 西安Tcl软件开发有限公司 | Media file compatibility detection method and apparatus |
WO2017112046A1 (en) * | 2015-12-25 | 2017-06-29 | Intel Corporation | Device, method and system for performing closed chassis debug with a repeater |
-
2018
- 2018-04-03 CN CN201810292066.0A patent/CN108630242A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030099051A1 (en) * | 2001-11-28 | 2003-05-29 | Funai Electric Co., Ltd. | Disk processing apparatus |
CN104053051A (en) * | 2014-06-12 | 2014-09-17 | 广东欧珀移动通信有限公司 | Automated testing method and device achieving compatibility of mobile phone audios and mobile phone videos |
CN105373470A (en) * | 2014-08-28 | 2016-03-02 | 西安Tcl软件开发有限公司 | Media file compatibility detection method and apparatus |
CN104536888A (en) * | 2014-12-24 | 2015-04-22 | 网易(杭州)网络有限公司 | Game testing method and system for mobile devices |
WO2017112046A1 (en) * | 2015-12-25 | 2017-06-29 | Intel Corporation | Device, method and system for performing closed chassis debug with a repeater |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111277818A (en) * | 2020-01-15 | 2020-06-12 | 深圳市康冠智能科技有限公司 | Multimedia format test method, device, system, terminal and storage medium |
CN111277818B (en) * | 2020-01-15 | 2021-09-21 | 深圳市康冠智能科技有限公司 | Multimedia format test method, device, system, terminal and storage medium |
CN113068022A (en) * | 2021-04-02 | 2021-07-02 | 斑马网络技术有限公司 | Vehicle-mounted machine multimedia compatibility testing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10038962B2 (en) | System and method for testing and certification of media devices for use within a connected media environment | |
US8266665B2 (en) | TV screen capture | |
US10075762B2 (en) | Methods and apparatus for detecting space-shifted media associated with a digital recording/playback device | |
CN108519934A (en) | Board test method, device, readable storage medium storing program for executing and computer equipment | |
CN108519933A (en) | Board test method, device, readable storage medium storing program for executing and computer equipment | |
US20100057405A1 (en) | Automated software testing environment | |
CN101645815B (en) | Video and audio file download prompt method | |
CN108630242A (en) | media file compatibility test method, device, storage medium and computer equipment | |
CN109413417B (en) | System and method for detecting interactive television service quality | |
US10187697B2 (en) | Enabling communication connections related to received content | |
CN108519935B (en) | Board card testing method and device, readable storage medium and computer equipment | |
US20150281646A1 (en) | Transmission system, relay apparatus, transmission terminal, and transmission terminal control program | |
US20090037816A1 (en) | Electronic apparatus having operation guide providing function | |
CN110018937A (en) | A kind of solid state hard disk test device and method | |
CN105979255A (en) | Audio acquisition tooling, method and cloud server | |
CN111309632A (en) | Application program testing method and device, computer equipment and storage medium | |
CN106445806A (en) | Software testing method and device | |
US7680250B1 (en) | Interactive method and system of testing an automated call telephonic communication system | |
US20190327280A1 (en) | Method and program for providing content streaming service and managing data statistics of user using qr code | |
CN108241748B (en) | Method, device, medium and equipment for acquiring live broadcast music name | |
CN105657632B (en) | A kind of audio testing method, terminal and system | |
CN109819292B (en) | Control method of remote media machine and remote media machine | |
US10165313B1 (en) | Testing set top appliance boxes | |
WO2017166486A1 (en) | Audio debugging method and device for television | |
CN109151417B (en) | Detection system and method for multimedia equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181009 |