Video processing method and video processing application

By decoding and rendering the video stream in the designated memory of the video playback application, the problem of the video player occupying a large amount of CPU and memory on the receiving device is solved, and more efficient video playback is achieved.

CN115134661BActive Publication Date: 2024-08-27龙芯中科(合肥)技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210743683.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-08-27
Estimated Expiration
2042-06-28

Smart Images

  • Figure CN115134661B
    Figure CN115134661B
Patent Text Reader

Abstract

The present application provides a video processing method and a video processing application, wherein the method is applied to a designated memory of a video playback application, and the method includes: loading a video code stream corresponding to a target video; decoding the video code stream in the designated memory to obtain video decoding data; based on the playback parameters currently corresponding to the video playback application, rendering the video decoding data in the designated memory according to the playback parameters to obtain video playback data; the video playback data is used for display to form the playback of the video code stream. The method of the present application solves the problem that the existing video player has a large CPU overhead and memory occupancy of the receiving device during the audio and video playback process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a video processing method and a video processing application. Background Art

[0002] Video playback applications (i.e., video players) such as MPlayer and Baofengyingyin and Yangyin have realized the playback of original audio and video data stored in the form of digital signals, greatly promoting the transmission, sharing, and application of audio and video data.

[0003] like Figure 1 As shown, the existing video player generally includes a protocol solution module 11, a decapsulation module 12, an audio decoding module 13, an audio post-processing module 14, a video decoding module 15, a video post-processing module 16, an output module 17 and a playback interface 18. After the video player at the receiving end obtains the original audio and video data from the sending end, it plays the original audio and video data in the following manner: the video player obtains the video code stream and the audio code stream through the protocol solution module 11 and the decapsulation module 12. The video player obtains the audio playback data after decoding and rendering through the audio decoding module 13 and the audio post-processing module 14; and obtains the video playback data after decoding and rendering through the video decoding module 15 and the video post-processing module 16. Then the video player synchronizes the audio playback data and the video playback data through the output module 17 and sends them to the playback interface 18 for playback.

[0004] Since the video bitstream data volume is large and each processing action on the video bitstream will generate the overhead and memory usage of the central processing unit (CPU) of each action, the existing video players have the problem of large CPU overhead and memory usage of the receiving device during the audio and video playback process. For receiving devices with small CPU resources and memory resources, the use of the video player often has an adverse effect on the performance of other functions of the device, such as causing other functions of the device to freeze during the use of the video player. Summary of the invention

[0005] The present application provides a video processing method and a video processing application to solve the problem that the existing video player has a large CPU overhead and memory usage of a receiving device during the audio and video playback process.

[0006] In a first aspect, the present application provides a video processing method, which is applied to a designated memory of a video playback application, and the method comprises:

[0007] Load the video stream corresponding to the target video;

[0008] Decoding the video code stream in a specified memory to obtain video decoding data;

[0009] Based on the playback parameters currently corresponding to the video playback application, the video decoding data is rendered in the designated memory according to the playback parameters to obtain video playback data; the video playback data is used for display to form the playback of the video code stream.

[0010] Optionally, the playback parameter is at least one of resolution, pixel format, rotation angle, and overlay position;

[0011] The rendering process of the video decoding data according to the playback parameter includes:

[0012] Collect at least one playback parameter of the video playback application currently corresponding to the resolution, pixel format, rotation angle, and overlay position;

[0013] The video decoding data is rendered in the designated memory according to the collected playback parameters to obtain video playback data corresponding to the playback parameters.

[0014] Optionally, after obtaining the video playback data, the method further includes:

[0015] Synchronously processing the video playback data and the audio playback data corresponding to the video playback data to obtain synchronized playback data of audio and video;

[0016] The synchronous playback data is played.

[0017] In a second aspect, the present application provides a video processing application, the video processing application comprising: a video decoding module;

[0018] The video decoding module is used to load the video code stream corresponding to the target video, decode the video code stream in the specified memory, and obtain video decoding data;

