CN103747241A - Method and apparatus for detecting integrity of video - Google Patents
Method and apparatus for detecting integrity of video Download PDFInfo
- Publication number
- CN103747241A CN103747241A CN201310733184.8A CN201310733184A CN103747241A CN 103747241 A CN103747241 A CN 103747241A CN 201310733184 A CN201310733184 A CN 201310733184A CN 103747241 A CN103747241 A CN 103747241A
- Authority
- CN
- China
- Prior art keywords
- video file
- file
- video
- value
- electronic equipment
- 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
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention provides a method and an apparatus for detecting the integrity of a video and relates to electronic technical field. The method may guarantee an electronic device to be started normally so as to enhance the system stability of the electronic device. The method comprises: acquiring a first video file to be played and a first configuration file corresponding to the first video file when system service is started, wherein the first configuration file comprises a first MD5 value of the first video file; calculating a second MD5 value of the first video file; and determining the first video file is a complete video file if the second MD5value of the first video file is the same as the first MD5 value of the first video file.
Description
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of detection method and device of video integrality.
Background technology
Along with the development of electronic technology, various electronic equipments arise at the historic moment.The use of intelligent electronic device is also more and more extensive.
In prior art, the start process of intelligent electronic device generally comprises four-stage: Bootloader, loading kernel program, startup system service (system program of operating system) and startup desktop programs, wherein, the time of intelligent electronic device startup system service is long.In order to effectively utilize the demonstration resource of intelligent television in start-up course, in the time of can and loading kernel program at intelligent television Bootloader, show start icon (logo), and the video file that broadcasting is specified when starting system service, and start desktop programs after this video file finishes playing, thereby complete the start-up course of intelligent television.
But, if the video file that intelligent television is play when starting system service is imperfect, as damaged in this video file, intelligent television cannot this video file of normal play, and also do not start completely owing to playing intelligent television during this video file, therefore may cause intelligent television normally to start, thereby affect the stability of a system of intelligent television.
Summary of the invention
Embodiments of the invention provide a kind of detection method and device of video integrality, can guarantee that electronic equipment normally starts, thereby improve the stability of a system of electronic equipment.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, the embodiment of the present invention provides a kind of detection method of video integrality, comprising:
When starting system service, obtain the first video file to be played and the first configuration file corresponding with described the first video file, described the first configuration file comprises that the first information digest algorithm 5 of described the first video file is worth, i.e. a MD5 value;
Calculate the 2nd MD5 value of described the first video file;
If the 2nd MD5 value of described the first video file is identical with a MD5 value of described the first video file, determine that described the first video file is complete video file.
In the possible implementation of the first of first aspect, before starting system service, described method also comprises:
Under open state, obtain described the first video file and described the first configuration file that server issues, wherein, a MD5 value of described the first video file is to obtain after described server calculates described the first video file.
In conjunction with the possible implementation of the first of first aspect, in the possible implementation of the second, described method also comprises:
After determining that described the first video file is complete video file, play described the first video file; Or,
If the 2nd MD5 value of described the first video file is different from a MD5 value of described the first video file, determines that described the first video file is incomplete video file, and play start icon.
In conjunction with the possible implementation of the first of aforesaid first aspect or first aspect to any implementation in the possible implementation of the second, in the third possible implementation, described the first video file to be played and the first configuration file corresponding with described the first video file of obtaining, specifically comprises:
According to default broadcasting condition, obtain described the first configuration file, wherein, described the first configuration file comprises the title of described the first video file;
According to the title of described the first video file, obtain described the first video file.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, described the first video file is any one at least one video file, the respectively corresponding configuration file of each video file, described broadcasting condition comprises the broadcasting priority of described at least one video file
Wherein, the broadcasting condition that described basis is default, obtains described the first configuration file, specifically comprises:
According to the broadcasting priority of described at least one video file, from least one configuration file corresponding with described at least one video file, obtain described first configuration file corresponding to described first video file the highest with playing priority.
Second aspect, the embodiment of the present invention provides a kind of electronic equipment, comprising:
Acquiring unit, for when starting system service, obtain the first video file to be played and the first configuration file corresponding with described the first video file, described the first configuration file comprises that the first information digest algorithm 5 of described the first video file is worth, i.e. MD5 value;
Computing unit, for calculating the 2nd MD5 value of described the first video file that described acquiring unit obtains;
Determining unit, if a MD5 value of described the first video file that the 2nd MD5 value of described the first video file calculating for described computing unit is obtained with described acquiring unit is identical, determine that described the first video file that described acquiring unit obtains is complete video file.
In the possible implementation of the first of second aspect,
Described acquiring unit, also, for before starting system service, under open state, obtain described the first video file and described the first configuration file that server issues, wherein, a MD5 value of described the first video file is to obtain after described server calculates described the first video file.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second, described electronic equipment also comprises broadcast unit,
Described broadcast unit, for determining that in described determining unit described the first video file that described acquiring unit obtains is after complete video file, plays described the first video file; Or,
Described determining unit, if a MD5 value of described the first video file that the 2nd MD5 value of described the first video file also calculating for described computing unit is obtained from described acquiring unit is different, determine that described the first video file that described acquiring unit obtains is incomplete video file, and described broadcast unit, for playing start icon.
In conjunction with the possible implementation of the first of aforesaid second aspect or second aspect to any implementation in the possible implementation of the second, in the third possible implementation,
Described acquiring unit, specifically for according to default broadcasting condition, obtains described the first configuration file, and according to the title of described the first video file, obtain described the first video file, wherein, described the first configuration file comprises the title of described the first video file.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation, described the first video file is any one at least one video file, the respectively corresponding configuration file of each video file, described broadcasting condition comprises the broadcasting priority of described at least one video file
Wherein, described acquiring unit, specifically for according to the broadcasting priority of described at least one video file, from least one configuration file corresponding with described at least one video file, obtain described first configuration file corresponding to described first video file the highest with playing priority.
The embodiment of the present invention provides a kind of detection method and device of video integrality, by when starting system service, obtain the first video file to be played and the first configuration file corresponding with the first video file, the first configuration file comprises a MD5 value of the first video file, and calculate the 2nd MD5 value of the first video file, if and the 2nd MD5 value of the first video file is identical with a MD5 value of the first video file, determine that the first video file is complete video file.By this scheme, owing to can passing through to calculate the 2nd MD5 value of the first video file to be played, and a MD5 value of this first video file in the 2nd MD5 value of this first video file and the configuration file that gets is contrasted, and when a MD5 value of the 2nd MD5 value of this first video file and this first video file is when identical, can determine that this first video file is complete video file, thereby when electronic equipment is play this first video file in start-up course, can guarantee that electronic equipment normally starts, and then the stability of a system of raising electronic equipment.
Accompanying drawing explanation
The flow chart one of the detection method of a kind of video integrality that Fig. 1 provides for the embodiment of the present invention;
The flowchart 2 of the detection method of a kind of video integrality that Fig. 2 provides for the embodiment of the present invention;
The flow chart 3 of the detection method of a kind of video integrality that Fig. 3 provides for the embodiment of the present invention;
The flow chart four of the detection method of a kind of video integrality that Fig. 4 provides for the embodiment of the present invention;
The structural representation one of the electronic equipment that Fig. 5 provides for the embodiment of the present invention;
The structural representation two of the electronic equipment that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Detection method and the device of a kind of video integrality embodiment of the present invention being provided below in conjunction with accompanying drawing are described in detail.
Term "and/or" herein, is only a kind of incidence relation of describing affiliated partner, and expression can exist three kinds of relations, and for example, A and/or B, can represent: individualism A exists A and B, these three kinds of situations of individualism B simultaneously.In addition, character "/" herein, generally represents that forward-backward correlation is to liking a kind of relation of "or".
Embodiment mono-
The embodiment of the present invention provides a kind of detection method of video integrality, and as shown in Figure 1, the method can comprise:
S101, when starting during system service, electronic equipment obtains the first video file to be played and the first configuration file corresponding with the first video file, the first configuration file comprises a MD5(message digest algorithm 5 of the first video file, Message Digest Algorithm5) value.
Data integrity is one of three bare bones of information security, refers in the process of transmission, storage information or data, guarantees that information or data are not distorted or can be found rapidly after distorting by undelegated.In order to guarantee the integrality of data, conventionally use digital signature or hash function to protect ciphertext.
MD5 is the widely used a kind of hash function of computer safety field, complete consistent for guaranteeing the transmission of information, thereby information integrity protection is provided.MD5, for being another fixing length value by data (as Chinese character) computing, is the basic principle of hash algorithm, and there are MD2, MD3 and MD4 in the predecessor of MD5.Concrete, the effect of MD5 is to allow large capacity information be ' compressed ' into a kind of secret form (being exactly the hexadecimal number word string that the byte serial of a random length is transformed into certain length) before signing private key with digital signature software.
It should be noted that, in the embodiment of the present invention, can be a fixing MD5 value by each video file computing by MD5, and these MD5 values are not identical, and the MD5 value of each video file can be for representing the uniqueness of this video file.
The detection method of the video integrality that the embodiment of the present invention provides can be applied to the detection of the integrality of the start video file that electronic equipment plays in the process of starting up's system service.
In the embodiment of the present invention, electronic equipment can be intelligent electronic device, and electronic equipment can be for having the electronic equipment of operating system.The start process of this electronic equipment generally can comprise four-stage: Bootloader, loading kernel program, startup system service and startup desktop programs.Take Android system as example, the start process with the electronic equipment of Android system can comprise following four-stage: Bootloader, loading kernel program, startup Android system service (system program of Android operating system) and startup desktop programs.Wherein, the start process of the electronic equipment of non-desktop operating system can not comprise startup this stage of desktop programs.
Generally, the time that starts system service due to electronic equipment is long, therefore causes the whole available machine time of electronic equipment long.In prior art, in order to effectively utilize the demonstration resource of electronic equipment in start process, improve the demonstration resource utilization of electronic equipment, when electronic equipment is at Bootloader with load and play start icon during kernel program, when electronic equipment is when starting system service, electronic equipment can be play the first video file of appointment.And if this first video file is incomplete video file, electronic equipment cannot this first video file of normal play, and likely can cause electronic equipment normally to start, thereby affects the stability of a system of electronic equipment.Wherein, the system program that system service is operating system, as take Android operating system as example, this system service can be the system program of Android operating system, i.e. Android system service.
In the detection method of the video integrality that the embodiment of the present invention provides, can be before electronic equipment be play the first video file, first the integrality of this first video file is detected, play again this first video file determining after this first video file is complete video file, can guarantee that like this electronic equipment can this first video file of normal play, thereby can not affect the normal startup of electronic equipment, and then improve the stability of a system of electronic equipment.
Especially, above-mentioned the first video file can be a video segment, can be also the video file being comprised of multiple video segments, and concrete can design according to actual user demand, and the present invention is not restricted.
The detection method of the video integrality that the embodiment of the present invention provides, when electronic equipment needs to play certain video file in the process of starting up's system service, electronic equipment can obtain the first video file to be played and the first configuration file corresponding with this first video file, wherein, in the first configuration file, can comprise a MD5 value of the first video file.
Be understandable that, electronic equipment can, starting in the process of system service, obtain the first video file to be played, and the detection method of the video integrality providing according to the embodiment of the present invention detect to the integrality of this first video file.
S102, electronic equipment calculate the 2nd MD5 value of the first video file.
After electronic equipment obtains the first video file, electronic equipment calculates the 2nd MD5 value of this first video file.
It should be noted that, when electronic equipment calculates the 2nd MD5 value of this first video file, can adopt program or the storehouse that the system of electronic equipment provides to calculate, calculate in program or the storehouse that also can adopt third party to provide, concrete can design according to actual user demand, and the present invention is not restricted.
If the 2nd MD5 value of S103 the first video file is identical with a MD5 value of the first video file, electronic equipment determines that the first video file is complete video file.
After electronic equipment calculates the 2nd MD5 value of this first video file, electronic equipment can contrast a MD5 value of the 2nd MD5 value of this first video file and this first video file, if the 2nd MD5 value of this first video file is identical with a MD5 value of this first video file, electronic equipment can determine that this first video file is complete video file.
The detection method of the video integrality that the embodiment of the present invention provides, when electronic equipment is in the process of starting up's system service during playing video file, whether electronic equipment can first detect this video file is complete, if detect this video file, it is complete video file, electronic equipment starts to play this video file again, can solve the problem that causes electronic equipment normally to start because video file is imperfect in prior art, thereby can guarantee that electronic equipment normally starts, and then improve the stability of a system of electronic equipment.
The embodiment of the present invention provides a kind of detection method of video integrality, by when starting system service, obtain the first video file to be played and the first configuration file corresponding with the first video file, the first configuration file comprises a MD5 value of the first video file, and calculate the 2nd MD5 value of the first video file, if and the 2nd MD5 value of the first video file is identical with a MD5 value of the first video file, determine that the first video file is complete video file.By this scheme, owing to can passing through to calculate the 2nd MD5 value of the first video file to be played, and a MD5 value of this first video file in the 2nd MD5 value of this first video file and the configuration file that gets is contrasted, and when a MD5 value of the 2nd MD5 value of this first video file and this first video file is when identical, can determine that this first video file is complete video file, thereby when electronic equipment is play this first video file in start-up course, can guarantee that electronic equipment normally starts, and then the stability of a system of raising electronic equipment.
Embodiment bis-
The embodiment of the present invention provides a kind of detection method of video integrality, and as shown in Figure 2, the method can comprise:
S201, under open state, electronic equipment obtains the first video file that server issues and first configuration file corresponding with the first video file, wherein, the first configuration file comprises a MD5 value of the first video file, and a MD5 value of the first video file is to obtain after server calculates this video file.
Data integrity is one of three bare bones of information security; finger is in the process of transmission, storage information or data; guarantee that information or data are not distorted or can be found rapidly by undelegated after distorting; in order to guarantee the integrality of data, conventionally use digital signature or hash function to protect ciphertext.
MD5 is the widely used a kind of hash function of computer safety field, complete consistent for guaranteeing the transmission of information, thereby information integrity protection is provided.MD5, for being another fixing length value by data (as Chinese character) computing, is the basic principle of hash algorithm, and there are MD2, MD3 and MD4 in the predecessor of MD5.Concrete, the effect of MD5 is to allow large capacity information be ' compressed ' into a kind of secret form (being exactly the hexadecimal number word string that the byte serial of a random length is transformed into certain length) before signing private key with digital signature software.
It should be noted that, in the embodiment of the present invention, can be a fixing MD5 value by each video file computing by MD5, and these MD5 values are not identical, and the MD5 value of each video file can be for representing the uniqueness of this video file.
The detection method of the video integrality that the embodiment of the present invention provides can be applied to the detection of the integrality of the start video file that electronic equipment plays in the process of starting up's system service.
In the embodiment of the present invention, electronic equipment can be intelligent electronic device, and electronic equipment can be for having the electronic equipment of operating system.The start process of this electronic equipment generally can comprise four-stage: Bootloader, loading kernel program, startup system service and startup desktop programs.Take Android system as example, the start process with the electronic equipment of Android system can comprise following four-stage: Bootloader, loading kernel program, startup Android system service (system program of Android operating system) and startup desktop programs.Wherein, the start process of the electronic equipment of non-desktop operating system can not comprise startup this stage of desktop programs.
Generally, the time that starts system service due to electronic equipment is long, therefore causes the whole available machine time of electronic equipment long.In prior art, in order to effectively utilize the demonstration resource of electronic equipment in start process, improve the demonstration resource utilization of electronic equipment, when electronic equipment is at Bootloader with load and play start icon during kernel program, when electronic equipment is when starting system service, electronic equipment can be play the first video file of appointment.And if this first video file is incomplete video file, electronic equipment cannot this first video file of normal play, and likely can cause electronic equipment normally to start, thereby affects the stability of a system of electronic equipment.Wherein, the system program that system service is operating system, as take Android operating system as example, this system service can be the system program of Android operating system, i.e. Android system service.
In the detection method of the video integrality that the embodiment of the present invention provides, can be before electronic equipment be play the first video file, first the integrality of this first video file is detected, play again this first video file determining after this first video file is complete video file, can guarantee that like this electronic equipment can this first video file of normal play, thereby can not affect the normal startup of electronic equipment, and then improve the stability of a system of electronic equipment.
In the embodiment of the present invention, under electronic equipment normal boot-strap state, when having video file upgrade or need to issue in server, server can issue this video file to electronic equipment, be that electronic equipment obtains the first video file that server issues and first configuration file corresponding with the first video file, wherein, the first configuration file comprises a MD5 value of the first video file, and a MD5 value of the first video file is to obtain after server calculates this video file.
Especially, in above-mentioned the first configuration file corresponding with the first video file, can also comprise the size of this first video file, so that electronic equipment detects the integrality of this video more accurately.
Further, above-mentioned the first video file can be a video segment, can be also the video file being comprised of multiple video segments, and concrete can design according to actual user demand, and the present invention is not restricted.
Electronic equipment further, when issuing video file and configuration file, server need issue according to default form, so that can be identified this video file and this configuration file.Especially, when server issues a video file, also together with time issue a configuration file corresponding with this video file.
When S202, one-shot system service instantly, electronic equipment, according to default broadcasting condition, obtains first configuration file corresponding with the first video file, and wherein, the first configuration file comprises the title of the first video file.
After electronic equipment obtains the first video file and the first configuration file that server issues, when electronic equipment needs to play certain video file in the process of upper once starting up system service, electronic equipment can obtain this first video file to be played.Concrete, electronic equipment can, according to default broadcasting condition, obtain first configuration file corresponding with the first video file, and wherein, the first configuration file comprises the title of the first video file and a MD5 value of the first video file.
In the embodiment of the present invention, the first video file can be any one at least one video file of preserving in electronic equipment, the respectively corresponding configuration file of each video file, default broadcasting condition can be the broadcasting priority of at least one video file, wherein, in this at least one video file, playing video file that priority is the highest can other meet the video file of actual design demand for the video file of up-to-date download etc., and the present invention is not restricted.
Further, in this at least one video file, except playing the highest video file of priority, remaining video file can be that All factors being equal, preference will be give to grade, can be also different isopreference levels.If level that this remaining video file is that All factors being equal, preference will be give to, electronic equipment is cannot be when playing the highest video file normal play of priority, and electronic equipment can obtain at random corresponding video file and play from these all the other video files; If this remaining video file is different isopreference levels, electronic equipment is cannot be when playing the highest video file normal play of priority, and electronic equipment can select corresponding video file to play according to the priority of these all the other video files successively.
Concrete, to play video file that priority the is the highest video file as up-to-date download at least one video file, and the video file of this up-to-date download is that the first video file is example, electronic equipment can obtain indication information from default indication file, and obtain the configuration file corresponding with the first video file of up-to-date download according to this indication information, i.e. the first configuration file, wherein, it is that this indication information can be used for indication the first configuration file corresponding with the first video file of up-to-date download for which configuration file, this indication information can be the download time of the first configuration file and/or the first video file.
Further, when new video file that electronic equipment obtains that server issues, electronic equipment can upgrade the indication information in above-mentioned indication file, so that this indication information can be indicated the configuration file corresponding with the video file of up-to-date download in real time, is which configuration file.
S203, electronic equipment, according to the title of the first video file, obtain the first video file to be played.
After electronic equipment gets the first configuration file, electronic equipment can be according to the title of the first video file in this first configuration file, obtains this first video file to be played.
Exemplary, electronic equipment can be in the process of startup system service, at least one video file issuing from the server obtaining in advance, obtain the first video file to be played, and the detection method of the video integrality providing according to the embodiment of the present invention detects to the integrality of this first video file.
S204, electronic equipment calculate the 2nd MD5 value of the first video file.
After electronic equipment obtains the first video file, electronic equipment calculates the 2nd MD5 value of this first video file.
It should be noted that, when electronic equipment calculates the 2nd MD5 value of this first video file, can adopt program or the storehouse that the system of electronic equipment provides to calculate, calculate in program or the storehouse that also can adopt third party to provide, concrete can design according to actual user demand, and the present invention is not restricted.
S205, electronic equipment contrast a MD5 value of the 2nd MD5 value of the first video file and the first video file.
After electronic equipment calculates the 2nd MD5 value of the first video file, electronic equipment can contrast a MD5 value of the 2nd MD5 value of this first video file and this first video file.
If the 2nd MD5 value of S206 the first video file is identical with a MD5 value of the first video file, electronic equipment determines that the first video file is complete video file.
After electronic equipment contrasts a MD5 value of the 2nd MD5 value of the first video file and this first video file, if the 2nd MD5 value of this first video file is identical with a MD5 value of this first video file, electronic equipment can determine that this first video file is complete video file.
Further, as shown in Figure 3, when electronic equipment, determining the first video file is complete video file, and, after S206, the detection method of the video integrality that the embodiment of the present invention provides can also comprise:
S207, electronic equipment are play the first video file.
Electronic equipment determines that this first video file is after complete video file, and electronic equipment can be play this first video file.
Further, as shown in Figure 4, electronic equipment contrasts a MD5 value of the 2nd MD5 value of the first video file and the first video file, and, after S205, the detection method of the video integrality that the embodiment of the present invention provides can also comprise:
If the 2nd MD5 value of S208 the first video file is different from a MD5 value of the first video file, electronic equipment determines that the first video file is incomplete video file.
After electronic equipment contrasts a MD5 value of the 2nd MD5 value of the first video file and this first video file, if the 2nd MD5 value of this first video file is different from a MD5 value of this first video file, electronic equipment can determine that this first video file is incomplete video file.
S209, electronic equipment are play start icon.
Electronic equipment determines that this first video file is after incomplete video file, electronic equipment can be without playing this first video file, and electronic equipment can continue the start icon of playing electronic equipment at Bootloader and playing in loading the process of kernel program.
Concrete, because electronic equipment is at Bootloader with load and play start icon during kernel program, therefore, when electronic equipment is when starting system service, if it is incomplete video file that electronic equipment is determined the first video file, electronic equipment can be without playing this first video file, and electronic equipment can continue to play this start icon, thereby can guarantee the normal startup of electronic equipment, and then improve the stability of a system of electronic equipment.
Further, in the detection method of the video integrality that the embodiment of the present invention provides, if electronic equipment is determined the first video file, be incomplete video file, electronic equipment can obtain this first video file that server issues again.
Wherein, a kind of possible implementation, if electronic equipment is in the process of starting up's system service, before playing the first video file, determine that the first video file is incomplete video file, electronic equipment can send a request message to server after this start, server receives after this request message, then re-issues this first video file to electronic equipment.
Another kind of possible implementation, electronic equipment can detect the integrality of this first video file when getting the first video file from server, and the detection method of the video integrality that concrete detection method and the embodiment of the present invention provide is similar.After electronic equipment completes the integrity detection of this first video file, if it is incomplete video file that electronic equipment is determined the first video file, electronic equipment can directly send a request message to server, server receives after this request message, then re-issues this first video file to electronic equipment.
It should be noted that, in the detection method of the video integrality that the embodiment of the present invention provides, if it is incomplete video file that electronic equipment is determined the first video file, electronic equipment can adopt any implementation in above-mentioned two kinds of implementations again to obtain this first video file that server issues, concrete can design according to actual user demand, and the present invention is not restricted.
The detection method of the video integrality that the embodiment of the present invention provides, when electronic equipment is in the process of starting up's system service during playing video file, whether electronic equipment can first detect this video file is complete, if detect this video file, it is complete video file, electronic equipment starts to play this video file again, can solve the problem that causes electronic equipment normally to start because video file is imperfect in prior art, thereby can guarantee that electronic equipment normally starts, and then improve the stability of a system of electronic equipment.
The embodiment of the present invention provides a kind of detection method of video integrality, by when starting system service, obtain the first video file to be played and the first configuration file corresponding with the first video file, the first configuration file comprises a MD5 value of the first video file, and calculate the 2nd MD5 value of the first video file, if and the 2nd MD5 value of the first video file is identical with a MD5 value of the first video file, determine that the first video file is complete video file.By this scheme, owing to can passing through to calculate the 2nd MD5 value of the first video file to be played, and a MD5 value of this first video file in the 2nd MD5 value of this first video file and the configuration file that gets is contrasted, and when a MD5 value of the 2nd MD5 value of this first video file and this first video file is when identical, can determine that this first video file is complete video file, thereby when electronic equipment is play this first video file in start-up course, can guarantee that electronic equipment normally starts, and then the stability of a system of raising electronic equipment.
Embodiment tri-
As shown in Figure 5, the embodiment of the present invention provides a kind of electronic equipment 1, and this electronic equipment 1 can comprise:
Acquiring unit 10, for when starting system service, obtains the first video file to be played and the first configuration file corresponding with described the first video file, and described the first configuration file comprises a MD5 value of described the first video file.
Determining unit 12, if a MD5 value of described the first video file that the 2nd MD5 value of described the first video file calculating for described computing unit 11 is obtained with described acquiring unit 10 is identical, determine that described the first video file that described acquiring unit 10 obtains is complete video file.
Further, described acquiring unit 10, also for before starting system service, under open state, obtain described the first video file and described the first configuration file that server issues, wherein, a MD5 value of described the first video file is to obtain after described server calculates described the first video file.
Further, as shown in Figure 6, the electronic equipment 1 that the embodiment of the present invention provides can also comprise broadcast unit 13,
Described broadcast unit 13, for determining that in described determining unit 12 described the first video file that described acquiring unit 10 obtains is after complete video file, plays described the first video file; Or,
Described determining unit 12, if a MD5 value of described the first video file that the 2nd MD5 value of described the first video file also calculating for described computing unit 11 is obtained from described acquiring unit 10 is different, determine that described the first video file that described acquiring unit 10 obtains is incomplete video file, and described broadcast unit 13, for playing start icon.
Optionally, described acquiring unit 10, specifically for according to default broadcasting condition, obtain described the first configuration file, and according to the title of described the first video file, obtain described the first video file, wherein, described the first configuration file comprises the title of described the first video file.
Further, described the first video file is any one at least one video file, the respectively corresponding configuration file of each video file, and described broadcasting condition comprises the broadcasting priority of described at least one video file,
Wherein, described acquiring unit 10, specifically for according to the broadcasting priority of described at least one video file, from least one configuration file corresponding with described at least one video file, obtain described first configuration file corresponding to described first video file the highest with playing priority.
The electronic equipment 1 that the embodiment of the present invention provides can be intelligent electronic device, and this intelligent electronic device can comprise that intelligent television, smart mobile phone, panel computer etc. have the equipment of the integrality that detects video file.
The embodiment of the present invention provides a kind of electronic equipment, when this electronic equipment starts system service, this electronic equipment obtains the first video file to be played and the first configuration file corresponding with the first video file, the first configuration file comprises a MD5 value of the first video file, and this electronic equipment calculates the 2nd MD5 value of the first video file, if and the 2nd MD5 value of the first video file is identical with a MD5 value of the first video file, this electronic equipment determines that the first video file is complete video file.By this scheme, owing to can passing through to calculate the 2nd MD5 value of the first video file to be played, and a MD5 value of this first video file in the 2nd MD5 value of this first video file and the configuration file that gets is contrasted, and when a MD5 value of the 2nd MD5 value of this first video file and this first video file is when identical, can determine that this first video file is complete video file, thereby when electronic equipment is play this first video file in start-up course, can guarantee that electronic equipment normally starts, and then the stability of a system of raising electronic equipment.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only with the division of above-mentioned each functional module, be illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device is divided into different functional modules, to complete all or part of function described above.The specific works process of the device of foregoing description, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed apparatus and method can realize by another way.For example, device embodiment described above is only schematic.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be a physical location or multiple physical location, can be positioned at a place, or also can be distributed to multiple different local.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this software product is stored in a storage medium, comprise that some instructions are in order to make an equipment (can be single-chip microcomputer, chip etc.) or processor carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory, magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.
Claims (10)
1. a detection method for video integrality, is characterized in that, comprising:
When starting system service, obtain the first video file to be played and the first configuration file corresponding with described the first video file, described the first configuration file comprises that the first information digest algorithm 5 of described the first video file is worth, i.e. a MD5 value;
Calculate the 2nd MD5 value of described the first video file;
If the 2nd MD5 value of described the first video file is identical with a MD5 value of described the first video file, determine that described the first video file is complete video file.
2. the detection method of video integrality according to claim 1, is characterized in that, before starting system service, described method also comprises:
Under open state, obtain described the first video file and described the first configuration file that server issues, wherein, a MD5 value of described the first video file is to obtain after described server calculates described the first video file.
3. the detection method of video integrality according to claim 2, is characterized in that, described method also comprises:
After determining that described the first video file is complete video file, play described the first video file; Or,
If the 2nd MD5 value of described the first video file is different from a MD5 value of described the first video file, determines that described the first video file is incomplete video file, and play start icon.
4. according to the detection method of the video integrality described in claim 1-3 any one, it is characterized in that, described in obtain the first video file to be played and the first configuration file corresponding with described the first video file, specifically comprise:
According to default broadcasting condition, obtain described the first configuration file, wherein, described the first configuration file comprises the title of described the first video file;
According to the title of described the first video file, obtain described the first video file.
5. the detection method of video integrality according to claim 4, it is characterized in that, described the first video file is any one at least one video file, the respectively corresponding configuration file of each video file, described broadcasting condition comprises the broadcasting priority of described at least one video file
Wherein, the broadcasting condition that described basis is default, obtains described the first configuration file, specifically comprises:
According to the broadcasting priority of described at least one video file, from least one configuration file corresponding with described at least one video file, obtain described first configuration file corresponding to described first video file the highest with playing priority.
6. an electronic equipment, is characterized in that, comprising:
Acquiring unit, for when starting system service, obtain the first video file to be played and the first configuration file corresponding with described the first video file, described the first configuration file comprises that the first information digest algorithm 5 of described the first video file is worth, i.e. MD5 value;
Computing unit, for calculating the 2nd MD5 value of described the first video file that described acquiring unit obtains;
Determining unit, if a MD5 value of described the first video file that the 2nd MD5 value of described the first video file calculating for described computing unit is obtained with described acquiring unit is identical, determine that described the first video file that described acquiring unit obtains is complete video file.
7. electronic equipment according to claim 6, is characterized in that,
Described acquiring unit, also, for before starting system service, under open state, obtain described the first video file and described the first configuration file that server issues, wherein, a MD5 value of described the first video file is to obtain after described server calculates described the first video file.
8. electronic equipment according to claim 7, is characterized in that, described electronic equipment also comprises broadcast unit,
Described broadcast unit, for determining that in described determining unit described the first video file that described acquiring unit obtains is after complete video file, plays described the first video file; Or,
Described determining unit, if a MD5 value of described the first video file that the 2nd MD5 value of described the first video file also calculating for described computing unit is obtained from described acquiring unit is different, determine that described the first video file that described acquiring unit obtains is incomplete video file, and described broadcast unit, for playing start icon.
9. according to the electronic equipment described in claim 6-8 any one, it is characterized in that,
Described acquiring unit, specifically for according to default broadcasting condition, obtains described the first configuration file, and according to the title of described the first video file, obtain described the first video file, wherein, described the first configuration file comprises the title of described the first video file.
10. electronic equipment according to claim 9, it is characterized in that, described the first video file is any one at least one video file, the respectively corresponding configuration file of each video file, described broadcasting condition comprises the broadcasting priority of described at least one video file
Wherein, described acquiring unit, specifically for according to the broadcasting priority of described at least one video file, from least one configuration file corresponding with described at least one video file, obtain described first configuration file corresponding to described first video file the highest with playing priority.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310733184.8A CN103747241A (en) | 2013-12-23 | 2013-12-23 | Method and apparatus for detecting integrity of video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310733184.8A CN103747241A (en) | 2013-12-23 | 2013-12-23 | Method and apparatus for detecting integrity of video |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103747241A true CN103747241A (en) | 2014-04-23 |
Family
ID=50504225
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310733184.8A Pending CN103747241A (en) | 2013-12-23 | 2013-12-23 | Method and apparatus for detecting integrity of video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103747241A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611319A (en) * | 2015-12-24 | 2016-05-25 | 杭州当虹科技有限公司 | Video content anti-tampering method |
CN105681712A (en) * | 2014-11-20 | 2016-06-15 | 广东中星电子有限公司 | Video data processing method and device |
CN111565331A (en) * | 2020-04-10 | 2020-08-21 | 苏州鑫竹智能建筑科技有限公司 | Optimization method for wireless transmission of video image data |
CN114679623A (en) * | 2022-03-16 | 2022-06-28 | 山东浪潮超高清视频产业有限公司 | Video checking and playing method based on video gene technology |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1953505A (en) * | 2005-10-20 | 2007-04-25 | 中央电视台 | Design implementation method and device for dynamic replacement of startup picture |
CN101035279A (en) * | 2007-05-08 | 2007-09-12 | 孟智平 | Method for using the information set in the video resource |
CN101179525A (en) * | 2007-12-21 | 2008-05-14 | 深圳市迅雷网络技术有限公司 | Method, system and device for obtaining file information |
CN101350043A (en) * | 2007-07-17 | 2009-01-21 | 华为技术有限公司 | Method and apparatus for detecting consistency of digital content |
US20100306860A1 (en) * | 2009-05-29 | 2010-12-02 | Hank Risan | Using a custom media library to secure digital media content |
CN102332070A (en) * | 2011-09-30 | 2012-01-25 | 中国人民解放军海军计算技术研究所 | Trust chain transfer method for trusted computing platform |
CN102364956A (en) * | 2011-11-29 | 2012-02-29 | 乐视网信息技术(北京)股份有限公司 | Method for realizing advertising in starting of Internet protocol television (IPTV) system |
CN103024438A (en) * | 2012-12-31 | 2013-04-03 | 深圳市九洲电器有限公司 | Set-top box, and production test method and production test system for set-top box |
WO2013163477A1 (en) * | 2012-04-25 | 2013-10-31 | Huawei Technologies Co., Ltd. | Systems and methods for segment integrity and authenticity for adaptive streaming |
-
2013
- 2013-12-23 CN CN201310733184.8A patent/CN103747241A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1953505A (en) * | 2005-10-20 | 2007-04-25 | 中央电视台 | Design implementation method and device for dynamic replacement of startup picture |
CN101035279A (en) * | 2007-05-08 | 2007-09-12 | 孟智平 | Method for using the information set in the video resource |
CN101350043A (en) * | 2007-07-17 | 2009-01-21 | 华为技术有限公司 | Method and apparatus for detecting consistency of digital content |
CN101179525A (en) * | 2007-12-21 | 2008-05-14 | 深圳市迅雷网络技术有限公司 | Method, system and device for obtaining file information |
US20100306860A1 (en) * | 2009-05-29 | 2010-12-02 | Hank Risan | Using a custom media library to secure digital media content |
CN102332070A (en) * | 2011-09-30 | 2012-01-25 | 中国人民解放军海军计算技术研究所 | Trust chain transfer method for trusted computing platform |
CN102364956A (en) * | 2011-11-29 | 2012-02-29 | 乐视网信息技术(北京)股份有限公司 | Method for realizing advertising in starting of Internet protocol television (IPTV) system |
WO2013163477A1 (en) * | 2012-04-25 | 2013-10-31 | Huawei Technologies Co., Ltd. | Systems and methods for segment integrity and authenticity for adaptive streaming |
CN103024438A (en) * | 2012-12-31 | 2013-04-03 | 深圳市九洲电器有限公司 | Set-top box, and production test method and production test system for set-top box |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105681712A (en) * | 2014-11-20 | 2016-06-15 | 广东中星电子有限公司 | Video data processing method and device |
CN105611319A (en) * | 2015-12-24 | 2016-05-25 | 杭州当虹科技有限公司 | Video content anti-tampering method |
CN105611319B (en) * | 2015-12-24 | 2018-08-17 | 杭州当虹科技有限公司 | A kind of method that video content is anti-tamper |
CN111565331A (en) * | 2020-04-10 | 2020-08-21 | 苏州鑫竹智能建筑科技有限公司 | Optimization method for wireless transmission of video image data |
CN114679623A (en) * | 2022-03-16 | 2022-06-28 | 山东浪潮超高清视频产业有限公司 | Video checking and playing method based on video gene technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9846617B2 (en) | System and method for self-healing basic input/output system boot image and secure recovery | |
US7543150B2 (en) | Method and system for setting up hosting environments in safety | |
US9141682B1 (en) | Resolving conflicts within saved state data | |
US20140115395A1 (en) | System and method of cloud testing and remote monitoring for integrated circuit components in system validation | |
US9424425B2 (en) | Protecting anti-malware processes | |
KR20150103376A (en) | Continuation of trust for platform boot firmware | |
CN110162429B (en) | System repair method, server and storage medium | |
KR101757961B1 (en) | Virtual bios | |
US8761400B2 (en) | Hardware linked product key | |
CN103747241A (en) | Method and apparatus for detecting integrity of video | |
US8615798B2 (en) | Optimizing a data deduplication system using client authentication information | |
CN106201602B (en) | Label providing method, label obtaining method, server and electronic equipment | |
CN112256911A (en) | Audio matching method, device and equipment | |
CN110399168B (en) | System starting method, device and equipment for multiple data disk storage servers | |
CN106095605B (en) | A kind of abnormality eliminating method and device of display terminal | |
CN102970380B (en) | Obtain method and the cloud storage server of the media data of cloud storage file | |
CN103164492A (en) | File copying method between electronic devices and electronic devices | |
CN106201595A (en) | The cleaning control method of a kind of application program and device | |
JP6174247B2 (en) | Program integrity verification method using hash | |
CN103455750A (en) | High-security verification method and high-security verification system for embedded devices | |
US10162488B1 (en) | Browser-based media scan | |
US20120151005A1 (en) | Image file download method | |
EP2821899A2 (en) | Method of controlling touch and electronic device thereof | |
CN110363011B (en) | Method and apparatus for verifying security of UEFI-based BIOS | |
CN103631872A (en) | Method for playing multimedia files and electronic terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140423 |
|
RJ01 | Rejection of invention patent application after publication |