CN113259779A - Video processing method, device, equipment and storage medium - Google Patents

Video processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113259779A
CN113259779A CN202110744051.5A CN202110744051A CN113259779A CN 113259779 A CN113259779 A CN 113259779A CN 202110744051 A CN202110744051 A CN 202110744051A CN 113259779 A CN113259779 A CN 113259779A
Authority
CN
China
Prior art keywords
frame
video
frames
virtual
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110744051.5A
Other languages
Chinese (zh)
Other versions
CN113259779B (en
Inventor
聂树华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Mirui Technology Co ltd
Original Assignee
Hangzhou Mirui Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Mirui Technology Co ltd filed Critical Hangzhou Mirui Technology Co ltd
Priority to CN202110744051.5A priority Critical patent/CN113259779B/en
Publication of CN113259779A publication Critical patent/CN113259779A/en
Application granted granted Critical
Publication of CN113259779B publication Critical patent/CN113259779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Abstract

The application discloses a video processing method, a device, equipment and a storage medium, which are applied to a video storage end and comprise the following steps: coding a target video of a video storage end in a mode of inserting virtual I frames between P frames corresponding to the I frames at intervals to obtain a target video comprising the I frames, the virtual I frames and the P frames; constructing a corresponding time point index table based on time points of I frames and virtual I frames in the target video; acquiring the playing requirement of a playing end for playing back a target video, and searching a corresponding I frame or a virtual I frame from a time point index table to be used as an initial transmission frame; and transmitting the initial transmission frame and the video frame after the initial transmission frame to a playing end so that the playing end can decode and display the received video frame. When the video playing method and device are used for playing back, the video storage end only transmits the video frames to be displayed according to playing requirements, and the video network transmission efficiency is improved.

Description

Video processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a video processing method, apparatus, device, and storage medium.
Background
In the prior art, most of video recordings stored by a household camera are generally recordings recorded by a camera head stored on an SD card, and video frames cannot be efficiently transmitted during playback. For example, when playing is performed in a fast forward manner, if fast forward playback is performed, each video frame needs to be acquired and decoded, and for video frames that do not need to be displayed, the video frames are discarded after transmission and decoding are completed, which greatly wastes network resources and reduces the video data transmission rate.
Therefore, how to provide a method capable of efficiently transmitting video frames according to playing requirements during video playback is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention provides a video processing method, apparatus, device and storage medium, which can transmit only video frames to be displayed according to the playing requirement, thereby improving the video network transmission efficiency. The specific scheme is as follows:
a first aspect of the present application provides a video processing method, applied to a video storage end, including:
coding a target video of the video storage end in a mode of inserting virtual I frames between P frames corresponding to the I frames at intervals to obtain the target video comprising the I frames, the virtual I frames and the P frames;
constructing a corresponding time point index table based on the time points of the I frame and the virtual I frame in the target video;
acquiring a playing requirement of a playing end for playing back the target video, and searching the I frame or the virtual I frame corresponding to the playing requirement from the time point index table to be used as an initial transmission frame;
and transmitting the initial transmission frame and the video frame after the initial transmission frame to the playing end so that the playing end can decode and display the received video frame.
Optionally, the encoding processing on the target video at the video storage end by inserting virtual I frames between P frames corresponding to the I frames at intervals to obtain the target video including the I frames, the virtual I frames, and the P frames includes:
and encoding a target video of the video storage end by utilizing an H264 compression technology to obtain the target video comprising the I frame, the virtual I frame and the P frame.
Optionally, the time point index table further includes the picture states of the I frame and the video frames before and after the virtual I frame; wherein the picture state is used for reflecting whether the picture of the corresponding video frame changes.
Optionally, the video processing method further includes:
and judging whether the picture of the video frame changes according to the inter-frame brightness between the video frames so as to determine the picture state of the video frame.
Optionally, the transmitting the initial transmission frame and the video frame after the initial transmission frame to the playing end includes:
determining the I frame, the virtual I frame and the P frame participating in transmission in a video frame after the initial transmission frame according to the fast forward speed in the playing requirement;
and if the playing requirement represents that a still picture is played, transmitting the I frame, the virtual I frame and the P frame which participate in transmission in the initial transmission frame and the video frame after the initial transmission frame to the playing end.
Optionally, the transmitting the initial transmission frame and the video frame after the initial transmission frame to the playing end includes:
determining the I frame, the virtual I frame and the P frame participating in transmission in a video frame after the initial transmission frame according to the fast forward speed in the playing requirement;
if the playing requirement represents that a still picture is not played, screening the I frame, the virtual I frame and the P frame which participate in transmission according to the picture state in the time point index table to obtain the I frame, the virtual I frame and the P frame which finally participate in transmission;
and transmitting the initial transmission frame, the I frame, the virtual I frame and the P frame which are finally involved in transmission to the playing end.
Optionally, the screening the I frame, the virtual I frame, and the P frame participating in transmission according to the picture state in the time point index table to obtain the I frame, the virtual I frame, and the P frame finally participating in transmission includes:
respectively judging whether the pictures of the I frames participating in transmission and the preset number of video frames behind the virtual I frame are changed or not according to the picture states in the time point index table;
and if not, discarding the corresponding I frame, the virtual I frame and the P frame to obtain the I frame, the virtual I frame and the P frame which finally participate in transmission.
A second aspect of the present application provides a video processing apparatus applied to a video storage end, including:
a virtual frame insertion module, configured to perform encoding processing on a target video at the video storage end in a manner of inserting virtual I frames at intervals between P frames corresponding to I frames, so as to obtain the target video including the I frames, the virtual I frames, and the P frames;
the index table building module is used for building a corresponding time point index table based on the time points of the I frame and the virtual I frame in the target video;
a playing requirement obtaining module, configured to obtain a playing requirement for a playing end to play back the target video, and search the I frame or the virtual I frame corresponding to the playing requirement from the time point index table, so as to use the I frame or the virtual I frame as an initial transmission frame;
and the transmission module is used for transmitting the initial transmission frame and the video frame after the initial transmission frame to the playing end so that the playing end can decode and display the received video frame.
A third aspect of the application provides an electronic device comprising a processor and a memory; wherein the memory is used for storing a computer program which is loaded and executed by the processor to implement the aforementioned video processing method.
A fourth aspect of the present application provides a computer-readable storage medium having stored therein computer-executable instructions that, when loaded and executed by a processor, implement the aforementioned video processing method.
In the method, a target video of a video storage end is coded in a mode of inserting virtual I frames between P frames corresponding to the I frames at intervals to obtain a target video comprising the I frames, the virtual I frames and the P frames; then, constructing a corresponding time point index table based on time points of I frames and virtual I frames in the target video; then, acquiring a playing requirement of a playing end for playing back a target video, and searching an I frame or a virtual I frame corresponding to the playing requirement from a time point index table to be used as an initial transmission frame; and finally, transmitting the initial transmission frame and the video frame after the initial transmission frame to the playing end so that the playing end can decode and display the received video frame. According to the video coding method and device, the virtual I frames are inserted between the P frames corresponding to the I frames at intervals to code the target video, and during playback, the video storage end can only transmit the video frames needing to be displayed according to the playing requirement, so that the video network transmission efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a video processing method provided in the present application;
fig. 2 is a schematic diagram of a conventional video frame encoding method provided in the present application;
FIG. 3 is a schematic diagram illustrating the encoding of a video frame inserted with a virtual I frame according to the present application;
fig. 4 is a schematic structural diagram of a video processing apparatus provided in the present application;
fig. 5 is a block diagram of a video processing electronic device according to the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, most of video recordings stored by a household camera are generally recordings recorded by a camera head stored on an SD card, and video frames cannot be efficiently transmitted during playback. For example, when playing is performed in a fast forward manner, if fast forward playback is performed, each video frame needs to be acquired and decoded, and for video frames that do not need to be displayed, the video frames are discarded after transmission and decoding are completed, which greatly wastes network resources and reduces the video data transmission rate. In view of the foregoing technical defects, embodiments of the present application provide a video processing scheme, where virtual I frames are inserted at intervals between P frames corresponding to I frames to encode a target video, and during playback, a video storage end can transmit only video frames to be displayed according to a playing requirement, so as to improve video network transmission efficiency.
Fig. 1 is a flowchart of a video processing method according to an embodiment of the present disclosure. Referring to fig. 1, the video processing method is applied to a video storage side, and includes:
s11: and coding the target video of the video storage end in a mode of inserting virtual I frames between P frames corresponding to the I frames at intervals to obtain the target video comprising the I frames, the virtual I frames and the P frames.
In this embodiment, a target video at the video storage end is encoded by inserting virtual I frames between P frames corresponding to the I frames at intervals to obtain the target video including the I frames, the virtual I frames, and the P frames. Currently, most of the camera heads adopt the coding method for the stored video that all the P frames after the I frame refer to the previous P frame, as shown in fig. 2, so that when the video is played back, the displayed video frame is determined by the playing end, and the decoding display end is played back at the same time, and when the subsequent P frame is decoded, all the P frames referred to in the front need to be decoded at the same time, which results in the need of acquiring all the video frames and increases the network transmission burden. The P frames in the subsequent I frame interval of the target video are separated by a plurality of dummy I frames in the present embodiment, the P frames in the dummy I frame interval refer to the dummy I frames, and the dummy I frames refer to the previous I frames, as shown in fig. 3. It is understood that the number of P frames in the adjacent virtual I frame interval may be set to 2 to 4, and is determined according to actual service requirements, which is not limited in this embodiment of the present application.
In this embodiment, an H264 compression technique may be used to encode a target video at the video storage end to obtain the target video including the I frame, the virtual I frame, and the P frame. The H264 encoder supports a virtual I frame or frame skipping mode, and all P frames in the I frame are prevented from referring to the previous P frame through the H264 encoding mode. The H264 compression technology is a video compression standard, can still provide a standard with good video quality at a lower bit rate, has relatively low design complexity, has a high video compression ratio and network affinity, and is applicable to various transmission networks.
S12: and constructing a corresponding time point index table based on the time points of the I frame and the virtual I frame in the target video.
In this embodiment, after the target video including the I frame, the virtual I frame, and the P frame is acquired, a corresponding time point index table is constructed based on time points of the I frame and the virtual I frame in the target video. Of course, the offset points of the I frame and the virtual I frame may be generated simultaneously in order to enable fast localization of the target video. The above steps are also the process of writing the video to the local storage device by the camera.
Further, when the I frame and the virtual I frame are encoded, the picture static states of the frames before and after encoding may also be written into an index table, that is, the time point index table may also include the picture states of the video frames before and after the I frame and the virtual I frame; wherein the picture state is used for reflecting whether the picture of the corresponding video frame changes. In playing back the target video, whether transmission of a still picture needs to be skipped or not can be selected according to the picture states of the preceding and following video frames. In addition, in this embodiment, whether a picture of the video frame changes may be determined according to inter-frame brightness between the video frames, so as to determine the picture state of the video frame. Of course, other technical means for determining whether the frame has a changed state, besides the change of the brightness difference between frames, are also within the scope of the disclosure of the present embodiment.
S13: and acquiring a playing requirement of a playing end for playing back the target video, and searching the I frame or the virtual I frame corresponding to the playing requirement from the time point index table to be used as an initial transmission frame.
In this embodiment, a play requirement for playing back the target video by the play end is obtained first, where the play requirement may be a fast forward speed, a play time point, whether to play a still picture, and the like, for example, by issuing the fast forward speed to the camera, the target video is not played after consecutive multiple frames of still pictures, and the play time point. The playback end may be a Personal Computer (PC), a mobile phone App, a Network Video Recorder (NVR), or the like. Then, the I frame or the virtual I frame corresponding to the playing requirement is looked up from the time point index table to be used as a starting transmission frame, for example, the I frame or the virtual I frame used as the starting transmission frame may be looked up from the time point index table according to the playing time point in the playing requirement. It is understood that the starting transmission frame is also the starting video frame for transmitting the target video.
S14: and transmitting the initial transmission frame and the video frame after the initial transmission frame to the playing end so that the playing end displays the received video frame.
In this embodiment, after the initial transmission frame is determined, the video frame after the initial transmission frame may be transmitted to the playing end, so that the playing end decodes and displays the received video frame. It can be seen that whether the frames are displayed or not is determined by the video storage end (camera), the camera end only transmits the frames to be displayed according to the playback mode, and when the play end executes fast forward playback, all the frames do not need to be decoded, only the received video frames need to be decoded, and the frames are directly decoded and displayed without special processing. That is, when video stored in the camera is fast-forwarded and played back at different speeds (1X, 2X, 4X, 8X, 16X, etc.), video frames which are not displayed need not be transmitted and decoded, and only the video frames which need to be displayed (fast-forwarded) need to be transmitted and decoded.
In a specific embodiment, when the play requirement indicates to play a still picture, in the transmission process, the I frame, the virtual I frame, and the P frame participating in transmission in the video frame after the initial transmission frame are further determined according to the fast forward speed in the play requirement, and then the I frame, the virtual I frame, and the P frame participating in transmission in the video frame after the initial transmission frame and the initial transmission frame are transmitted to the play end. It should be noted that, the specific rule for determining the I frame, the virtual I frame, and the P frame participating in transmission in the video frame after the initial transmission frame according to the fast forward speed in the play requirement is as follows: when the playing speed is 1 time, transmitting all video frames subsequent to the initial transmission frame; for other playing speeds except 1 time of playing speed, the P frame is not transmitted, and only the I frame and the virtual I frame are selectively transmitted, namely when the playing speed is 2 times, all the I frames and the virtual I frames subsequent to the initial transmission frame are transmitted; when the playing speed is 4 times, selecting the virtual I frame for transmission for all the I frames and intervals subsequent to the initial transmission frame; when the playing speed is 8 times, transmitting all the I frames subsequent to the initial transmission frame and one virtual I frame in the middle of the I frames; when the playing speed is 16 times, only all the I frames subsequent to the initial transmission frame are transmitted. Of course, the above rule is only an example, and those skilled in the art can set the relevant rule according to the service requirement, and the camera determines the corresponding transmission rule according to the fast forward speed to transmit the subsequent video frame.
In another specific embodiment, when the playing requirement indicates that a still picture is not to be played, the camera head end indexes the corresponding I frame or the corresponding virtual I frame as the initial transmission frame through the playing time point, and then may determine, according to the above rule, the I frame, the virtual I frame, and the P frame that are participating in transmission in the video frame after the initial transmission frame, which is specifically referred to in the foregoing, and this embodiment is not described again. On this basis, since still pictures need to be skipped, the I frame, the virtual I frame, and the P frame participating in transmission need to be further filtered by the picture status in the time point index table to obtain the I frame, the virtual I frame, and the P frame finally participating in transmission. In this embodiment, whether the pictures of the preset number of video frames after the I frame and the virtual I frame participating in transmission change or not may be respectively determined according to the picture states in the time point index table, and if not, the corresponding I frame, the virtual I frame, and the P frame are discarded, so as to obtain the I frame, the virtual I frame, and the P frame finally participating in transmission. And finally transmitting the initial transmission frame, the I frame, the virtual I frame and the P frame which are finally participated in the transmission to the playing end. In this process, the time point index table includes the picture states of the I frame and the video frames before and after the virtual I frame, and whether the number of the continuous still pictures exceeds the preset number is determined according to the still picture state recorded by the time point index table, if so, it is indicated that the picture after the I frame or the virtual I frame is a continuous still picture frame which does not need to be transmitted, that is, a video frame which does not need to be displayed at the playing end, and the video frame which does not need to be displayed can be directly discarded by the camera end. Continuing to index subsequent video frames until a frame with a changed picture state is encountered, determining the video frame to be transmitted, and repeating the steps of respectively judging whether the pictures of the I frame participating in transmission and a preset number of video frames after the virtual I frame are changed according to the picture state in the time point index table, and if not, discarding the corresponding I frame, the virtual I frame and the P frame to obtain the I frame, the virtual I frame and the P frame finally participating in transmission.
As can be seen, in the embodiment of the present application, a target video at a video storage end is encoded by inserting virtual I frames at intervals between P frames corresponding to the I frames to obtain a target video including the I frames, the virtual I frames, and the P frames; then, constructing a corresponding time point index table based on time points of I frames and virtual I frames in the target video; then, acquiring a playing requirement of a playing end for playing back a target video, and searching an I frame or a virtual I frame corresponding to the playing requirement from a time point index table to be used as an initial transmission frame; and finally, transmitting the initial transmission frame and the video frame after the initial transmission frame to the playing end so that the playing end can decode and display the received video frame. According to the video coding method and device, the virtual I frames are inserted between the P frames corresponding to the I frames at intervals to code the target video, and during playback, the video storage end can only transmit the video frames needing to be displayed according to the playing requirement, so that the video network transmission efficiency is improved.
Referring to fig. 4, an embodiment of the present application further discloses a video processing apparatus, which includes:
a virtual frame insertion module 11, configured to perform encoding processing on a target video at the video storage end in a manner of inserting virtual I frames at intervals between P frames corresponding to I frames, so as to obtain the target video including the I frames, the virtual I frames, and the P frames;
an index table constructing module 12, configured to construct a corresponding time point index table based on time points of the I frame and the virtual I frame in the target video;
a playing requirement obtaining module 13, configured to obtain a playing requirement for a playing end to play back the target video, and search the I frame or the virtual I frame corresponding to the playing requirement from the time point index table, so as to use the I frame or the virtual I frame as an initial transmission frame;
a transmission module 14, configured to transmit the initial transmission frame and the video frame after the initial transmission frame to the playing end, so that the playing end decodes and displays the received video frame.
As can be seen, in the embodiment of the present application, a target video at a video storage end is encoded by inserting virtual I frames at intervals between P frames corresponding to the I frames to obtain a target video including the I frames, the virtual I frames, and the P frames; then, constructing a corresponding time point index table based on time points of I frames and virtual I frames in the target video; then, acquiring a playing requirement of a playing end for playing back a target video, and searching an I frame or a virtual I frame corresponding to the playing requirement from a time point index table to be used as an initial transmission frame; and finally, transmitting the initial transmission frame and the video frame after the initial transmission frame to the playing end so that the playing end can decode and display the received video frame. According to the video coding method and device, the virtual I frames are inserted between the P frames corresponding to the I frames at intervals to code the target video, and during playback, the video storage end can only transmit the video frames needing to be displayed according to the playing requirement, so that the video network transmission efficiency is improved.
In some embodiments, the virtual frame insertion module 11 is specifically configured to perform encoding processing on a target video of the video storage by using an H264 compression technique to obtain the target video including the I frame, the virtual I frame, and the P frame.
In some embodiments, the video processing apparatus further includes a picture state determining module, configured to determine whether a picture of the video frame changes according to inter-frame brightness between the video frames, so as to determine the picture state of the video frame.
In some specific embodiments, the transmission module 14 specifically includes:
a video frame determining unit, configured to determine, according to the fast forward speed in the play demand, the I frame, the virtual I frame, and the P frame participating in transmission in a video frame after the start transmission frame;
a first transmission unit, configured to transmit the I frame, the virtual I frame, and the P frame participating in transmission in a video frame after the initial transmission frame by using the initial transmission frame as a transmission initial point if the playing requirement represents that a still picture is played;
a second transmission unit, configured to, if the play requirement indicates that a still picture is not to be played, screen the I frame, the virtual I frame, and the P frame that participate in transmission according to the picture state in the time point index table to obtain the I frame, the virtual I frame, and the P frame that finally participate in transmission, and transmit the I frame, the virtual I frame, and the P frame that finally participate in transmission by using the initial transmission frame as a transmission start point.
Further, the embodiment of the application also provides electronic equipment. FIG. 5 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and the contents of the diagram should not be construed as limiting the scope of use of the present application in any way.
Fig. 5 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein, the memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the video processing method disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, data 223, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device and the computer program 222 on the electronic device 20, so as to realize the operation and processing of the mass data 223 in the memory 22 by the processor 21, and may be Windows Server, Netware, Unix, Linux, and the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the video processing method disclosed in any of the foregoing embodiments and executed by the electronic device 20. Data 223 may include video frames collected by electronic device 20.
Further, an embodiment of the present application further discloses a storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the steps of the video processing method disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The video processing method, apparatus, device and storage medium provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained herein by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A video processing method is applied to a video storage end and comprises the following steps:
coding a target video of the video storage end in a mode of inserting virtual I frames between P frames corresponding to the I frames at intervals to obtain the target video comprising the I frames, the virtual I frames and the P frames;
constructing a corresponding time point index table based on the time points of the I frame and the virtual I frame in the target video;
acquiring a playing requirement of a playing end for playing back the target video, and searching the I frame or the virtual I frame corresponding to the playing requirement from the time point index table to be used as an initial transmission frame;
and transmitting the initial transmission frame and the video frame after the initial transmission frame to the playing end so that the playing end can decode and display the received video frame.
2. The video processing method according to claim 1, wherein said encoding a target video in the video storage by inserting virtual I frames between P frames corresponding to I frames at intervals to obtain the target video including the I frames, the virtual I frames, and the P frames comprises:
and encoding a target video of the video storage end by utilizing an H264 compression technology to obtain the target video comprising the I frame, the virtual I frame and the P frame.
3. The video processing method according to claim 1, wherein the time point index table further includes picture states of the I frame, video frames before and after the virtual I frame; wherein the picture state is used for reflecting whether the picture of the corresponding video frame changes.
4. The video processing method of claim 3, further comprising:
and judging whether the picture of the video frame changes according to the inter-frame brightness between the video frames so as to determine the picture state of the video frame.
5. The video processing method of claim 1, wherein the transmitting the start transmission frame and the video frame after the start transmission frame to the playing end comprises:
determining the I frame, the virtual I frame and the P frame participating in transmission in a video frame after the initial transmission frame according to the fast forward speed in the playing requirement;
and if the playing requirement represents that a still picture is played, transmitting the I frame, the virtual I frame and the P frame which participate in transmission in the initial transmission frame and the video frame after the initial transmission frame to the playing end.
6. The video processing method of claim 3, wherein the transmitting the starting transmission frame and the video frame after the starting transmission frame to the playing end comprises:
determining the I frame, the virtual I frame and the P frame participating in transmission in a video frame after the initial transmission frame according to the fast forward speed in the playing requirement;
if the playing requirement represents that a still picture is not played, screening the I frame, the virtual I frame and the P frame which participate in transmission according to the picture state in the time point index table to obtain the I frame, the virtual I frame and the P frame which finally participate in transmission;
and transmitting the initial transmission frame, the I frame, the virtual I frame and the P frame which are finally involved in transmission to the playing end.
7. The video processing method according to claim 6, wherein the filtering the I frame, the virtual I frame, and the P frame participating in transmission according to the picture status in the time point index table to obtain the I frame, the virtual I frame, and the P frame finally participating in transmission comprises:
respectively judging whether the pictures of the I frames participating in transmission and the preset number of video frames behind the virtual I frame are changed or not according to the picture states in the time point index table;
and if not, discarding the corresponding I frame, the virtual I frame and the P frame to obtain the I frame, the virtual I frame and the P frame which finally participate in transmission.
8. A video processing apparatus, applied to a video storage terminal, comprising:
a virtual frame insertion module, configured to perform encoding processing on a target video at the video storage end in a manner of inserting virtual I frames at intervals between P frames corresponding to I frames, so as to obtain the target video including the I frames, the virtual I frames, and the P frames;
the index table building module is used for building a corresponding time point index table based on the time points of the I frame and the virtual I frame in the target video;
a playing requirement obtaining module, configured to obtain a playing requirement for a playing end to play back the target video, and search the I frame or the virtual I frame corresponding to the playing requirement from the time point index table, so as to use the I frame or the virtual I frame as an initial transmission frame;
and the transmission module is used for transmitting the initial transmission frame and the video frame after the initial transmission frame to the playing end so that the playing end can decode and display the received video frame.
9. An electronic device, comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the video processing method of any of claims 1 to 7.
10. A computer-readable storage medium storing computer-executable instructions which, when loaded and executed by a processor, carry out a video processing method according to any one of claims 1 to 7.
CN202110744051.5A 2021-07-01 2021-07-01 Video processing method, device, equipment and storage medium Active CN113259779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110744051.5A CN113259779B (en) 2021-07-01 2021-07-01 Video processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110744051.5A CN113259779B (en) 2021-07-01 2021-07-01 Video processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113259779A true CN113259779A (en) 2021-08-13
CN113259779B CN113259779B (en) 2021-09-17

Family

ID=77190355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110744051.5A Active CN113259779B (en) 2021-07-01 2021-07-01 Video processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113259779B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339431A (en) * 2021-12-16 2022-04-12 杭州当虹科技股份有限公司 Time-lapse coding compression method
WO2024041406A1 (en) * 2022-08-26 2024-02-29 广州市百果园信息技术有限公司 Video target frame determination method, apparatus and device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255328A1 (en) * 2003-06-13 2004-12-16 Baldwin James Armand Fast start-up for digital video streams
CN102055717A (en) * 2009-11-09 2011-05-11 华为技术有限公司 Quick playing method, terminal and server
CN104185037A (en) * 2014-02-28 2014-12-03 无锡天脉聚源传媒科技有限公司 Method, device and system for transmitting and playing video
CN104918064A (en) * 2015-05-27 2015-09-16 努比亚技术有限公司 Rapid video play method and device of mobile terminal
CN110324708A (en) * 2019-07-16 2019-10-11 浙江大华技术股份有限公司 Method for processing video frequency, terminal device and computer storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255328A1 (en) * 2003-06-13 2004-12-16 Baldwin James Armand Fast start-up for digital video streams
CN102055717A (en) * 2009-11-09 2011-05-11 华为技术有限公司 Quick playing method, terminal and server
CN104185037A (en) * 2014-02-28 2014-12-03 无锡天脉聚源传媒科技有限公司 Method, device and system for transmitting and playing video
CN104918064A (en) * 2015-05-27 2015-09-16 努比亚技术有限公司 Rapid video play method and device of mobile terminal
CN110324708A (en) * 2019-07-16 2019-10-11 浙江大华技术股份有限公司 Method for processing video frequency, terminal device and computer storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339431A (en) * 2021-12-16 2022-04-12 杭州当虹科技股份有限公司 Time-lapse coding compression method
CN114339431B (en) * 2021-12-16 2023-09-01 杭州当虹科技股份有限公司 Time-lapse coding compression method
WO2024041406A1 (en) * 2022-08-26 2024-02-29 广州市百果园信息技术有限公司 Video target frame determination method, apparatus and device, and storage medium

Also Published As

Publication number Publication date
CN113259779B (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN113259779B (en) Video processing method, device, equipment and storage medium
CN101867796B (en) Method and device for monitoring video
CN106998485B (en) Video live broadcasting method and device
CN101883097A (en) Method and device for realizing that server equipment shares screen of client equipment
EP2924998A1 (en) Method, apparatus and system for acquiring playback data stream of real-time video communication
CN112073543B (en) Cloud video recording method and system and readable storage medium
CN110740386B (en) Live broadcast switching method and device and storage medium
CN106231225A (en) A kind of network hard disk video recorder data processing method and system
CN111836076A (en) Video resolution switching method and device and electronic equipment
WO2021057697A1 (en) Video encoding and decoding methods and apparatuses, storage medium, and electronic device
CN103747326A (en) Continuous playing method and device for multimedia file
CN102196249B (en) Monitoring data playback method, EC (Encoder) and video management server
CN111641804A (en) Video data processing method and device, terminal, camera and video conference system
CN107613302B (en) Decoding method and device, storage medium and processor
CN107801049A (en) A kind of real-time video transmission, player method and device
CN103929682A (en) Method and device for setting key frames in video live broadcast system
CN102811342A (en) Video profile cut control method, device and system
CN101998147A (en) Transmission method of media data, network-side apparatus and communication system
CN114615458B (en) Method and device for real-time screen closing and rapid drawing in cloud conference, storage medium and server
CN116389437A (en) Video data transmission method, device, storage medium and system
CN115567754A (en) Video playing method, device, equipment and storage medium
CN113329080B (en) Video playing method and device based on WebSocket, electronic equipment and storage medium
CN104683882B (en) A kind of generation of Streaming Media speed file and player method, device
CN101622873A (en) Method by server broadcast audio and video data sequences
CN113542859A (en) Intelligent screen projection system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant