Decoding capability detection method and device

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

阅读说明:本技术 解码能力检测方法及装置 (Decoding capability detection method and device ) 是由 郭靖 刘杉 王诗涛 刘海军 金飞剑 张清 于 2019-10-25 设计创作,主要内容包括:本发明提供了一种解码能力检测方法、装置、电子设备及存储介质;方法包括:通过播放客户端接收服务器下发的符合待测试视频标准的测试码流、以及对应的期望哈希值;遍历读取所接收的测试码流中的每一帧,并进行解码;当所读取的任一帧解码完成时,确定任一帧的解码结果的哈希值、以及当前囤积在播放客户端的解码器缓存区中待解码码流的帧数;当测试码流中的每一帧均解码完成、且解码结果的哈希值与服务器对应所解码成功下发的期望哈希值一致时,向服务器上报解码数据,以使服务器根据播放客户端上报的解码数据,确定运行播放客户端的设备所属的设备类型针对待测试视频标准的解码能力。通过本发明,能够确定设备所具备的解码能力。(The invention provides a decoding capability detection method, a decoding capability detection device, electronic equipment and a storage medium; the method comprises the following steps: receiving a test code stream which is issued by a server and meets the video standard to be tested and a corresponding expected hash value through a playing client; traversing and reading each frame in the received test code stream, and decoding; when the decoding of any read frame is completed, determining the hash value of the decoding result of any frame and the number of frames of a code stream to be decoded currently stocked in a decoder cache region of a playing client; when each frame in the test code stream is decoded completely and the hash value of the decoding result is consistent with the expected hash value successfully transmitted by the server corresponding to the decoding, reporting the decoding data to the server, so that the server determines the decoding capability of the equipment type of the equipment running the playing client to the video standard to be tested according to the decoding data reported by the playing client. According to the invention, the decoding capability of the equipment can be determined.)

1. A decoding capability detection method, the method comprising:

receiving a test code stream which is issued by a server and meets the video standard to be tested and an expected hash value corresponding to the test code stream through a playing client;

traversing and reading each frame in the received test code stream, and decoding;

when the decoding of any read frame is completed, determining the hash value of the decoding result of any frame and the number of frames of a code stream to be decoded currently accumulated in a buffer of a decoder;

when each frame in the test code stream is decoded completely and the hash value of the decoding result is consistent with the expected hash value issued by the server corresponding to successful decoding, reporting the decoded data to the server so as to enable the server to decode the data

And the server determines the decoding capability of the equipment type of the equipment running the playing client to the video standard to be tested according to the decoding data reported by the playing client.

2. The method of claim 1,

the expected hash value is generated based on an information digest algorithm;

the determining a hash value of a decoding result of the any frame includes:

and determining the hash value of the decoding result of any frame based on the information summarization algorithm.

3. The method of claim 1, wherein the traversing reads and decodes each frame in the received test code stream, and comprises:

calling a graphic processor in the equipment running the playing client side, and carrying out hardware decoding on each read frame; alternatively, the first and second electrodes may be,

and calling a central processing unit in the equipment for operating the playing client to perform software decoding on each read frame in a decoding software operating mode.

4. The method of claim 1,

the decoding data comprises decoding completion information, an average stocked frame number in the decoding process, and a device type to which a device running the playing client belongs, and is used for enabling the server to execute the following operations:

when the fact that the playing client finishes decoding the test code stream is determined according to the decoding completion information and the average storage frame number is smaller than the storage frame number threshold value, it is determined that the equipment type has decoding capacity compatible with the video standard to be tested;

the decoding completion information is further used for causing the server to perform the following operations:

when the decoding completion information of the playing client indicates that the playing client calls a hardware decoder to decode the test code stream, determining that the equipment type of the equipment running the playing client has the hardware decoding capability compatible with the video standard to be tested;

when the decoding completion information of the playing client indicates that the playing client calls a software decoder to decode the test code stream, determining that the equipment type of the equipment running the playing client has the software decoding capability compatible with the video standard to be tested;

