Self-adaptive video decoding method based on Internet of Things
By adopting adaptive decoding strategy and user model analysis in the video decoder, combined with inter-frame difference technology and collaborative filtering algorithm, the smoothness problem of the video decoder in processing different frames is solved, and high-definition playback is achieved efficiently under limited resources. Video improves user experience and system efficiency.
Patent Information
- Application Number
- CN202410673451.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing video decoders have insufficient decoding capabilities when processing different video frames, resulting in a decrease in the smoothness of video playback. Especially when bandwidth and computing resources are limited, it is difficult to ensure the playback quality of high-definition videos.
Adopting an adaptive video decoding method based on the Internet of Things, by dividing the on-chip memory into two buffers, using inter-frame difference technology and collaborative filtering algorithm and neural network to analyze user behavior data, develop a dynamic decoding strategy, in key frames or scenes Increase decoding resources when changing, reduce resource usage when static content is present, and combine VLC decoding and inverse quantization into one process to improve decoding efficiency.
It achieves the best video quality under the condition of limited bandwidth and computing resources, improves user viewing experience, reduces system operation and maintenance costs, and improves the decoding efficiency of the decoder.
Smart Images

Figure CN118590656A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer application development, and in particular to an adaptive video decoding method based on the Internet of Things. Background Art
[0002] According to the speed at which the human eye reacts to image delays, videos are generally played at a frame rate between 30FPS and 60FPS. 30FPS is the basic condition for maintaining a relatively smooth image display. Generally, when the playback speed is lower than 25FPS, the video playback will feel flickering or stuck. For high-definition videos, the speed should not exceed 60FPS.
[0003] The processing time required for the video player to play a frame of data mainly includes the data reading time, decoding time and screen display time. Among them, the reading time can be ignored, and the decoding time accounts for the highest proportion and has the greatest impact on the video playback speed. Assuming the playback speed of 25FPS as an example, considering that the video frame is played at a uniform speed, the processing time of each frame of data does not exceed 40ms, that is, the decoding time of each frame of data cannot exceed 40ms. However, different video decoders have different parsing speeds for different picture frames. Therefore, when the current video decoder does not match the picture frame, or the video decoding itself has weak processing capabilities for the current video frame, it is very likely that the actual decoding time of each frame of data will exceed 40ms, resulting in a decrease in the smoothness of video playback. Therefore, an adaptive video decoding method based on the Internet of Things is proposed. Summary of the invention
[0004] The present invention provides an adaptive video decoding method based on the Internet of Things, which solves the problems raised by the above background technology.
[0005] The present invention provides the following technical solution: an adaptive video decoding method based on the Internet of Things, comprising the following steps:
[0006] Step S1: Divide the on-chip memory into two parts, which are used as buffers for two GMBL reconstruction videos and reference videos respectively;
[0007] Step S2: using inter-frame difference technology to detect key frames, scene changes, motion vectors, color distribution, and texture complexity features in the video;
[0008] Step S3: Analyze the user's preferences, focus points, and perceived quality characteristics of the video content through a user model based on a collaborative filtering algorithm and a neural network algorithm;
[0009] Step S4: formulating a dynamic decoding strategy based on video content analysis and user perception feature analysis;
[0010] Step S5: During the decoding process of the adaptive algorithm, the decoder adjusts the decoding strategy and parameters in real time according to the current video content and user needs. When a key frame or scene change is detected, the decoder increases decoding resources to improve the clarity and smoothness of the current frame; in the static or low-dynamic content part, the decoder reduces decoding resources to save bandwidth and computing resources.
[0011] Preferably, the user model based on the collaborative filtering algorithm and the neural network algorithm in step S2 specifically includes the following steps:
[0012] A1: User behavior data collection: Collect user behavior data through video players, streaming platforms or dedicated log systems, such as viewing time, pause times, replay times, and skip operations, and allow users to provide feedback during or after video playback, such as ratings, comments or emotional tags;
[0013] A2: Data preprocessing: remove invalid, duplicate or erroneous data; convert data from different sources and formats into a unified format, and perform standardization or normalization for subsequent analysis;
[0014] A3: User portrait construction: Analyze users' viewing habits, preferences and interests; divide users into different groups or categories based on their behavioral characteristics, such as "HD quality enthusiasts" and "fast browsers";
[0015] A4: Collaborative filtering and machine learning: Use the preferences of other similar users to predict the current user's preferences based on the Pearson correlation coefficient; use neural networks to train models to predict users' preferences and perceived quality of video content;
[0016] A5: Real-time perception analysis: During video playback, user feedback data such as ratings, comments or sentiment tags are collected in real time. For user comments, natural language processing (NLP) technology is used to perform sentiment analysis to understand the user's emotional inclination towards the current video content. The user's real-time behavior data such as viewing time and number of pauses are analyzed to understand the user's interest in the current content and perceived quality.
[0017] Preferably, step A4 specifically includes the following steps:
[0018] B1: Collect users’ movie ratings and basic information data;
[0019] B2: Convert the user rating data into a user-movie matrix, where rows represent users and columns represent movies. Each element in the matrix represents the user's rating of the movie.
[0020] B3: Use cosine similarity to calculate the similarity between users;
[0021] B4: For the target user, predict his rating for the unwatched movies based on his similarity with other users; use the user-based collaborative filtering algorithm to find several users with the highest similarity to the target user, and make weighted predictions on the unwatched movies based on the ratings of these users;
[0022] B5: Match the user's basic information with the recommended results, and filter out the recommended results that match the user's characteristics.
[0023] Preferably, in step S1, while the DSP core decodes the GMBL in the A cache, the EDMA outputs the reconstructed video of the previous GMBL in the B cache to the outside of the chip, and then inputs the next GMBL reference video into the B cache; after the DSP core completes the decoding of the GMBL in the A cache, it can directly start decoding the GMBL in the B cache, and the EDMA starts to output the GMBL decoded data and compressed code stream in the A cache.
[0024] Preferably, step S5 specifically includes: combining VLC decoding and inverse quantization into one process, and immediately inverse quantizing each non-zero quantization coefficient decoded.
[0025] The present invention has the following beneficial effects:
[0026] 1. The adaptive video decoding method based on the Internet of Things enables the system to adjust the decoding resources in real time according to the complexity of the video content and the needs of users through the formulation of adaptive decoding strategies, ensuring the best video quality under limited bandwidth and computing resources, improving the user's viewing experience, and reducing the system's operating and maintenance costs.
[0027] 2. The adaptive video decoding method based on the Internet of Things combines VLC decoding and dequantization into one process. Each time a non-zero quantization coefficient is decoded, it is immediately dequantized, instead of decoding all non-zero quantization coefficients and then performing dequantization processing uniformly. This saves the dequantization process of zero quantization coefficients and improves the decoding efficiency of the decoder. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 is the quantization coefficient matrix (QP=15) of a certain coding block of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] See also Figure 1 , an adaptive video decoding method based on the Internet of Things, comprising the following steps:
[0031] Step S1: Divide the on-chip memory into two parts, which are used as buffers for two GMBL reconstruction videos and reference videos respectively;
[0032] Step S2: using inter-frame difference technology to detect key frames, scene changes, motion vectors, color distribution, and texture complexity features in the video;
[0033] Step S3: Analyze the user's preferences, focus points, and perceived quality characteristics of the video content through a user model based on a collaborative filtering algorithm and a neural network algorithm;
[0034] Step S4: formulating a dynamic decoding strategy based on video content analysis and user perception feature analysis;
[0035] Step S5: During the decoding process of the adaptive algorithm, the decoder adjusts the decoding strategy and parameters in real time according to the current video content and user needs. When a key frame or scene change is detected, the decoder increases decoding resources to improve the clarity and smoothness of the current frame; in the static or low-dynamic content part, the decoder reduces decoding resources to save bandwidth and computing resources.
[0036] The user model based on the collaborative filtering algorithm and the neural network algorithm in step S2 specifically includes the following steps:
[0037] A1: User behavior data collection: Collect user behavior data through video players, streaming platforms or dedicated log systems, such as viewing time, pause times, replay times, and skip operations, and allow users to provide feedback during or after video playback, such as ratings, comments or emotional tags;
[0038] A2: Data preprocessing: remove invalid, duplicate or erroneous data; convert data from different sources and formats into a unified format, and perform standardization or normalization for subsequent analysis;
[0039] A3: User portrait construction: Analyze users' viewing habits, preferences and interests; divide users into different groups or categories based on their behavioral characteristics, such as "HD quality enthusiasts" and "fast browsers";
[0040] A4: Collaborative filtering and machine learning: Use the preferences of other similar users to predict the current user's preferences based on the Pearson correlation coefficient; use neural networks to train models to predict users' preferences and perceived quality of video content;
[0041] A5: Real-time perception analysis: During video playback, user feedback data such as ratings, comments or sentiment tags are collected in real time. For user comments, natural language processing (NLP) technology is used to perform sentiment analysis to understand the user's emotional inclination towards the current video content. The user's real-time behavior data such as viewing time and number of pauses are analyzed to understand the user's interest in the current content and perceived quality.
[0042] Wherein, step A4 specifically includes the following steps:
[0043] B1: Collect users’ movie ratings and basic information data;
[0044] B2: Convert the user rating data into a user-movie matrix, where rows represent users and columns represent movies. Each element in the matrix represents the user's rating of the movie.
[0045] B3: Use cosine similarity to calculate the similarity between users;
[0046] B4: For the target user, predict his rating for the unwatched movies based on his similarity with other users; use the user-based collaborative filtering algorithm to find several users with the highest similarity to the target user, and make weighted predictions on the unwatched movies based on the ratings of these users;
[0047] B5: Match the user's basic information with the recommended results, and filter out the recommended results that match the user's characteristics.
[0048] Among them, in step S1, while the DSP core decodes the GMBL in the A cache, the EDMA outputs the reconstructed video of the previous GMBL in the B cache to the outside of the chip, and then inputs the next GMBL reference video into the B cache; after the DSP core completes the decoding of the GMBL in the A cache, it can directly start decoding the GMBL in the B cache, and the EDMA starts to output the GMBL decoded data and compressed code stream in the A cache.
[0049] Wherein, step S5 specifically includes: combining VLC decoding and inverse quantization into one process, and immediately inverse quantizing each non-zero quantization coefficient decoded.
[0050] Video decoding is performed in units of blocks. The data structure of a block is an 8×8 digital matrix. During the decoding process of a block, all non-zero quantization coefficients are decoded (VLC decoding) from the variable length code stream, and then inversely scanned and filled in the corresponding positions of the 8×8 matrix. The other positions of the matrix are set to 0 to reconstruct the quantization coefficient matrix of the block. The quantization coefficients are then inversely quantized, inversely discrete cosine transformed (DCT), and motion compensated to finally obtain the matrix of the reconstructed block. The standard inverse quantization process uniformly performs the inverse quantization process shown in formula (1) on all coefficients in the quantization coefficient matrix, regardless of whether the coefficient is 0.
[0051] COF=COF_Quant×Quant_Matrix×QP (1)
[0052] Among them, COF represents the result of inverse quantization, that is, the DCT coefficient, COF_Quant represents the quantization coefficient in the quantization coefficient matrix, Quant_Matrix represents the quantization matrix (with a fixed value), and QP represents the quantization parameter. For a quantization coefficient of zero, the result of formula (1) is still 0, and inverse quantization has no meaning. The quantization coefficient matrix of a video block when the quantization coefficient is 15 is as follows Figure 1 As shown;
[0053] from Figure 1 It can be seen that most of the coefficients in the quantization coefficient matrix are 0. If these coefficients with values of 0 are also uniformly dequantized, it will not only be meaningless, but will also occupy a large amount of computing resources of C6416 and reduce the decoding efficiency of the decoder. Therefore, VLC decoding and dequantization are combined into one process. Each time a non-zero quantization coefficient is decoded, it is immediately dequantized, instead of decoding all non-zero quantization coefficients and then uniformly dequantizing them. This saves the dequantization process of zero quantization coefficients and improves the decoding efficiency of the decoder.
[0054] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0055] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An adaptive video decoding method based on the Internet of Things, characterized in that: The following steps are involved: Step S1: Divide the on-chip memory into two parts, which are used as buffers for two GMBL reconstruction videos and reference videos respectively; Step S2: using inter-frame difference technology to detect key frames, scene changes, motion vectors, color distribution, and texture complexity features in the video; Step S3: Analyze the user's preferences, focus points, and perceived quality characteristics of the video content through a user model based on a collaborative filtering algorithm and a neural network algorithm; Step S4: formulating a dynamic decoding strategy based on video content analysis and user perception feature analysis; Step S5: During the decoding process of the adaptive algorithm, the decoder adjusts the decoding strategy and parameters in real time according to the current video content and user needs. When a key frame or scene change is detected, the decoder increases decoding resources to improve the clarity and smoothness of the current frame; in the static or low-dynamic content part, the decoder reduces decoding resources to save bandwidth and computing resources.
2. The method for adaptive video decoding based on the Internet of Things according to claim 1, characterized in that: The user model based on the collaborative filtering algorithm and the neural network algorithm in step S2 specifically includes the following steps: A1: User behavior data collection: Collect user behavior data through video players, streaming platforms or dedicated log systems, such as viewing time, pause times, replay times, and skip operations, and allow users to provide feedback during or after video playback, such as ratings, comments or emotional tags; A2: Data preprocessing: remove invalid, duplicate or erroneous data; convert data from different sources and formats into a unified format, and perform standardization or normalization for subsequent analysis; A3: User portrait construction: Analyze users' viewing habits, preferences and interests; divide users into different groups or categories based on their behavioral characteristics, such as "HD quality enthusiasts" and "fast browsers"; A4: Collaborative filtering and machine learning: Use the preferences of other similar users to predict the current user's preferences based on the Pearson correlation coefficient; use neural networks to train models to predict users' preferences and perceived quality of video content; A5: Real-time perception analysis: During video playback, user feedback data such as ratings, comments or sentiment tags are collected in real time. For user comments, natural language processing (NLP) technology is used to perform sentiment analysis to understand the user's emotional inclination towards the current video content. The user's real-time behavior data such as viewing time and number of pauses are analyzed to understand the user's interest in the current content and perceived quality.
3. The method for adaptive video decoding based on the Internet of Things according to claim 2, characterized in that: Step A4 specifically includes the following steps: B1: Collect users’ movie ratings and basic information data; B2: Convert the user rating data into a user-movie matrix, where rows represent users and columns represent movies. Each element in the matrix represents the user's rating of the movie. B3: Use cosine similarity to calculate the similarity between users; B4: For the target user, predict his rating for the unwatched movies based on his similarity with other users; use the user-based collaborative filtering algorithm to find several users with the highest similarity to the target user, and make weighted predictions on the unwatched movies based on the ratings of these users; B5: Match the user's basic information with the recommended results, and filter out the recommended results that match the user's characteristics.
4. The method for adaptive video decoding based on the Internet of Things according to claim 1, characterized in that: In step S1, while the DSP core decodes the GMBL in the A cache, the EDMA outputs the reconstructed video of the previous GMBL in the B cache to the outside of the chip, and then inputs the next GMBL reference video into the B cache; after the DSP core completes the decoding of the GMBL in the A cache, it can directly start decoding the GMBL in the B cache, and the EDMA starts to output the GMBL decoded data and compressed code stream in the A cache.
5. The method for adaptive video decoding based on the Internet of Things according to claim 1, characterized in that: Step S5 specifically includes: combining VLC decoding and inverse quantization into one process, and immediately inverse quantizing each non-zero quantization coefficient decoded.
