Video quality detection method, device, equipment and medium

By installing a video acquisition card on the terminal device, obtaining the video stream output from the TV box and generating video files, the problem of inaccurate video quality detection in the prior art is solved, and more efficient and accurate detection effects are achieved.

CN119562051APending Publication Date: 2025-03-04BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411740991.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

The prior art is difficult to accurately detect the true picture quality of videos and is easily affected by surrounding ambient light sources.

Method used

By installing a video acquisition card on the terminal device, connecting it with the TV box, using the script file to generate control instructions, obtain the video stream output by the TV box, and generate a video file for detection.

Benefits of technology

It improves the efficiency and accuracy of video quality detection, and can restore image quality effects closer to the film source, accurately reflecting the playback quality of the video software when playing videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119562051A_ABST
    Figure CN119562051A_ABST
Patent Text Reader

Abstract

The invention provides a video quality detection method and device, equipment and a medium, and the method is applied to terminal equipment, obtains a first script file corresponding to a video collection task based on the triggering operation of the video collection task, generates a first control instruction through the first script file, and sends the first control instruction to the terminal equipment. The first control instruction is used for instructing the target television box to play a video through the target video software, the target television box outputs a video stream of the video in the playing process, the video stream can be acquired through a video acquisition card connected with the target television box, and the video stream is transmitted to the target television box through the video acquisition card. A video file is generated based on the video stream. The collected video file can be closer to the film source video file, the image quality effect closer to the film source is restored, when the video file is used for detecting the playing quality of the target video software during video playing, the detection effect is more accurate, the film source does not need to be recorded manually, and the detection efficiency and the detection precision are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video detection, and in particular to a video quality detection method, device, equipment and medium. Background Art

[0002] Currently, many video providing platforms provide video playback software for use on TV terminals, thereby specifically supporting video playback on TV terminals. In order to provide users with a better visual experience, each video providing platform will pay attention to the picture quality during video playback.

[0003] Video providing platforms or video evaluation organizations can evaluate the picture quality. In one way, a mobile phone or camera can be used to record the video played on the TV to obtain the video picture for detection. However, the quality of the video picture obtained in this way is easily affected by the surrounding light source, etc., and it is difficult to accurately reflect the real picture quality of the video. Therefore, providing a suitable video quality detection method has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a video quality detection method, device, equipment and medium, which can restore the image quality effect closer to the source, improve the detection efficiency and detection accuracy. The specific scheme is as follows:

[0005] On the one hand, the present application provides a video quality detection method, which is applied to a terminal device, wherein a video capture card is installed on the terminal device, the video capture card is connected to a TV box, video software is installed on the TV box, and the TV box is also directly connected to the terminal device; the method comprises:

[0006] Based on the triggering operation of the video acquisition task, a first script file corresponding to the video acquisition task is acquired; the first script file includes a first identifier of the target TV box;

[0007] Generate a first control instruction through the first script file;

[0008] Sending the first control instruction to the target TV box based on the first identifier; the first control instruction includes the second identifier of the target video software, and the first control instruction is used to instruct the target TV box to play the video through the target video software;

[0009] Acquire the video stream of the video output by the target TV box through the video capture card;

[0010] A video file is generated based on the video stream; the video file is used to detect the playback quality of the target video software when playing the video.

[0011] Optionally, the first script file further includes a third identifier of the server, and the method further includes:

[0012] Generate a storage request through the first script file; the storage request carries the third identifier and the video file;

[0013] The storage request is sent to the server based on the third identifier; the storage request is used to request the server to store the video file.

[0014] Optionally, the method further comprises:

[0015] Based on the triggering operation of the video detection task, obtaining a second script file corresponding to the video detection task; the second script file includes the third identifier;

[0016] Generate a video acquisition request based on the second script file; the video acquisition request carries the third identifier and the storage address of the video file;

[0017] Sending the video acquisition request to the server based on the third identifier; the video acquisition request is used to request the server to return the video file based on the storage address;

[0018] The video file is subjected to quality detection to obtain a detection result; the detection result is used to indicate the playback quality of the target video software when playing the video.

[0019] Optionally, the terminal device is connected to a plurality of the TV boxes, and the first script file includes a plurality of first identifiers, and one first identifier is used to identify a target TV box;

[0020] Generating a first control instruction through the first script file includes:

[0021] Generate a plurality of the first control instructions through the first script file; the plurality of the first control instructions and the plurality of the first identifiers have a first corresponding relationship;

[0022] Sending the first control instruction to the target TV box based on the first identifier includes:

[0023] Based on the first corresponding relationship, the first control instruction is sent to the target TV box corresponding to the first identifier.

