CN112637586A - Abnormal video construction method, abnormal video detection device, abnormal video detection equipment, abnormal video detection medium and abnormal video detection product - Google Patents

Abnormal video construction method, abnormal video detection device, abnormal video detection equipment, abnormal video detection medium and abnormal video detection product Download PDF

Info

Publication number
CN112637586A
CN112637586A CN202011489974.2A CN202011489974A CN112637586A CN 112637586 A CN112637586 A CN 112637586A CN 202011489974 A CN202011489974 A CN 202011489974A CN 112637586 A CN112637586 A CN 112637586A
Authority
CN
China
Prior art keywords
video
data block
abnormal
abnormal video
player
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
Application number
CN202011489974.2A
Other languages
Chinese (zh)
Inventor
王伟
刘一卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011489974.2A priority Critical patent/CN112637586A/en
Publication of CN112637586A publication Critical patent/CN112637586A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing 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/4402Processing 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software

Abstract

The application provides an abnormal video construction method, an abnormal video detection device, abnormal video detection equipment, abnormal video detection media and abnormal video products, and relates to the technical field of computers, in particular to the fields of artificial intelligence and computer vision. The specific implementation scheme is as follows: separating the video based on the packaging format of the video to obtain a plurality of data blocks; destroying the data block to obtain a damaged data block; and writing the damaged data block into the video to obtain the abnormal video. The method can flexibly and accurately control the destruction mode and the destruction degree of the video, thereby accurately evaluating the capability of the player for processing abnormal videos.

Description

