CN108600816A - A kind of detecting method of media, device and media play system - Google Patents
A kind of detecting method of media, device and media play system Download PDFInfo
- Publication number
- CN108600816A CN108600816A CN201810475181.1A CN201810475181A CN108600816A CN 108600816 A CN108600816 A CN 108600816A CN 201810475181 A CN201810475181 A CN 201810475181A CN 108600816 A CN108600816 A CN 108600816A
- Authority
- CN
- China
- Prior art keywords
- information
- compression
- audio
- medium data
- format
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4305—Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
- H04N21/4398—Processing of audio elementary streams involving reformatting operations of audio signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44204—Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Abstract
The embodiment of the invention discloses a kind of detecting method of media, device and media play system, the detecting method of media includes:Stream medium data to be played is obtained, the format of the stream medium data is verified according to the protocol information of the stream medium data;If the format of the stream medium data is correct, the stream medium data is parsed, obtains compression video information and compression audio-frequency information;The format of the compression video information and compression audio-frequency information is verified using preset algorithm;If the compression video information and the format for compressing audio-frequency information are correct, processing is decoded to the compression video information and compression audio-frequency information.The embodiment of the present invention can verify the file format of media information, so as to when a problem occurs where timely lockout issue, convenient for excluding the difficult and complicated cases in playing process, improve efficiency in playing process.
Description
Technical field
The present invention relates to a kind of technical field of media more particularly to detecting method of media, device and media play systems.
Background technology
At this stage, with the continuous development of mobile terminal, it is more prevalent to watch video online using mobile terminal.
When in Online Video playing process, if it is poor to produce some during Streaming Media acquisition, transmission, decoding etc.
Mistake may result in and occur the problems such as blank screen, voiceless sound, fail without picture or broadcasting in viewing, generally requires to turn one's head at this time
It goes inspection where out of joint, compares and expend the time, it is difficult to efficiently find the problem.
Invention content
A kind of detecting method of media of offer of the embodiment of the present invention, device and media play system, can be in playing process
In self-test is carried out to media file, quickly detect problem, improve efficiency.
First aspect of the embodiment of the present invention provides a kind of detecting method of media, including:
Stream medium data to be played is obtained, according to the protocol information of the stream medium data to the stream medium data
Format is verified;
If the format of the stream medium data is correct, parse the stream medium data, obtain compression video information and
Compress audio-frequency information;
The format of the compression video information and compression audio-frequency information is verified using preset algorithm;
If the compression video information and compress audio-frequency information format it is correct, to the compression video information and
Compression audio-frequency information is decoded processing.
Optionally, the protocol information according to the stream medium data carries out school to the format of the stream medium data
It tests, including:
Obtain the corresponding signaling type of protocol information of the stream medium data;
The signaling type and the signaling in the stream medium data are compared;
If identical, the sig data information in the stream medium data is removed, is confirming the stream medium data format just
Really;
If it is different, then confirming the stream medium data format error.
Optionally, described that the format of the compression video information and compression audio-frequency information is carried out using preset algorithm
Verification, including:
Obtain compression video information compression standard corresponding with compression audio-frequency information;
Matched video algorithm and audio algorithm are chosen from preset database according to the compression standard;
The target position of the compression video information is verified using the matched video algorithm, according to check results
Judge whether the compression video information format is correct;
The target position of the compression video information is verified using the matched audio algorithm, according to check results
Judge whether the compression video information format is correct.
Optionally, the method further includes:
Obtain original video information and original audio information after decoding process;
Verify the original video information and the timestamp information of original audio information;
If the timestamp information is correct, believed according to the original video information and the timestamp of original audio information
Breath synchronizes processing.
Optionally, the verification original video information and the timestamp information of original audio information, including:
Judge whether the timestamp information of the original video information and original audio information is sequentially to arrange;
If so, it is correct to be confirmed as timestamp information.
Second aspect of the embodiment of the present invention provides a kind of medium detector, including:
First correction verification module, for obtaining stream medium data to be played, according to the protocol information of the stream medium data
The format of the stream medium data is verified;
Parsing module, for when the format of the stream medium data is correct, parsing the stream medium data, being compressed
Video information and compression audio-frequency information;
Second correction verification module, for the lattice using preset algorithm to the compression video information and compression audio-frequency information
Formula is verified;
Decoder module is used for when the format of the compression video information and compression audio-frequency information is correct, to the pressure
Contracting video information and compression audio-frequency information are decoded processing.
Optionally, first correction verification module is specifically used for:
Obtain the corresponding signaling type of protocol information of the stream medium data;
The signaling type and the signaling in the stream medium data are compared;
If identical, the sig data information in the stream medium data is removed, is confirming the stream medium data format just
Really;
If it is different, then confirming the stream medium data format error.
Optionally, second correction verification module is specifically used for:
Obtain compression video information compression standard corresponding with compression audio-frequency information;
Matched video algorithm and audio algorithm are chosen from preset database according to the compression standard;
The target position of the compression video information is verified using the matched video algorithm, according to check results
Judge whether the compression video information format is correct;
The target position of the compression video information is verified using the matched audio algorithm, according to check results
Judge whether the compression video information format is correct.
Optionally, described device further includes:
Acquisition module, for obtaining the original video information after decoding process and original audio information;
Third correction verification module, the timestamp information for verifying the original video information and original audio information;
Synchronization module is used for when the timestamp information is correct, according to the original video information and original audio
The timestamp information of information synchronizes processing.
Optionally, the third correction verification module is specifically used for:
Judge whether the timestamp information of the original video information and original audio information is sequentially to arrange;
If so, it is correct to be confirmed as timestamp information.
The third aspect of the embodiment of the present invention provides a kind of media play system, including media detection described above dress
It sets.
Implement the embodiment of the present invention, has the advantages that:
Detecting method of media, device and media play system provided in an embodiment of the present invention, in Streaming Media solution agreement, solution
Code during, the file format of media information can be verified, so as in playing process when a problem occurs and
When lockout issue where, convenient for exclude playing process in difficult and complicated cases, improve efficiency.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of method flow diagram of detecting method of media first embodiment provided in an embodiment of the present invention.
Fig. 2 is a kind of method flow diagram of detecting method of media second embodiment provided in an embodiment of the present invention.
Fig. 3 is a kind of method flow diagram of detecting method of media 3rd embodiment provided in an embodiment of the present invention.
Fig. 4 is a kind of method flow diagram of detecting method of media fourth embodiment provided in an embodiment of the present invention.
Fig. 5 is a kind of structural schematic diagram of medium detector first embodiment provided in an embodiment of the present invention.
Fig. 6 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the disclosure, rather than the restriction to the disclosure.It also should be noted that in order to just
It is illustrated only in description, attached drawing and the relevant part of the disclosure rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.It is therein to be permitted although each step to be described as to the processing of sequence in flow chart
Multi-step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged, when its operation
The processing can be terminated when completion, it is also possible to the other steps being not included in attached drawing.Processing can correspond to
In method, function, regulation, subroutine, subprogram etc..
Fig. 1 is a kind of method flow diagram of detecting method of media first embodiment provided in an embodiment of the present invention.The media
Detection method is applied to terminal, and the terminal can be computer, desktop computer, tablet computer etc., or smart mobile phone,
E-book, wearable device etc..The terminal can realize this by installing the form of application program or built-in application program
The method that media file detects in inventive embodiments.The detecting method of media includes the following steps S101-S104.
In step S101, stream medium data to be played is obtained, according to the protocol information of the stream medium data to institute
The format for stating stream medium data is verified.
Specifically, in this implementation, the terminal can be used for playing the stream on network by installing corresponding application program
Media data.By accessing corresponding address, stream medium data to be played is obtained.It is understood that in acquisition process,
It is the process played while caching.In caching, in order to accelerate speed, the form of piecemeal caching, this implementation can also be
Example is not limited thereto.After obtaining stream medium data, according to the format of the agreement streaming media data of stream medium data
It is verified, judges whether format is correct.Wherein, the agreement of stream medium data includes RTMP (Real Time Messaging
Protocol, real-time messages transport protocol), RTSP (Real Time Streaming Protocol, real time streaming transport protocol)
And HTTP (HyperText Transfer Protocol, hypertext transfer protocol).When using different agreements, matchmaker is flowed
Whether the format of volume data will be different, therefore, can correctly be verified to format according to the type of agreement.If verification is just
Really, then follow-up step S102 is carried out.If check errors, corresponding prompt message can be popped up, to remind user.
In step s 102, if the format of the stream medium data is correct, the stream medium data is parsed, is compressed
Video information and compression audio-frequency information.
Specifically, when format is correct, stream medium data is parsed, obtains compression video information and compression audio-frequency information.
In the present embodiment, the step of parsing can be demultiplexing, decapsulation, and the present embodiment is not limited thereto.
In step s 103, using preset algorithm to it is described compression video information and compress audio-frequency information format into
Row verification.
Specifically, since different compression videos with compression audio corresponds to different formats, in this step, for format into
The further verification of row.Wherein, the format for compressing video includes:H.264, MPEG-2 and VC-1 etc.;Compress the format of audio
Including:AAC, MP3 and AC-3 etc..According to different formats, verified using preset algorithm.Wherein, described preset
Algorithm can be pre-set, and include the corresponding checking algorithm of various formats.
In step S104, if the format of the compression video information and compression audio-frequency information is correct, to the pressure
Contracting video information and compression audio-frequency information are decoded processing.
Specifically, when format is correct, further compression information is decoded, obtains decoded information.
It is above-mentioned it is found that detecting method of media provided in an embodiment of the present invention, in Streaming Media solution agreement, decoding process, energy
It is enough that the file format of media information is verified, so as to the timely lockout issue institute when a problem occurs in playing process
Convenient for excluding the difficult and complicated cases in playing process, efficiency is being improved.
Fig. 2 is a kind of method flow diagram of detecting method of media second embodiment provided in an embodiment of the present invention.Comparison diagram 1
Shown in first embodiment, further comprise the step of being verified according to protocol information in the present embodiment.The media detection
Method includes the following steps S201-S208.
In step s 201, stream medium data to be played is obtained.
In step S202, the corresponding signaling type of protocol information of the stream medium data is obtained.
Specifically, according to the protocol type of stream medium data, the corresponding signaling type of the agreement is obtained.Due to different agreement
The signaling type taken is different, therefore can be judged with the format of streaming media data according to signaling.
In step S203, the signaling type and the signaling in the stream medium data are compared.
Specifically, the signaling of the corresponding standard signaling type of agreement and stream medium data is compared, if the two is identical,
Show that the format of stream medium data is correct, enters step in S204 at this time;If the two is different, show that the format of stream medium data is wrong
Accidentally, it enters step in S208 at this time.
In step S204, the sig data information in the stream medium data is removed, confirms the stream medium data lattice
Formula is correct.
Specifically, when format is correct, it is also necessary to which further streaming media data are handled, and in this step, are carried out
The action for solving agreement, that is, remove the sig data information in the stream medium data, only retains audio, video data, in order to follow-up
Processing.
In step S205, the stream medium data is parsed, obtains compression video information and compression audio-frequency information.
In step S206, using preset algorithm to it is described compression video information and compress audio-frequency information format into
Row verification.
In step S207, if the format of the compression video information and compression audio-frequency information is correct, to the pressure
Contracting video information and compression audio-frequency information are decoded processing.
In step S208, the stream medium data format error is confirmed.
Specifically, when the signaling difference of standard signaling type and stream medium data, show that the format of stream medium data is wrong
Accidentally, corresponding prompt message can be generated at this time, prompt user.In other embodiments, can also be believed according to format error
Breath generates corresponding log information, and preserves the log information, in order to subsequently research and develop or the access of tester.
It is above-mentioned it is found that detecting method of media provided in an embodiment of the present invention, in Streaming Media solution agreement, decoding process, energy
It is enough that the file format of media information is verified, so as to the timely lockout issue institute when a problem occurs in playing process
Convenient for excluding the difficult and complicated cases in playing process, efficiency is being improved.
Fig. 3 is a kind of method flow diagram of detecting method of media 3rd embodiment provided in an embodiment of the present invention.Comparison diagram 1
Shown in first embodiment, the present embodiment further comprise how to verify compression video information and compress audio-frequency information step
Suddenly.It is understood that the step in the present embodiment can be applied equally in second embodiment shown in Fig. 2.The media are examined
Survey method includes the following steps:S301-S307.
In step S301, stream medium data to be played is obtained, according to the protocol information of the stream medium data to institute
The format for stating stream medium data is verified.
In step s 302, if the format of the stream medium data is correct, the stream medium data is parsed, is compressed
Video information and compression audio-frequency information.
In step S303, compression video information compression standard corresponding with compression audio-frequency information is obtained.
Specifically, the format of compression video includes:H.264, MPEG-2 and VC-1 etc.;Compression audio format include:
AAC, MP3 and AC-3 etc..When using different formats, compression standard also differs.In the present embodiment, video is obtained respectively
Compression standard and audio compression standard.
In step s 304, matched video algorithm and sound are chosen from preset database according to the compression standard
Frequency algorithm.
Specifically, the preset database can be pre-set, include various compressions in the preset database
The corresponding checking algorithm of standard, the checking algorithm include video algorithm and audio algorithm.Phase is chosen according to compression standard
The checking algorithm matched.
In step S305, school is carried out to the target position of the compression video information using the matched video algorithm
It tests, judges whether the compression video information format is correct according to check results.
Specifically, in verification, verified for the target position in compression information.
In step S306, school is carried out to the target position of the compression video information using the matched audio algorithm
It tests, judges whether the compression video information format is correct according to check results.
In step S307, if the format of the compression video information and compression audio-frequency information is correct, to the pressure
Contracting video information and compression audio-frequency information are decoded processing.
It is above-mentioned it is found that detecting method of media provided in an embodiment of the present invention, in Streaming Media solution agreement, decoding process, energy
It is enough that the file format of media information is verified, so as to the timely lockout issue institute when a problem occurs in playing process
Convenient for excluding the difficult and complicated cases in playing process, efficiency is being improved.
Fig. 4 is a kind of method flow diagram of detecting method of media fourth embodiment provided in an embodiment of the present invention.Comparison diagram 1
Shown in first embodiment, the present embodiment further comprise checking time stamp the step of.It is understood that in the present embodiment
The step of can be applied equally in the second embodiment in Fig. 2 or Fig. 3 and 3rd embodiment.The detecting method of media includes
Following steps S401-S407.
In step S401, stream medium data to be played is obtained, according to the protocol information of the stream medium data to institute
The format for stating stream medium data is verified.
In step S402, if the format of the stream medium data is correct, the stream medium data is parsed, is compressed
Video information and compression audio-frequency information.
In step S403, using preset algorithm to it is described compression video information and compress audio-frequency information format into
Row verification.
In step s 404, if the format of the compression video information and compression audio-frequency information is correct, to the pressure
Contracting video information and compression audio-frequency information are decoded processing.
In step S405, original video information and original audio information after decoding process are obtained.
Specifically, original video information and original audio information can be obtained after decoding, wherein original video information
Format includes YUV, RGB etc., and the format of original audio information is PCM etc..
In step S406, the original video information and the timestamp information of original audio information are verified.
Specifically, for the audio-visual synchronization for ensureing when follow-up play, it is also necessary to carry out school to the timestamp of audio/video information
It tests, to judge whether to have occurred the situations such as rollback.
In the present embodiment, by judge the original video information and original audio information timestamp information whether be
It sequentially arranges, to judge whether timestamp information is correct.It when being sequentially to arrange, does not retract, shows
There is no problem.
In step S 407, if the timestamp information is correct, according to the original video information and original audio
The timestamp information of information synchronizes processing.
Specifically, synchronization process is the conventional means in current techniques, this will not be repeated here.
It is above-mentioned it is found that detecting method of media provided in an embodiment of the present invention, in Streaming Media solution agreement, decoding process, energy
It is enough that the file format of media information is verified, so as to the timely lockout issue institute when a problem occurs in playing process
Convenient for excluding the difficult and complicated cases in playing process, efficiency is being improved.
Fig. 5 is a kind of structural schematic diagram of medium detector first embodiment provided in an embodiment of the present invention.The media
Detection device is applied to terminal, and the terminal can be computer, desktop computer, tablet computer etc., or smart mobile phone,
E-book, wearable device etc..The medium detector includes:First correction verification module 501, parsing module 502, second verify
Module 503 and decoder module 504.
Wherein, first correction verification module 501, for obtaining stream medium data to be played, according to the Streaming Media number
According to protocol information the format of the stream medium data is verified;
Parsing module 502 is obtained for when the format of the stream medium data is correct, parsing the stream medium data
Compress video information and compression audio-frequency information;
Second correction verification module 503, for the compression video information and compressing audio-frequency information using preset algorithm
Format verified;
Decoder module 504 is used for when the format of the compression video information and compression audio-frequency information is correct, to described
Compression video information and compression audio-frequency information are decoded processing.
Optionally, first correction verification module 501 is specifically used for:
Obtain the corresponding signaling type of protocol information of the stream medium data;
The signaling type and the signaling in the stream medium data are compared;
If identical, the sig data information in the stream medium data is removed, is confirming the stream medium data format just
Really;
If it is different, then confirming the stream medium data format error.
Optionally, second correction verification module 503 is specifically used for:
Obtain compression video information compression standard corresponding with compression audio-frequency information;
Matched video algorithm and audio algorithm are chosen from preset database according to the compression standard;
The target position of the compression video information is verified using the matched video algorithm, according to check results
Judge whether the compression video information format is correct;
The target position of the compression video information is verified using the matched audio algorithm, according to check results
Judge whether the compression video information format is correct.
Optionally, the medium detector further includes:
Acquisition module, for obtaining the original video information after decoding process and original audio information;
Third correction verification module, the timestamp information for verifying the original video information and original audio information;
Synchronization module is used for when the timestamp information is correct, according to the original video information and original audio
The timestamp information of information synchronizes processing.
Optionally, the third correction verification module 506 is specifically used for:
Judge whether the timestamp information of the original video information and original audio information is sequentially to arrange;
If so, it is correct to be confirmed as timestamp information.
It is above-mentioned it is found that medium detector provided in an embodiment of the present invention, in Streaming Media solution agreement, decoding process, energy
It is enough that the file format of media information is verified, so as to the timely lockout issue institute when a problem occurs in playing process
Convenient for excluding the difficult and complicated cases in playing process, efficiency is being improved.
Fig. 6 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.It is understood that Fig. 1-Fig. 4
Shown in detecting method of media and medium detector shown in fig. 5 can be applied in mobile terminal shown in fig. 6.Such as Fig. 6
Shown, mobile terminal includes that (quantity of the processor 601 in terminal can be one or more, and Fig. 6 is at one for processor 601
For reason device) and memory 602.In an embodiment of the present invention, processor 601, memory 602 can be by buses or other
Mode connects, wherein in Fig. 6 for being connected by bus.
Wherein, executable program is stored in memory 602, processor 601 executes the executable program to realize such as
Lower step:
Stream medium data to be played is obtained, according to the protocol information of the stream medium data to the stream medium data
Format is verified;
If the format of the stream medium data is correct, parse the stream medium data, obtain compression video information and
Compress audio-frequency information;
The format of the compression video information and compression audio-frequency information is verified using preset algorithm;
If the compression video information and compress audio-frequency information format it is correct, to the compression video information and
Compression audio-frequency information is decoded processing.
Optionally, the processor 601 according to the protocol information of the stream medium data to the lattice of the stream medium data
Formula is verified, including:
Obtain the corresponding signaling type of protocol information of the stream medium data;
The signaling type and the signaling in the stream medium data are compared;
If identical, the sig data information in the stream medium data is removed, is confirming the stream medium data format just
Really;
If it is different, then confirming the stream medium data format error.
Optionally, the processor 601 to the compression video information and compresses audio-frequency information using preset algorithm
Format verified, including:
Obtain compression video information compression standard corresponding with compression audio-frequency information;
Matched video algorithm and audio algorithm are chosen from preset database according to the compression standard;
The target position of the compression video information is verified using the matched video algorithm, according to check results
Judge whether the compression video information format is correct;
The target position of the compression video information is verified using the matched audio algorithm, according to check results
Judge whether the compression video information format is correct.
Optionally, the processor 601 is additionally operable to:
Obtain original video information and original audio information after decoding process;
Verify the original video information and the timestamp information of original audio information;
If the timestamp information is correct, believed according to the original video information and the timestamp of original audio information
Breath synchronizes processing.
Optionally, the processor 601 verifies the original video information and the timestamp information of original audio information,
Including:
Judge whether the timestamp information of the original video information and original audio information is sequentially to arrange;
If so, it is correct to be confirmed as timestamp information.
It is above-mentioned it is found that mobile terminal provided in an embodiment of the present invention can be right in Streaming Media solution agreement, decoding process
The file format of media information is verified, so as in playing process when a problem occurs where timely lockout issue,
Convenient for excluding the difficult and complicated cases in playing process, efficiency is improved.
The embodiment of the present invention additionally provides a kind of media play system, and the media play system includes matchmaker shown in fig. 5
Body detection device, and can be applied to realize Fig. 1-detecting method of media shown in Fig. 4.The specific descriptions of the media play system
The description of the detecting method of media and medium detector of Fig. 1-Fig. 5 is can be found in, this will not be repeated here.
It is above-mentioned it is found that media play system provided in an embodiment of the present invention, in Streaming Media solution agreement, decoding process, energy
It is enough that the file format of media information is verified, so as to the timely lockout issue institute when a problem occurs in playing process
Convenient for excluding the difficult and complicated cases in playing process, efficiency is being improved.
There is provided in above-described embodiment each module between any two can be achieved communication connection, and each module can in platform
The communication of heart control device connects, and can perform in the disclosure by the quick recording device of fingerprint recognition for being provided in above-described embodiment is appointed
The method quickly recorded by fingerprint recognition provided in embodiment of anticipating has and executes the corresponding function module of this method and have
Beneficial effect, the technical detail not being described in detail in the above-described embodiments, reference can be made to fast provided in disclosure any embodiment
The method of speed recording.
It will be appreciated that the disclosure also extends to the computer program for being suitable for that the disclosure tries out, especially
Computer program on carrier or in carrier.Program can be with source code, object code, code intermediate source and such as part volume
The form of the object code for the form translated, or with any other shape for being suitble to use in realization according to the disclosed method
Formula.Also it will be noted that, such program may have many different frame designs.For example, realizing the side according to the disclosure
Functional program code of method or system may be subdivided into one or more subroutine.
For that will be apparent for technical personnel in the functional many different modes of these subroutine intermediate distributions.
Subroutine can be collectively stored in an executable file, to form self-contained program.Such executable file can
To include computer executable instructions, such as processor instruction and/or interpreter instruction (for example, Java interpreter instruction).It can
Alternatively, one or more or all subroutines of subroutine may be stored at least one external library file, and
And statically or dynamically (such as at runtime) links with main program.Main program contains at least one of subroutine
At least one calling.Subroutine can also include to mutual function call.It is related to the embodiment packet of computer program product
Include the computer executable instructions corresponding at least one of illustrated method each step of the processing step of method.These refer to
Subroutine can be subdivided into and/or be stored in one or more possible static or dynamic link file by enabling.
Another embodiment for being related to computer program product includes corresponding in illustrated system and/or product at least
The computer executable instructions of each device in one device.These instructions can be subdivided into subroutine and/or be stored
In one or more possible static or dynamic link file.
The carrier of computer program can be any entity or device that can deliver program.For example, carrier can wrap
Containing storage medium, such as (ROM such as CDROM either semiconductor ROM) or magnetic recording media (such as floppy disk or hard disk).Into
One step, carrier can be the carrier that can be transmitted, such as electricity either optical signalling its can via cable or optical cable, or
Person is transmitted by radio or other means.When program is embodied as such signal, carrier can be by such cable
Or device composition.Alternatively, carrier can be the integrated circuit for being wherein embedded with program, and the integrated circuit is suitable for holding
Row correlation technique, or used in execution for correlation technique.
Should be noted that embodiment mentioned above is to illustrate the disclosure, rather than the disclosure is limited, and this
The technical staff in field will design many alternate embodiments, without departing from scope of the appended claims.It is weighing
During profit requires, the reference mark of any placement between round parentheses is not to be read as being limitations on claims.Verb " packet
Include " and its paradigmatic depositing using the element being not excluded for other than those of recording in the claims or step
.Article " one " before element or "one" be not excluded for the presence of a plurality of such elements.The disclosure can pass through
Include the hardware of several visibly different components, and is realized by properly programmed computer.Enumerating several devices
In device claim, several in these devices can be embodied by the same item of hardware.In mutually different appurtenance
Profit states that the simple fact of certain measures does not indicate that the combination of these measures cannot be used to benefit in requiring.
If desired, different function discussed herein can be executed with different order and/or be executed simultaneously with one another.
In addition, if if it is expected, one or more functions described above can be optional or can be combined.
If desired, each step is not limited to the sequence that executes in each embodiment, different step as discussed above
It can be executed with different order and/or be executed simultaneously with one another.In addition, in other embodiments, described above one or more
A step can be optional or can be combined.
Although various aspects of the disclosure provides in the independent claim, the other aspects of the disclosure include coming from
The combination of the dependent claims of the feature of described embodiment and/or feature with independent claims, and not only
It is the combination clearly provided in claim.
Although it is to be noted here that the foregoing describe the example embodiment of the disclosure, these descriptions are not
It should be understood in a limiting sense.It is wanted without departing from such as appended right on the contrary, several change and modification can be carried out
The scope of the present disclosure defined in asking.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present disclosure can use general meter
Device is calculated to realize, each module can concentrate in the group of networks of single computing device or computing device composition, and the disclosure is real
The method that the device in example corresponds in previous embodiment is applied, can be realized, can also be led to by executable program code
The mode of integrated circuit combination is crossed to realize, therefore the disclosure is not limited to specific hardware or software and its combination.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present disclosure can use general shifting
Dynamic terminal realizes that each module can concentrate in the device combination of single mobile terminal or mobile terminal composition, the disclosure
Device in embodiment corresponds to the method in previous embodiment, can be realized by editing executable program code,
It can be realized by way of integrated circuit combination, therefore the disclosure is not limited to specific hardware or software and its knot
It closes.
Claims (11)
1. a kind of detecting method of media, which is characterized in that including:
Stream medium data to be played is obtained, according to the protocol information of the stream medium data to the format of the stream medium data
It is verified;
If the format of the stream medium data is correct, the stream medium data is parsed, obtains compression video information and compression
Audio-frequency information;
The format of the compression video information and compression audio-frequency information is verified using preset algorithm;
If the compression video information and the format for compressing audio-frequency information are correct, to the compression video information and compression
Audio-frequency information is decoded processing.
2. detecting method of media as described in claim 1, which is characterized in that described to be believed according to the agreement of the stream medium data
Breath verifies the format of the stream medium data, including:
Obtain the corresponding signaling type of protocol information of the stream medium data;
The signaling type and the signaling in the stream medium data are compared;
If identical, the sig data information in the stream medium data is removed, confirms that the stream medium data format is correct;
If it is different, then confirming the stream medium data format error.
3. detecting method of media as claimed in claim 2, which is characterized in that described to be regarded to the compression using preset algorithm
Frequency information and the format for compressing audio-frequency information are verified, including:
Obtain compression video information compression standard corresponding with compression audio-frequency information;
Matched video algorithm and audio algorithm are chosen from preset database according to the compression standard;
The target position of the compression video information is verified using the matched video algorithm, is judged according to check results
Whether the compression video information format is correct;
The target position of the compression video information is verified using the matched audio algorithm, is judged according to check results
Whether the compression video information format is correct.
4. detecting method of media as described in any one of claims 1-3, which is characterized in that the method further includes:
Obtain original video information and original audio information after decoding process;
Verify the original video information and the timestamp information of original audio information;
If the timestamp information is correct, according to the original video information and the timestamp information of original audio information into
Row synchronization process.
5. detecting method of media as claimed in claim 4, which is characterized in that described to verify the original video information and original
The timestamp information of beginning audio-frequency information, including:
Judge whether the timestamp information of the original video information and original audio information is sequentially to arrange;
If so, it is correct to be confirmed as timestamp information.
6. a kind of medium detector, which is characterized in that including:
First correction verification module, for obtaining stream medium data to be played, according to the protocol information of the stream medium data to institute
The format for stating stream medium data is verified;
Parsing module obtains compression video for when the format of the stream medium data is correct, parsing the stream medium data
Information and compression audio-frequency information;
Second correction verification module, for using preset algorithm to it is described compression video information and compress audio-frequency information format into
Row verification;
Decoder module, for when the format of the compression video information and compression audio-frequency information is correct, being regarded to the compression
Frequency information and compression audio-frequency information are decoded processing.
7. medium detector as claimed in claim 6, which is characterized in that first correction verification module is specifically used for:
Obtain the corresponding signaling type of protocol information of the stream medium data;
The signaling type and the signaling in the stream medium data are compared;
If identical, the sig data information in the stream medium data is removed, confirms that the stream medium data format is correct;
If it is different, then confirming the stream medium data format error.
8. medium detector as claimed in claim 7, which is characterized in that second correction verification module is specifically used for:
Obtain compression video information compression standard corresponding with compression audio-frequency information;
Matched video algorithm and audio algorithm are chosen from preset database according to the compression standard;
The target position of the compression video information is verified using the matched video algorithm, is judged according to check results
Whether the compression video information format is correct;
The target position of the compression video information is verified using the matched audio algorithm, is judged according to check results
Whether the compression video information format is correct.
9. such as claim 6-8 any one of them medium detectors, which is characterized in that further include:
Acquisition module, for obtaining the original video information after decoding process and original audio information;
Third correction verification module, the timestamp information for verifying the original video information and original audio information;
Synchronization module is used for when the timestamp information is correct, according to the original video information and original audio information
Timestamp information synchronize processing.
10. medium detector as claimed in claim 9, which is characterized in that the third correction verification module is specifically used for:
Judge whether the timestamp information of the original video information and original audio information is sequentially to arrange;
If so, it is correct to be confirmed as timestamp information.
11. a kind of media play system, which is characterized in that filled including such as claim 6-10 any one of them media detection
It sets.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810475181.1A CN108600816A (en) | 2018-05-17 | 2018-05-17 | A kind of detecting method of media, device and media play system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810475181.1A CN108600816A (en) | 2018-05-17 | 2018-05-17 | A kind of detecting method of media, device and media play system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108600816A true CN108600816A (en) | 2018-09-28 |
Family
ID=63631644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810475181.1A Pending CN108600816A (en) | 2018-05-17 | 2018-05-17 | A kind of detecting method of media, device and media play system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108600816A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109151574A (en) * | 2018-10-15 | 2019-01-04 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and storage medium |
CN110110103A (en) * | 2019-04-18 | 2019-08-09 | 深圳壹账通智能科技有限公司 | Acquisition methods, device, computer equipment and the storage medium of media resource |
CN111263173A (en) * | 2020-01-09 | 2020-06-09 | 安徽文香信息技术有限公司 | Data resource adding method and device |
CN111787396A (en) * | 2020-07-28 | 2020-10-16 | 北京金山云网络技术有限公司 | Video stream parsing method and device |
WO2023116254A1 (en) * | 2021-12-22 | 2023-06-29 | Oppo广东移动通信有限公司 | Live video recording method, apparatus and system, and terminal device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070067472A1 (en) * | 2005-09-20 | 2007-03-22 | Lsi Logic Corporation | Accurate and error resilient time stamping method and/or apparatus for the audio-video interleaved (AVI) format |
EP1940167A4 (en) * | 2005-09-20 | 2009-04-08 | Pioneer Corp | Digital broadcast receiver |
CN102025993A (en) * | 2010-12-17 | 2011-04-20 | 深圳中兴力维技术有限公司 | Video transmission method and system based on H.264 |
CN102165782A (en) * | 2008-09-26 | 2011-08-24 | 泰景系统公司 | Devices and methods of digital video and/or audio reception and/or output having error detection and/or concealment circuitry and techniques |
CN102833543A (en) * | 2012-08-16 | 2012-12-19 | 中央电视台 | Device and method for detecting video coding format of video and audio media files |
CN105208395A (en) * | 2015-09-16 | 2015-12-30 | 北京暴风科技股份有限公司 | Method and system for error correction on time stamps for Android system hardware video decoding |
CN106464913A (en) * | 2014-05-12 | 2017-02-22 | 美国莱迪思半导体公司 | Error detection and mitigation in video channels |
-
2018
- 2018-05-17 CN CN201810475181.1A patent/CN108600816A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070067472A1 (en) * | 2005-09-20 | 2007-03-22 | Lsi Logic Corporation | Accurate and error resilient time stamping method and/or apparatus for the audio-video interleaved (AVI) format |
EP1940167A4 (en) * | 2005-09-20 | 2009-04-08 | Pioneer Corp | Digital broadcast receiver |
CN102165782A (en) * | 2008-09-26 | 2011-08-24 | 泰景系统公司 | Devices and methods of digital video and/or audio reception and/or output having error detection and/or concealment circuitry and techniques |
CN102025993A (en) * | 2010-12-17 | 2011-04-20 | 深圳中兴力维技术有限公司 | Video transmission method and system based on H.264 |
CN102833543A (en) * | 2012-08-16 | 2012-12-19 | 中央电视台 | Device and method for detecting video coding format of video and audio media files |
CN106464913A (en) * | 2014-05-12 | 2017-02-22 | 美国莱迪思半导体公司 | Error detection and mitigation in video channels |
CN105208395A (en) * | 2015-09-16 | 2015-12-30 | 北京暴风科技股份有限公司 | Method and system for error correction on time stamps for Android system hardware video decoding |
Non-Patent Citations (1)
Title |
---|
YLZHJY: "利用CaptureVu技术对数字视频信号进行分析和故障查寻", 《HTTP://SHARE.EEPW.COM.CN/SHARE/DOWNLOAD/ID/62856#SHARE_FB_DOWN》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109151574A (en) * | 2018-10-15 | 2019-01-04 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and storage medium |
CN109151574B (en) * | 2018-10-15 | 2020-03-24 | Oppo广东移动通信有限公司 | Video processing method, video processing device, electronic equipment and storage medium |
US11562772B2 (en) | 2018-10-15 | 2023-01-24 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Video processing method, electronic device, and storage medium |
CN110110103A (en) * | 2019-04-18 | 2019-08-09 | 深圳壹账通智能科技有限公司 | Acquisition methods, device, computer equipment and the storage medium of media resource |
CN111263173A (en) * | 2020-01-09 | 2020-06-09 | 安徽文香信息技术有限公司 | Data resource adding method and device |
CN111787396A (en) * | 2020-07-28 | 2020-10-16 | 北京金山云网络技术有限公司 | Video stream parsing method and device |
CN111787396B (en) * | 2020-07-28 | 2023-02-21 | 北京金山云网络技术有限公司 | Video stream parsing method and device |
WO2023116254A1 (en) * | 2021-12-22 | 2023-06-29 | Oppo广东移动通信有限公司 | Live video recording method, apparatus and system, and terminal device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108600816A (en) | A kind of detecting method of media, device and media play system | |
AU2016219688B2 (en) | Matching techniques for cross-platform monitoring and information | |
CN103299366B (en) | Devices for encoding and detecting a watermarked signal | |
TWI688281B (en) | Payment assistance method, device and equipment | |
CN104980788B (en) | Video encoding/decoding method and device | |
US8594340B2 (en) | Transmitter | |
TW445731B (en) | Method and apparatus for finding a correct synchronization point within a data stream | |
CN110585702B (en) | Sound and picture synchronous data processing method, device, equipment and medium | |
US20130301392A1 (en) | Methods and apparatuses for communication of audio tokens | |
CN105898502A (en) | Audio and video playing synchronization method and synchronization device | |
US20140026159A1 (en) | Platform playback device identification system | |
US11962981B2 (en) | Multi-voice conferencing device soundbar test system and method | |
CN104918136A (en) | Video positioning method and device | |
WO2017092314A1 (en) | Audio data processing method and apparatus | |
CN108366299A (en) | A kind of media playing method and device | |
US9838790B2 (en) | Acquisition of spatialized sound data | |
CN110267083A (en) | Detection method, device, equipment and the storage medium of audio-visual synchronization | |
CN112995712A (en) | Method, device and equipment for determining stuck factors and storage medium | |
US20230177070A1 (en) | Tokenized voice authenticated narrated video descriptions | |
CN110347645B (en) | Electronic file evidence storage method and device | |
CN108241560B (en) | Memory test method and device and electronic equipment | |
CN106507172A (en) | Information coding method, coding/decoding method and device | |
CN108600813A (en) | a kind of media file playing method, device and media play system | |
US11917267B2 (en) | Methods and apparatus to use station identification to enable confirmation of exposure to live media | |
CN113055667B (en) | Video quality detection method and device, electronic equipment and storage medium |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180928 |
|
WD01 | Invention patent application deemed withdrawn after publication |