[0024] Optionally, a plurality of the video capture cards are installed on the terminal device, and one of the video capture cards is connected to one of the TV boxes;

[0025] Generating a video file based on the video stream includes:

[0026] Determine a receiving port corresponding to each of the video streams; the receiving port is used to receive the video stream from the video capture card;

[0027] Determine the first identifier corresponding to each of the video streams based on a second corresponding relationship between the receiving port and the first identifier;

[0028] For each of the video streams, a video file corresponding to the first identifier is generated based on the video stream and the first identifier corresponding to the video stream.

[0029] Optionally, the first control instruction further includes a fourth identifier of the target video; the first control instruction is further used to instruct the target TV box to play the target video based on the fourth identifier through the target video software;

[0030] Acquiring the video stream of the video output by the target TV box through the video capture card includes:

[0031] The video stream of the target video output by the target TV box is obtained through the video capture card.

[0032] Optionally, the first control instruction further includes a preset duration for the video; the first control instruction is further used to instruct the target TV box to play the video through the target video software for a duration that reaches the preset duration;

[0033] The video stream is a video stream of a video segment corresponding to the preset duration.

[0034] On the other hand, the present application provides a video quality detection device, which is applied to a terminal device, wherein a video capture card is installed on the terminal device, the video capture card is connected to a TV box, video software is installed on the TV box, and the TV box is also directly connected to the terminal device; the device comprises:

[0035] A first acquisition unit, configured to acquire a first script file corresponding to the video acquisition task based on a triggering operation on the video acquisition task; the first script file includes a first identifier of a target TV box;

[0036] A first generating unit, configured to generate a first control instruction through the first script file;

[0037] a sending unit, configured to send the first control instruction to the target TV box based on the first identifier; the first control instruction includes a second identifier of the target video software, and the first control instruction is used to instruct the target TV box to play the video through the target video software;

[0038] A second acquisition unit, configured to acquire a video stream of the video output by the target TV box through the video capture card;

[0039] The second generating unit is used to generate a video file based on the video stream; the video file is used to detect the playing quality of the target video software when playing the video.

[0040] In another aspect, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:

[0041] The memory is used to store program code and transmit the program code to the processor;

[0042] The processor is configured to execute the method described above according to the instructions in the program code.

[0043] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method described in the above aspects.

[0044] The embodiment of the present application provides a video quality detection method, device, equipment and medium, which is applied to a terminal device, a video capture card is installed on the terminal device, the video capture card is connected to a TV box, a video software is installed on the TV box, and the TV box is also directly connected to the terminal device. Based on the triggering operation of the video acquisition task, the first script file corresponding to the video acquisition task is obtained, the first script file includes a first identifier of the target TV box, the first identifier can be used to determine the target TV box, during the operation of the first script file, a first control instruction can be generated by the first script file, and the first control instruction can be sent to the target TV box based on the first identifier, the first control instruction includes a second identifier of the target video software, and the first control instruction is used to instruct the target TV box to play the video through the target video software, that is, the instruction is used to control the target video software installed on the target TV box to play the video. During the playback process, the target TV box will output the video stream of the video, and the video stream can be obtained by the video capture card connected to the target TV box, and a video file is generated based on the video stream. In this way, the collected video file can be closer to the source video file, and restore the picture quality effect closer to the source. When the video file is used to detect the playback quality of the target video software when playing the video, the detection effect is more accurate. In short, the video file collected in this way can represent the playback status of a certain video software when playing the video, such as picture clarity, smoothness, etc., which is convenient for subsequent video optimization and does not require manual recording of the film source, thereby improving detection efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0046] Figure 1 A schematic diagram of a process flow of a video quality detection method provided by an embodiment of the present application is shown;

[0047] Figure 2 An interactive schematic diagram of a video quality detection method provided in an embodiment of the present application;

[0048] Figure 3 A schematic diagram of a video quality detection device provided in an embodiment of the present application;

[0049] Figure 4 A structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below with reference to the accompanying drawings.

[0051] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present application. Therefore, the present application is not limited to the specific embodiments disclosed below.

[0052] For ease of understanding, a video quality detection method, apparatus, device and medium provided in an embodiment of the present application are described in detail below with reference to the accompanying drawings.

[0053] refer to Figure 1 As shown, it is a flow chart of a video quality detection method provided in an embodiment of the present application. The method can be applied to terminal devices, and the terminal devices are not limited to mobile phones, computers, etc. The method may include the following steps.

[0054] S101, based on a triggering operation on a video acquisition task, obtaining a first script file corresponding to the video acquisition task.