Abnormal video construction method, abnormal video detection device, abnormal video detection equipment, abnormal video detection medium and abnormal video detection product
Technical Field
The present application relates to the field of computer technologies, and in particular, to an artificial intelligence and computer vision technology, and more particularly, to an abnormal video construction method, detection method, apparatus, device, medium, and product.
Background
With the rapid development of video technology, video quality assessment is also being valued by more and more people. To reduce the cost of storing and transmitting video files with limited bandwidth resources, video files are often encoded/compressed and stored and transmitted in an encoded/compressed format, such as a compressed format of MPEG4, FLV, MOV, etc. In the process of storing/transmitting the video file, the video file is damaged due to the problems of storage system errors, network jitter, frame loss and the like. When the player plays a damaged video file, the situation that the player often appears screen splash and screen blackness or even cannot play due to weak abnormal processing capability of the player affects the viewing experience of a user.
Disclosure of Invention
Provided are an abnormal video construction method, an abnormal video detection device, an abnormal video detection apparatus, an abnormal video detection medium and an abnormal video detection product.
According to a first aspect, there is provided an anomaly video construction method, including:
separating the video based on the packaging format of the video to obtain a plurality of data blocks;
destroying the data block to obtain a damaged data block;
and writing the damaged data block into the video to obtain an abnormal video.
According to a second aspect, there is provided an abnormal video construction apparatus comprising:
the separation module is used for separating the video based on the packaging format of the video to obtain a plurality of data blocks;
the destruction module is used for destroying the data block to obtain a damaged data block;
and the writing module is used for writing the damaged data block into the video to obtain an abnormal video.
According to a third aspect, there is provided a player detection method comprising:
playing the abnormal video to obtain a playing result; the abnormal video is obtained by any one abnormal video construction method provided by the application;
and evaluating the capability of the player for processing abnormal videos based on the playing result.
According to a fourth aspect, a player detection apparatus is provided, which includes an evaluation module that evaluates, based on a playing result of an abnormal video, a capability of a player to process the abnormal video, where the abnormal video is obtained by any one of the abnormal video construction methods provided in this application.
According to a fifth aspect, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of an anomalous video construction method and a player detection method.
According to a sixth aspect, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform any one of the above-described abnormal video construction method and player detection method.
According to a seventh aspect, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the anomaly video construction method and the player detection method according to any one of the above.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a flowchart of an abnormal video construction method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for separating a video to obtain a plurality of data blocks based on a video encapsulation format according to an embodiment of the present application;
fig. 3 is a flowchart of an abnormal video construction method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating an abnormal video construction method according to an embodiment of the present disclosure;
fig. 5 is a schematic block diagram of an abnormal video constructing apparatus according to an embodiment of the present application;
fig. 6 is a flowchart of a player detection method according to an embodiment of the present application;
fig. 7 is a schematic block diagram of a player detection apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device for implementing the abnormal video construction method according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The embodiments and features of the embodiments of the present application may be combined with each other without conflict.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The video data has been explosively increased due to the rapid development of video technology, which puts a great strain on network transmission and storage. In order to save network resources and storage resources, video data such as video files and video streams need to be compressed. The compressed video data is easily damaged in the network transmission and storage processes, so that the phenomena of screen splash and screen blackness occur during playing, and the watching experience of a user is influenced.
In order to improve user experience, on one hand, the video quality can be improved; and on the other hand, the capability of the player for processing the exception can be improved. The latter needs to detect the abnormal handling capability of the player, which needs to obtain the abnormal video, and the abnormal video is used to detect the abnormal handling capability of the player.
At present, the modes of constructing the abnormal video mainly comprise deleting the specified frame and repeating the specified frame, so that the granularity of the constructed abnormal video is coarse, and the evaluation is not comprehensive. The abnormal video constructed by simulating the weak network and the broken network environment has larger randomness, and the damage degree and the damage result are uncontrollable.
Therefore, it is desirable to provide a method and an apparatus for constructing an abnormal video, which can obtain an abnormal video with a fine granularity, make the damage degree controllable, and make a comprehensive evaluation.
In a first aspect, an embodiment of the present application provides an abnormal video construction method, which can obtain an abnormal video with a fine granularity, and the damage degree and the damage result are controllable.
Fig. 1 is a flowchart of an abnormal video construction method according to an embodiment of the present application. Referring to fig. 1, the abnormal video constructing method includes:
step 101, separating the video based on the packaging format of the video to obtain a plurality of data blocks.
The packaging format of the video may also be referred to as a compression format of the video. The video itself contains a large amount of redundant information, and the video coding technology can remove the redundant information, change the less important pixel value or reduce the definition so as to compress the video, thereby reducing the space occupied by the video.
The embodiment of the application separates the video in the compressed domain to obtain a plurality of data blocks. The packaging format of the video in the compressed domain includes, but is not limited to, MPEG4, FLV, and MOV formats. The separation of the video will be described below by taking the mp4 format video as an example.
The mp4 format is a multimedia format that can be applied to pack video and audio data streams, posters, subtitles, metadata, and the like. The mp4 format packaged video is composed of boxes (box), each box includes a Header (Header) containing the type and size of the box and Data (Data) containing sub-boxes or Data, and the boxes can be nested with the sub-boxes.
In mp4 format video, sample is the basic unit of a media stream, and chunk is the basic unit of data storage. A chunk is a collection of a series of sample data, and one or more samples may be contained in the same chunk. Each chunk may contain the same number of samples or may contain different numbers of samples.
To compress chunk information, an stsc container is introduced, which is provided with a chunk entry for indexing to merge chunks containing the same sample. In the mp4 format video, a stco container is also provided for storing the offset of each chunk relative to the start address of the file. According to the stsc container, which chunk the sample is stored in can be calculated; the offset position of the corresponding chunk in the file can be obtained from the stco container.
In some embodiments, a parser is used to parse the mp4 formatted video and separate the video to obtain a header data block, a track data block, a sample data block, a chunk data block, and so on.
And 102, destroying the data block to obtain a damaged data block.
In some embodiments, when a data block is corrupted, one of the data blocks may be corrupted, or multiple data blocks may be corrupted. When a data block is corrupted, the extent to which the data block is corrupted may be controlled.
For example, when destroying a sample data block, the size (size) of the destroyed sample data block may be selected, i.e., the size of the sample data block is modified. After a sample is modified, the offset of other samples after the sample in the corresponding chunk will change, so that modifying the size of the sample destroys not only the data of the sample but also the data of other samples, resulting in the destruction of the entire chunk data block. This corrupted video, when played, can cause problems with data parsing throughout the chunk.
And 103, writing the damaged data block into the video to obtain an abnormal video.
When the damaged data blocks are written into the video, only the damaged data blocks are written into the video, and the undamaged data blocks are not written, namely, the video data are not completely updated, so that the writing speed is increased, and the efficiency of constructing abnormal videos is improved.
According to the abnormal video construction method provided by the embodiment of the application, the video is separated into the plurality of data blocks based on the packaging format of the video, the damaged data blocks are written into the video after the data blocks are damaged, and the abnormal video is obtained. Furthermore, the data block level corruption can expand the scene of the anomalous video relative to the frame level corruption, allowing a more comprehensive assessment of the player's ability to handle the anomalous video.
In some embodiments, referring to fig. 2, separating the video based on the packaging format of the video in step 101 to obtain a plurality of data blocks includes:
a parser is selected based on the compression format of the video, step 201.
In practical application, the situation can be compressed in a plurality of compression forms, and different compression forms need corresponding analyzers for analysis. In some embodiments, a parser may parse only one compression format of video, or may parse multiple compression formats of video.
In some embodiments, the compressed format of the video may be an AVI format, an MKV format, or an mp4 format, and the parser corresponding thereto may be an AVI format parser, an MKV format parser, or an mp4 format parser. When the parser can parse videos in different compression formats, the parser can also be used to parse the videos.
Step 202, separating the video by using a parser to obtain a plurality of data blocks.
A plurality of data blocks may be obtained by parsing the video using the parser. For example, a video in mp4 format, may be separated into a plurality of data blocks, such as a header data block, a track data block, a sample data block, and a chunk data block.
In the embodiment, the parser is selected based on the compression format of the video, and the video is separated based on the parser, so that the video can be accurately separated, and a basis is provided for breaking data blocks with fine granularity subsequently.
In some embodiments, step 102 destroys the data block to obtain a damaged data block, and the data block may be destroyed based on the type of the data block to obtain the damaged data block.
Wherein the type of the data block is a composition form of the data when the video is encapsulated. For mp4 formatted video, the types of data blocks include header data blocks, track data blocks, sample data blocks, chunk data blocks, and the like.
In practical application, the video has different packaging formats, the separated data blocks are different, and the way of destroying the data blocks is different. Therefore, after the video in the compressed domain is separated, the different types of data blocks need to be destroyed according to the encapsulation format, and the damaged data blocks are obtained.
For example, for mp4 format video, a plurality of data blocks such as a header data block, a track data block, a sample data block, and a chunk data block can be obtained after being separated. Different data blocks may be corrupted differently. For example, for a sample data block, the sample data block may be destroyed by modifying the size of the sample, NAL Header, or NALU data. When modifying the NAL Header and NALU data, a single sample block may be corrupted. When the size of the sample is modified, not only the sample data block but also the corresponding chunk data block can be destroyed. As another example, a track block may be corrupted by modifying its contents.
In this embodiment, the data block is destroyed according to the type of the data block, so that not only the video can be destroyed in a targeted manner, but also the destruction degree can be controlled, and therefore, the obtained abnormal video is flexible and controllable.
For example, when it is desired to detect the processing power of the player on a sample data block, the NAL Header and/or NALU data may be corrupted to destroy the sample data block, when it is desired to detect the processing power of the player on a chunk data block, the size of the sample may be destroyed or other data of the chunk may be destroyed.
In some embodiments, corrupting the data block to obtain a corrupted data block comprises: and destroying the data block based on the type and the evaluation parameter of the data block to obtain the damaged data block.
The evaluation parameter refers to a parameter for evaluating the capability of the player to process different abnormal videos, and generally corresponds to the type of the abnormal video. For example, when the error tolerance of the player to the offset needs to be evaluated, the abnormal video is the type of error occurring in the offset. Destroying the sample data block can obtain abnormal video with wrong offset. When the fault-tolerant capability of the player to the track needs to be evaluated, the abnormal video is the type of the track error, and the track data block is damaged to obtain the abnormal video with the track error.
In the embodiment, when a data block is destroyed, not only the type of the data block but also the evaluation parameter are considered, and the data block is destroyed based on the type of the data block and the evaluation parameter to obtain a damaged data block, so as to obtain an abnormal video.
For example, taking mp4 as an example, when the player needs to evaluate its parsing capability for chunk data, the type of chunk can be determined as chunk data, and the chunk data is destroyed, such as modifying the size of sample. Thus, when calculating the offset of each sample in the file, the original video data of the corresponding frame needs to be obtained from the data stored in the offset + sample size.
The data block is destroyed based on the type of the data block and the evaluation parameter, the corresponding data block can be destroyed in a targeted manner based on the evaluation parameter, and the destruction degree can be controlled, so that the obtained abnormal video can be detected in a more targeted manner for the player, and the detection precision is improved.
In order to better understand the technical solution of the present application, the abnormal video construction method is described in more detail below with reference to fig. 3 and 4.
Fig. 3 is a flowchart of an abnormal video constructing method according to an embodiment of the present application, and fig. 4 is a schematic diagram of a principle of the abnormal video constructing method according to the embodiment of the present application.
Referring to fig. 3 and 4, the abnormal video constructing method includes:
a parser is selected based on the compression format of the video, step 301.
Based on the determination of the video compression format, a parser is selected. For example, the parsers may select, but are not limited to, an AVI format parser 41, an MKV format parser 42, and an mp4 format parser 43.
Step 302, separating the video by using a parser to obtain a plurality of data blocks.
The parser is used to separate the video to obtain data blocks such as header data block 44, track data block 45, chunk data block 46, and sample data block 47.
And step 303, destroying the data block to obtain a damaged data block.
In this embodiment, the header data block, the track data block, the chunk data block, and the sample data block may be destroyed, and the damaged header data block 48, the damaged track data block 49, the damaged chunk data block 410, and the damaged sample data block 411 may be obtained correspondingly.
When the data block is destroyed, the data block is destroyed based on the type of the data block to obtain the destroyed data block, or the data block is destroyed based on the type of the data block and the evaluation parameter to obtain the destroyed data block.
Therefore, when a data block is destroyed, any one or more data blocks can be selected as needed for destruction.
And step 304, writing the damaged data block into the video to obtain an abnormal video.
And writing the data blocks with different damage degrees into the video to obtain abnormal videos with different damage degrees. By using abnormal videos with different damage degrees, the player can be accurately evaluated.
It should be noted that the video mentioned in this embodiment may be a video file or a video stream, and the abnormal video constructing method provided in this embodiment may perform abnormal construction not only on the video file but also on the video stream, and the present application does not limit the existence form of the video.
According to the abnormal video construction method provided by the embodiment of the application, the video is separated into the plurality of data blocks based on the packaging format of the video, the damaged data blocks are written into the video after the data blocks are damaged, and the abnormal video is obtained. Moreover, the data block level corruption can expand the scene of the anomalous video relative to the frame level corruption, allowing a more comprehensive assessment of the player's ability to handle the anomalous video.
In a second aspect, the present application provides an abnormal video constructing apparatus, which may construct an abnormal video to accurately evaluate the capability of a player to process the abnormal video.
Fig. 5 is a schematic block diagram of an abnormal video construction apparatus according to an embodiment of the present application. Referring to fig. 5, the abnormal video constructing apparatus includes:
a separating module 501, configured to separate the video based on the packaging format of the video to obtain a plurality of data blocks.
The packaging format of the video may also be referred to as a compression format of the video. The video itself contains a large amount of redundant information, and the video coding technology can remove the redundant information, change the less important pixel value or reduce the definition so as to compress the video, thereby reducing the space occupied by the video.
The embodiment of the application separates the video in the compressed domain to obtain a plurality of data blocks. The packaging format of the video in the compressed domain includes, but is not limited to, MPEG4, FLV, and MOV formats. The separation of the video will be described below by taking the mp4 format video as an example.
In some embodiments, a parser is used to parse the mp4 formatted video and separate the video to obtain a header data block, a track data block, a sample data block, a chunk data block, and so on.
The destroying module 502 is configured to destroy the data block to obtain a damaged data block.
In some embodiments, when a data block is corrupted, one of the data blocks may be corrupted, or multiple data blocks may be corrupted. When a data block is corrupted, the extent to which the data block is corrupted may be controlled.
For example, when destroying a sample data block, the size (size) of the destroyed sample data block may be selected, i.e., the size of the sample data block is modified. After a sample is modified, the offset of other samples after the sample in the corresponding chunk will change, so that modifying the size of the sample destroys not only the data of the sample but also the data of other samples, resulting in the destruction of the entire chunk data block. This corrupted video, when played, can cause problems with data parsing throughout the chunk.
And a writing module 503, configured to write the damaged data block into a video, so as to obtain an abnormal video.
When the damaged data blocks are written into the video, only the damaged data blocks are written into the video, and the undamaged data blocks are not written, namely, the video data are not completely updated, so that the writing speed is increased, and the efficiency of constructing abnormal videos is improved.
In some embodiments, the destroy module 502 destroys the data block based on the type of the data block, obtaining a destroyed data block.
In practical application, the video has different packaging formats, the separated data blocks are different, and the way of destroying the data blocks is different. Therefore, after the video in the compressed domain is separated, the different types of data blocks need to be destroyed according to the encapsulation format, and the damaged data blocks are obtained.
For example, for mp4 format video, a plurality of data blocks such as a header data block, a track data block, a sample data block, and a chunk data block can be obtained after being separated. Different data blocks may be corrupted differently. For example, for a sample data block, the sample data block may be destroyed by modifying the size of the sample, NAL Header, or NALU data. When modifying the NAL Header and NALU data, a single sample block may be corrupted. When the size of the sample is modified, not only the sample data block but also the corresponding chunk data block can be destroyed. As another example, a track block may be corrupted by modifying its contents.
In this embodiment, the data block is destroyed according to the type of the data block, so that not only the video can be destroyed in a targeted manner, but also the destruction degree can be controlled, and therefore, the obtained abnormal video is flexible and controllable.
In some embodiments, the corruption module 502 corrupts the data block based on the type of the data block and the evaluation parameter, resulting in a corrupted data block.
Wherein the evaluation parameter is a parameter for evaluating the capability of the player to process different abnormal videos. The sample data block may be corrupted when the player's tolerance to offsets needs to be evaluated. The track data block may be corrupted when it is necessary to evaluate the player's fault tolerance to the track.
In the embodiment, when a data block is destroyed, not only the type of the data block but also the evaluation parameter are considered, and the data block is destroyed based on the type of the data block and the evaluation parameter to obtain a damaged data block, so as to obtain an abnormal video.
For example, taking mp4 as an example, when the player needs to evaluate its parsing capability for chunk data, the type of chunk can be determined as chunk data, and the chunk data is destroyed, such as modifying the size of sample. Thus, when calculating the offset of each sample in the file, the original video data of the corresponding frame needs to be obtained from the data stored in the offset + sample size.
The data block is destroyed based on the type of the data block and the evaluation parameter, the corresponding data block can be destroyed in a targeted manner based on the evaluation parameter, and the destruction degree can be controlled, so that the obtained abnormal video can be detected in a more targeted manner for the player, and the detection precision is improved.
In some embodiments, the apparatus further comprises a selection module and a parser, wherein the selection module is configured to select the parser based on a compression format of the video.
In some embodiments, the compressed format of the video may be an AVI format, an MKV format, or an mp4 format, and the parser corresponding thereto may be an AVI format parser, an MKV format parser, or an mp4 format parser. When the parser can parse videos in different compression formats, the parser can also be used to parse the videos.
And the analyzer is used for separating the video data by utilizing the analyzer to obtain a plurality of data blocks.
A plurality of data blocks may be obtained by parsing the video using the parser. For example, a video in mp4 format, may be separated into a plurality of data blocks, such as a header data block, a track data block, a sample data block, and a chunk data block.
In the embodiment, the parser is selected based on the compression format of the video, and the video is separated based on the parser, so that the video can be accurately separated, and a basis is provided for breaking data blocks with fine granularity subsequently.
According to the abnormal video construction device provided by the embodiment of the application, the separation module separates a video into a plurality of data blocks based on the packaging format of the video, the damaged data blocks are written into the video by the writing module after the data blocks are damaged by the damage module, and the abnormal video is obtained. Moreover, the data block level corruption can expand the scene of the anomalous video relative to the frame level corruption, allowing a more comprehensive assessment of the player's ability to handle the anomalous video.
In a third aspect, embodiments of the present application provide a player detection method, which can accurately evaluate the capability of a player to process an abnormal video.
Fig. 6 is a flowchart of a player detection method according to an embodiment of the present application. Referring to fig. 6, the player detection method includes:
step 601, playing the abnormal video to obtain a playing result.
The abnormal video is obtained by the abnormal video construction method provided by the embodiment of the application. The construction of the abnormal video is not described herein.
And step 602, evaluating the capability of the player for processing the abnormal video based on the playing result.
In some embodiments, if the fifth frame of the abnormal video is corrupted, and the corrupted is a sample data block. When the abnormal video is used for detecting the capability of the player for processing the abnormal video, if the player can normally play the abnormal video, the player is indicated to have stronger capability for processing the abnormal video. If the player has a green screen when playing the fifth frame, it indicates that the player has a middle capability of processing abnormal video. If the player has a black screen when playing the fifth frame, it indicates that the player has a weak capability of processing abnormal video.
The abnormal video constructed by the abnormal video construction method provided by the embodiment of the application can be constructed in a fine-grained manner, the abnormal video constructed by the method can be used for accurately evaluating the capability of a player for processing the abnormal video, and the player with weaker processing capability in which aspects can be accurately judged.
In a fourth aspect, embodiments of the present application provide a player detection apparatus, which can accurately evaluate the capability of a player to process abnormal video.
Fig. 7 is a schematic block diagram of a player detection apparatus according to an embodiment of the present application. Referring to fig. 7, the player detection apparatus includes:
the obtaining module 701 is configured to obtain a playing result of the abnormal video.
And the evaluation module 702 evaluates the capability of the player for processing the abnormal video based on the playing result of the abnormal video.
The abnormal video is obtained by the abnormal video construction method provided by the embodiment of the application.
The embodiment of the application provides a player detection device, an evaluation module evaluates the capability of a player for processing an abnormal video based on a playing result of the abnormal video, and the abnormal video can be accurately evaluated by the abnormal video constructed by the method due to the fact that the abnormal video can be constructed in a fine-grained manner, and the player can be accurately judged to be weak in processing capability in which aspects.
There is also provided, in accordance with an embodiment of the present application, an electronic device, a readable storage medium, and a computer program product.
FIG. 8 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
FIG. 8 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 801 executes the respective methods and processes described above, such as the abnormal video construction method and the player detection method. For example, in some embodiments, the anomaly video construction method and the player detection method may be implemented as computer software programs tangibly embodied in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM 802 and/or communications unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the above-described abnormal video construction method and player detection method may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the anomaly video construction method and the player detection method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to an embodiment of the present disclosure, there is also provided a computer program product including a computer program which, when executed by a processor, implements any one of the above-described abnormal video construction method and player detection method.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (13)

