Video transmission test method and device and terminal equipment

文档序号:1675840 发布日期:2019-12-31 浏览:6次 中文

阅读说明:本技术 视频传输测试方法、装置及终端设备 (Video transmission test method and device and terminal equipment ) 是由 刘凯 于 2019-09-30 设计创作,主要内容包括:本申请适用于计算机技术领域,提供了视频传输测试方法、装置及终端设备,包括:获取系统参数;根据所述系统参数,模拟生成视频编码数据帧并将所述视频编码数据帧发送至视频数据接收端;根据统计的视频编码数据帧的发送信息和/或接收到的视频数据接收端统计的视频编码数据帧的接收信息,得到视频传输质量测试结果。本申请实施例能够准确地测试视频传输质量。(The application is applicable to the technical field of computers, and provides a video transmission testing method, a video transmission testing device and terminal equipment, wherein the video transmission testing method comprises the following steps: acquiring system parameters; according to the system parameters, simulating to generate video coding data frames and sending the video coding data frames to a video data receiving end; and obtaining a video transmission quality test result according to the statistical sending information of the video coding data frame and/or the received information of the video coding data frame counted by the received video data receiving end. The embodiment of the application can accurately test the video transmission quality.)

1. A video transmission test method, comprising:

acquiring system parameters;

according to the system parameters, simulating to generate video coding data frames and sending the video coding data frames to a video data receiving end;

and obtaining a video transmission quality test result according to the statistical sending information of the video coding data frame and/or the received information of the video coding data frame counted by the received video data receiving end.

2. The video transmission testing method according to claim 1, wherein the system parameters at least include frame rate, I frame size, P frame size, transport protocol payload data length, sending buffer size and transport protocol, and the simulating generating video encoded data frames and sending the video encoded data frames to a video data receiving end according to the system parameters comprises:

according to the frame rate, the size of the I frame and the size of the P frame, simulating and generating a video coding data frame in an H264 or H265 coding mode, wherein the video coding data frame at least comprises the I frame and the P frame;

dividing each frame of the video coding data into a plurality of sub-segments according to the transmission protocol load data length and generating fragment data;

and sequentially sending the fragment data to a video data receiving end according to the size of the sending buffer area and a transmission protocol.

3. The video transmission testing method according to claim 2, wherein the transmission protocol is specifically a TCP protocol, and correspondingly, the obtaining a video transmission quality testing result according to the statistical sending information of the video coding data frame and/or the statistical receiving information of the video coding data frame received by the video data receiving end comprises:

recording information of discarded fragment data, information of successfully transmitted fragment data and information of unsuccessfully transmitted fragment data as transmission information of video coded data frames;

counting the sending information of the video coding data frame to obtain a target counting result;

and obtaining a video transmission quality test result according to the target statistical result.

4. The video transmission testing method according to claim 2, wherein the transmission protocol is a UDP protocol, and correspondingly, the obtaining a video transmission quality testing result according to the statistical sending information of the video coding data frame and/or the statistical receiving information of the video coding data frame received by the video data receiving end comprises:

counting the sending information of the video coding data frame, and generating a first statistical file, wherein the sending information of the video coding data frame is the information of the fragment data of the video coding data frame sent to a video data receiving end;

obtaining a target statistical result according to the first statistical file and a received second statistical file of a video data receiving end, wherein the second statistical file contains information of fragment data of the received video coding data frame counted by the video receiving end;

and obtaining a video transmission quality test result according to the target statistical result.

5. The video transmission testing method according to claim 3 or 4, wherein the target statistical result includes a total number of I frames, a total number of P frames, a number of successfully transmitted complete I frames and a number of complete P frames, and a fragmentation data loss rate of incomplete frames, and correspondingly, the obtaining a video transmission quality testing result according to the target statistical result includes:

and calculating to obtain a video transmission quality test result according to the total number of the I frames, the total number of the P frames, the number of the successfully sent complete I frames and the number of the complete P frames, the fragment data loss rate of the incomplete frames, the I frame weight and the P frame weight.

6. The video transmission testing method of claim 3 or 4, wherein the target statistical result comprises a duration of successful transmission of each unit frame sequence, wherein each unit frame sequence consists of an I frame and a preset number of P frames; correspondingly, obtaining a video transmission quality test result according to the target statistical result includes:

obtaining the total duration of the successfully transmitted video data according to the duration of the continuous successful transmission of each unit frame sequence;