[0055] A video capture card is installed on the terminal device, and the video capture card has the function of video capture. Specifically, the video capture card can be inserted into the corresponding interface of the terminal device, for example, it can be inserted into the memory stick interface. The type of the video capture card is not specifically limited, for example, it can be a high-definition multimedia interface (HDMI) video capture card. In addition, the relevant driver of the video capture card can be installed on the terminal device so that the video capture card can work normally. The screen display software attached to the video capture card can also be installed on the terminal device to watch the captured video.

[0056] The video capture card can also be connected to the TV box, and the two can be connected via a data cable. When the video capture card is an HDMI video capture card, the HDMI video capture card has an HDMI interface and can be connected to the TV box via an HDMI data cable.

[0057] The TV box can be used to play videos. When the TV box is connected to a monitor, the TV box can output a video stream to the monitor so that the monitor can display the picture. Video software is installed on the TV box. The video software is a program for playing videos. When the video software is installed on the TV box, the video software can be opened to play the video. Among them, one or more video software can be installed on a TV box.

[0058] The video acquisition task can be understood as a task that requires video acquisition. Based on a triggering operation on the video acquisition task, the terminal device can obtain a first script file corresponding to the video acquisition task.

[0059] The triggering operation of the video acquisition task can be a click operation on the video acquisition task control. By clicking the control, the task is triggered. In actual applications, the task can be triggered in the task management webpage. The task management webpage has a video acquisition task control. When the user clicks the control, it means that the video acquisition task is triggered. Of course, it can also be timed, that is, when the preset time is reached, the video acquisition task is automatically triggered. The webpage can be deployed on the terminal device or on another terminal device.

[0060] When the task management webpage is deployed on the terminal device, the terminal device can receive a trigger operation of the video acquisition task by the user, and based on the trigger operation, the first script file stored locally can be retrieved, that is, the first script file can be obtained. The correspondence between the video acquisition task and the first script file can be stored on the terminal device, so that the first script file can be found based on the correspondence.

[0061] When the task management webpage is deployed on another terminal device, the corresponding relationship between the video acquisition task and the first script file is also stored on the terminal device. When the terminal device receives the user's trigger operation on the video acquisition task, the corresponding first script file can be found based on the trigger operation and sent to the terminal device with the video acquisition card installed, so that the terminal device with the video acquisition card installed can obtain the first script file. In addition, when constructing the task management webpage, you can use springboot, tomcat, mysql and other technologies to implement it.

[0062] The first script file can be understood as a pre-designed script file that can realize video acquisition. As an example, the first script file can be a python executable script file. The first script file includes a first identifier of the target TV box. The target TV box can be understood as a specified TV box connected to the video capture card. The identifier of the target TV box can be recorded as the first identifier. The first identifier is used to identify the target TV box from multiple TV boxes. As an example, the first identifier can be the name, number, etc. of the target TV box.

[0063] S102: Generate a first control instruction through a first script file.

[0064] Specifically, the terminal device can run the first script file. During the running process, the first control instruction can be generated through the first script file, and the first control instruction is used to control the target TV box to perform a corresponding operation.

[0065] S103: Send a first control instruction to the target TV box based on the first identifier.

[0066] The terminal device is also directly connected to the TV box, for example, via a wired or wireless connection, so that the terminal device can communicate directly with the TV box and send control instructions directly to the TV box.

[0067] The terminal device can determine the target TV box according to the first identifier, and send the first control instruction to the target TV box based on the first identifier, wherein the first control instruction includes the second identifier of the target video software. The target video software can be a certain video software configured on the target TV box, and the identifier of the target video software can be recorded as the second identifier. The second identifier can uniquely identify the target video software. As an example, the second identifier can be the name of the target video software, etc.

[0068] The first control instruction is used to instruct the target TV box to play the video through the target video software. That is, the target TV box is directly connected to the terminal device, and when the target TV box receives the first control instruction including the second identifier sent by the terminal device, under the control of the first control instruction, the target video software corresponding to the second identifier can be determined according to the second identifier, and the target video software can be controlled to start playing the video.

[0069] In actual applications, the terminal device and the target TV box can communicate through an automation tool. An automation tool, such as the Airtest tool, is installed on the terminal device. The first script file can be run in the automation tool. During the operation, a first control instruction can be generated and sent to the target TV box through the automation tool, thereby controlling the target TV box to automatically play the video. For example, the target TV box can be controlled to automatically log in to an account, automatically select a video, fast forward, fast rewind, etc.

[0070] S104, obtaining the video stream of the video output by the target TV box through a video capture card.