1. An abnormal video construction method, comprising:
separating the video based on the packaging format of the video to obtain a plurality of data blocks;
destroying the data block to obtain a damaged data block;
and writing the damaged data block into the video to obtain an abnormal video.
2. The method of claim 1, wherein the video-based encapsulation format separates the video into a plurality of data blocks, comprising:
selecting a parser based on a compression format of the video;
and separating the video by using the analyzer to obtain a plurality of data blocks.
3. The method of claim 1, wherein the corrupting the data block to obtain a corrupted data block comprises:
and according to the type of the data block, destroying the data block to obtain the damaged data block.
4. The method of claim 1, wherein the corrupting the data block to obtain a corrupted data block comprises:
destroying the data block based on the type and the evaluation parameter of the data block to obtain the damaged data block; wherein the evaluation parameter is a parameter for evaluating the capability of the player to process different abnormal videos.
5. An anomalous video construction apparatus comprising:
the separation module is used for separating the video based on the packaging format of the video to obtain a plurality of data blocks;
the destruction module is used for destroying the data block to obtain a damaged data block;
and the writing module is used for writing the damaged data block into the video to obtain an abnormal video.
6. The apparatus of claim 5, wherein the means for corrupting destroys the data block based on a type of the data block, and wherein the means for corrupting destroys the data block.
7. The apparatus of claim 5, wherein the corrupting module corrupts the data block based on a type of the data block and an evaluation parameter, and obtains the corrupted data block, wherein the evaluation parameter is a parameter for evaluating a capability of a player to process different abnormal videos.
8. The apparatus of claim 5, further comprising:
a selection module for selecting a parser based on a compression format of the video;
and the analyzer is used for separating the video data by utilizing the analyzer to obtain a plurality of data blocks.
9. A player detection method, comprising:
playing the abnormal video to obtain a playing result; wherein the abnormal video is an abnormal video obtained by the abnormal video construction method according to any one of claims 1 to 4;
and evaluating the capability of the player for processing abnormal videos based on the playing result.
10. A player detection apparatus, comprising:
an evaluation module, which evaluates the ability of the player to process the abnormal video based on the playing result of the abnormal video, wherein the abnormal video is obtained by the abnormal video construction method according to any one of claims 1 to 4.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4 or 9.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-4 or 9.
13. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-4 or 9.
CN202011489974.2A 2020-12-15 2020-12-15 Abnormal video construction method, abnormal video detection device, abnormal video detection equipment, abnormal video detection medium and abnormal video detection product Pending CN112637586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011489974.2A CN112637586A (en) 2020-12-15 2020-12-15 Abnormal video construction method, abnormal video detection device, abnormal video detection equipment, abnormal video detection medium and abnormal video detection product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011489974.2A CN112637586A (en) 2020-12-15 2020-12-15 Abnormal video construction method, abnormal video detection device, abnormal video detection equipment, abnormal video detection medium and abnormal video detection product

