CN108600866B - Efficient and automatic judgment method for network audio and video playability - Google Patents

Efficient and automatic judgment method for network audio and video playability Download PDF

Info

Publication number
CN108600866B
CN108600866B CN201810482554.8A CN201810482554A CN108600866B CN 108600866 B CN108600866 B CN 108600866B CN 201810482554 A CN201810482554 A CN 201810482554A CN 108600866 B CN108600866 B CN 108600866B
Authority
CN
China
Prior art keywords
audio
video
playing
url
information
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.)
Expired - Fee Related
Application number
CN201810482554.8A
Other languages
Chinese (zh)
Other versions
CN108600866A (en
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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201810482554.8A priority Critical patent/CN108600866B/en
Publication of CN108600866A publication Critical patent/CN108600866A/en
Application granted granted Critical
Publication of CN108600866B publication Critical patent/CN108600866B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2407Monitoring of transmitted content, e.g. distribution time, number of downloads
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • 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/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The utility model discloses a high-efficiency automatic discrimination method for the playability of network audio and video, which comprises the steps of audio and video playing parameter setting, audio and video playing discrimination task distribution, audio and video link identification, audio and video playing processing and audio and video playing discrimination information storage; the audio and video playing parameter setting is to manually set related parameters of audio and video playing; the audio and video playing judgment task distribution is to distribute tasks to a plurality of machines executing the tasks in batches; the audio and video link identification is to judge the playing type of the audio and video link contained in the audio and video webpage; the audio and video playing processing is to judge whether the audio and video is played successfully or not according to the playing parameters; the audio and video playing information storage is to store the detailed information in the audio and video playing process into a database. The invention relates to a set of discrimination method for discriminating whether audio and video can be played, which can rapidly discriminate whether audio and video can be played and solve the problem of time and labor consumption of manually discriminating whether audio and video can be played.

Description

Efficient and automatic judgment method for network audio and video playability
Technical Field
The invention relates to the field of network audio and video, in particular to a high-efficiency automatic judgment method for the playability of network audio and video.
Background
In recent years, with the development of computers and mobile internet and the reduction of data traffic charges of operators, audio and video become a new favorite in social networks. Various short video APPs, video APPs and film and television websites appear in the market in large quantity, so that the media information such as audio and video is increased explosively. In the field of audio and video, there have been related technologies that are applicable to video formats in various modes and improve quality of audio and video services. However, there are few techniques for automatically determining whether audio/video is playable. The dramatic increase of the audio and video information makes the management of the audio and video become more burdensome, and the specific reasons are as follows: in the network, some audios and videos are not allowed to be played due to unhealthy contents of the audios and videos; some audios and videos can not be played due to the service provider or audio and video errors. The video which is not allowed to be played can be played, but the video which is allowed to be played cannot be played, so that the operation of each large video website is influenced certainly, the loss of users is caused, and how to ensure the quality of the audio and video service is also gradually called as the center of gravity of attention of the users. However, the problem of time and labor consumption exists when the fact that whether the audio and video can be played is found manually, and how to efficiently judge whether the audio and video in the network can be played becomes a problem to be solved urgently.
The audio and video URLs in the network are mainly divided into two types, one type is resource type audio and video, and the audio and video can be directly downloaded or played; the other type is non-resource type audio and video, the audio and video cannot be directly downloaded, and a webpage playing button needs to be clicked for playing. The audio/video URL has a certain difference in judging whether the playing reaches a set threshold value or not due to different resource types. Due to the characteristic that the resource type audio/video can be directly downloaded and played, the playing time length or the playing progress information of the audio/video can be directly obtained; and the non-resource type audio and video are generally embedded in a webpage, and whether the audio and video can be played normally can be judged by adopting a method for simulating user behaviors.
In the audio and video playing process, due to the improvement of the prior art, a plurality of video websites adopt a method for transmitting and playing audio and video in a segmented manner for audio and video URLs, so that whether the whole audio and video can be played or not can not be directly judged only by judging the playing information of a few seconds before the audio and video, and whether a certain audio and video can be played or not is determined by a certain playing time or playing progress. However, if the playing threshold is set too large, the audio/video discrimination period will also become long, consuming a lot of time and resources. Therefore, the invention provides a high-efficiency automatic judgment method for the network audio and video playability.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides a high-efficiency automatic judgment method for network audio and video playability, and can solve the problems of time and labor consumption in manually judging whether audio and video can be played and the problems of long audio and video judgment period and time consumption.
A high-efficiency automatic discrimination method for network audio and video playability specifically comprises the following steps:
s1, audio and video playing parameter setting: the audio and video playing parameters comprise audio and video URL information, a playing threshold value, an audio and video unique identifier and a detection identifier; the audio/video URL information is the URL of the audio/video to be checked; the playing threshold is a threshold for a user to judge whether the audio and video is successfully played, and is generally a playing time length and a playing progress; the audio and video unique identifier is a unique identifier used for identifying the audio and video in the database; the detection identifier is used for acquiring state information of the audio and video distinguishing task, and comprises three states, namely: (1) marking the state to be detected as 0; (2) the state during detection is marked as 1; (3) the completed state, noted as 2; the audio and video playing parameters can be added manually by a user or can be imported from a file in batch; the unique audio/video identifier is generated by a database, the detection identifier is set by a program at each stage in the discrimination process, and the detection identifier is set to be 0 in the step;
s2, audio and video playing task distribution: reading audio and video task information which is not subjected to play judgment, acquiring resource use conditions of each task execution machine, issuing tasks according to resource quotas, and setting a detection identifier of a corresponding audio and video to be 1; reading audio and video task information with a detection identifier of 0;
s3, audio and video link identification: judging the accessibility of the audio/video URL through the HTTP status code of the audio/video URL, if the audio/video URL is not accessible, storing related information, and quitting the judgment; if the audio/video URL is accessible, acquiring and analyzing webpage information, judging whether the audio/video URL is a resource type audio/video or a non-resource type audio/video according to an identification rule, and finally storing judgment information in a database according to a unique identifier of the audio/video URL; the audio and video playing process is the audio and video downloading process and the audio and video decoding process; the webpage containing the audio/video link which can be directly downloaded in the audio/video URL is called a resource type audio/video URL; for a webpage with an audio/video URL (uniform resource locator) which is an audio/video link (which cannot be directly downloaded) played according to a video website protocol, the webpage is called a non-resource type audio/video URL;
s4, audio and video playing judgment: two situations exist in audio and video playing judgment: resource type audio and video playing processing and non-resource type audio and video playing processing; the resource type audio and video playing processing comprises audio and video downloading and audio and video data frame analysis; the non-resource type audio and video playing processing comprises playing based on a JS-Chrome plug-in, simulated click processing and audio and video playing monitoring;
s5, audio and video playing information storage: and setting the detection identifier of the audio/video URL to be 2 through the unique identifier of the audio/video URL information, and submitting the detection identifier to a database to complete updating.
Further, the step S1 includes the following sub-steps:
s11, adding audio and video URL information to be distinguished;
s12, setting parameters for judging whether the audio and video are successfully played, wherein the parameters comprise playing duration or playing progress;
s13, setting a detection state code for judging the audio and video to be 0;
s14, storing the audio and video distinguishing task into a database, and generating a unique identifier by the database;
the S11 and S12 can be added manually by a user or can be imported from the file in batch.
Further, the step S2 includes the following sub-steps:
s21, obtaining system resource consumption details of each task execution machine;
s22, acquiring an audio and video playing task to be detected from a database regularly;
and S23, sending the tasks to the specified task machines according to the system resource consumption condition of each task execution machine, and recording the tasks in the database.
Further, the step S3 includes the following sub-steps:
s31, the task execution machine sends an HTTP request to the audio and video URL, acquires the state code information of the HTTP, judges the accessibility of the audio and video URL, and stores relevant information and quits the judgment if the information is not accessible; if the access is available, go to step S32;
s32, analyzing the audio and video links contained in the audio and video URLs, wherein if the webpage contains a single audio and video link or a plurality of fragmented audio and video links which can be directly downloaded, the webpage is a resource type audio and video URL, and if the webpage does not contain the single audio and video links or the fragmented audio and video links, the webpage is a non-resource type audio and video URL;
and S33, storing the resource type distinguishing information of the audio/video URL in a database according to the unique identifier of the resource type distinguishing information.
Further, the step S4 is to process the audio/video URLs according to whether the audio/video URLs belong to the resource-based audio/video URLs, respectively, where the two cases include:
(1) if the audio/video URL is identified as the URL of the resource type audio/video, classifying the URL according to the playing type of the audio/video, and respectively processing:
for the audio and video which can be played only after the buffering is finished, the downloading operation is executed, and the audio and video data packet is decoded after the downloading is finished to obtain the total playing time of the audio and video, which is recorded as TC; the total number of pictures is marked as PC; the number of displayed pictures per second is recorded as PCS; respectively calculating the playing time length and the playing progress, recording the playing time length as PT, and calculating the PT = PC/PCS; the playing progress is recorded as PS, and the calculation mode is PS = PT/TC; then comparing the calculated playing time length or playing progress with a preset threshold, if the calculated corresponding numerical value is greater than or equal to the threshold, the playing is successful, otherwise, the playing fails;
for audio and video links based on fragment indexes, after a first fragment data packet is obtained, decoding the audio and video data packet to obtain the total playing time TC of audio and video and the picture display quantity PCS per second; for each audio/video data packet i, the number of pictures is required to be acquired and recorded as (PC)i) (ii) a Respectively calculating the playing time length and the playing progress of the audio and the video, wherein the playing time length PT = (PC)1+PC2+…+PCi+…+PCn) PCS, play progress PS = PT/TC; then comparing the calculated playing time length or playing progress with a preset threshold value, if the calculated corresponding numerical value is more than or equal to the threshold value,the playing is successful, otherwise, the playing is failed; if the playing time length or the playing progress can reach the judgment threshold value of successful playing after the ith audio and video fragment is obtained and analyzed, the playing judgment is finished in advance, and the downloading and decoding processing are not needed for the following fragment data packet.
(2) If the audio/video URL is not identified as a resource type URL, the audio/video URL is a non-resource type audio/video URL, and due to frequent changes of an anti-theft link and an audio/video analysis rule of an audio/video playing website, a playing processing program cannot directly acquire a data packet or a fragment data packet of the whole audio/video; therefore, a user behavior simulation method is adopted, a playing plug-in embedded in a browser is used for loading the URL of the audio and video, and the audio and video discrimination threshold is converted into the corresponding position of a time bar in the playing plug-in; firstly, starting an audio and video playing and monitoring component, then jumping the audio and video to a specified position by simulating a clicking process of a mouse, waiting for the audio and video to finish loading and finishing buffering on a specified playing time or playing progress, if the audio and video playing and monitoring component can monitor that the audio and video can be played normally and the playing time is more than or equal to a corresponding position of a time bar, playing is successful, otherwise, playing is failed;
further, in step S5, audio/video URL playing information of the received audio/video playing determination component is received, and according to the unique identifier of the audio/video URL, the detection identifier of the audio/video URL is set to 2, and the detection identifier is submitted to the database, thereby completing the update and ending the determination.
The invention has the beneficial effects that: the technology solves the problem of playability judgment of resource type audio/video URLs and non-resource type audio/video URLs, overcomes the problem of time and labor consumption of whether artificial audio/video can be played or not, enables audio/video to finish jump playing in a click simulation mode, and solves the problem of longer judgment period caused by longer waiting time in automatic audio/video playing.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a flow diagram of the audio video link identification process of the present invention;
fig. 3 is a flow chart of audio/video playing discrimination processing according to the present invention.
Detailed Description
The following describes the playback processing method of the present invention in further detail with reference to the drawings, but the scope of the present invention is not limited to the following.
A method for efficiently and automatically judging the playability of network audio/video, as shown in figure 1, comprises the following steps:
s1, audio and video playing parameter setting: the audio and video playing parameters comprise audio and video URL information, a playing threshold value, an audio and video unique identifier and a detection identifier; the audio/video URL information is the URL of the audio/video to be checked; the playing threshold is a threshold for a user to judge whether the audio and video is successfully played, and is generally a playing time length and a playing progress; the audio and video unique identifier is a unique identifier used for identifying the audio and video in the database; the detection identifier is used for acquiring state information of the audio and video distinguishing task, and comprises three states, namely: (1) marking the state to be detected as 0; (2) the state during detection is marked as 1; (3) the completed state, noted as 2; the audio and video playing parameters can be added manually by a user or can be imported from a file in batch; the unique audio/video identifier is generated by a database, the detection identifier is set by a program at each stage in the discrimination process, and the detection identifier is set to be 0 in the step;
s2, audio and video playing task distribution: reading audio and video task information which is not subjected to play judgment, acquiring resource use conditions of each task execution machine, issuing tasks according to resource quotas, and setting a detection identifier of a corresponding audio and video to be 1; reading audio and video task information with a detection identifier of 0;
s3, audio and video link identification: judging the accessibility of the audio/video URL through the HTTP status code of the audio/video URL, if the audio/video URL is not accessible, storing related information, and quitting the judgment; if the audio/video URL is accessible, acquiring and analyzing webpage information, judging whether the audio/video URL is a resource type audio/video or a non-resource type audio/video according to an identification rule, and finally storing judgment information in a database according to a unique identifier of the audio/video URL; the audio and video playing process is the audio and video downloading process and the audio and video decoding process; the webpage containing the audio/video link which can be directly downloaded in the audio/video URL is called a resource type audio/video URL; for a webpage with an audio/video URL (uniform resource locator) which is an audio/video link (which cannot be directly downloaded) played according to a video website protocol, the webpage is called a non-resource type audio/video URL;
s4, audio and video playing judgment: two situations exist in audio and video playing judgment: resource type audio and video playing processing and non-resource type audio and video playing processing; the resource type audio and video playing processing comprises audio and video downloading and audio and video data frame analysis; the non-resource type audio and video playing processing comprises playing based on a JS-Chrome plug-in, simulated click processing and audio and video playing monitoring;
s5, audio and video playing information storage: and setting the detection identifier of the audio/video URL to be 2 through the unique identifier of the audio/video URL information, and submitting the detection identifier to a database to complete updating.
Further, the step S1 includes the following sub-steps:
s11, adding audio and video URL information to be distinguished;
s12, setting parameters for judging whether the audio and video are successfully played, wherein the parameters comprise playing duration or playing progress;
s13, setting a detection state code for judging the audio and video to be 0;
s14, storing the audio and video distinguishing task into a database, and generating a unique identifier by the database;
the S11 and S12 can be added manually by a user or can be imported from the file in batch.
Further, the step S2 includes the following sub-steps:
s21, obtaining system resource consumption details of each task execution machine;
s22, acquiring an audio and video playing task to be detected from a database regularly;
and S23, sending the tasks to the specified task machines according to the system resource consumption condition of each task execution machine, and recording the tasks in the database.
Further, the step S3 includes the following sub-steps:
s31, the task execution machine sends an HTTP request to the audio and video URL, acquires the state code information of the HTTP, judges the accessibility of the audio and video URL, and stores relevant information and quits the judgment if the information is not accessible; if the access is available, go to step S32;
s32, analyzing the audio and video links contained in the audio and video URLs, wherein if the webpage contains a single audio and video link or a plurality of fragmented audio and video links which can be directly downloaded, the webpage is a resource type audio and video URL, and if the webpage does not contain the single audio and video links or the fragmented audio and video links, the webpage is a non-resource type audio and video URL;
and S33, storing the resource type distinguishing information of the audio/video URL in a database according to the unique identifier of the resource type distinguishing information.
Further, the step S4 is to process the audio/video URLs according to whether the audio/video URLs belong to the resource-based audio/video URLs, respectively, where the two cases include:
(1) if the audio/video URL is identified as the URL of the resource type audio/video, classifying the URL according to the playing type of the audio/video, and respectively processing:
for the audio and video which can be played only after the buffering is finished, the downloading operation is executed, and the audio and video data packet is decoded after the downloading is finished to obtain the total playing time of the audio and video, which is recorded as TC; the total number of pictures is marked as PC; the number of displayed pictures per second is recorded as PCS; respectively calculating the playing time length and the playing progress, recording the playing time length as PT, and calculating the PT = PC/PCS; the playing progress is recorded as PS, and the calculation mode is PS = PT/TC; then comparing the calculated playing time length or playing progress with a preset threshold, if the calculated corresponding numerical value is greater than or equal to the threshold, the playing is successful, otherwise, the playing fails;
for audio and video links based on fragment indexes, after a first fragment data packet is obtained, decoding the audio and video data packet to obtain the total playing time TC of audio and video and the picture display quantity PCS per second; for each audio/video data packet i, the number of pictures is required to be acquired and recorded as (PC)i) (ii) a Respectively calculating the playing time length and the playing progress of the audio and the video, wherein the playing time length PT = (PC)1+PC2+…+PCi+…+PCn) PCS, play progress PS = PT/TC; then comparing the calculated playing time length or playing progress with a preset threshold, if the calculated corresponding numerical value is greater than or equal to the threshold, the playing is successful, otherwise, the playing fails; if the playing time length or the playing progress can reach the judgment threshold value of successful playing after the ith audio and video fragment is obtained and analyzed, the playing judgment is finished in advance, and the downloading and decoding processing are not needed for the following fragment data packet.
(2) If the audio/video URL is not identified as a resource type URL, the audio/video URL is a non-resource type audio/video URL, and due to frequent changes of an anti-theft link and an audio/video analysis rule of an audio/video playing website, a playing processing program cannot directly acquire a data packet or a fragment data packet of the whole audio/video; therefore, a user behavior simulation method is adopted, a playing plug-in embedded in a browser is used for loading the URL of the audio and video, and the audio and video discrimination threshold is converted into the corresponding position of a time bar in the playing plug-in; firstly, starting an audio and video playing and monitoring component, then jumping the audio and video to a specified position by simulating a clicking process of a mouse, waiting for the audio and video to finish loading and buffering in a specified playing time or playing progress, if the audio and video playing and monitoring component can monitor that the audio and video can be played normally and the playing time is more than or equal to the corresponding position of a time bar, playing is successful, otherwise, playing is failed.
Further, in step S5, audio/video URL playing information of the received audio/video playing determination component is received, and according to the unique identifier of the audio/video URL, the detection identifier of the audio/video URL is set to 2, and the detection identifier is submitted to the database, thereby completing the update and ending the determination.

