CN114222130A - Method and device for detecting picture effect of transcoding stream and computer equipment - Google Patents
Method and device for detecting picture effect of transcoding stream and computer equipment Download PDFInfo
- Publication number
- CN114222130A CN114222130A CN202111493361.0A CN202111493361A CN114222130A CN 114222130 A CN114222130 A CN 114222130A CN 202111493361 A CN202111493361 A CN 202111493361A CN 114222130 A CN114222130 A CN 114222130A
- Authority
- CN
- China
- Prior art keywords
- media file
- stream
- transcoding
- stream media
- transport stream
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000000694 effects Effects 0.000 title claims abstract description 182
- 238000000034 method Methods 0.000 title claims abstract description 51
- 230000005540 biological transmission Effects 0.000 claims abstract description 65
- 238000001514 detection method Methods 0.000 claims abstract description 29
- 238000004590 computer program Methods 0.000 claims description 15
- 230000008859 change Effects 0.000 claims description 7
- 230000008569 process Effects 0.000 description 11
- 230000002159 abnormal effect Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 5
- 239000000463 material Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/40—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23418—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The disclosure provides a method and a device for detecting transcoding stream picture effect and computer equipment, and relates to the technical field of computers. The method comprises the following steps: acquiring a transcoding stream to be detected, and a corresponding transmission stream media file and a description file; performing quality detection on the transmission stream media file to determine each quality parameter of the transmission stream media file; analyzing the description file to determine a time stamp sequence, a frame rate, a video stream rate and a transmission stream media file duration in the transmission stream media file; and determining the picture effect of the transcoding stream according to the quality parameters, the timestamp sequence, the frame rate, the video stream rate and the duration of the streaming media file. Therefore, when the picture effect of the transcoding stream is detected, the automatic detection of the picture effect of the transcoding stream can be realized without consuming a large amount of time manually, so that the time is saved, and the efficiency is improved.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for detecting a transcoding stream picture effect, and a computer device.
Background
Generally, in the process of processing video data, transcoding processing may be performed on the video data first to obtain corresponding transcoding streams, and the picture effect of each transcoding stream may be different. In the related art, related personnel are usually required to detect the transcoding stream to determine the picture effect of the transcoding stream, and manual detection takes long time and has low efficiency. Therefore, how to improve the efficiency of detecting the transcoding stream picture effect becomes a problem to be solved urgently at present.
Disclosure of Invention
The present disclosure is directed to solving, at least to some extent, one of the technical problems in the related art.
An embodiment of the first aspect of the present disclosure provides a method for detecting a transcoding stream picture effect, including:
acquiring a transcoding stream to be detected, and a corresponding transmission stream media file and a description file;
performing quality detection on the transmission stream media file to determine each quality parameter of the transmission stream media file;
analyzing the description file to determine a time stamp sequence, a frame rate, a video stream rate and a transmission stream media file duration in the transmission stream media file;
and determining the picture effect of the transcoding stream according to the quality parameters, the timestamp, the frame rate, the video stream rate and the duration of the streaming media file.
The embodiment of the second aspect of the present disclosure provides an apparatus for detecting a transcoding stream picture effect, including:
the acquisition module is used for acquiring the transcoding stream to be detected, and the corresponding transmission stream media file and the description file;
the first determining module is used for detecting the quality of the transmission stream media file so as to determine each quality parameter of the transmission stream media file;
the second determining module is used for analyzing the description file to determine a timestamp sequence, a frame rate, a video stream rate and a transmission stream media file duration in the transmission stream media file;
and the third determining module is used for determining the image effect of the transcoding stream according to the quality parameters, the timestamp sequence, the frame rate, the video stream rate and the duration of the streaming media file.
An embodiment of a third aspect of the present disclosure provides a computer device, including: the detection method comprises the steps of storing a transcoding stream picture effect, storing a transcoding stream picture effect in a memory, and executing a computer program stored in the memory and capable of running on a processor.
A fourth aspect of the present disclosure provides a non-transitory computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the method for detecting a transcoded stream picture effect as set forth in the first aspect of the present disclosure is implemented.
A fifth aspect of the present disclosure provides a computer program product, which when executed by an instruction processor in the computer program product, performs the method for detecting the effect of transcoding stream pictures, which is provided in the first aspect of the present disclosure.
The method, the device, the computer equipment and the storage medium for detecting the transcoding stream picture effect can firstly acquire a transcoding stream to be detected, a corresponding transmission stream media file and a description file, then perform quality detection on the transmission stream media file to determine each quality parameter of the transmission stream media file, then analyze the description file to determine a timestamp sequence, a frame rate, a video stream rate and a transmission stream media file duration in the transmission stream media file, and then determine the picture effect of the transcoding stream according to each quality parameter, a timestamp sequence, a frame rate, a video stream rate and a transmission stream media file duration. Therefore, the image effect of the transcoding stream can be determined by analyzing and processing the quality parameters of the streaming media file corresponding to the transcoding stream, the timestamp sequence, the frame rate, the video stream rate, the duration of the streaming media file and the like in the description file, so that the automatic detection of the image effect of the transcoding stream can be realized without adopting a manual mode, a large amount of time is saved, and the efficiency is improved.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating a method for detecting a transcoding stream picture effect according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method for detecting a transcoding stream picture effect according to another embodiment of the disclosure;
fig. 3 is a flowchart illustrating a method for detecting a transcoding stream picture effect according to another embodiment of the present disclosure;
fig. 3A is a schematic diagram of a transcoding stream picture effect detection process according to an embodiment of the disclosure;
fig. 3B is a schematic diagram of a transcoding stream picture effect detection process according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of an apparatus for detecting transcoding stream picture effect according to an embodiment of the present disclosure;
FIG. 5 illustrates a block diagram of an exemplary computer device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the present disclosure, and should not be construed as limiting the present disclosure.
A method, an apparatus, a computer device, and a storage medium for detecting a transcoded stream picture effect according to embodiments of the present disclosure are described below with reference to the accompanying drawings.
The embodiment of the present disclosure is exemplified by the method for detecting the effect of the transcoded stream being configured in the device for detecting the effect of the transcoded stream, and the device for detecting the effect of the transcoded stream can be applied to any computer device, so that the computer device can perform the function of detecting the effect of the transcoded stream.
The Computer device may be a Personal Computer (PC), a cloud device, a mobile device, and the like, and the mobile device may be a hardware device having various operating systems, touch screens, and/or display screens, such as a mobile phone, a tablet Computer, a Personal digital assistant, a wearable device, and an in-vehicle device.
Fig. 1 is a flowchart illustrating a method for detecting a transcoding stream picture effect according to an embodiment of the present disclosure.
As shown in fig. 1, the method for detecting the transcoding stream picture effect may include the following steps:
The transcoded stream may be a transcoded data stream obtained by transcoding the received audio/video data and the like, which is not limited in this disclosure.
It can be understood that the audio and video data can be obtained by transcoding according to different requirements, which is not limited by the present disclosure.
In addition, a Transport Stream (TS) media file may be a video file obtained by slicing a transcoded stream to be monitored, and may be directly played. It is to be understood that the number of transport stream media files corresponding to the to-be-detected transcoded stream may be one, or may also be multiple, and the like, which is not limited in this disclosure.
In addition, the description file may be a data information file corresponding to a transport stream media file, and may be a file of any type or format, for example, a file of an M3U8 format, and the like, which is not limited in this disclosure.
It is to be understood that the description file and the transport stream media file may be in a corresponding relationship, and therefore, the description file and the transport stream media file may be stored in an associated manner, and the like, which is not limited in this disclosure.
There are many quality parameters, such as contrast, noise, pure color, color cast, etc., which are not limited in this disclosure.
In addition, the quality of the transport stream media file may be detected in any desirable manner to determine various quality parameters of the transport stream media file, which is not limited by this disclosure.
For example, the statistical analysis may be performed on the data in the picture in the transmission streaming media file to determine whether the noise is contained therein, the type of the contained noise, and the like, which is not limited in this disclosure.
The time stamp sequence may represent time information in the transport stream media file, and may be in any format or style, which is not limited in this disclosure.
In addition, the frame rate may represent the number of pictures that can be displayed in the transport stream media file in 1 second, for example, if the frame rate is 25, 25 pictures can be displayed in 1 second, and the like, which is not limited in this disclosure.
In addition, the video stream rate may characterize the rate at which the transport stream media file is read. For example, by parsing the description file, it is determined that the video stream rate is 3000000bits (bits)/second (second), and then a transport stream media file of 3000000bits may be read every second, and the like, which is not limited in this disclosure.
In addition, the duration of the transport stream media file may represent a length of time corresponding to the transport stream media file, for example, the length of time may be 40 seconds, 1 minute, and the like, which is not limited in this disclosure.
Optionally, the description file may be parsed in any desirable manner to determine a timestamp sequence, a frame rate, a video stream rate, and a duration of the transport stream media file in the transport stream media file, which is not limited in this disclosure.
And step 104, determining the picture effect of the transcoding stream according to the quality parameters, the timestamp sequence, the frame rate, the video stream rate and the duration of the streaming media file.
Optionally, reference values or allowable value ranges and the like corresponding to the quality parameters can be set in advance, so that the quality parameters can be compared with the reference values corresponding to the quality parameters respectively to determine whether the quality parameters are normal or abnormal, and the picture effect of the transcoding stream can be determined without manually checking the pictures of the transcoding stream one by one, thereby saving a large amount of time and improving the efficiency.
The picture effect of the transcoded stream may be in various situations, for example, the picture effect may be good, the picture effect may be poor, and the like, which is not limited in this disclosure.
It can be understood that if one or more of the quality parameters, the time stamps, the frame rates, the video stream rates, and the durations of the transport stream media files are abnormal, it can be determined that the picture effect of the transcoding stream is poor.
For example, the set reference contrast is a0The contrast allowable range may be: [0.85 star a0,3*a0]. If the contrast in the quality parameter is a and a is 5 x a0And if the contrast is not within the allowable range of the contrast, the picture effect of the transcoding stream can be determined to be poor.
In addition, the transmission stream media file can contain a plurality of audio and video pictures, each picture has corresponding timestamp information, so that if the timestamp sequence is not increased progressively according to the time sequence, the timestamp sequence of the transmission stream media file can be determined to be abnormal or wrong, and the picture effect of the transcoding stream can be determined to be poor.
For example, the pictures 1, 2 and 3 in the transport stream media file 1 are arranged in sequence, and the respective timestamps are: 1: 10. 2:05 and 1:35, the time stamps are not in a normal time sequence, namely, the time stamp sequence is wrong, so that pause or frame skipping and the like can be caused during playing, and therefore, the poor picture effect of the transcoding stream can be determined.
Or, the set reference frame rate is 25 frames/second, and the determined actual frame rate is 5 frames/second, which is much smaller than the reference frame rate, it can be determined that the picture effect of the transcoding stream is not good.
Or, the reference value of the video stream speed is 2000000bits, and the determined video stream speed in the transport stream media file is 3000000bits, which is greater than the reference value, so that the picture effect of the transcoding stream can be determined to be poor.
Or, if each quality parameter, timestamp sequence, frame rate, video stream rate, and duration of the transport stream media file are within the respective corresponding allowable range, it may be determined that the picture effect of the transcoding stream is normal, or it may also be referred to as a good picture effect of the transcoding stream.
It should be noted that the above examples are only illustrative, and cannot be taken as a limitation on the manner of determining the screen effect of the transcoding stream in the embodiments of the present disclosure.
According to the embodiment of the disclosure, a transcoding stream to be detected, a corresponding transport stream media file and a description file can be obtained first, then the quality of the transport stream media file is detected to determine each quality parameter of the transport stream media file, then the description file is analyzed to determine a timestamp sequence, a frame rate, a video stream rate and a transport stream media file duration in the transport stream media file, and then the picture effect of the transcoding stream can be determined according to each quality parameter, the timestamp sequence, the frame rate, the video stream rate and the transport stream media file duration. Therefore, the image effect of the transcoding stream can be determined by analyzing and processing the quality parameters of the streaming media file corresponding to the transcoding stream, the timestamp sequence, the frame rate, the video stream rate, the duration of the streaming media file and the like in the description file, so that the automatic detection of the image effect of the transcoding stream can be realized without adopting a manual mode, a large amount of time is saved, and the efficiency is improved.
Fig. 2 is a flowchart illustrating a method for detecting a transcoding stream picture effect according to an embodiment of the present disclosure.
As shown in fig. 2, the method for detecting the transcoding stream picture effect may include the following steps:
The key frame may be understood as a frame where a key action in the motion or change of the character or the object in the transcoding stream is located, which is not limited in this disclosure.
It can be understood that the acquired transport stream media file can include the corresponding key frame by slicing the transcoded stream according to the position of the key frame in the transcoded stream to be detected; accordingly, the description file may also include description information corresponding to the key frames included in the transport stream media file. The present disclosure is not limited thereto.
And step 204, determining the image effect of each transport stream media file according to the quality parameter, the time stamp sequence and the frame rate corresponding to each transport stream media file.
It can be understood that one or more transport stream media files corresponding to the to-be-detected transcoded stream may be provided, which is not limited in this disclosure.
Thus, in the embodiment of the present disclosure, the picture effect of each transport stream media file may be determined first.
For example, if the transport stream media files corresponding to the to-be-detected transcoding stream are transport stream media file 1 and transport stream media file 2. Then, each quality parameter of the transport stream media file 1 may be compared with the reference value of each quality parameter, and whether the timestamp sequence is incremented according to the time sequence and whether the frame rate is similar to or the same as the reference frame rate are detected, and then the picture effect of the transport stream media file 1 is determined according to each quality parameter, the timestamp sequence and the frame rate.
For example, the quality parameters of the transport stream media file 1 are: and if the contrast and the color cast are within the allowable range of the contrast and the color cast is also within the allowable range of the color cast, the quality parameters can be determined to be normal. And then, determining the time stamps corresponding to each audio data and each video picture in the transport stream media file 1, and if the time stamp sequences corresponding to the audio data and the video pictures are all increased in time sequence, determining that the time stamp sequences are normal. And then, comparing the frame rate with the reference frame rate, and if the frame rate is consistent with the reference frame rate, determining that the frame rate is normal. Since all the quality parameters, the time stamp sequences and the frame rate are normal, it can be determined that the picture effect of the transport stream media file 1 is normal. For the transport stream media file 2, the above step of determining the picture effect of the transport stream media file 1 can be referred to, and details are not described here.
The contrast allowable range, the color cast allowable range, and the reference frame rate may be set in advance, which is not limited in this disclosure.
It should be noted that the above examples are only illustrative, and cannot be taken as a limitation on the manner of determining the screen effect of each transport stream media file in the embodiments of the present disclosure.
It will be appreciated that the reference value for the video stream rate difference may be set in advance, or the allowable range of the video stream rate difference may be set. The present disclosure is not limited thereto.
For example, the number of transport stream media files corresponding to the transcoded stream is 3. If the reference value of the video stream rate difference is v, the allowable range of the video stream rate difference is: [0.85 v,1.3 v ], if the difference in video stream rates between the transport stream media file 1 and the transport stream media file 2 is 0.95 v, and the difference in video stream rates between the transport stream media file 2 and the transport stream media file 3 is 1.01 v, both of which are within the allowable range of the video stream rate difference, then it can be determined that the difference in video stream rates between the transport stream media files is normal.
Or, if the time length values of the transport stream media files corresponding to the transcoded streams are not greatly different, that is, the distribution is relatively uniform, it can be determined that the time lengths of the transport stream media files are correct. Or, the time length difference of each transport stream media file is within the set threshold, and the time length of each transport stream media file can also be considered to be normal. Or, if the difference between the duration of any transport stream media file and the duration of the remaining transport stream media files is large, or exceeds a set threshold range, it may be determined that the duration of the transport stream media file is abnormal.
For example, if the time duration of 9 corresponding transport stream media files in the transport stream media files corresponding to the transcoding stream is 3 seconds, and the time duration of 1 transport stream media file is 0.2 seconds and much less than 3 seconds, it may be determined that the time duration of the transport stream media file is abnormal.
It should be noted that the above examples are only schematic illustrations, and cannot be taken as limitations for determining the video stream rate difference between the transport stream media files, the time length of the transport stream media files, and the like in the embodiments of the present disclosure.
It can be understood that, in the embodiment of the present disclosure, the picture effect of each transport stream media file may be determined first, and then the relationship between the transport stream media files may be determined, so that if the picture effect of each transport stream media file is normal, and the video stream rate difference between the transport stream media files and the transport stream media file time length are within the allowable range, it may be determined that the picture effect of the transcoding stream is better.
Or, if at least one of the picture effect of the transport stream media file, the video stream rate difference between the transport stream media files and the transport stream media file duration is abnormal, it may be determined that the picture effect of the transcoding stream is poor.
For example, if the picture effect of one of the transport stream media files corresponding to the transcoding stream is not good, and the video stream rate difference between the transport stream media files and the transport stream media file duration are normal, it may be determined that the picture effect of the transcoding stream may be not good. Or, if the video stream rate difference between the transport stream media file 1 and the transport stream media file 2 and the transport stream media file duration are both abnormal, it may be determined that the picture effect of the transcoding stream is poor.
It should be noted that the above examples are only illustrative, and cannot be taken as a limitation on the manner of determining the screen effect of the transcoding stream in the embodiments of the present disclosure.
According to the embodiment of the disclosure, the transcoded stream can be sliced according to the position of a key frame in the transcoded stream to be detected, so as to obtain a transport stream media file and a corresponding description file, then the quality of the transport stream media file is detected, so as to determine each quality parameter of the transport stream media file, and the description file is analyzed, so as to determine a timestamp sequence, a frame rate, a video stream rate and a transport stream media file duration in the transport stream media file, and then the picture effect of each transport stream media file is determined according to the quality parameter, the timestamp sequence and the frame rate corresponding to each transport stream media file, and then the picture effect of the transcoded stream can be determined according to the video stream rate difference between each transport stream media file and the transport stream media file duration. Therefore, in the process of determining the image effect of the transcoding stream, the image effect of each transport stream media file is considered, and the relationship among the transport stream media files is fully combined, so that the determined image effect of the transcoding stream is more accurate and reliable, the efficiency of detecting the image effect of the transcoding stream is improved, and the accuracy and reliability of determining the image effect of the transcoding stream are improved.
Fig. 3 is a flowchart illustrating a method for detecting a transcoding stream picture effect according to an embodiment of the present disclosure.
As shown in fig. 3, the method for detecting the transcoding stream picture effect may include the following steps:
It should be noted that specific contents and implementation manners of steps 301 to 303 may refer to descriptions of other embodiments of the present disclosure, and are not described herein again.
And step 304, determining the effect of each picture in the transmission stream media file according to the contrast, the noise, the pure chroma and the color cast corresponding to the transmission stream media file.
One or more pictures may be included in the transport stream media file, so that the effect of each picture in the transport stream media file can be determined separately.
For example, the effect of each frame can be determined according to the contrast, noise, pure color and color cast corresponding to each frame.
For example, reference values or allowable value ranges corresponding to the contrast, noise, pure color, and color cast may be set in advance. Then, the contrast 1 corresponding to the picture 1 can be compared with a contrast reference value, the noise 1 can be compared with a noise reference value, the pure chroma 1 can be compared with a pure chroma reference value, the color cast 1 can be compared with a color cast reference value, and the four comparison results are summarized to obtain the effect of the picture 1. For example, if the contrast 1, the noise 1, the pure chroma 1, and the color cast 1 are within the respective allowable numerical ranges, it can be determined that the effect of the screen 1 is normal or that the effect of the screen 1 is good.
It should be noted that the above examples are only illustrative, and cannot be taken as a limitation on the manner of determining the effect of each picture in the transport stream media file in the embodiments of the present disclosure, and the like.
And 305, determining the picture switching effect of the transport stream media file according to the change rule of the timestamp sequence corresponding to the transport stream media file.
It can be understood that the transport stream media file may include video pictures, audio data, and the like, and if the timestamp sequences corresponding to the video and the audio are arranged according to a time sequence, that is, the change rules are all increasing, so that the decoding and playing can be accurately performed when the video is played.
For example, the time stamp sequences corresponding to the video pictures in the transport stream media file 1 are sequentially: 01:10, 03:50, 02:12, the time sequence being out of order, whereby it can be determined that the picture switching effect of the transport stream media file may be poor. Or, the time stamp sequences corresponding to the video pictures in the transport stream media file 2 are sequentially incremented, and the time stamp sequences corresponding to the audio data are also sequentially incremented, so that it can be determined that the picture switching effect of the transport stream media file 2 is better.
It should be noted that the above examples are only illustrative, and cannot be taken as a limitation on the manner of determining the screen switching effect of the transmission stream media file screen in the embodiments of the present disclosure.
And step 306, determining a frame rate reference value according to the transcoding template corresponding to the transcoded stream.
Wherein, the transcoding templates corresponding to different transcoding streams may be the same or may be different. It will be appreciated that different transcoding templates may have the same or different frame rate reference values. The present disclosure is not limited thereto.
For example, the frame rate reference value corresponding to the transcoding template 1 is 25 frames/second, the frame rate reference value corresponding to the transcoding template 2 is 15 frames/second, and the frame rate reference value corresponding to the transcoding template 3 is 10 frames/second. If the transcoding template corresponding to the current transcoding stream to be detected is the transcoding template 2, the corresponding frame rate reference value can be determined to be 15 frames/second. The present disclosure is not limited thereto.
It can be understood that the smaller the difference between the frame rate corresponding to the transport stream media file and the frame rate reference value is, the better the picture effect of the transport stream media file is likely to be; the larger the difference between the frame rate corresponding to the transport stream media file and the frame rate reference value is, the worse the picture effect of the transport stream media file may be.
In addition, the reference difference value or the allowable value range of the reference difference value may be set in advance. If the difference value between the frame rate corresponding to the transport stream media file and the frame rate reference value is within the allowable value range of the reference difference value, it can be determined that the picture effect of the transport stream media file is better; if the difference between the frame rate corresponding to the transport stream media file and the frame rate reference value exceeds the allowable range of the reference difference, it can be determined that the picture effect of the transport stream media file is poor.
It should be noted that the above examples are only illustrative, and cannot be taken as a limitation on the manner of determining the screen effect of the transport stream media file in the embodiments of the present disclosure.
Therefore, in the embodiment of the present disclosure, in the process of determining the picture effect of the transport stream media file, the effect of each picture in the transport stream media file, the picture switching effect of the transport stream media file, and the relationship between the frame rate corresponding to the transport stream media file and the frame rate reference value are fully considered, that is, the relation is considered from multiple dimensions of the transport stream media file, so that the determined picture effect of the transport stream media file is more accurate and reliable.
And 308, determining the picture effect of the transcoding stream according to the video stream rate difference value among the transport stream media files and the transport stream media file time length.
Optionally, after determining the picture effect of the transcoding stream, the picture effect of the transcoding stream may be displayed on the front-end display interface.
For example, the image effect of the transcoding stream can be directly displayed on the front-end display interface, such as "the image effect of the transcoding stream is good", "the image effect of the transcoding stream is poor", "the image effect of the transcoding stream is normal", and "the image effect of the transcoding stream is abnormal" are displayed on the front-end display interface.
Or, the image effect of the transcoding stream may also be displayed in the center of the front-end display interface, or the topmost part, the bottommost part, and the like of the front-end display interface, which is not limited in this disclosure.
Alternatively, the color of the displayed font may be changed. For example, the "good picture effect of the transcoding stream" may be set to green, and the "poor picture effect of the transcoding stream" may be set to red.
Or, in the case that the picture effect of the transcoded stream is "poor picture effect of the transcoded stream", the reason for "poor picture effect of the transcoded stream" may also be displayed on the front-end display interface. For example, when the reason of the abnormal picture effect of the forward bitstream is "the timestamp sequence corresponding to the transport stream media file is wrong", the picture effect of the forward bitstream can be displayed as "the picture effect of the forward bitstream is poor: and transmitting the time stamp sequence error corresponding to the stream media file.
It should be noted that the above examples are only illustrative, and cannot be taken as a limitation on the manner of displaying the screen effect of the transcoding stream on the front-end display interface in the embodiment of the present disclosure.
Therefore, in the embodiment of the disclosure, the image effect of the transcoding stream can be more clearly visible by displaying the image effect of the transcoding stream on the front-end display interface.
It can be understood that the method for detecting the transcoded stream image effect provided by the present disclosure may be applied to a detection scenario of the transcoded stream image effect corresponding to any audio/video data, and the present disclosure does not limit this scenario.
The following describes a detection process of the transcoded stream picture effect provided by the present disclosure with reference to fig. 3A by taking audio/video data of a live broadcast system as an example.
Fig. 3A is a schematic diagram of a transcoding stream picture effect detection process according to an embodiment of the disclosure. As shown in fig. 3A, after receiving audio and video data uploaded by a user, a live system (live system) may transcode the audio and video data to obtain a corresponding transcoded stream to be detected, and then may slice the transcoded stream according to a position of a key frame in the transcoded stream to be detected to obtain a corresponding transport stream media file and a description file, where the description file may be in an M3U8 format, or may be in any other format.
Then, the quality detection can be carried out on the transmission stream media file to determine each quality parameter of the transmission stream media file, the description file is analyzed to determine a timestamp sequence, a frame rate, a video stream speed and a transmission stream media file time length in the transmission stream media file, then, the picture effect of each transmission stream media file can be determined according to the quality parameter, the timestamp sequence and the frame rate corresponding to each transmission stream media file, and then, the picture effect of the transcoding stream can be determined according to the video stream speed difference value among the transmission stream media files and the transmission stream media file time length. And then, the picture effect of the transcoding stream can be displayed on a front-end display interface.
The above-mentioned processes of performing quality detection on the transport stream media file corresponding to the transcoding stream and parsing the description file may be as shown in fig. 3B.
It should be noted that the above examples are only illustrative, and cannot be taken as a limitation on the manner of detecting the bitstream screen effect and the like in the embodiments of the present disclosure.
The disclosed embodiment can firstly perform quality detection on a transport stream media file corresponding to a transcoding stream to determine each quality parameter of the transport stream media file, analyze a description file corresponding to the transcoding stream to determine a timestamp sequence, a frame rate, a video stream rate and a transport stream media file duration in the transport stream media file, then determine an effect of each picture in the transport stream media file according to a contrast, noise, a pure color and a color cast corresponding to the transport stream media file, determine a picture switching effect of the transport stream media file according to a change rule of the timestamp sequence corresponding to the transport stream media file, then determine a frame rate reference value according to a transcoding template corresponding to the transcoding stream, and determine a picture effect of the transport stream media file according to a difference value between the frame rate and the frame rate reference value corresponding to the transport stream media file, and then determining the picture effect of the transcoding stream according to the video stream rate difference value among the transport stream media files and the transport stream media file duration. Therefore, in the process of determining the picture effect of the transcoding stream, the picture effect of the transport stream media file determined according to the picture effect of each transport stream media file, the picture switching effect and the difference value between the frame rate reference value and the picture effect of the transport stream media file are considered, and the relation among the transport stream media files is fully combined, so that the determined picture effect of the transcoding stream is more accurate and reliable, the picture effect detection efficiency of the transcoding stream is improved, and the accuracy and the reliability of determining the picture effect of the transcoding stream are improved.
In order to implement the above embodiments, the present disclosure further provides a device for detecting a transcoding stream picture effect.
Fig. 4 is a schematic structural diagram of an apparatus for detecting a transcoding stream picture effect according to an embodiment of the present disclosure.
As shown in fig. 4, the apparatus 100 for detecting a transcoding stream picture effect may include: an acquisition module 110, a first determination module 120, a second determination module 130, and a third determination module 140.
The obtaining module 110 is configured to obtain a transcoding stream to be detected, a corresponding transport stream media file, and a description file.
A first determining module 120, configured to perform quality detection on the transport stream media file to determine quality parameters of the transport stream media file.
A second determining module 130, configured to parse the description file to determine a timestamp sequence, a frame rate, a video stream rate, and a duration of the transport stream media file in the transport stream media file.
And a third determining module 140, configured to determine an image effect of the transcoding stream according to the quality parameters, the timestamp sequence, the frame rate, the video stream rate, and the duration of the streaming media file.
Optionally, the obtaining module 110 is specifically configured to: and slicing the transcoding stream according to the position of the key frame in the transcoding stream to be detected so as to obtain the streaming media file and the corresponding description file.
Optionally, the third determining module 140 includes:
the first determining unit is used for determining the image effect of each transport stream media file according to the quality parameter, the time stamp sequence and the frame rate corresponding to each transport stream media file;
and the second determining unit is used for determining the picture effect of the transcoding stream according to the video stream rate difference value among the transport stream media files and the transport stream media file time length.
Optionally, the first determining unit is specifically configured to:
determining the effect of each picture in the transport stream media file according to the contrast, noise, pure chroma and color cast corresponding to the transport stream media file;
determining the picture switching effect of the transport stream media file according to the change rule of the timestamp sequence corresponding to the transport stream media file;
determining a frame rate reference value according to a transcoding template corresponding to the transcoded stream;
and determining the picture effect of the transport stream media file according to the difference value between the frame rate corresponding to the transport stream media file and the frame rate reference value.
Optionally, the method further includes:
and the display module is used for displaying the picture effect of the transcoding stream on a front-end display interface.
The functions and specific implementation principles of the modules in the embodiments of the present disclosure may refer to the embodiments of the methods, and are not described herein again.
The device for detecting the effect of the transcoded stream picture according to the embodiment of the present disclosure may first acquire a transcoded stream to be detected, a corresponding transport stream media file and a description file, then perform quality detection on the transport stream media file to determine each quality parameter of the transport stream media file, and then parse the description file to determine a timestamp sequence, a frame rate, a video stream rate and a transport stream media file duration in the transport stream media file, and then determine the picture effect of the transcoded stream according to each quality parameter, the timestamp sequence, the frame rate, the video stream rate and the transport stream media file duration. Therefore, the image effect of the transcoding stream can be determined by analyzing and processing the quality parameters of the streaming media file corresponding to the transcoding stream, the timestamp sequence, the frame rate, the video stream rate, the duration of the streaming media file and the like in the description file, so that the automatic detection of the image effect of the transcoding stream can be realized without adopting a manual mode, a large amount of time is saved, and the efficiency is improved.
In order to implement the foregoing embodiments, the present disclosure also provides a computer device, including: the detection method for transcoding streaming picture effect provided by the foregoing embodiments of the present disclosure is implemented when the processor executes the program.
In order to achieve the foregoing embodiments, the present disclosure also proposes a non-transitory computer-readable storage medium storing a computer program, which when executed by a processor implements the method for detecting the effect of transcoding streaming pictures proposed by the foregoing embodiments of the present disclosure.
In order to achieve the foregoing embodiments, the present disclosure further provides a computer program product, which when executed by an instruction processor in the computer program product, performs the method for detecting the effect of transcoding streaming pictures as set forth in the foregoing embodiments of the present disclosure.
FIG. 5 illustrates a block diagram of an exemplary computer device suitable for use in implementing embodiments of the present disclosure. The computer device 12 shown in fig. 5 is only one example and should not bring any limitations to the functionality or scope of use of the embodiments of the present disclosure.
As shown in FIG. 5, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described in this disclosure.
The processing unit 16 executes various functional applications and data processing, for example, implementing the methods mentioned in the foregoing embodiments, by executing programs stored in the system memory 28.
According to the technical scheme, the transcoding stream to be detected, the corresponding transport stream media file and the description file can be obtained firstly, then the quality of the transport stream media file is detected to determine each quality parameter of the transport stream media file, then the description file is analyzed to determine the timestamp sequence, the frame rate, the video stream rate and the transport stream media file duration in the transport stream media file, and then the picture effect of the transcoding stream can be determined according to each quality parameter, the timestamp sequence, the frame rate, the video stream rate and the transport stream media file duration. Therefore, the image effect of the transcoding stream can be determined by analyzing and processing the quality parameters of the streaming media file corresponding to the transcoding stream, the timestamp sequence, the frame rate, the video stream rate, the duration of the streaming media file and the like in the description file, so that the automatic detection of the image effect of the transcoding stream can be realized without adopting a manual mode, a large amount of time is saved, and the efficiency is improved.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present disclosure have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure, and that changes, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present disclosure.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111493361.0A CN114222130A (en) | 2021-12-08 | 2021-12-08 | Method and device for detecting picture effect of transcoding stream and computer equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111493361.0A CN114222130A (en) | 2021-12-08 | 2021-12-08 | Method and device for detecting picture effect of transcoding stream and computer equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114222130A true CN114222130A (en) | 2022-03-22 |
Family
ID=80700389
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111493361.0A Pending CN114222130A (en) | 2021-12-08 | 2021-12-08 | Method and device for detecting picture effect of transcoding stream and computer equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114222130A (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011023017A1 (en) * | 2009-08-26 | 2011-03-03 | 腾讯科技(深圳)有限公司 | Method and device for transcoding |
| US20130057705A1 (en) * | 2011-09-02 | 2013-03-07 | Verizon Patent And Licensing Inc. | Video quality scoring |
| CN103873852A (en) * | 2012-12-11 | 2014-06-18 | 上海文广互动电视有限公司 | Multi-mode parallel video quality fault detection method and device |
| US20150063435A1 (en) * | 2013-08-30 | 2015-03-05 | Barry Benight | Techniques for reference based transcoding |
| CN110636346A (en) * | 2019-09-19 | 2019-12-31 | 北京达佳互联信息技术有限公司 | Code rate self-adaptive switching method and device, electronic equipment and storage medium |
| CN111818338A (en) * | 2020-07-23 | 2020-10-23 | 腾讯音乐娱乐科技(深圳)有限公司 | Abnormal display detection method, device, equipment and medium |
| CN113596467A (en) * | 2020-04-30 | 2021-11-02 | 北京达佳互联信息技术有限公司 | Transcoding service detection method and device, electronic equipment and storage medium |
-
2021
- 2021-12-08 CN CN202111493361.0A patent/CN114222130A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011023017A1 (en) * | 2009-08-26 | 2011-03-03 | 腾讯科技(深圳)有限公司 | Method and device for transcoding |
| US20130057705A1 (en) * | 2011-09-02 | 2013-03-07 | Verizon Patent And Licensing Inc. | Video quality scoring |
| CN103873852A (en) * | 2012-12-11 | 2014-06-18 | 上海文广互动电视有限公司 | Multi-mode parallel video quality fault detection method and device |
| US20150063435A1 (en) * | 2013-08-30 | 2015-03-05 | Barry Benight | Techniques for reference based transcoding |
| CN110636346A (en) * | 2019-09-19 | 2019-12-31 | 北京达佳互联信息技术有限公司 | Code rate self-adaptive switching method and device, electronic equipment and storage medium |
| CN113596467A (en) * | 2020-04-30 | 2021-11-02 | 北京达佳互联信息技术有限公司 | Transcoding service detection method and device, electronic equipment and storage medium |
| CN111818338A (en) * | 2020-07-23 | 2020-10-23 | 腾讯音乐娱乐科技(深圳)有限公司 | Abnormal display detection method, device, equipment and medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11423942B2 (en) | Reference and non-reference video quality evaluation | |
| US10931975B2 (en) | Techniques for detecting media playback errors | |
| CN109309831B (en) | Method and device for testing video delay in video conference | |
| CN110166765B (en) | Screen-patterned detection method, electronic device and readable storage medium | |
| TW201419846A (en) | Dynamic resolution adjustment method system and dynamic resolution adjustment method | |
| CN104081760A (en) | Method, terminal and system for playing video | |
| CN111629264B (en) | A web-based separate front-end image rendering method | |
| CN110505522A (en) | Processing method, device and the electronic equipment of video data | |
| JP2015520548A (en) | Method and apparatus for evaluating multimedia quality | |
| US20180376102A1 (en) | Profile for frame rate conversion | |
| CN112672146B (en) | Frame rate testing method and computing device for video player playing video | |
| CN110324707B (en) | Video playing time consumption testing method and device | |
| CN109857907B (en) | Video positioning method and device | |
| CN113068021B (en) | Delay testing method, device, equipment and storage medium | |
| CN114222130A (en) | Method and device for detecting picture effect of transcoding stream and computer equipment | |
| CN109600571B (en) | Multimedia resource transmission test system and multimedia resource transmission test method | |
| JP2020010321A (en) | Method of measuring quality of video image voice service in real time and system | |
| CN116828259A (en) | Method, device, equipment and storage medium for detecting key frame interval of video equipment | |
| CN114845076A (en) | Video data processing method, system, equipment and medium | |
| CN115617290A (en) | Image display method, image display device, electronic device, and storage medium | |
| CN113160083A (en) | Media asset video cover map optimization method, device, equipment and storage medium | |
| CN113055711A (en) | Audio and video synchronization detection method and detection system thereof | |
| CN119094744A (en) | A method and device for measuring screen projection delay | |
| CN117009194A (en) | Display performance detection method and device, electronic equipment and storage medium | |
| CN114882415A (en) | Endoscopic surgery video processing method 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 |