Publications (1)

Publication Number Publication Date
CN112637586A true CN112637586A (en) 2021-04-09

Family

ID=75313929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011489974.2A Pending CN112637586A (en) 2020-12-15 2020-12-15 Abnormal video construction method, abnormal video detection device, abnormal video detection equipment, abnormal video detection medium and abnormal video detection product

Country Status (1)

Country Link
CN (1) CN112637586A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1454429A (en) * 2000-07-10 2003-11-05 株式会社日立制作所 Multimedia communication terminal
CN101399980A (en) * 2007-09-26 2009-04-01 华为技术有限公司 Stream media service implementing method, system, policy and control server
CN101656640A (en) * 2009-09-16 2010-02-24 中兴通讯股份有限公司 Method and equipment for determining testing data
CN101931807A (en) * 2010-06-29 2010-12-29 北京中星微电子有限公司 Method and device for verifying fault tolerance of multimedia player
CN102223544A (en) * 2011-06-02 2011-10-19 福州瑞芯微电子有限公司 Method for processing error after detecting error in H264 video stream
US20170359546A1 (en) * 2015-02-05 2017-12-14 Keiji Ohmura Image processing device, image processing system, image processing method, and computer program product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1454429A (en) * 2000-07-10 2003-11-05 株式会社日立制作所 Multimedia communication terminal
CN101399980A (en) * 2007-09-26 2009-04-01 华为技术有限公司 Stream media service implementing method, system, policy and control server
CN101656640A (en) * 2009-09-16 2010-02-24 中兴通讯股份有限公司 Method and equipment for determining testing data
CN101931807A (en) * 2010-06-29 2010-12-29 北京中星微电子有限公司 Method and device for verifying fault tolerance of multimedia player
CN102223544A (en) * 2011-06-02 2011-10-19 福州瑞芯微电子有限公司 Method for processing error after detecting error in H264 video stream
US20170359546A1 (en) * 2015-02-05 2017-12-14 Keiji Ohmura Image processing device, image processing system, image processing method, and computer program product