Claims (6)

1. A high-efficiency automatic discrimination method for network audio and video playability is characterized by comprising the following steps:
s1, audio and video playing parameter setting: the audio and video playing parameters comprise audio and video URL information, a playing threshold value, an audio and video unique identifier and a detection identifier; the audio/video URL information is the URL of the audio/video to be checked; the playing threshold is a threshold for a user to judge whether the audio and video is successfully played, and is generally a playing time length and a playing progress; the audio and video unique identifier is a unique identifier used for identifying the audio and video in the database; the detection identifier is used for acquiring state information of the audio and video distinguishing task, and comprises three states, namely: (1) marking the state to be detected as 0; (2) the state during detection is marked as 1; (3) the completed state, noted as 2; the audio and video playing parameters can be added manually by a user or can be imported from a file in batch; the unique audio/video identifier is generated by a database, the detection identifier is set by a program at each stage in the discrimination process, and the detection identifier is set to be 0 in the step;
s2, audio and video playing task distribution: reading audio and video task information which is not subjected to play judgment, acquiring resource use conditions of each task execution machine, issuing tasks according to resource quotas, and setting a detection identifier of a corresponding audio and video to be 1; reading audio and video task information with a detection identifier of 0;
s3, audio and video link identification: judging the accessibility of the audio/video URL through the HTTP status code of the audio/video URL, if the audio/video URL is not accessible, storing related information, and quitting the judgment; if the audio/video URL is accessible, acquiring and analyzing webpage information, judging whether the audio/video URL is a resource type audio/video or a non-resource type audio/video according to an identification rule, and finally storing judgment information in a database according to a unique identifier of the audio/video URL; the audio and video playing process is the audio and video downloading process and the audio and video decoding process; the webpage containing the audio/video link which can be directly downloaded in the audio/video URL is called a resource type audio/video URL; the audio/video URL is an audio/video link played according to a video website protocol, contains a webpage which cannot be directly downloaded and is called a non-resource type audio/video URL;
s4, audio and video playing judgment: two situations exist in audio and video playing judgment: resource type audio and video playing processing and non-resource type audio and video playing processing; the resource type audio and video playing processing comprises audio and video downloading and audio and video data frame analysis; the non-resource type audio and video playing processing comprises playing based on a JS-Chrome plug-in, simulated click processing and audio and video playing monitoring;
s5, audio and video playing information storage: and setting the detection identifier of the audio/video URL to be 2 through the unique identifier of the audio/video URL information, and submitting the detection identifier to a database to complete updating.
2. The method for automatically judging the efficiency of the playability of network audio/video according to claim 1, wherein the step S1 comprises the following sub-steps:
s11, adding audio and video URL information to be distinguished;
s12, setting parameters for judging whether the audio and video are successfully played, wherein the parameters comprise playing duration or playing progress;
s13, setting a detection state code for judging the audio and video to be 0;
s14, storing the audio and video distinguishing task into a database, and generating a unique identifier by the database;
the S11 and S12 can be added manually by a user or can be imported from the file in batch.
3. The method for automatically judging the efficiency of the playability of network audio/video according to claim 1, wherein the step S2 comprises the following sub-steps:
s21, obtaining system resource consumption details of each task execution machine;
s22, acquiring an audio and video playing task to be detected from a database regularly;
and S23, sending the tasks to the specified task machines according to the system resource consumption condition of each task execution machine, and recording the tasks in the database.
4. The method for automatically judging the efficiency of the playability of network audio/video according to claim 1, wherein the step S3 comprises the following sub-steps:
s31, the task execution machine sends an HTTP request to the audio and video URL, acquires the state code information of the HTTP, judges the accessibility of the audio and video URL, and stores relevant information and quits the judgment if the information is not accessible; if the access is available, go to step S32;
s32, analyzing the audio and video links contained in the audio and video URLs, wherein if the webpage contains a single audio and video link or a plurality of fragmented audio and video links which can be directly downloaded, the webpage is a resource type audio and video URL, and if the webpage does not contain the single audio and video links or the fragmented audio and video links, the webpage is a non-resource type audio and video URL;
and S33, storing the resource type distinguishing information of the audio/video URL in a database according to the unique identifier of the resource type distinguishing information.
5. The method according to claim 1, wherein said step S4 is performed according to whether the audio/video URL belongs to a resource-type audio/video URL, and includes the following two cases:
(1) if the audio/video URL is identified as the URL of the resource type audio/video, classifying the URL according to the playing type of the audio/video, and respectively processing:
for the audio and video which can be played only after the buffering is finished, the downloading operation is executed, and the audio and video data packet is decoded after the downloading is finished to obtain the total playing time of the audio and video, which is recorded as TC; the total number of pictures is marked as PC; the number of displayed pictures per second is recorded as PCS; respectively calculating the playing time length and the playing progress, recording the playing time length as PT, and calculating the PT = PC/PCS; the playing progress is recorded as PS, and the calculation mode is PS = PT/TC; then comparing the calculated playing time length or playing progress with a preset threshold, if the calculated corresponding numerical value is greater than or equal to the threshold, the playing is successful, otherwise, the playing fails;
for audio and video links based on fragment indexes, after a first fragment data packet is obtained, decoding the audio and video data packet to obtain the total playing time TC of audio and video and the picture display quantity PCS per second; for each audio/video data packet i, the number of pictures is required to be acquired and recorded as (PC)i) (ii) a Respectively calculating the playing time length and the playing progress of the audio and the video, wherein the playing time length PT = (PC)1+PC2+…+PCi+…+PCn) PCS, play progress PS = PT/TC; then the calculated playing time length or playing progress andcomparing preset threshold values, if the corresponding numerical value obtained by calculation is greater than or equal to the threshold value, playing successfully, otherwise, playing fails; if the playing time or playing progress can reach the judgment threshold value of successful playing after the ith audio and video fragment is obtained and analyzed, the playing judgment is finished in advance, and the downloading and decoding processing are not needed for the following fragment data packet;
(2) if the audio/video URL is not identified as a resource type URL, the audio/video URL is a non-resource type audio/video URL, and due to frequent changes of an anti-theft link and an audio/video analysis rule of an audio/video playing website, a playing processing program cannot directly acquire a data packet or a fragment data packet of the whole audio/video; therefore, a user behavior simulation method is adopted, a playing plug-in embedded in a browser is used for loading the URL of the audio and video, and the audio and video discrimination threshold is converted into the corresponding position of a time bar in the playing plug-in; firstly, starting an audio and video playing and monitoring component, then jumping the audio and video to a specified position by simulating a clicking process of a mouse, waiting for the audio and video to finish loading and buffering in a specified playing time or playing progress, if the audio and video playing and monitoring component can monitor that the audio and video can be played normally and the playing time is more than or equal to the corresponding position of a time bar, playing is successful, otherwise, playing is failed.
6. The method for automatically and efficiently judging the playability of the network audio/video according to claim 1, wherein the step S5 is to receive audio/video URL playing information of the audio/video playing judging component, set the detection identifier of the audio/video URL to 2 according to the unique identifier of the audio/video URL, submit the detection identifier to the database, complete the updating, and end the judgment.
CN201810482554.8A 2018-05-18 2018-05-18 Efficient and automatic judgment method for network audio and video playability Expired - Fee Related CN108600866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810482554.8A CN108600866B (en) 2018-05-18 2018-05-18 Efficient and automatic judgment method for network audio and video playability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810482554.8A CN108600866B (en) 2018-05-18 2018-05-18 Efficient and automatic judgment method for network audio and video playability

