A forward error correction optimization method and system based on scalable coding mode
By dynamically adjusting action values and utilizing scalable video coding, the video quality and delay problems caused by FEC technology in sliding window size processing are solved, achieving more efficient video data transmission and improving user experience.
Patent Information
- Application Number
- CN202410044563.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-01-11
Smart Images

Figure CN117939154B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video encoding processing, and in particular to a forward error correction optimization method and system based on an extensible encoding mode. Background Art
[0002] In real-time video streaming, packets are transmitted from the sender to the receiver over the network. The quality of the received video fluctuates as network conditions change, and when there is a large amount of packet loss, the video quality degrades significantly. Forward Error Correction (FEC) technology can recover lost packets by incorporating redundant data. When Scalable Video Coding (SVC) is adopted, the shortcomings of traditional schemes are overcome by considering the reference image structure of SVC and increasing the weight of reference images when using FEC redundancy. However, this scheme focuses on the fixed sliding window size encoding in SVC mode, ignoring the complex interaction of sliding window size on rate and its impact on user QoE. However, determining the optimal value of FEC sliding window size is a major challenge because FEC, if abused, can also increase latency or impair video quality. More specifically, FEC is suitable for recovering packets in the event of packet loss without incurring additional packet recovery round trip time. But if overused, it can significantly degrade user QoE because a larger FEC portion can significantly reduce the effective video rate, resulting in poor video quality. In addition, it can also add additional latency due to FEC processing overhead.
[0003] In real-time video streaming, FEC schemes can be divided into frame-level FEC, GOP-level FEC, extended window FEC, and sliding window FEC. However, Reed-Solomon (RS) coding is performed at the frame level, and the efficiency of FEC is low when the number of source video packets generated per frame is small. In addition, the recovery message of the current frame cannot help recover the lost message of the previous frame, and the distortion of the previous frame may propagate to the current frame and subsequent frames; in GOP-level FEC, GOP-level FEC will bring additional decoding delay because all video frames in the GOP must be collected for FEC decoding, which is unacceptable in real-time video streaming; in extended window FEC, the encoding window size increases linearly within a GOP; in actual implementation, when the GOP size is large enough, the computational cost and decoding delay are quite high, limiting the application of extended window FEC in real-time video streaming; in SVC, video frames are divided into several layers: a base layer and one or more enhancement layers. Through layered video coding, SVC can adapt to different terminal functions and end-user needs, and provide different layer information when network conditions change. However, when SVC is adopted, the frame dependency relationship also changes. It is no longer a simple one-dimensional time-order frame-by-frame dependency relationship, which leads to the fact that the time-order sliding window FEC is not optimal. The coding window management mechanism based on the reference image structure applicable to the SVC mode focuses on the FEC coding that can be applied in the SVC mode. The maximum coding window T is constant, ignoring the complex interaction of this FEC mechanism on rate control and its impact on user QoE. Summary of the invention
[0004] In order to solve the above technical problems, the embodiments of the present invention provide a forward error correction optimization method and system based on a scalable coding mode, which transmits video data by dynamically adjusting the action value, avoids excessive redundant transmission, saves bandwidth resources, and reduces the additional delay caused by increasing FEC processing overhead.
[0005] A first aspect of an embodiment of the present invention provides a forward error correction optimization method based on a scalable coding mode, the method comprising:
[0006] Receiving video data from a user;
[0007] Performing scalable video coding on the video data to obtain multiple video frames, wherein the multiple video frames include base layer code stream frames and enhancement layer code stream frames;
[0008] Inputting a first video frame of the plurality of video frames into a preset FEC coding model, so that the preset FEC coding model caches the first video frame through an encoder, obtains a reference frame corresponding to the first video frame according to the first video frame and the initial action value, and obtains a first data packet according to the first video frame, the reference frame and the FEC redundant information;
[0009] After sending the first data packet to the receiving end, receiving the state space information sent by the receiving end, updating the initial action value according to the state space information, and obtaining an updated action value;
[0010] Input the second video frame of the multiple video frames into a preset FEC coding model, encode the second video frame according to the preset FEC coding model and the updated action value to obtain a second data packet, send the second data packet to the receiving end and update the updated action value to obtain a new action value, encode the Nth video frame among the multiple video frames according to the new action value, and repeat this step until all the video frames are sent.
[0011] In the implementation of this embodiment, the video data of the user is received, and the video data is scalable video encoded to obtain multiple video frames. The first video frame of the multiple video frames is input into a preset FEC encoding model so that the preset FEC encoding model caches the first video frame through the encoder, and a reference frame corresponding to the first video frame is obtained according to the first video frame and the initial action value. A first data packet is obtained according to the first video frame, the reference frame and the FEC redundant information. After the first data packet is sent to the receiving end, the state space information sent by the receiving end is received, and the initial action value is updated according to the state space information to obtain an updated action value. The second video frame of the multiple video frames is input into the preset FEC encoding model, and the second video frame is encoded according to the preset FEC encoding model and the updated action value to obtain a second data packet. The second data packet is sent to the receiving end and the updated action value is updated to obtain a new action value. The Nth video frame in the multiple video frames is encoded according to the new action value. This step is repeated until all the video frames are sent. The method transmits the video data by dynamically adjusting the action value, thereby avoiding excessive redundant transmission, saving bandwidth resources, and reducing the additional delay caused by increasing the FEC processing overhead.
[0012] In a possible implementation manner of the first aspect, the preset FEC coding model caches the first video frame through the encoder, and obtains a reference frame corresponding to the first video frame according to the first video frame and the initial action value, specifically:
[0013] After the encoder caches the first video frame, it performs a reverse search based on the initial action value to find a target reference frame corresponding to the first video;
[0014] The target reference frame is used to construct a coding window. When the coding window is larger than the initial action value or the reference frame corresponding to the first video frame is found, the reverse search is stopped to obtain the reference frame corresponding to the first video frame.
[0015] In a possible implementation manner of the first aspect, constructing a coding window by using a target reference frame is specifically as follows:
[0016] Arrange all target reference frames according to the generation time sequence of the target reference frames to obtain an arrangement result;
[0017] A preset number of frames in the arrangement result and the first video frame are selected to construct a coding window.
[0018] In a possible implementation manner of the first aspect, the initial action value is updated according to the state space information to obtain an updated action value, specifically:
[0019] Performing data normalization processing on the state space information to obtain normalized state space information;
[0020] The normalized state space information is input into a preset FEC coding model to obtain an updated action value.
[0021] A second aspect of an embodiment of the present invention provides a forward error correction optimization system based on a scalable coding mode, the system comprising:
[0022] A receiving module, used for receiving video data from a user;
[0023] The encoding module is used to perform scalable video encoding on the video data to obtain multiple video frames, wherein the multiple video frames include base layer code stream frames and enhancement layer code stream frames;
[0024] A first data packet sending module, used for inputting a first video frame of multiple video frames into a preset FEC coding model, so that the preset FEC coding model caches the first video frame through an encoder, obtains a reference frame corresponding to the first video frame according to the first video frame and the initial action value, and obtains a first data packet according to the first video frame, the reference frame and the FEC redundant information;
[0025] An updating module, configured to receive state space information sent by the receiving end after sending the first data packet to the receiving end, and update the initial action value according to the state space information to obtain an updated action value;
[0026] The second data packet sending module inputs the second video frame of the multiple video frames into the preset FEC coding model, encodes the second video frame according to the preset FEC coding model and the updated action value to obtain a second data packet, sends the second data packet to the receiving end and updates the updated action value to obtain a new action value, encodes the Nth video frame among the multiple video frames according to the new action value, and repeats this step until all the video frames are sent.
[0027] In a possible implementation manner of the second aspect, the preset FEC coding model caches the first video frame through the encoder, and obtains a reference frame corresponding to the first video frame according to the first video frame and the initial action value, specifically:
[0028] After the encoder caches the first video frame, it performs a reverse search based on the initial action value to find a target reference frame corresponding to the first video;
[0029] The target reference frame is used to construct a coding window. When the coding window is larger than the initial action value or the reference frame corresponding to the first video frame is found, the reverse search is stopped to obtain the reference frame corresponding to the first video frame.
[0030] In a possible implementation manner of the second aspect, constructing a coding window by using a target reference frame is specifically as follows:
[0031] Arrange all target reference frames according to the generation time sequence of the target reference frames to obtain an arrangement result;
[0032] A preset number of frames in the arrangement result and the first video frame are selected to construct a coding window.
[0033] In a possible implementation manner of the second aspect, the initial action value is updated according to the state space information to obtain an updated action value, specifically:
[0034] Performing data normalization processing on the state space information to obtain normalized state space information;
[0035] The normalized state space information is input into a preset FEC coding model to obtain an updated action value.
[0036] A third aspect of an embodiment of the present invention provides a forward error correction optimization device based on a scalable coding mode, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the forward error correction optimization method based on the scalable coding mode as shown in the embodiment of the present invention is implemented.
[0037] A fourth aspect of an embodiment of the present invention provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the forward error correction optimization method based on a scalable coding mode as shown in an embodiment of the present invention is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 : A flow chart of an embodiment of a forward error correction optimization method based on an extensible coding mode provided by the present invention;
[0039] Figure 2 : A schematic diagram of an FEC optimization architecture of an embodiment of a forward error correction optimization method based on an extensible coding mode provided by the present invention;
[0040] Figure 3 : A schematic diagram of an embodiment of the forward error correction optimization method based on the scalable coding mode provided by the present invention. DETAILED DESCRIPTION
[0041] 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.
[0042] Embodiment 1
[0043] Please refer to Figure 1 , which is a flow chart of an embodiment of a forward error correction optimization method based on a scalable coding mode provided by an embodiment of the present invention, including steps S11 to S15, each of which is specifically as follows:
[0044] S11. Receive video data from the user.
[0045] In this embodiment, a video stream is obtained from a sender.
[0046] S12. Perform scalable video coding on the video data to obtain multiple video frames, where the multiple video frames include base layer code stream frames and enhancement layer code stream frames.
[0047] In this embodiment, if Figure 2 As shown, SVC scalable coding is used for the video, the video stream is divided into a base layer and an enhancement layer, and then a sliding window FEC coding scheme based on a reference frame is used to encode the divided video frames.
[0048] S13. Input a first video frame of multiple video frames into a preset FEC coding model, so that the preset FEC coding model caches the first video frame through an encoder, obtains a reference frame corresponding to the first video frame according to the first video frame and the initial action value, and obtains a first data packet according to the first video frame, the reference frame and FEC redundant information.
[0049] In a preferred embodiment, the preset FEC coding model caches the first video frame through the encoder, and obtains a reference frame corresponding to the first video frame according to the first video frame and the initial action value, specifically:
[0050] After the encoder caches the first video frame, it performs a reverse search based on the initial action value to find a target reference frame corresponding to the first video;
[0051] A coding window is constructed using the target reference frame. When the coding window is larger than the initial action value or the reference frame corresponding to the first video frame is found, the reverse search is stopped to obtain the reference frame corresponding to the first video frame.
[0052] In a preferred embodiment, the coding window is constructed using the target reference frame, specifically:
[0053] Arrange all target reference frames according to the generation time sequence of the target reference frames to obtain an arrangement result;
[0054] A preset number of frames in the arrangement result and the first video frame are selected to construct a coding window.
[0055] In this embodiment, when a new frame is generated and passed to the sliding window FEC based on the reference image, the encoder caches the frame and obtains its reference frame. At the same time, through the above-mentioned reinforcement learning-based maximum coding window T prediction model, the FEC controller obtains the predicted value T' and uses it as the reference value in this FEC encoding process. During the FEC encoding process, the reference frame of the current frame is found by reverse search, and all reference frames are added to the encoding window. When the encoding window exceeds the maximum window T' or an internal frame is found, the backward search stops. In this way, the FEC redundant information is added and packaged into RTP data packets through the data packet smoothing sending module. Subsequently, the RTP message is sent from the sender to the receiver. These RTP data packets are then processed in the receiving buffer to check the order and timestamps of the data packets, frame boundaries, etc. Once the frame reconstruction is completed, it is sent to the decoder for display on the user's screen.
[0056] The reverse search process is as follows: first determine the current frame, select several frames before the current frame for search, search for the reference frame of the current frame, and arrange all reference frames in the order of their generation time. Then, for FEC encoding, the FEC encoder selects the last T'-1 frame from the queue sequence and constructs a coding window with the current frame. Reference frames include direct reference frames and indirect reference frames.
[0057] The modeling based on reinforcement learning relies on the Markov decision process, which defines its four-tuple group <state S, action A, reward function R, state transfer function T>. The specific situation is as follows:
[0058] State space: The state space is defined as the various indicators of the transmission layer, including packet loss rate (l), packet delay (d), and actual encoding rate (encoder bitrate b). In addition, in order to constrain each indicator to the same data level, all indicators are first normalized and then used as the input of the model to avoid interference from outliers that affect the normal training and gradient update of the neural network.
[0059] Reward function: This reward function mainly involves important indicators related to video quality: video bit rate (denoted as v), delay (denoted as d), and frame rate (denoted as f). The above three indicators are adjusted through reasonable hyperparameters, such as giving positive rewards (reward factors) to video bit rate and frame rate, and giving negative penalties (penalty factors) to video buffering delay, and then performing weighted synthesis. The reward function of reinforcement learning is:
[0060]
[0061] Where α, β are the video bit rate and γ is the reward factor, v is the video bit rate, f is the frame rate, and d is the delay.
[0062] Action space: The continuous action space is defined as the predicted value of the FEC maximum coding window T, and the output range is A = [T_min, T_max], and the specific value is any discrete value in this space.
[0063] S14. After sending the first data packet to the receiving end, receiving the state space information sent by the receiving end, updating the initial action value according to the state space information, and obtaining an updated action value.
[0064] In a preferred embodiment, the initial action value is updated according to the state space information to obtain an updated action value, specifically:
[0065] Performing data normalization processing on the state space information to obtain normalized state space information;
[0066] The normalized state space information is input into a preset FEC coding model to obtain an updated action value.
[0067] In this embodiment, the state space is input into the neural network model, and the algorithm generates a more optimal maximum coding window action value T according to the current strategy. This action value is transmitted to the sender as the video sending rate of the next stage. Then the model generates a reward function value for this feedback to judge the benefit of the previous action. If the benefit value is large, the model will tend to generate such a better strategy; if the benefit value is small or negative, the parameter training of the model will avoid generating similar actions.
[0068] The above stages are repeated over and over again. After training a certain size of data set and gaining more experience, it will evolve into a maximum coding window T prediction model that can reasonably predict the network bandwidth.
[0069] S15. Input the second video frame of the multiple video frames into a preset FEC coding model, encode the second video frame according to the preset FEC coding model and the updated action value to obtain a second data packet, send the second data packet to the receiving end and update the updated action value to obtain a new action value, encode the Nth video frame among the multiple video frames according to the new action value, and repeat this step until all the video frames are sent.
[0070] In this embodiment, after sending a frame, the next frame continues to be sent, and when the frame is passed to the sliding window FEC based on the reference image, the encoder caches the frame and obtains its reference frame. At the same time, through the above-mentioned maximum coding window T prediction model based on reinforcement learning, the FEC controller obtains the predicted value T' and uses it as the reference value in this FEC encoding process, and then finds the reference frame of the current frame through reverse search, and adds all reference frames to the coding window. When the coding window exceeds the maximum window T' or an internal frame is found, the backward search stops. Finally, the FEC redundant information is added and packaged into an RTP data packet through the data packet smoothing sending module. Subsequently, the RTP message is sent from the sender to the receiver. The RTP data packet is processed in the receiving buffer to check the order and timestamp of the data packet, frame boundaries, etc. Once the frame reconstruction is completed, it is sent to the decoder for display on the user's screen.
[0071] It should be noted that when sending frames, video frames are selected for sending according to actual needs.
[0072] In the coding window management mechanism based on the reference image structure in the applicable SVC mode, the reinforcement learning algorithm is introduced. This can not only ensure the advantages of the multi-channel distribution of the original SVC technology, but also analyze historical data, network conditions, transmission quality and other factors through reinforcement learning to infer the most suitable FEC maximum coding window in different situations, avoid excessive redundant transmission, and thus save bandwidth resources.
[0073] Embodiment 2
[0074] Accordingly, see Figure 3 , Figure 3 A forward error correction optimization system based on a scalable coding mode provided by the present invention, as shown in the figure, the forward error correction optimization system based on a scalable coding mode includes:
[0075] Receiving module 301, used for receiving video data of a user;
[0076] The encoding module 302 is used to perform scalable video encoding on the video data to obtain multiple video frames, wherein the multiple video frames include base layer code stream frames and enhancement layer code stream frames;
[0077] A first data packet sending module 303 is configured to input a first video frame of multiple video frames into a preset FEC coding model, so that the preset FEC coding model caches the first video frame through an encoder, obtains a reference frame corresponding to the first video frame according to the first video frame and the initial action value, and obtains a first data packet according to the first video frame, the reference frame and the FEC redundant information;
[0078] An updating module 304 is used to receive state space information sent by the receiving end after sending the first data packet to the receiving end, and update the initial action value according to the state space information to obtain an updated action value;
[0079] The second data packet sending module 305 inputs the second video frame of the multiple video frames into the preset FEC coding model, encodes the second video frame according to the preset FEC coding model and the updated action value to obtain a second data packet, sends the second data packet to the receiving end and updates the updated action value to obtain a new action value, encodes the Nth video frame among the multiple video frames according to the new action value, and repeats this step until all the video frames are sent.
[0080] In a preferred embodiment, the preset FEC coding model caches the first video frame through the encoder, and obtains a reference frame corresponding to the first video frame according to the first video frame and the initial action value, specifically:
[0081] After the encoder caches the first video frame, it performs a reverse search based on the initial action value to find a target reference frame corresponding to the first video;
[0082] All target reference frames are added to the encoding window. When the encoding window is larger than the initial action value or the reference frame corresponding to the first video frame is found, the reverse search is stopped to obtain the reference frame corresponding to the first video frame.
[0083] In a preferred embodiment, the initial action value is updated according to the state space information to obtain an updated action value, specifically:
[0084] Performing data normalization processing on the state space information to obtain normalized state space information;
[0085] The normalized state space information is input into a preset FEC coding model to obtain an updated action value.
[0086] In a preferred embodiment, the coding window is constructed using the target reference frame, specifically:
[0087] Arrange all target reference frames according to the generation time sequence of the target reference frames to obtain an arrangement result;
[0088] A preset number of frames in the arrangement result and the first video frame are selected to construct a coding window.
[0089] Accordingly, the forward error correction optimization device based on the scalable coding mode provided by the present invention includes: a processor and a memory,
[0090] A computer program is stored in the memory, and the computer program is configured to be executed by a processor, and the processor performs operations corresponding to the forward error correction optimization method based on the scalable coding mode as shown in the first embodiment of the present application.
[0091] Accordingly, the present invention provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the forward error correction optimization method based on the scalable coding mode as shown in the first embodiment are implemented.
[0092] The more detailed working principle and step flow of this embodiment can refer to, but are not limited to, the relevant records of Embodiment 1.
[0093] In summary, the implementation of the embodiments of the present invention has the following beneficial effects:
[0094] The method comprises the following steps: receiving video data of a user, performing scalable video coding on the video data to obtain a plurality of video frames, inputting a first video frame of the plurality of video frames into a preset FEC coding model so that the preset FEC coding model caches the first video frame through an encoder, obtaining a reference frame corresponding to the first video frame according to the first video frame and an initial action value, obtaining a first data packet according to the first video frame, the reference frame and FEC redundant information, sending the first data packet to a receiving end, receiving state space information sent by the receiving end, updating the initial action value according to the state space information, obtaining an updated action value, inputting a second video frame of the plurality of video frames into a preset FEC coding model, encoding the second video frame according to the preset FEC coding model and the updated action value, obtaining a second data packet, sending the second data packet to the receiving end and updating the updated action value to obtain a new action value, encoding the Nth video frame of the plurality of video frames according to the new action value, and repeating this step until all the video frames are sent. The method transmits video data by dynamically adjusting the action value, thereby avoiding excessive redundant transmission, saving bandwidth resources, and reducing the additional delay caused by increasing FEC processing overhead.
[0095] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A forward error correction optimization method based on scalable coding mode, characterized in that: include: Receiving video data from a user; Performing scalable video coding on the video data to obtain a plurality of video frames, wherein the plurality of video frames include a base layer code stream frame and an enhancement layer code stream frame; Inputting a first video frame of the multiple video frames into a preset forward error correction coding model, so that the preset forward error correction coding model caches the first video frame through an encoder, obtains a target reference frame corresponding to the first video frame according to the first video frame and an initial action value, and obtains a first data packet according to the first video frame, the target reference frame and forward error correction redundant information; After sending the first data packet to the receiving end, receiving the state space information sent by the receiving end, updating the initial action value according to the state space information, and obtaining an updated action value, wherein the action value refers to the maximum coding window value in the preset forward error correction coding model, and the state space information refers to various indicator information in the transport layer, including packet loss rate, packet delay and actual coding rate; Inputting a second video frame of the multiple video frames into the preset forward error correction coding model, encoding the second video frame according to the preset forward error correction coding model and the updated action value to obtain a second data packet, sending the second data packet to the receiving end and updating the updated action value to obtain a new action value, encoding the Nth video frame of the multiple video frames according to the new action value, and repeating this step until the video frames are all sent; The updating of the initial action value according to the state space information to obtain an updated action value is specifically: Performing data normalization processing on the state space information to obtain normalized state space information; Inputting the normalized state space information into the preset forward error correction coding model to obtain an updated action value, wherein the preset forward error correction coding model is a neural network model; The preset forward error correction coding model caches the first video frame through the encoder, and obtains a target reference frame corresponding to the first video frame according to the first video frame and the initial action value, specifically: After the encoder caches the first video frame, it performs a reverse search according to the initial action value to find a reference frame corresponding to the first video; A coding window is constructed using the reference frame, and when the coding window is larger than an initial action value or an intra-frame prediction frame is found, reverse search is stopped to obtain a target reference frame corresponding to the first video frame.
2. The forward error correction optimization method based on scalable coding mode according to claim 1, characterized in that: The using the reference frame to construct the coding window is specifically: Arrange all reference frames according to the generation time sequence of the reference frames to obtain an arrangement result; A preset number of frames in the arrangement result and the first video frame are selected to construct a coding window.
3. A forward error correction optimization system based on scalable coding mode, characterized in that: include: A receiving module, used for receiving video data from a user; An encoding module, configured to perform scalable video encoding on the video data to obtain a plurality of video frames, wherein the plurality of video frames include a base layer code stream frame and an enhancement layer code stream frame; A first data packet sending module, configured to input a first video frame of the multiple video frames into a preset forward error correction coding model, so that the preset forward error correction coding model caches the first video frame through an encoder, obtains a reference frame corresponding to the first video frame according to the first video frame and an initial action value, and obtains a first data packet according to the first video frame, the reference frame and forward error correction redundant information; An updating module, configured to receive state space information sent by the receiving end after sending the first data packet to the receiving end, and update the initial action value according to the state space information to obtain an updated action value, wherein the action value refers to the maximum coding window value in the preset forward error correction coding model, and the state space information refers to various indicator information in the transport layer, including packet loss rate, packet delay and actual coding rate; A second data packet sending module, inputting a second video frame of the multiple video frames into the preset forward error correction coding model, encoding the second video frame according to the preset forward error correction coding model and the updated action value to obtain a second data packet, sending the second data packet to a receiving end and updating the updated action value to obtain a new action value, encoding the Nth video frame of the multiple video frames according to the new action value, and repeating this step until the video frames are sent; The updating of the initial action value according to the state space information to obtain an updated action value is specifically: Performing data normalization processing on the state space information to obtain normalized state space information; Inputting the normalized state space information into the preset forward error correction coding model to obtain an updated action value, wherein the preset forward error correction coding model is a neural network model; The preset forward error correction coding model caches the first video frame through the encoder, and obtains a target reference frame corresponding to the first video frame according to the first video frame and the initial action value, specifically: After the encoder caches the first video frame, it performs a reverse search according to the initial action value to find a reference frame corresponding to the first video; A coding window is constructed using the reference frame, and when the coding window is larger than an initial action value or an intra-frame prediction frame is found, reverse search is stopped to obtain a target reference frame corresponding to the first video frame.
4. The forward error correction optimization system based on scalable coding mode as claimed in claim 3, characterized in that: The using the reference frame to construct the coding window is specifically: Arrange all reference frames according to the generation time sequence of the reference frames to obtain an arrangement result; A preset number of frames in the arrangement result and the first video frame are selected to construct a coding window.
5. A forward error correction optimization device based on a scalable coding mode, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the forward error correction optimization method based on the scalable coding mode as described in any one of claims 1 to 2 when executing the computer program.
6. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the steps of the forward error correction optimization method based on the scalable coding mode as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Video coding and decoding with reverse channel information management
CN106101702A
System and method for correcting network data packet loss
CN115623154A