[0019] The video decoding module is also used to render the video decoding data in the designated memory according to the playback parameters currently corresponding to the video playback application to obtain video playback data; the video playback data is used for display to form the playback of the video code stream.

[0020] Optionally, the video processing application further includes: an output module;

[0021] The output module is used to collect at least one playback parameter of the video playback application currently corresponding to the resolution, pixel format, rotation angle, and superposition position;

[0022] The video decoding module is further used to render the video decoding data in the designated memory according to the playback parameters collected by the output module to obtain the video playback data corresponding to the playback parameters.

[0023] Optionally, the video decoding module includes: an application program interface API;

[0024] The output module is further used to send the collected playback parameters to the video decoding module through the application program interface API.

[0025] Optionally, the video processing application further includes: a playback interface;

[0026] The output module is further used to synchronously process the video playback data and the audio playback data corresponding to the video playback data to obtain synchronous playback data after the video decoding module obtains the video playback data;

[0027] The playback interface is used to play the synchronous playback data.

[0028] Optionally, the video processing application further includes: a video post-processing module;

[0029] The video post-processing module is used to provide a transmission channel for the transmission of the video decoding data and / or the playback parameters between the video decoding module and the output module.

[0030] In a third aspect, the present application provides a method for upgrading a video playback application, which is applied to upgrading a video playback application, wherein the video playback application includes a video decoding module, a video post-processing module, and an output module; the upgrading method includes:

[0031] Acquire a decoding program of the video decoding module and a rendering program of the video post-processing module, and integrate the decoding program and the rendering program to obtain a combined program; when the combined program is executed, the video processing method is implemented;

[0032] Setting the merging program in the video decoding module;

[0033] A new application program interface API is created on the video decoding module to receive the playback parameters collected in real time by the output module.

[0034] In a fourth aspect, the present application provides an upgrade device for a video playback application, the upgrade device comprising: a transceiver component and a program processing component; wherein:

[0035] The transceiver component is used to obtain a decoding program of a video decoding module in a video playback application and a rendering processing program of a video post-processing module in the video playback application; and send the decoding program and the rendering processing program to the program processing component;

[0036] The program processing component is used to integrate the decoding program and the rendering processing program to obtain a combined program; when the combined program is executed, the method according to claim 1 is implemented;

[0037] The program processing component is also used to set the merging program in the video decoding module and delete the decoding program and rendering processing program in the video playback application; and create a new application program interface API on the video decoding module to receive the playback parameters collected in real time by the output module of the video playback application.

[0038] In a fifth aspect, the present application provides an upgrade device for a video playback application, the upgrade device comprising:

[0039] Processor and memory;

[0040] The memory stores executable instructions executable by the processor;

[0041] The processor executes the executable instructions stored in the memory, so that the processor executes the upgrade method of the video playback application as described above.

[0042] In a sixth aspect, the present application provides a storage medium storing computer execution instructions, which, when executed by a processor, are used to implement an upgrade method for a video playback application as described above.

[0043] In a seventh aspect, the present application provides a program product, including a computer program, which implements an upgrade method for a video playback application when executed by a processor.

[0044] The video processing method and video processing application provided by the present application obtain video playback data by loading the video code stream corresponding to the target video in the video playback application, decoding and rendering the video code stream in the same designated memory, thereby eliminating the copying action of the video decoded data after decoding the video code stream in the existing video player, as well as the CPU overhead and memory occupancy caused by the copying action on the receiving device. The present application solves the problem that the existing video player has a large CPU overhead and memory occupancy of the receiving device during the audio and video playback process. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0046] Figure 1 This is the structure diagram of the existing video player;

[0047] Figure 2 A structural diagram of a video playback application provided in an embodiment of the present application;

[0048] Figure 3 A flow chart of a video processing method provided in an embodiment of the present application;

[0049] Figure 4 A structural diagram of a video processing application provided in an embodiment of the present application;