[0071] Under the control of the first control instruction, the target TV box can open the target video software to play the video, and at this time, the target TV box can output the video stream of the video. In the related art, the target TV box can be connected to a display to send the video stream to the display so that the display can display the picture.

[0072] In the present application, the target TV box is no longer connected to the display, but is directly connected to the video capture card, so that the video capture card can capture the video stream output by the target TV box.

[0073] In a possible implementation, the first control instruction may also include a preset duration for the video, which may not be greater than the total duration of the video, for example, 5 minutes. The first control instruction may also be used to indicate the duration of the target TV box to play the video through the target video software, reaching the preset duration. In short, when the duration of the target video software playing the video meets the preset duration, the target TV box may be controlled to stop playing, and the video stream captured by the video capture card is the video stream of the video clip corresponding to the preset duration. For example, the video stream is a video stream of a 5-minute video clip. In addition, after the playback is completed, the target TV box may be restored and the target TV box may be turned off.

[0074] S105: Generate a video file based on the video stream.

[0075] The video capture card can convert the captured video stream into a video file, which can be in MP4 format, so that the terminal device can obtain the video file. The video file is used to detect the playback quality of the target video software when playing the video. In other words, the video file can represent the video played by the target TV box through the target video software. By detecting the quality of the video file, the playback quality of the target video software when playing the video can be known. The playback quality can be characterized by picture clarity, smoothness, etc.

[0076] Because the video playback software of each manufacturer may do some processing on the film sources it owns, for example, for the same film source, video playback software A may process it for clarity and obtain the processed film source video file, and the film source video file is usually encrypted and cannot be obtained. Video playback software B may process it for smoothness, and the processed film source video file is also encrypted and cannot be obtained.

[0077] When the target TV box plays a certain video, since the source video file is generally encrypted, the target video software installed on the target TV box can be used to decrypt the source video file to obtain the decrypted video stream, and then the target TV box can transfer the video stream to the video capture card. The present application directly captures the video stream through the video capture card to generate a video file. The video file is basically the same as the encrypted source video file, and the picture quality is not much different, that is, the captured video file can be closer to the source video file, and restore the picture quality effect closer to the source. When the video file is used to detect the playback quality of the target video software when playing the video, the detection effect is more accurate. In short, the video file captured in this way can represent the playback status of a certain video software when playing the video, such as picture clarity, smoothness, etc., which is convenient for subsequent optimization of the video, and there is no need to manually record the source, which improves the detection efficiency and detection accuracy.

[0078] The video file can be directly stored in the hard disk of the terminal device so that the detection efficiency can be improved in the subsequent video detection. The video file can also be stored in other servers, so that large video files can be prevented from occupying more storage space of the terminal device.

[0079] In a possible implementation, the first script file may further include a third identifier of the server, where the third identifier is used to uniquely identify the server so that the server and the terminal device can communicate with each other. The method may further include S201-S202.

[0080] S201, generating a storage request through a first script file.

[0081] During the process of running the first script file, the terminal device may also generate a storage request, in which the storage request carries the third identifier of the terminal device and the video file.

[0082] S202: Send a storage request to the server based on the third identifier.

[0083] The third identifier can be used to determine which server the terminal device can send a storage request to, that is, the terminal device can send a storage request to the server corresponding to the third identifier according to the third identifier. The storage request can be used to request the server to store the video file, that is, after receiving the storage request, the server can store the video file carried in the storage request. In actual applications, the server can be a cloud server, so that the video file is uploaded to the cloud for storage.

[0084] From this, we can see that by uploading video files to the server for storage, the storage pressure of the terminal device can be reduced, especially when the video files are large, it can avoid the situation where the video files cannot be stored due to insufficient storage space of the terminal device. In addition, when collecting video files of multiple videos at one time, it can ensure that all video files can be stored normally and no file damage will occur.

[0085] After the video file is stored in the server, if the video file needs to be detected, the video file can be obtained from the server. In a possible implementation, the method further includes S301-S304.

[0086] S301, based on the triggering operation of the video detection task, obtaining a second script file corresponding to the video detection task.

[0087] Specifically, the video detection task can be understood as a task of performing quality detection on a video file. Based on a triggering operation on the task, the terminal device can obtain a second script file corresponding to the task.

[0088] The triggering operation of the video detection task can be an operation such as clicking on the video detection task control. By clicking the control, the task is triggered. Similarly, the video detection task can also be triggered in the task management webpage. There is a video detection task control in the task management webpage. When the user clicks the control, it means that the video detection task is triggered. Of course, it can also be triggered at a scheduled time.