the device type is provided with decoding capability compatible with the video standard to be tested, and is used for enabling the server to perform the following operations:

and adding the device type with the decoding capability compatible with the video standard to be tested into a white list, and informing the device to start a decoder corresponding to the decoding capability to decode the played video or the received chat video when the device conforming to the white list plays the video or carries out video call through the running playing client.

5. The method of claim 1, further comprising:

when the playing client generates abnormal information in the process of decoding the received test code stream, reporting the abnormal information to the server;

when the hash value of the decoding result of the test code stream is inconsistent with the expected hash value issued by the server, reporting decoding failure information to the server;

wherein the exception information and the decoding failure information both indicate that the device type does not have a decoding capability compatible with the video standard to be tested.

6. The method according to any one of claims 1 to 5,

the decoding data reported by the playing clients running in multiple devices of the same type to the server is further used for enabling the server to execute the following operations:

and when determining that each device running the playing client has the decoding capability compatible with the video standard to be tested according to the decoding data reported by each playing client, determining that the devices of the same type have the decoding capability compatible with the video standard to be tested.

7. A decoding capability detection method, the method comprising:

sending a test code stream meeting a video standard to be tested and an expected hash value corresponding to the test code stream to a playing client, so that the playing client can read and decode each frame in the test code stream in a traversing manner, and

when the decoding of any read frame is completed, determining the hash value of the decoding result of any frame and the number of frames of a code stream to be decoded currently accumulated in a buffer of a decoder; receiving decoding data aiming at the test code stream reported by the playing client;

when each frame in the test code stream is decoded completely and the hash value of the decoding result is consistent with the expected hash value issued by the server corresponding to successful decoding, the decoding data is generated by the playing client;

and determining the decoding capability of the equipment type of the equipment running the playing client to the video standard to be tested according to the decoding data reported by the playing client.

8. The method of claim 7,

the expected hash value is generated based on an information summarization algorithm, and the determining the hash value of the decoding result of any frame comprises: determining a hash value of a decoding result of the any frame based on the information summarization algorithm;

the determining, according to the decoded data reported by the playing client, the decoding capability of the device type to which the device operating the playing client belongs for the video standard to be tested includes: and when the playing client is determined to finish decoding the test code stream according to the decoding completion information and the average storage frame number is smaller than the storage frame number threshold, determining that the equipment type has the decoding capability compatible with the video standard to be tested.

9. An apparatus for decoding capability detection, the apparatus comprising:

the receiving module is used for receiving a test code stream which is issued by a server and meets the video standard to be tested and an expected hash value corresponding to the test code stream through a playing client;

the decoding module is used for reading each frame in the received test code stream in a traversing manner and decoding;

a determining module, configured to determine, when decoding of any read frame is completed, a hash value of a decoding result of the frame, and a number of frames of a to-be-decoded code stream currently stocked in a decoder cache area of the play client;

and the reporting module is used for reporting the decoded data to the server when each frame in the test code stream is decoded completely and the hash value of the decoding result is consistent with the expected hash value issued by the server corresponding to successful decoding, so that the server determines the decoding capability of the equipment type of the equipment operating the playing client side aiming at the video standard to be tested according to the reported decoded data.

10. An apparatus for decoding capability detection, the apparatus comprising:

a sending module, configured to send a test code stream meeting a to-be-tested video standard and an expected hash value corresponding to the test code stream to a playing client, so that the playing client traverses and reads each frame in the test code stream, and decodes the frame, and

when the decoding of any read frame is completed, determining the hash value of the decoding result of any frame and the number of frames of a code stream to be decoded currently accumulated in a buffer of a decoder;

the receiving module is used for receiving decoding data aiming at the test code stream reported by the playing client, wherein the decoding data is generated by the playing client when each frame in the test code stream is decoded completely and the hash value of the decoding result is consistent with the expected hash value issued by the server corresponding to successful decoding;

and the determining module is used for determining the decoding capability of the equipment type of the equipment which runs the playing client and aims at the video standard to be tested according to the decoding data reported by the playing client.

26页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种全自动化获取摄像机聚焦曲面的测量方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!