[0050] Figure 5 A flow chart of a method for upgrading a video playback application provided in an embodiment of the present application;

[0051] Figure 6 An upgrade device architecture diagram for a video playback application provided in an embodiment of the present application;

[0052] Figure 7 A structural diagram of an upgrade device for a video playback application provided in an embodiment of the present application.

[0053] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] like Figure 1As shown, after the video player on the receiving device obtains the original audio and video data from the sending end, the process of displaying and playing the original audio and video data is as follows: the deprotocol module 11 obtains the original audio and video data from the streaming media protocol data, performs deprotocol processing on the original audio and video data to obtain deprotocol data, and sends the deprotocol data to the decapsulation module 12. The decapsulation module 12 decapsulates the deprotocol data to obtain a video code stream and an audio code stream, and sends the audio code stream to the audio decoding module 13, and sends the video code stream to the video decoding module 15. The video code stream is a video code stream in a coding format such as H264 and H265. The video decoding module 15 decodes the video code stream to obtain video decoded data in a format such as YUV420, and sends the video decoded data to the video post-processing module 16. The video post-processing module 16 renders the video decoded data based on the playback parameters of the playback interface 18 sent by the output module 17, obtains video playback data, and sends the video playback data to the output module 17. Similarly, the audio code stream is processed by the audio decoding module 13 and the audio post-processing module 14 to obtain audio playback data, and the audio post-processing module 14 sends the audio playback data to the output module 17. The output module 17 synchronizes the audio playback data with the video playback data and sends them to the playback interface 18 for playback. Among them, the playback parameters are the parameters of the audio and video playback of the playback interface 18, such as resolution, pixel format, etc. The output module 17 monitors the playback parameters of the playback interface 18 in real time, and collects the playback parameters and sends them to the video post-processing module 16 and the audio post-processing module 14.

[0056] In the process of playing the original audio and video data, the video player has been processing the audio code stream and the video code stream. The video code stream has a large amount of data, and the processing of the video code stream is the main reason for the video player to occupy a large amount of memory and CPU overhead of the receiving end device. In the process of the video player processing the video code stream, the main processing actions that occupy the memory and CPU overhead are: the decoding of the video code stream by the video decoding module 15, the copying and sending of the video decoding data by the video decoding module 15, and the rendering processing of the video decoding data by the video post-processing module 16. In the copying and sending operation of the video decoding data by the video decoding module 15, it is mainly the copying action of the video decoding data by the video decoding module 15 that occupies the memory and CPU overhead. Since the memory corresponding to the decoding action of the video decoding module 15 and the rendering processing action of the video post-processing module 16 are independent of each other. Therefore, in order to send the video decoding data to the video post-processing module for rendering processing, it is necessary to copy the video decoding data from the decoding corresponding memory and then send it to the rendering processing corresponding memory. Therefore, the CPU overhead caused by the copying action of the video decoding data in the existing video player is inevitable.

[0057] In this regard, the present application proposes a video processing method, which is applied to the designated memory of a video playback application, by loading the video code stream corresponding to the target video, decoding the video code stream in the designated memory, obtaining decoded video decoded data, and rendering the video decoded data according to the playback parameters currently corresponding to the video playback application in the designated memory to obtain video playback data, which is used for display and playback. The present application decodes and renders the video code stream corresponding to the target video in the same memory (i.e., the designated memory) to obtain video playback data, thereby eliminating the copying action of the video decoded data, as well as the memory occupancy and CPU overhead of the receiving device caused by the copying action. Therefore, the present application solves the problem of large memory occupancy and CPU overhead of the receiving device in the process of playing audio and video in the existing video player.

[0058] The video processing method proposed in this application is described below in conjunction with some embodiments.

[0059] Figure 2 A structural diagram of a video playback application provided in an embodiment of the present application. Figure 3 The following is a flow chart of the video processing method provided in the embodiment of the present application. Figure 2 As shown, the video playback application 20 includes: a protocol decoding module 11, a decapsulation module 12, an audio decoding module 13, an audio post-processing module 14, a video decoding module 21, a video post-processing module 16, an output module 17, and a playback interface 18, wherein the video decoding module 21 also includes an application programming interface API 211.