Similar Documents

Publication Publication Date Title
CN108093299B (en) Method for repairing damaged MP4 file and storage medium
CA2770446C (en) Systems, methods, and program applications for selectively restricting the placeshifting of copy protected digital media content
US9609338B2 (en) Layered video encoding and decoding
US20110150433A1 (en) Systems and methods for video-aware screen capture and compression
CN104540000A (en) Method for generating dynamic thumbnail and terminal
WO2022170836A1 (en) Method and apparatus for processing track data of multimedia file, and medium and device
US20210375326A1 (en) Method, device, and computer program product for storing and providing video
US20220335013A1 (en) Generating readable, compressed event trace logs from raw event trace logs
CN102929569A (en) Computer display content coding method and system
CN112637586A (en) Abnormal video construction method, abnormal video detection device, abnormal video detection equipment, abnormal video detection medium and abnormal video detection product
CN112491421A (en) Analysis method, device, equipment and medium for log file compression package
CN105704215A (en) File sharing system and corresponding file sending and receiving method and device
CN115150384B (en) Point cloud encoding and decoding method and device, computer readable medium and electronic equipment
CN113312134A (en) Operation reproduction method and apparatus
US9872060B1 (en) Write confirmation of a digital video record channel
CN113362318B (en) Image processing method, device, electronic equipment and storage medium
CN113365140A (en) MP4 online playing method, device, equipment, storage medium and program product
CN114071190A (en) Cloud application video stream processing method, related device and computer program product
US10021161B2 (en) Compression of graphical commands for remote display
CN111967001A (en) Decoding and coding safety isolation method based on double containers
EP3085107A1 (en) Using constraints on media file formats to improve performance
CN115243053B (en) Point cloud encoding and decoding method and related equipment
CN112598095B (en) High-density two-dimensional code data transmission method and device and storage medium
CN111356003B (en) Data writing method, system and terminal equipment
CN114125493B (en) Distributed storage method, device and equipment for streaming media

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210409