[0089] When the task management webpage is deployed on a terminal device with a video capture card installed, the terminal device can directly receive the user's trigger operation on the video detection task, and based on the trigger operation, the second script file stored locally can be retrieved, that is, the second script file can be obtained. The correspondence between the video detection task and the second script file can be stored on the terminal device, so that the second script file can be found based on the correspondence.

[0090] When the task management webpage is deployed on another terminal device, the correspondence between the video detection task and the second script file is also stored on this terminal device. When this terminal device receives a trigger operation on the video detection task by the user, it can find the corresponding second script file based on the trigger operation and send it to the terminal device with a video capture card installed, so that the terminal device with a video capture card installed can obtain the second script file.

[0091] The second script file may include a third identifier of the server so as to determine which server stores the video file.

[0092] S302: Generate a video acquisition request based on the second script file.

[0093] The terminal device can run the second script file, and during the running process, a video acquisition request can be generated, and the video acquisition request carries the third identifier and the storage address of the video file. The third identifier is used to determine which server to send the video acquisition request to, and the storage address of the video file is used to determine the specific storage location of the video file in the server.

[0094] S303: Send a video acquisition request to the server based on the third identifier.

[0095] The terminal device can determine the corresponding server based on the third identifier and send a video acquisition request to the server. The video acquisition request is used to request the server to return the video file based on the storage address. Therefore, after receiving the video acquisition request, the server can search for the corresponding video file according to the storage address carried in the request and return the video file to the terminal device.

[0096] S304, performing quality detection on the video file to obtain a detection result.

[0097] The terminal device can perform quality detection on the video file and obtain the detection result. The evaluation indicators of quality detection are not limited here, and can be clarity, smoothness, picture quality color, whether the picture texture details are rich, whether the edge details are sharp, etc. For example, 1080p video has better quality than 720p video.

[0098] In practical applications, an existing video detection tool may be used to perform video detection. During the running of the second script file, the video detection tool may be called to perform quality detection on the video file.

[0099] The detection result is used to indicate the playback quality of the target video software when playing the video. That is, the detection result of the video file can characterize the quality of the video when playing the video using the target video software, that is, it can indicate the quality of the source video file.

[0100] In this way, by obtaining the video from the server and detecting it, the need for detection at any time can be met, and during the running of the second script file, automatic detection can be achieved without manual uploading of video files and manual video detection, which greatly improves the efficiency of video detection.

[0101] In a possible implementation, the terminal device can be connected to multiple TV boxes, and the first script file can include multiple first identifiers, one first identifier is used to identify a target TV box, then S102 generates a first control instruction through the first script file, which can be specifically, generating multiple first control instructions through the first script file. S103 sends the first control instruction to the target TV box based on the first identifier, which can be specifically, based on the first corresponding relationship, sending the first control instruction to the target TV box corresponding to the first identifier.

[0102] Specifically, one or more video capture cards may be installed on the terminal device, and the terminal device may be connected to multiple TV boxes via the one or more video capture cards, that is, one terminal device may control multiple TV boxes for video playback.

[0103] The first script file may include a plurality of first identifiers corresponding to a plurality of target TV boxes, that is, during the execution of the first script file, a plurality of target TV boxes may be controlled to play videos at the same time.

[0104] When the terminal device runs the first script file, it can generate multiple first control instructions, and the multiple first control instructions have a first corresponding relationship with the multiple first identifiers, that is, one first control instruction is used to control a target TV box, and the first identifier is used to determine which target TV box is controlled. Specifically, it can be understood that there are multiple script parts in the first script file, different script parts are used to generate different first control instructions, and the first control instruction has a corresponding relationship with the first identifier.

[0105] Furthermore, when sending multiple first control instructions to multiple target TV boxes, they can be sent according to the first corresponding relationship between them, that is, the first identifier corresponding to each first control instruction is determined, and then the first control instruction is sent to the target TV box identified by the first identifier. This ensures that the first control instruction can correctly control the target TV box, especially when the types of multiple target TV boxes are different, because the control processes of the corresponding video playback may also be different. Sending the first control instruction in this way can ensure that each target TV box can receive the correct first control instruction, and the first control instruction matches the type of the target TV box. In addition, by controlling multiple target TV boxes at the same time, the video streams of multiple videos can be collected at the same time, and parallel collection can be achieved, which greatly improves the efficiency of video collection.

[0106] In one possible implementation, multiple video capture cards are installed on the terminal device, and one video capture card is connected to one TV box. That is, one capture card can capture the video stream of one TV box. Installing multiple video capture cards can capture multiple video streams at the same time. S105 generates a video file based on the video stream, which can specifically include S1051-S1053.

[0107] S1051, determine the receiving port corresponding to each video stream.

[0108] When multiple video capture cards are installed on a terminal device, the terminal device can determine the port to which each video capture card is connected to the terminal device. The port is used to receive the video stream captured by the video capture card, so the port can be recorded as a receiving port, which is used to receive the video stream from the video capture card.

[0109] S1052: Determine the first identifier corresponding to each video stream based on the second corresponding relationship between the receiving port and the first identifier.

[0110] Specifically, since a video capture card is connected to a target TV box, a receiving port corresponds to a first identifier, and the corresponding relationship between the receiving port and the first identifier can be recorded as a second corresponding relationship. When the terminal device obtains multiple video streams, based on the one-to-one correspondence between the video stream and the video capture card, the video capture card corresponding to each video stream, that is, the corresponding receiving port, can be obtained, and then based on the second corresponding relationship, the first identifier corresponding to each video stream can be determined.

[0111] S1053: For each video stream, based on the video stream and the first identifier corresponding to the video stream, generate a video file corresponding to the first identifier.

[0112] When a terminal device generates multiple video files. For each video stream, based on the first identifier corresponding to the video stream, it can be determined which first identifier the generated video file corresponds to, that is, the corresponding relationship between each video file and each target TV box is determined, and then it can be known which target video software plays each video file. It is possible to correspond multiple video files to multiple target video software, ensuring that the video files will not be mistakenly corresponded to other target video software, and improving the accuracy of the video files representing the playback quality of the target video software.

[0113] In a possible implementation, the first control instruction may further include a fourth identifier of the target video, where the fourth identifier is used to uniquely identify a video in the target video software, that is, it may be possible to specify the capture of a video stream of a certain video.

[0114] The first control instruction is also used to instruct the target TV box to play the target video through the target video software based on the fourth identifier. That is to say, when the target TV box receives the instruction, it can determine the target video from a large number of videos in the target video software for playback based on the fourth identifier carried in the instruction.

[0115] Then S104 obtains the video stream of the video output by the target TV box through the video capture card, which can be specifically, obtaining the video stream of the target video output by the target TV box through the video capture card. In this way, when the target TV box plays the target video, the video capture card can be used to obtain the video stream of the target video output by the target TV box. Thereby, the acquisition requirements for specific videos can be met, personalized acquisition can be achieved, and the image quality detection for a specific video can be achieved, and the image quality detection is more targeted.

[0116] refer to Figure 2 As shown, it is an interactive schematic diagram of a video quality detection method provided in an embodiment of the present application, including S401-S415.

[0117] When acquiring the video file, the terminal device equipped with the video capture card may execute S401-S403.

[0118] S401: Based on a triggering operation on a video acquisition task, a first script file is obtained.

[0119] The first script file is the script file corresponding to the video acquisition task.

[0120] S402: Generate a first control instruction.

[0121] The terminal device can run the first script file to generate a first control instruction.

[0122] S403: Send a first control instruction based on the first identifier of the target TV box.

[0123] The first script file includes a first identifier of a target TV box. The terminal device may send a first control instruction to the target TV box according to the first identifier. The first control instruction includes a second identifier of the target video software.

[0124] The target TV box executes S404-S405.

[0125] S404: Based on the third identifier of the target video software, play the video through the target video software.

[0126] S405: Output the video stream of the video.

[0127] That is, the target TV box will output the video stream of the video while playing the video.

[0128] The terminal device executes S406-S409.

[0129] S406: Capture the video stream through a video capture card.

[0130] Since the target TV box is connected to a video capture card, the video capture card can capture the video stream.

[0131] S407: Generate a video file based on the video stream.

[0132] This video file is used to detect the playback quality of the target video software when playing the video.

[0133] When storing the video file, the terminal device may execute S408 - S409 .

[0134] S408: Generate a storage request.

[0135] When running the first script file, the terminal device may also generate a storage request.

[0136] S409: Send a storage request based on the third identifier of the server.

[0137] The terminal device sends the storage request to the server according to the third identifier of the server.

[0138] The server executes S410: storing the video file to achieve storage of the video file.

[0139] When the video file needs to be detected, the video file can be obtained. The terminal device can execute S411-S413.

[0140] S411: Based on the triggering operation of the video detection task, obtain a second script file.

[0141] The second script file includes a third identifier of the server storing the video file.

[0142] S412: Generate a video acquisition request.

[0143] The terminal device may generate a video acquisition request based on the second script file, and the video acquisition request carries the storage address of the video file.

[0144] S413: Send a video acquisition request based on the third identifier of the server.

[0145] The server may execute S414: returning the video file.

[0146] After receiving the video acquisition request, the server may return the video file to the terminal device based on the storage address of the video file carried in the video acquisition request.

[0147] The terminal device executes S415: performing a quality test on the video file to obtain a test result, where the test result is used to indicate the playback quality of the target video software when playing the video.

[0148] In short, the video file collected in this way can represent the playback status of a certain video software when playing the video, such as picture clarity, smoothness, etc., which is convenient for subsequent video optimization and does not require manual recording of the film source, thereby improving detection efficiency and accuracy.

[0149] The embodiment of the present application also provides a video quality detection device, which is applied to a terminal device, wherein a video capture card is installed on the terminal device, the video capture card is connected to a TV box, the TV box is installed with video software, and the TV box is also directly connected to the terminal device. Figure 3 As shown, the device comprises:

[0150] A first acquisition unit 201 is used to acquire a first script file corresponding to the video acquisition task based on a triggering operation on the video acquisition task; the first script file includes a first identifier of a target TV box;

[0151] A first generating unit 202, configured to generate a first control instruction through the first script file;

[0152] a sending unit, configured to send the first control instruction to the target TV box based on the first identifier; the first control instruction includes a second identifier of the target video software, and the first control instruction is used to instruct the target TV box to play the video through the target video software;

[0153] The second acquisition unit 203 is used to acquire the video stream of the video output by the target TV box through the video capture card;

[0154] The second generating unit 204 is used to generate a video file based on the video stream; the video file is used to detect the playing quality of the target video software when playing the video.

[0155] Optionally, the first script file further includes a third identifier of the server, and the device further includes:

[0156] A third generating unit, configured to generate a storage request using the first script file; the storage request carries the third identifier and the video file;

[0157] The first sending unit is used to send the storage request to the server based on the third identifier; the storage request is used to request the server to store the video file.

[0158] Optionally, the device further comprises:

[0159] A third acquisition unit, configured to acquire a second script file corresponding to the video detection task based on a triggering operation on the video detection task; the second script file includes the third identifier;

[0160] A fourth generating unit, configured to generate a video acquisition request based on the second script file; the video acquisition request carries the third identifier and the storage address of the video file;

[0161] A second sending unit is used to send the video acquisition request to the server based on the third identifier; the video acquisition request is used to request the server to return the video file based on the storage address;

[0162] The video file is subjected to quality detection to obtain a detection result; the detection result is used to indicate the playback quality of the target video software when playing the video.

[0163] Optionally, the terminal device is connected to a plurality of the TV boxes, and the first script file includes a plurality of first identifiers, and one first identifier is used to identify a target TV box;

[0164] The first generation unit is used to:

[0165] Generate a plurality of the first control instructions through the first script file; the plurality of the first control instructions and the plurality of the first identifiers have a first corresponding relationship;

[0166] The first sending unit is used for:

[0167] Based on the first corresponding relationship, the first control instruction is sent to the target TV box corresponding to the first identifier.

[0168] Optionally, a plurality of the video capture cards are installed on the terminal device, and one of the video capture cards is connected to one of the TV boxes;

[0169] The second generation unit is used to:

[0170] Determine a receiving port corresponding to each of the video streams; the receiving port is used to receive the video stream from the video capture card;

[0171] Determine the first identifier corresponding to each of the video streams based on a second corresponding relationship between the receiving port and the first identifier;

[0172] For each of the video streams, a video file corresponding to the first identifier is generated based on the video stream and the first identifier corresponding to the video stream.

[0173] Optionally, the first control instruction further includes a fourth identifier of the target video; the first control instruction is further used to instruct the target TV box to play the target video based on the fourth identifier through the target video software;

[0174] The second acquisition unit is used for:

[0175] The video stream of the target video output by the target TV box is obtained through the video capture card.

[0176] Optionally, the first control instruction further includes a preset duration for the video; the first control instruction is further used to instruct the target TV box to play the video through the target video software for a duration that reaches the preset duration;

[0177] The video stream is a video stream of a video segment corresponding to the preset duration.

[0178] In another aspect, the present application provides a computer device, referring to Figure 4 , which is a structural diagram of a computer device provided in an embodiment of the present application, wherein the computer device includes a processor 310 and a memory 320:

[0179] The memory 320 is used to store program codes and transmit the program codes to the processor 310;

[0180] The processor 310 is used to execute the method provided in the above embodiment according to the instructions in the program code.

[0181] The computer device may include a terminal device or a server, and the aforementioned apparatus may be configured in the computer device.

[0182] On the other hand, an embodiment of the present application further provides a storage medium, wherein the storage medium is used to store a computer program, and the computer program is used to execute the method provided by the above embodiment.