[0060] After the video playback application 20 obtains the original audio and video data from the sending end, the process of displaying and playing the original audio and video data is as follows:

[0061] The deprotocol module 11 obtains original audio and video data from the streaming media protocol data, performs deprotocol processing on the original audio and video data to obtain deprotocol data, and sends the deprotocol data to the decapsulation module 12.

[0062] The decapsulation module 12 decapsulates the protocol data to obtain a video code stream and an audio code stream, and sends the audio code stream to the audio decoding module 13 and the video code stream to the video decoding module 21. The video code stream may be a video code stream in a coding format such as H264 or H265.

[0063] The audio code stream is processed by the audio decoding module 13 and the audio post-processing module 14 to obtain audio playback data, and the audio post-processing module 14 sends the audio playback data to the output module 17. At the same time, the video decoding module 21 receives the playback parameters of the playback interface 18 sent by the output module through the API 211 and / or the video post-processing module 16, decodes and renders the video code stream, and obtains video decoding data in the YUV420 format. The video decoding module 21 transmits the video decoding data to the output module 17 through the video post-processing module 16.

[0064] The output module 17 synchronously processes the audio play data and the video play data to obtain synchronous play data of audio and video, and sends the synchronous play data to the play interface 18 for display and play.

[0065] The playback parameters are parameters for playing audio and video on the playback interface 18, such as resolution, pixel format, etc. The output module 17 monitors the playback parameters of the playback interface 18 in real time, and collects the playback parameters and sends them to the video post-processing module 16 and the audio post-processing module 14, or to the video decoding module 21 and the audio post-processing module 14.

[0066] Optionally, Figure 2 The video playback application 20 shown may be a Figure 1 The video player shown in the figure is upgraded to obtain the video playback application. Figure 3 The video processing method provided by this application is described.

[0067] Figure 3 A flow chart of a video processing method provided in an embodiment of the present application. Figure 3 The execution subject of the embodiment shown is Figure 2 The video player application 20 shown. Figure 3 As shown, the video processing method provided by the present application is applied to the designated memory of the video playback application. The video processing method provided by the present application includes:

[0068] S301, loading the video code stream corresponding to the target video.

[0069] Specifically, in Figure 2 In the video playback application 20 shown, the video decoding module 21 loads the video code stream sent by the decapsulation module 12 .

[0070] S302: Decode the video code stream in a designated memory to obtain video decoding data.

[0071] Specifically, the video playback application 20 decodes the video code stream in the designated memory to obtain video decoding data. Specifically, the video decoding module 21 decodes the video code stream in the designated memory to obtain video decoding data.

[0072] The designated memory is the memory corresponding to the decoding process of the video decoding module 21, and the memory is also the memory for rendering process in the subsequent step S303. The kernel of the video decoding module 21 may be FFmpeg (Fast Forward Mpeg).

[0073] S303: Based on the playback parameters currently corresponding to the video playback application, the video decoding data is rendered in a designated memory according to the playback parameters to obtain video playback data.

[0074] Specifically, the video playback application 20 renders the video decoded data obtained in step S302 in a designated memory according to the playback parameters currently corresponding to the video playback application 20 to obtain video playback data. The video playback data is used for display to form the playback of the video code stream. The rendering process includes at least one of scaling, pixel format conversion, image rotation, image translation, deblocking, de-ringing, color enhancement, contrast enhancement, clarity enhancement, and de-interlacing. Specifically, the video decoding module 21 renders the video decoded data obtained in step S302 in a designated memory according to the playback parameters currently corresponding to the video playback application 20 to obtain video playback data.