Publications (2)

Publication Number Publication Date
CN108600866A CN108600866A (en) 2018-09-28
CN108600866B true CN108600866B (en) 2020-11-24

Family

ID=63631783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810482554.8A Expired - Fee Related CN108600866B (en) 2018-05-18 2018-05-18 Efficient and automatic judgment method for network audio and video playability

Country Status (1)

Country Link
CN (1) CN108600866B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268252A (en) * 2014-09-30 2015-01-07 北京奇虎科技有限公司 Playing method and device of video elements in web page

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070288715A1 (en) * 2004-06-14 2007-12-13 Rok Productions Limited Media Player
KR100812021B1 (en) * 2006-10-19 2008-03-10 주식회사 현대오토넷 Audio/video system whit media status display function and method thereof
US8489702B2 (en) * 2007-06-22 2013-07-16 Apple Inc. Determining playability of media files with minimal downloading
CN104702994A (en) * 2013-12-06 2015-06-10 中兴通讯股份有限公司 Media play method, media play device and set top box
CN104980793B (en) * 2015-03-20 2018-11-06 腾讯科技(深圳)有限公司 A kind of method and terminal of video detection
CN105516734B (en) * 2015-12-10 2019-11-15 腾讯科技(深圳)有限公司 A kind of detection method and device of video playability
CN105975526A (en) * 2016-04-29 2016-09-28 国家计算机网络与信息安全管理中心 URL link validity verification method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268252A (en) * 2014-09-30 2015-01-07 北京奇虎科技有限公司 Playing method and device of video elements in web page