[0183] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by program instruction hardware, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the above storage medium can be at least one of the following media: read-only memory (English: Read-only Memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.

[0184] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0185] The above is only a preferred implementation of the present application. Although the present application has been disclosed as a preferred embodiment, it is not intended to limit the present application. Any technician familiar with the art can use the above disclosed methods and technical contents to make many possible changes and modifications to the technical solution of the present application without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application still falls within the scope of protection of the technical solution of the present application.

Claims

1. A video quality detection method, characterized in that: Applied to a terminal device, the terminal device is equipped with a video capture card, the video capture card is connected to a TV box, the TV box is equipped with video software, and the TV box is also directly connected to the terminal device; the method comprises: Based on the triggering operation of the video acquisition task, a first script file corresponding to the video acquisition task is acquired; the first script file includes a first identifier of the target TV box; Generate a first control instruction through the first script file; Sending the first control instruction to the target TV box based on the first identifier; the first control instruction includes the second identifier of the target video software, and the first control instruction is used to instruct the target TV box to play the video through the target video software; Acquire the video stream of the video output by the target TV box through the video capture card; A video file is generated based on the video stream; the video file is used to detect the playback quality of the target video software when playing the video.

2. The method according to claim 1, characterized in that: The first script file also includes a third identifier of the server, and the method further includes: Generate a storage request through the first script file; the storage request carries the third identifier and the video file; The storage request is sent to the server based on the third identifier; the storage request is used to request the server to store the video file.

3. The method according to claim 2, characterized in that The method further comprises: Based on the triggering operation of the video detection task, obtaining a second script file corresponding to the video detection task; the second script file includes the third identifier; Generate a video acquisition request based on the second script file; the video acquisition request carries the third identifier and the storage address of the video file; Sending the video acquisition request to the server based on the third identifier; the video acquisition request is used to request the server to return the video file based on the storage address; The video file is subjected to quality detection to obtain a detection result; the detection result is used to indicate the playback quality of the target video software when playing the video.

4. The method according to any one of claims 1 to 3, characterized in that: The terminal device is connected to a plurality of the TV boxes, the first script file includes a plurality of first identifiers, and one first identifier is used to identify a target TV box; Generating a first control instruction through the first script file includes: Generate a plurality of the first control instructions through the first script file; the plurality of the first control instructions and the plurality of the first identifiers have a first corresponding relationship; Sending the first control instruction to the target TV box based on the first identifier includes: Based on the first corresponding relationship, the first control instruction is sent to the target TV box corresponding to the first identifier.

5. The method according to claim 4, characterized in that A plurality of the video capture cards are installed on the terminal device, and one of the video capture cards is connected to one of the TV boxes; Generating a video file based on the video stream includes: Determine a receiving port corresponding to each of the video streams; the receiving port is used to receive the video stream from the video capture card; Determine the first identifier corresponding to each of the video streams based on a second corresponding relationship between the receiving port and the first identifier; For each of the video streams, a video file corresponding to the first identifier is generated based on the video stream and the first identifier corresponding to the video stream.

6. The method according to any one of claims 1 to 3, characterized in that: The first control instruction also includes a fourth identifier of the target video; the first control instruction is also used to instruct the target TV box to play the target video based on the fourth identifier through the target video software; Acquiring the video stream of the video output by the target TV box through the video capture card includes: The video stream of the target video output by the target TV box is obtained through the video capture card.

7. The method according to any one of claims 1 to 3, characterized in that: The first control instruction also includes a preset duration for the video; the first control instruction is also used to instruct the target TV box to play the video through the target video software for a duration that reaches the preset duration; The video stream is a video stream of a video segment corresponding to the preset duration.

8. A video quality detection device, characterized in that: Applied to a terminal device, the terminal device is equipped with a video capture card, the video capture card is connected to a TV box, the TV box is equipped with video software, and the TV box is also directly connected to the terminal device; the device comprises: A first acquisition unit, configured to acquire a first script file corresponding to the video acquisition task based on a triggering operation on the video acquisition task; the first script file includes a first identifier of a target TV box; A first generating unit, configured to generate a first control instruction through the first script file; a sending unit, configured to send the first control instruction to the target TV box based on the first identifier; the first control instruction includes a second identifier of the target video software, and the first control instruction is used to instruct the target TV box to play the video through the target video software; A second acquisition unit, used for acquiring a video stream of the video output by the target TV box through the video capture card; The second generating unit is used to generate a video file based on the video stream; the video file is used to detect the playing quality of the target video software when playing the video.

9. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the method according to any one of claims 1 to 7 according to the instructions in the program code.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 7.