[0075] For example, the playback parameters are parameters for playing audio and video on the playback interface 18, and the playback parameters are at least one of resolution, pixel format, rotation angle, and superposition position. Figure 1 In the existing video player shown, there is no direct communication between the video decoding module 15 and the output module 17, that is, the video decoding module 15 cannot directly obtain the playback parameters from the output module 17. Figure 2 In the video playback application 20 shown, the video decoding module 21 obtains the playback parameters sent by the output module 17 through the API 211, and the playback parameters are the playback parameters of the video playback application 20. Preferably, the API 211 is a dedicated interface for the output module 17 to directly send the playback parameters to the video decoding module 21. Optionally, the API 211 can also be a dedicated interface for the video post-processing module 16 to directly send the playback parameters to the video decoding module 21 after obtaining the playback parameters from the output module 17. The video playback application 20 collects at least one playback parameter of the resolution, pixel format, rotation angle, and superposition position currently corresponding to the video playback application 20, and renders the video decoding data in the designated memory according to the collected playback parameters to obtain the video playback data corresponding to the playback parameters.

[0076] Of course, if necessary, the video playback application 20 can also use a method similar to the video code stream in decoding and rendering the audio code stream, that is, the audio decoding module 13 decodes and renders the video code stream to obtain audio playback data.

[0077] Furthermore, after the video playback application 20 obtains the video playback data, the video processing method of the present application further includes: the video playback application 20 synchronously processes the video playback data and the audio playback data corresponding to the video playback data to obtain synchronous playback data with audio and video synchronization. The video playback application 20 plays the synchronous playback data.

[0078] Specifically, the output module 17 in the video playback application 20 synchronously processes the video playback data and the audio playback data corresponding to the video playback data to obtain synchronous playback data of audio and video synchronization. The playback interface 18 in the video playback application 20 plays the synchronous playback data.

[0079] Exemplarily, the output module 17 adopts any one of the methods of synchronizing video to audio, synchronizing audio to video, and synchronizing audio and video to an external clock to synchronize the video playback data and the audio playback data corresponding to the video playback data to obtain synchronized playback data with completely consistent audio and video display timestamps (Presentation Time Stamp, abbreviated as: PTS).

[0080] The video processing method provided by the present application is applied to the designated memory of the video playback application, and the video code stream corresponding to the target video is loaded, and the video code stream is decoded and rendered in the same designated memory to obtain the video playback data, thereby eliminating the copying action of the video decoding data in the existing video player, as well as the CPU overhead and memory occupancy caused by the copying action to the receiving device. The present application solves the problem of large memory occupancy and CPU overhead of the receiving device in the process of playing audio and video in the existing video player.

[0081] Figure 3 The video processing method shown can be executed in a CPU. In a possible implementation, Figure 3 The video processing method shown can also be executed in a graphics processing unit (GPU). For example, after the CPU obtains the video code stream, the CPU sends the video code stream and the corresponding decoding and rendering instructions to the GPU. The GPU executes Figure 3The video processing method shown decodes and renders the video code stream to obtain video playback data. The GPU plays the video playback data. Alternatively, the GPU sends the video playback data to the CPU for playback. The method provided in the present application implements decoding and rendering processing in the same processor and memory. The acceleration of decoding and rendering processing is achieved through this implementation, which not only reduces the GPU overhead, but also reduces the playback delay of the video playback application, making the video playback application play audio and video more smoothly.

[0082] An embodiment of the present application provides a video processing application. Figure 4 The video processing application structure diagram provided in the embodiment of the present application. Figure 4 The video processing application provided by this application is described as follows: Figure 4 As shown, the video processing application 40 includes: a video decoding module 41.

[0083] The video decoding module 41 is used to load the video code stream corresponding to the target video, decode the video code stream in a designated memory, and obtain video decoding data.

[0084] The video decoding module 41 is also used to render the video decoding data according to the playback parameters currently corresponding to the video playback application 40 in a designated memory to obtain video playback data. The video playback data is used for display to form the playback of the video code stream.

[0085] Furthermore, the video processing application 40 also includes: an output module 17 .