Also Published As

Publication number Publication date
CN108600866A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
US20150341457A1 (en) Method and system for pushing information to end users adaptively
US10453161B2 (en) Watermarking and scalability techniques for a virtual desktop planning tool
CN110149540B (en) Recommendation processing method and device for multimedia resources, terminal and readable medium
CN104602131A (en) Barrage processing method and system
WO2019100577A1 (en) Automated test management method and apparatus, terminal device, and storage medium
CN110609937A (en) Crawler identification method and device
CN108595492B (en) Content pushing method and device, storage medium and electronic device
CN107958058B (en) Learning behavior acquisition method and device and readable storage medium
CN109995614B (en) Alpha testing method and device
CN101645815A (en) Video and audio file download prompt method
CN106485261A (en) A kind of method and apparatus of image recognition
CN113448834A (en) Buried point testing method and device, electronic equipment and storage medium
CN114268672B (en) CDN node distribution method, CDN node distribution device, electronic equipment, medium and program product
KR101123361B1 (en) Sever, method for managing learning environment by network service and computer readable record-medium on which program for executing method thereof
KR20150025106A (en) Verification apparatus, terminal device, system, method and computer-readable medium for monitoring of application verification result
CN114065090A (en) Method and system for updating classification database, storage medium and computer equipment
CN108600866B (en) Efficient and automatic judgment method for network audio and video playability
CN110162361B (en) Intelligent prompting method and device based on user behavior, terminal and storage medium
TWI715549B (en) Behavior-based social id switching mechanism
TW202111592A (en) Learning model application system, learning model application method, and program
CN109151021B (en) Distributed storage system file lock characteristic testing method and device
US11122139B2 (en) Systems and methods for reducing download requirements
US20160103561A1 (en) Identifying productive thumbnails for media content
CN105474255A (en) Determining likelihood and degree of derivation among media content items
CN111309706A (en) Model training method and device, readable storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201124