and obtaining a video transmission quality test result according to the total duration of the successfully sent video data and the total duration of the video coding data frames.

7. The video transmission test method of claim 1, further comprising, after said obtaining the video transmission quality test result:

saving the system parameters and the video quality test result;

determining target system parameters according to the video quality test result and the historical video quality test result;

and indicating the target terminal to carry out system setting according to the target system parameters.

8. A video transmission test apparatus, comprising:

an acquisition unit for acquiring system parameters;

the sending unit is used for generating a video coding data frame in a simulation mode according to the system parameters and sending the video coding data frame to a video data receiving end;

and the computing unit is used for obtaining a video transmission quality test result according to the statistical sending information of the video coding data frame and/or the received information of the video coding data frame counted by the received video data receiving end.

9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the computer program, when executed by the processor, causes the terminal device to carry out the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes a terminal device to carry out the steps of the method according to any one of claims 1 to 7.

Technical Field

The application belongs to the technical field of computers, and particularly relates to a video transmission testing method and device and terminal equipment.

Background

The existing monitoring camera equipment generally transmits video data acquired in real time to a background terminal for real-time display, and in order to optimize monitoring display quality, the video transmission quality generally needs to be tested and evaluated so as to improve a monitoring system.

The existing video transmission quality test and evaluation method usually performs a test by directly adjusting device parameters on a monitoring camera device, however, the test method has many interference factors, such as unstable video data generated by the monitoring camera device or interference of running faults of the monitoring camera device software on video transmission, and the existing video transmission test method has the defect of inaccurate test results.

Disclosure of Invention

In view of this, embodiments of the present application provide a video transmission testing method, an apparatus, and a terminal device, so as to solve the problem of how to accurately test video transmission quality in the prior art.

A first aspect of an embodiment of the present application provides a video transmission testing method, including:

acquiring system parameters;

according to the system parameters, simulating to generate video coding data frames and sending the video coding data frames to a video data receiving end;

and obtaining a video transmission quality test result according to the statistical sending information of the video coding data frame and/or the received information of the video coding data frame counted by the received video data receiving end.

A second aspect of an embodiment of the present application provides a video transmission testing apparatus, including:

an acquisition unit for acquiring system parameters;

the sending unit is used for generating a video coding data frame in a simulation mode according to the system parameters and sending the video coding data frame to a video data receiving end;

and the computing unit is used for obtaining a video transmission quality test result according to the statistical sending information of the video coding data frame and/or the received information of the video coding data frame counted by the received video data receiving end.

A third aspect of embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, causes the terminal device to implement the steps of the video transmission testing method.

A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, causes a terminal device to implement the steps of the video transmission testing method as described.

In a fifth aspect, an embodiment of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to execute the video transmission testing method according to any one of the above first aspects.

Compared with the prior art, the embodiment of the application has the advantages that: in the embodiment of the application, the video coding data frame is generated through setting the system parameters and simulating, and the video transmission quality test result is obtained according to the sending information of the video coding data frame and/or the receiving information of the video coding data frame.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.

Fig. 1 is a schematic system structure diagram of a video transmission test system provided in an embodiment of the present application;

fig. 2 is a schematic flow chart illustrating an implementation of a first video transmission testing method according to an embodiment of the present application;

fig. 3 is a schematic flow chart illustrating an implementation of a second video transmission testing method according to an embodiment of the present application;

fig. 4 is an exemplary diagram of an application scenario of a video transmission test according to an embodiment of the present application;

FIG. 5 is a schematic diagram of a video transmission testing apparatus according to an embodiment of the present application;

fig. 6 is a schematic diagram of a terminal device provided in an embodiment of the present application.

Detailed Description

In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.

It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".

In addition, in the description of the present application, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.

Fig. 1 shows a system structure block diagram of a video transmission test system according to an embodiment of the present application, and as shown in fig. 1, the video transmission test system includes a video data sending end 11 and a video data receiving end 12. The video data sending end 11 generates a video coded data frame in an analog manner, sends the video coded data frame to the video data receiving end 12, and counts sending information of the sent video coded data frame after sending is finished. The video data receiving end 12 receives the video data frame, and counts the receiving information of the video coding data frame after the receiving is finished. And then, obtaining a video transmission quality test result according to the statistical sending information of the video coding data frame and/or the statistical receiving information of the video coding data frame.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:解码能力检测方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!