[0086] The output module 17 is used to collect at least one playback parameter of the resolution, pixel format, rotation angle, and superposition position currently corresponding to the video playback application 40;

[0087] The video decoding module 41 is further used to render the video decoding data in the designated memory according to the playback parameters collected by the output module 17 to obtain the video playback data corresponding to the playback parameters.

[0088] Furthermore, the video decoding module 41 includes: an application program interface API 411;

[0089] The output module 17 is further configured to send the collected playback parameters to the video decoding module 41 through the application program interface API 411 .

[0090] Furthermore, the video processing application 40 also includes: a playback interface 18 .

[0091] The output module 17 is further used to synchronously process the video playback data and the audio playback data corresponding to the video playback data to obtain synchronous playback data after the video decoding module 41 obtains the video playback data.

[0092] The play interface 18 is used to play the synchronous play data.

[0093] Furthermore, the video processing application 40 also includes: a video post-processing module 42;

[0094] The video post-processing module 42 is used to provide a transmission channel for the transmission of video decoding data and / or playback parameters between the video decoding module 41 and the output module 17 .

[0095] The video processing application provided in this embodiment is Figure 3 The specific implementation principle and technical effects of the illustrated embodiment are similar, and will not be described in detail herein.

[0096] An embodiment of the present application provides a method for upgrading a video playback application. Figure 5 A flow chart of a method for upgrading a video playback application provided in an embodiment of the present application. Figure 6 This is a diagram of the upgrade device architecture of the video playback application provided in the embodiment of the present application. Figure 5 and Figure 6 The method for upgrading the video playback application provided in this embodiment is described. The method is applied to the video playback application (such as Figure 1 The video player shown in FIG. 1 ) includes a video decoding module, a video post-processing module, and an output module. Figure 5 As shown, the method includes:

[0097] S501, obtaining a decoding program of a video decoding module and a rendering program of a video post-processing module, and integrating the decoding program and the rendering program to obtain a combined program.

[0098] Specifically, Figure 6 The video player in the receiving device 10 shown in FIG. Figure 1 The structure and function of the existing video player shown are the same, and this embodiment will not be repeated here.

[0099] like Figure 6 The upgrade device 60 shown obtains the decoding program of the video decoding module 15 and the rendering program of the video post-processing module 16 in the video player of the receiving end device 10, and integrates the decoding program and the rendering program to obtain a merged program.

[0100] The merging program implements the video processing method provided by the present application when it is executed. The merging program has decoding and rendering processing functions.

[0101] Optionally, the upgrade device 60 may also directly create a combined program with decoding and rendering processing functions on the upgrade device 60, without obtaining the decoding program and the rendering processing program from the video player of the receiving end device 10 for integration processing.

[0102] S502: Setting a merging program in a video decoding module.

[0103] Specifically, the upgrading device 60 sets the merging program in the video decoding module 15 .

[0104] Furthermore, after the upgrading device 60 sets the merging program in the video decoding module 15 , the decoding program on the video decoding module 15 and the rendering program on the video post-processing module 16 may be deleted.

[0105] Optionally, the upgrading device 60 may also freeze the decoding program on the video decoding module 15 and the rendering program on the video post-processing module 16 .

[0106] S503: Create a new application program interface API on the video decoding module to receive the playback parameters collected in real time by the output module.

[0107] Specifically, the upgrading device 60 creates a new application program interface API on the video decoding module 15 to receive the playback parameters collected in real time by the output module 17 .

[0108] The video playback application upgrade method provided in this embodiment replaces the decoding program in the existing video player with a merged program with decoding and rendering processing functions, and deletes or freezes the decoding program and rendering processing program in the existing video player to upgrade the existing video player (or existing video playback application). The upgraded video playback application (or video player) implements decoding and rendering processing of the video code stream in the same memory, eliminating the CPU overhead and corresponding memory occupancy caused by the copy of the video decoding data in the existing video player. This embodiment solves the problem that the existing video player has a large CPU overhead and memory occupancy of the receiving device during the audio and video playback process. The existing video player with large CPU overhead and memory can be applied to the receiving device with small CPU resources and memory resources after being upgraded by the video playback application upgrade method provided in this application, eliminating the use restrictions of the receiving device with small CPU resources and memory resources on the existing video player.

[0109] The present application embodiment provides an upgrade device for a video playback application. Figure 6 The upgrade device of the video playback application provided by the present application is described. The embodiment of the present application provides an upgrade device of the video playback application such as Figure 6As shown in the figure, the upgrade device 60 includes: a transceiver component 61 and a program processing component 62.

[0110] The transceiver component 61 is used to obtain the video playback application (such as Figure 6 The decoding program of the video decoding module 15 in the video player shown in the figure, and the rendering processing program of the video post-processing module 16 in the video playback application; and send the decoding program and the rendering processing program to the program processing component 62.

[0111] The program processing component 62 is used to integrate the decoding program and the rendering processing program to obtain a combined program. When the combined program is executed, the video processing method provided by the present application is implemented.

[0112] The program processing component 62 is also used to set the merging program in the video decoding module 15 and the video playback application (such as Figure 6 and create a new application program interface API on the video decoding module 15 to receive the playback parameters collected in real time by the output module 17 of the video playback application.

[0113] Optionally, the program processing component 62 is also used to input a merged program with decoding and rendering processing functions.

[0114] Optionally, the program processing component 62 is further used to replace the decoding program of the video decoding module 15 with the merging program, and freeze the rendering processing program of the video post-processing module 16 .

[0115] The upgrade device provided in this embodiment has the same specific implementation principle and technical effect as Figure 5 The specific implementation principle and technical effect of the embodiment of the upgrade method of the video playback application shown are similar, and this embodiment will not be repeated here.

[0116] The embodiment of the present application also provides an upgrade device for a video playback application. Figure 7 This is a structural diagram of the video playback application upgrade device provided in the embodiment of the present application. Figure 7As shown, the upgrade device includes a processor 71 and a memory 72, and the memory 72 stores executable instructions of the processor 71, so that the processor 71 can be used to execute the technical solution of the upgrade method embodiment of the above-mentioned video playback application, and its implementation principle and technical effect are similar, and this embodiment will not be repeated here. It should be understood that the above-mentioned processor 71 can be a CPU, or other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as: DSP), application-specific integrated circuits (English: Application Specific Integrated Circuit, referred to as: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The memory 72 may include a high-speed random access memory (English: Random Access Memory, referred to as: RAM), and may also include a non-volatile memory (English: Non-volatile memory, referred to as: NVM), such as at least one disk storage, and can also be a U disk, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.

[0117] The embodiment of the present application also provides a storage medium, in which computer execution instructions are stored, and when these computer execution instructions are executed by the processor, the upgrade method of the above-mentioned video playback application is implemented. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (English: Static Random-Access Memory, referred to as: SRAM), electrically erasable programmable read-only memory (English: Electrically-Erasable Programmable Read-Only Memory, referred to as: EEPROM), erasable programmable read-only memory (English: Erasable Programmable Read-Only Memory, referred to as: EPROM), programmable read-only memory (English: Programmable Read-Only Memory, referred to as: PROM), read-only memory (English: Read-Only Memory, referred to as: ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0118] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (English: Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0119] An embodiment of the present application also provides a program product, such as a computer program, which, when executed by a processor, implements the upgrade method of the video playback application covered by the present application.

[0120] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0121] Finally, it should be noted that the above implementation modes are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned implementation modes, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned implementation modes, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the implementation modes of the present invention.

Claims

1. A video processing method, characterized in that: Applied to a designated memory of a video playback application, the method comprises: Load the video stream corresponding to the target video; Decoding the video code stream in the designated memory to obtain video decoding data; Based on the playback parameters currently corresponding to the video playback application, the video decoding data is rendered in the designated memory according to the playback parameters to obtain video playback data; the video playback data is used for display to form the playback of the video code stream; the playback parameters are at least one of resolution, pixel format, rotation angle, and overlay position, which are parameters for playing audio and video.

2. The method according to claim 1, characterized in that The rendering process of the video decoding data according to the playback parameter includes: Collect at least one playback parameter of the video playback application currently corresponding to the resolution, pixel format, rotation angle, and overlay position; The video decoding data is rendered in the designated memory according to the collected playback parameters to obtain video playback data corresponding to the playback parameters.

3. The method according to claim 1, characterized in that After obtaining the video playback data, the method further includes: Synchronously processing the video playback data and the audio playback data corresponding to the video playback data to obtain synchronized playback data of audio and video; The synchronous playback data is played.

4. A video processing device, characterized in that: Applied in a designated memory of a video playback application, the video processing device comprises: a video decoding module; The video decoding module is used to load the video code stream corresponding to the target video, and decode the video code stream in the designated memory to obtain video decoding data; The video decoding module is also used to render the video decoding data in the designated memory according to the playback parameters currently corresponding to the video playback application to obtain video playback data; the video playback data is used for display to form the playback of the video code stream; the playback parameter is at least one of resolution, pixel format, rotation angle, and overlay position, which is a parameter for playing audio and video.

5. The video processing device according to claim 4, characterized in that: The video processing device further includes: an output module; The output module is used to collect at least one playback parameter of the video playback application currently corresponding to the resolution, pixel format, rotation angle, and superposition position; The video decoding module is further used to render the video decoding data in the designated memory according to the playback parameters collected by the output module to obtain the video playback data corresponding to the playback parameters.

6. The video processing device according to claim 5, characterized in that: The video decoding module includes: an application program interface API; The output module is further used to send the collected playback parameters to the video decoding module through the application program interface API.

7. The video processing device according to claim 5, characterized in that: The video processing device further includes: a playback interface; The output module is further used to synchronously process the video playback data and the audio playback data corresponding to the video playback data to obtain synchronous playback data after the video decoding module obtains the video playback data; The playback interface is used to play the synchronous playback data.

8. The video processing device according to any one of claims 4 to 7, characterized in that: The video processing device further includes: a video post-processing module; The video post-processing module is used to provide a transmission channel for the transmission of the video decoding data and / or the playback parameters between the video decoding module and the output module.

9. A method for upgrading a video playback application, characterized in that: Applied to the upgrade of a video playback application, the video playback application includes a video decoding module, a video post-processing module and an output module; the upgrade method includes: Obtaining a decoding program of the video decoding module and a rendering processing program of the video post-processing module, and integrating the decoding program and the rendering processing program to obtain a combined program; when the combined program is executed, the method according to claim 1 is implemented; Setting the merging program in the video decoding module; A new application program interface API is created on the video decoding module to receive the playback parameters collected in real time by the output module.

10. An upgrade device for a video playback application, characterized in that: The upgrade device includes: a transceiver component and a program processing component; wherein, The transceiver component is used to obtain a decoding program of a video decoding module in a video playback application and a rendering program of a video post-processing module in the video playback application; and send the decoding program and the rendering program to the program processing component; The program processing component is used to integrate the decoding program and the rendering processing program to obtain a combined program; when the combined program is executed, the method according to claim 1 is implemented; The program processing component is also used to set the merging program in the video decoding module and delete the decoding program and rendering processing program in the video playback application; and create a new application program interface API on the video decoding module to receive the playback parameters collected in real time by the output module of the video playback application.

11. An upgrade device for a video playback application, characterized in that: The upgrading device comprises: Processor and memory; The memory stores executable instructions executable by the processor; The processor executes the executable instructions stored in the memory, so that the processor performs the method as claimed in claim 9.

12. A storage medium, characterized in that: The storage medium stores computer-executable instructions, which are used to implement the method according to claim 9 when executed by a processor.

13. A program product, comprising a computer program, which implements the method according to claim 9 when executed by a processor.