CN113542856A - Reverse playing method, device, equipment and computer readable medium for online video - Google Patents

Reverse playing method, device, equipment and computer readable medium for online video Download PDF

Info

Publication number
CN113542856A
CN113542856A CN202110722738.9A CN202110722738A CN113542856A CN 113542856 A CN113542856 A CN 113542856A CN 202110722738 A CN202110722738 A CN 202110722738A CN 113542856 A CN113542856 A CN 113542856A
Authority
CN
China
Prior art keywords
image frame
frame group
playing
video
reverse
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
CN202110722738.9A
Other languages
Chinese (zh)
Other versions
CN113542856B (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.)
Yibin Zhongxing Technology Intelligent System Co ltd
Original Assignee
Yibin Zhongxing Technology Intelligent System 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 Yibin Zhongxing Technology Intelligent System Co ltd filed Critical Yibin Zhongxing Technology Intelligent System Co ltd
Priority to CN202110722738.9A priority Critical patent/CN113542856B/en
Publication of CN113542856A publication Critical patent/CN113542856A/en
Application granted granted Critical
Publication of CN113542856B publication Critical patent/CN113542856B/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the disclosure discloses a reverse playing method, a reverse playing device, online video recording equipment and a computer readable medium. One embodiment of the method comprises: receiving a video reverse playing request; sequentially acquiring data packet groups in a security monitoring system according to a reverse playing interval included in the video reverse playing request; sequentially decoding each data packet group in the acquired data packet groups to generate an image frame group to obtain an image frame group set; storing the image frame groups meeting the first preset condition in the image frame group set to a play queue; and playing the online videos corresponding to the image frame group set in the play queue according to the play queue. The embodiment can reduce the memory overhead, reduce the waiting time of video playing and further improve the video watching experience of users.

Description

Reverse playing method, device, equipment and computer readable medium for online video
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a reverse playing method and device of an online video, electronic equipment and a computer readable medium.
Background
Video has become one of the important aspects in today's computer applications, and the reverse play of video has become an important research and development direction. When the online video is played backwards, the online video is usually played backwards in a manner that a forward-sequence code stream is cached, then decoded, and then a picture is played backwards.
However, there are often technical problems when the above-described method is adopted:
when the online video is played backwards, the positive sequence code stream needs to be cached, and the pictures are played in the reverse sequence, so that the memory overhead is increased, the waiting time for playing the video is increased, and further, the video watching experience of a user is low.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a method, an apparatus, an electronic device, and a computer-readable medium for playing back an online video to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method for playing back an online video, where the method includes: receiving a video reverse playing request, wherein the video reverse playing request comprises a reverse playing interval; sequentially acquiring data packet groups in a security monitoring system according to the reverse playing interval included in the video reverse playing request; sequentially decoding each data packet group in the acquired data packet groups to generate an image frame group to obtain an image frame group set; storing the image frame group meeting a first preset condition in the image frame group set to a play queue; and playing the online video corresponding to the image frame group set in the play queue according to the play queue.
In a second aspect, some embodiments of the present disclosure provide an apparatus for playing back an online video, the apparatus including: a receiving unit configured to receive a video reverse play request, wherein the video reverse play request includes a reverse play section; the acquisition unit is configured to sequentially acquire data packet groups in the security monitoring system according to the reverse playing interval included in the video reverse playing request; a decoding unit configured to decode each of the acquired data packet groups in turn to generate an image frame group, resulting in an image frame group set; the storage unit is configured to store the image frame group meeting a first preset condition in the image frame group set to a play queue; and the playing unit is configured to play the online videos corresponding to the image frame group set in the playing queue according to the playing queue.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: the online video is reversely played through the reverse playing method of the online video of some embodiments of the disclosure, so that the video watching experience of a user is improved. Specifically, the reason why the user experiences a video recording and viewing experience is low is that: when the online video is played backwards, the forward-sequence code stream needs to be cached, and then the pictures are played backwards, so that the memory overhead is increased, and the waiting time for playing the video is increased. Based on this, in the online video reverse playing method according to some embodiments of the present disclosure, first, a video reverse playing request may be received, and data packet groups in the security monitoring system may be sequentially obtained according to a reverse playing interval included in the video reverse playing request. Therefore, the data packet group in the security monitoring system corresponding to the reverse playing interval can be obtained. Each of the acquired data packet groups may then be decoded in turn to generate an image frame group, resulting in an image frame group set. Thereby, a set of image frame groups may be obtained providing an image data basis for subsequent steps. Then, the image frame group meeting the first preset condition in the image frame group set may be saved to a play queue. Thus, the image frame group that does not meet the condition can be eliminated. And finally, playing the online video corresponding to the image frame group set in the play queue according to the play queue. The data packet groups in the security monitoring system are sequentially acquired by utilizing the reverse playing interval, the image frame group set is acquired according to the data packet groups, and the online videos corresponding to the image frame group set are played, so that the memory overhead is reduced, the waiting time for playing the videos is reduced, and further, the video watching experience of a user is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of an application scenario of a method for reverse playing of an online video recording according to some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a method for reverse playback of online video recording according to the present disclosure;
FIG. 3 is a block diagram of some embodiments of an online video recording rewind apparatus according to the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device for an online video recording rewind method according to the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram 100 of an application scenario of a reverse method of online video recording according to some embodiments of the present disclosure.
In the application scenario of fig. 1, first, the computing device 101 may receive a video rewind request 102, where the video rewind request 102 includes a rewind interval 1021. Then, the computing device 101 may sequentially obtain the data packet groups 103 in the security monitoring system according to the rewind interval 1021 included in the video rewind request 102. Thereafter, the computing device 101 may decode each of the acquired data packet groups 103 in turn to generate an image frame group, resulting in an image frame group set 104. Next, the computing device 101 may save the image frame group satisfying the first preset condition in the image frame group set 104 to the play queue 105. Finally, the computing device 101 may play the online video 106 corresponding to the image frame group set in the play queue 105 according to the play queue 105.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 1 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to fig. 2, a flow 200 of some embodiments of a method for reverse play of online video recording is shown, in accordance with the present disclosure. The reverse playing method of the online video comprises the following steps:
step 201, receiving a video reverse playing request.
In some embodiments, the execution subject of the online video recording rewind method (e.g., computing device 101 shown in fig. 1) may receive the video rewind request via a wired connection or a wireless connection. The video reverse playing request comprises a reverse playing interval.
As an example, the reverse playing interval may be 12: 00-12: 10, respectively. Here, 12: 00-12: the video corresponding between 10 may be played from frame number 8 to frame number 2.
Step 202, sequentially acquiring data packet groups in the security monitoring system according to the reverse playing interval included in the video reverse playing request.
In some embodiments, the execution main body may sequentially obtain the data packet groups in the security monitoring system corresponding to the reverse playing intervals according to the reverse playing intervals included in the video reverse playing request. Wherein, the packet group in the packet group set may include: a key frame and a predetermined number of non-key frames.
In some optional implementation manners of some embodiments, the sequentially obtaining the data packet groups in the security monitoring system according to the rewind interval included in the video rewind request may include the following steps:
and acquiring a data packet group in the security monitoring system in a reverse order acquisition mode according to a reverse playing interval included in the video reverse playing request, wherein the data packets in the data packet group in the security monitoring system are acquired in a positive order acquisition mode.
Figure BDA0003137042160000051
Table 1 packet group related data
Taking table 1 as an example, the sequence from left to right is the time sequence, transmission sequence and storage sequence when the video is being played. The video corresponding to the reverse playing interval may be a video from frame number 8 to frame number 2. The I-frame may be a key frame. The P-frames may be non-key frames. The packet group includes 1 key frame and 2 non-key frames. The execution main body first acquires an RTP (Real-time Transport Protocol) packet, i.e., frames with frame numbers of 7 and 8, of an I frame and a first P frame in the packet group 3 according to the play-back interval. The RTP packet may be a packet used when network data is transmitted using an RTP protocol. Then, the RTP packets of all frames in the data packet group 2, i.e. the frames with frame numbers 4, 5 and 6, are obtained according to the sequence of the I frame, the first P frame and the second P frame. Finally, the other frames need to refer to the key frame to obtain a complete image. Accordingly, the RTP packets of all frames in the packet group 1, i.e., frames having frame numbers 1, 2, and 3 are acquired in the order of the I frame, the first P frame, and the second P frame. Thus, the respective frames can be decoded in the order of the frame numbers 7, 8, 4, 5, 6, 1, 2, and 3. When the video is played, the frames in the same data packet group are played in reverse order, if the frame numbers 7 and 8 belong to the data packet group 3, the playing order of the frames can be adjusted to the frame numbers 8 and 7; the frame numbers 4, 5 and 6 belong to the data packet group 2, and the playing sequence of the frames can be adjusted to be the frame numbers 6, 5 and 4; the frame numbers 1, 2, 3 belong to the data packet group 1, and the playing sequence of the frames can be adjusted to be the frame numbers 3, 2, 1. Therefore, the frame sequence played when the video is finally played back is frame numbers 8, 7, 6, 5, 4, 3, 2. Wherein, the frame No. 1 is not in the range of the playing request, so that only decoding is carried out and the playing is not carried out.
And step 203, decoding each acquired data packet group in the data packet groups in sequence to generate an image frame group, so as to obtain an image frame group set.
In some embodiments, the execution body may decode each of the acquired data packet groups in turn to generate an image frame group, resulting in an image frame group set.
As an example, the execution body may decode in the order of frame numbers 2, 4, 5, 6, 1, 2, and 3, and then the decoding order according to the time sequence is: 6. 7, 8, 3, 4, 5, 1 and 2.
Step 204, saving the image frame group meeting the first preset condition in the image frame group set to a play queue.
In some embodiments, the execution subject may save, to a play queue, an image frame group satisfying a first preset condition from the image frame group set.
In some optional implementation manners of some embodiments, the saving, to the play queue, an image frame group that satisfies a first preset condition in the image frame group set may include the following steps:
first, whether the first image frame in the image frame group immediately after each image frame group in the image frame group set is a key frame is determined.
And secondly, in response to that the first image frame in the image frame group immediately behind the image frame group is a key frame, storing the image frame group to a play queue to obtain the play queue comprising the image frame group meeting a first preset condition.
In some optional implementation manners of some embodiments, the storing, to a play queue, an image frame group that satisfies a first preset condition in the image frame group set may further include:
the method comprises the following steps that firstly, an image frame group meeting a second preset condition is used as a first abnormal image frame group, and a first abnormal image frame group set is obtained. The second preset condition may be that the image frame group includes a residual frame or a frame loss.
And secondly, taking the image frame group meeting the third preset condition as a second abnormal image frame group to obtain a second abnormal image frame group set. The third preset condition may be that the received image frame group is a non-key frame, and the timestamp of the frame is greater than the timestamp of the last received image frame group, and the image frame group may be considered to be dropped.
And thirdly, not storing the first abnormal image frame group set and the second abnormal image frame group set to a play queue.
Step 205, playing the online video corresponding to the image frame group set in the play queue according to the play queue.
In some embodiments, the execution body may play the online video corresponding to the image frame group set in the play queue according to the play queue.
In some optional implementation manners of some embodiments, the playing the online video corresponding to the image frame group set in the play queue according to the play queue may further include the following steps:
and playing the online videos corresponding to the image frame group sets in the play queue according to the play queue in the sequence from the head of the play queue to the tail of the play queue, wherein each image frame group in the image frame group sets in the play queue is played in the sequence from the last image frame to the first image frame.
As an example, the image frames in the image frame groups in the image frame group set in the play queue may be played in the order of frame numbers 8, 7, 6, 5, 4, 3, 2, 1, and then the playing order of the image frames according to the time sequence is: 8. 7, 6, 5, 4, 3, 2 and 1.
Optionally, the online video corresponding to the image frame group set in the play queue is sent to a display screen, so that the display screen displays the online video.
The above embodiments of the present disclosure have the following advantages: the online video is reversely played through the reverse playing method of the online video of some embodiments of the disclosure, so that the video watching experience of a user is improved. Specifically, the reason why the user experiences a video recording and viewing experience is low is that: when the online video is played backwards, the forward-sequence code stream needs to be cached, and then the pictures are played backwards, so that the memory overhead is increased, and the waiting time for playing the video is increased. Based on this, in the online video reverse playing method according to some embodiments of the present disclosure, first, a video reverse playing request may be received, and data packet groups in the security monitoring system may be sequentially obtained according to a reverse playing interval included in the video reverse playing request. Therefore, the data packet group in the security monitoring system corresponding to the reverse playing interval can be obtained. Each of the acquired data packet groups may then be decoded in turn to generate an image frame group, resulting in an image frame group set. Thereby, a set of image frame groups may be obtained providing an image data basis for subsequent steps. Then, the image frame group meeting the first preset condition in the image frame group set may be saved to a play queue. Thus, the image frame group that does not meet the condition can be eliminated. And finally, playing the online video corresponding to the image frame group set in the play queue according to the play queue. The data packet groups in the security monitoring system are sequentially acquired by utilizing the reverse playing interval, the image frame group set is acquired according to the data packet groups, and the online videos corresponding to the image frame group set are played, so that the memory overhead is reduced, the waiting time for playing the videos is reduced, and further, the video watching experience of a user is improved.
With further reference to fig. 3, as an implementation of the above method for the above figures, the present disclosure provides some embodiments of an online video recording rewind device, which correspond to the above method embodiments of fig. 2, and which can be applied in various electronic devices.
As shown in fig. 3, the reverse device 300 for online recording of some embodiments includes: a receiving unit 301, an acquisition unit 302, a decoding unit 303, a holding unit 304, and a playing unit 305. The receiving unit 301 is configured to receive a video reverse playing request, where the video reverse playing request includes a reverse playing interval; an obtaining unit 302, configured to sequentially obtain data packet groups in the security monitoring system according to the reverse playing interval included in the video reverse playing request; a decoding unit 303 configured to decode each of the acquired data packet groups in turn to generate an image frame group, resulting in an image frame group set; a saving unit 304 configured to save an image frame group satisfying a first preset condition in the image frame group set to a play queue; the playing unit 305 is configured to play the online video corresponding to the set of image frame groups in the play queue according to the play queue.
It will be understood that the units described in the apparatus 300 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 300 and the units included therein, and are not described herein again.
Referring now to FIG. 4, a block diagram of an electronic device (e.g., computing device 101 of FIG. 1)400 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 404 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 404: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 4 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 409, or from the storage device 408, or from the ROM 402. The computer program, when executed by the processing apparatus 401, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the apparatus; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a video reverse playing request, wherein the video reverse playing request comprises a reverse playing interval; sequentially acquiring data packet groups in a security monitoring system according to the reverse playing interval included in the video reverse playing request; sequentially decoding each data packet group in the acquired data packet groups to generate an image frame group to obtain an image frame group set; storing the image frame group meeting a first preset condition in the image frame group set to a play queue; and playing the online video corresponding to the image frame group set in the play queue according to the play queue.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, an obtaining unit, a decoding unit, a saving unit, and a playing unit. The names of these units do not in some cases constitute a limitation on the unit itself, and for example, the acquisition unit may also be described as a "unit that receives a video reverse play request".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A method for playing back an online video, comprising the following steps:
receiving a video reverse playing request, wherein the video reverse playing request comprises a reverse playing interval;
sequentially acquiring data packet groups in a security monitoring system according to the reverse playing interval included in the video reverse playing request;
sequentially decoding each data packet group in the acquired data packet groups to generate an image frame group to obtain an image frame group set;
storing the image frame group meeting a first preset condition in the image frame group set to a play queue;
and playing the online videos corresponding to the image frame group set in the play queue according to the play queue.
2. The method of claim 1, wherein the method further comprises:
and sending the online video corresponding to the image frame group set in the play queue to a display screen so that the online video is displayed by the display screen.
3. The method of claim 2, wherein a packet group of the set of packet groups comprises: a key frame and a predetermined number of non-key frames.
4. The method according to claim 3, wherein the sequentially acquiring data packet groups in a security monitoring system according to the reverse playing interval included in the video reverse playing request comprises:
and acquiring a data packet group in the security monitoring system in a reverse order acquisition mode according to a reverse playing interval included in the video reverse playing request, wherein the data packets in the data packet group in the security monitoring system are acquired in a positive order acquisition mode.
5. The method of claim 4, wherein the saving the image frame group satisfying the first preset condition in the image frame group set to a play queue comprises:
determining whether a first image frame in an image frame group immediately following each image frame group in the set of image frame groups is a key frame;
and in response to that the first image frame in the image frame group immediately behind the image frame group is a key frame, storing the image frame group to a play queue to obtain the play queue comprising the image frame group meeting a first preset condition.
6. The method of claim 5, wherein the saving the image frame group satisfying the first preset condition in the image frame group set to a play queue further comprises:
taking the image frame group meeting the second preset condition as a first abnormal image frame group to obtain a first abnormal image frame group set;
taking the image frame group meeting the third preset condition as a second abnormal image frame group to obtain a second abnormal image frame group set;
and not saving the first abnormal image frame group set and the second abnormal image frame group set to a play queue.
7. The method of claim 6, wherein the playing the online video corresponding to the set of image frame groups in the play queue according to the play queue comprises:
and according to the play queue, playing the online videos corresponding to the image frame group sets in the play queue in the sequence from the head of the play queue to the tail of the play queue, wherein each image frame group in the image frame group sets in the play queue is played in the sequence from the last image frame to the first image frame.
8. An apparatus for rewinding an online video recording, comprising:
a receiving unit configured to receive a video reverse play request, wherein the video reverse play request includes a reverse play interval;
the acquisition unit is configured to sequentially acquire data packet groups in a security monitoring system according to the reverse playing interval included in the video reverse playing request;
a decoding unit configured to decode each of the acquired data packet groups in turn to generate an image frame group, resulting in an image frame group set;
the storage unit is configured to store the image frame group meeting a first preset condition in the image frame group set to a play queue;
and the playing unit is configured to play the online videos corresponding to the image frame group set in the playing queue according to the playing queue.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN202110722738.9A 2021-06-28 2021-06-28 Method, device, equipment and computer readable medium for reverse playing of online video Active CN113542856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110722738.9A CN113542856B (en) 2021-06-28 2021-06-28 Method, device, equipment and computer readable medium for reverse playing of online video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110722738.9A CN113542856B (en) 2021-06-28 2021-06-28 Method, device, equipment and computer readable medium for reverse playing of online video

Publications (2)

Publication Number Publication Date
CN113542856A true CN113542856A (en) 2021-10-22
CN113542856B CN113542856B (en) 2023-06-13

Family

ID=78126131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110722738.9A Active CN113542856B (en) 2021-06-28 2021-06-28 Method, device, equipment and computer readable medium for reverse playing of online video

Country Status (1)

Country Link
CN (1) CN113542856B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040224A (en) * 2021-11-05 2022-02-11 中国联合网络通信集团有限公司 Method, device and equipment for acquiring reverse video and readable storage medium
CN115866350A (en) * 2022-11-28 2023-03-28 重庆紫光华山智安科技有限公司 Video reverse playing method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070014531A1 (en) * 2005-07-15 2007-01-18 Streaming Networks (Pvt.) Ltd. Method and system for providing instant reverse play
US20100247066A1 (en) * 2009-03-30 2010-09-30 Samsung Electronics Co., Ltd. Method and apparatus for reverse playback of encoded multimedia content
CN101931808A (en) * 2010-07-26 2010-12-29 华为技术有限公司 Method and device for reversely playing file
CN105828109A (en) * 2015-11-20 2016-08-03 广东亿迅科技有限公司 Server, client and RTSP/RTP-based playing system
CN105898626A (en) * 2015-12-11 2016-08-24 乐视网信息技术(北京)股份有限公司 Rewound video generating method and device and play device
US20170223359A1 (en) * 2016-01-29 2017-08-03 Markany Inc. Apparatus and method for detecting scene cut frame
CN110366033A (en) * 2019-07-17 2019-10-22 腾讯科技(深圳)有限公司 A kind of video broadcasting method, device, equipment and storage medium
CN111669599A (en) * 2020-06-18 2020-09-15 Oppo广东移动通信有限公司 Video decoding method, video decoding device and terminal equipment
CN112333521A (en) * 2020-11-05 2021-02-05 杭州米络星科技(集团)有限公司 Expression playing method and device, electronic equipment and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070014531A1 (en) * 2005-07-15 2007-01-18 Streaming Networks (Pvt.) Ltd. Method and system for providing instant reverse play
US20100247066A1 (en) * 2009-03-30 2010-09-30 Samsung Electronics Co., Ltd. Method and apparatus for reverse playback of encoded multimedia content
CN101931808A (en) * 2010-07-26 2010-12-29 华为技术有限公司 Method and device for reversely playing file
CN105828109A (en) * 2015-11-20 2016-08-03 广东亿迅科技有限公司 Server, client and RTSP/RTP-based playing system
CN105898626A (en) * 2015-12-11 2016-08-24 乐视网信息技术(北京)股份有限公司 Rewound video generating method and device and play device
US20170223359A1 (en) * 2016-01-29 2017-08-03 Markany Inc. Apparatus and method for detecting scene cut frame
CN110366033A (en) * 2019-07-17 2019-10-22 腾讯科技(深圳)有限公司 A kind of video broadcasting method, device, equipment and storage medium
CN111669599A (en) * 2020-06-18 2020-09-15 Oppo广东移动通信有限公司 Video decoding method, video decoding device and terminal equipment
CN112333521A (en) * 2020-11-05 2021-02-05 杭州米络星科技(集团)有限公司 Expression playing method and device, electronic equipment and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040224A (en) * 2021-11-05 2022-02-11 中国联合网络通信集团有限公司 Method, device and equipment for acquiring reverse video and readable storage medium
CN115866350A (en) * 2022-11-28 2023-03-28 重庆紫光华山智安科技有限公司 Video reverse playing method and device, electronic equipment and storage medium
CN115866350B (en) * 2022-11-28 2024-04-12 重庆紫光华山智安科技有限公司 Video reverse playing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113542856B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
CN111147606B (en) Data transmission method, device, terminal and storage medium
CN113542856B (en) Method, device, equipment and computer readable medium for reverse playing of online video
CN110545472B (en) Video data processing method and device, electronic equipment and computer readable medium
CN112135169A (en) Media content loading method, device, equipment and medium
CN111629251A (en) Video playing method and device, storage medium and electronic equipment
CN112203151B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN112199174A (en) Message sending control method and device, electronic equipment and computer readable storage medium
CN111818383B (en) Video data generation method, system, device, electronic equipment and storage medium
CN112423140A (en) Video playing method and device, electronic equipment and storage medium
CN114095671A (en) Cloud conference live broadcast system, method, device, equipment and medium
CN113891132A (en) Audio and video synchronization monitoring method and device, electronic equipment and storage medium
CN113794942B (en) Method, apparatus, system, device and medium for switching view angle of free view angle video
CN113364767B (en) Streaming media data display method and device, electronic equipment and storage medium
CN111478916B (en) Data transmission method, device and storage medium based on video stream
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
CN112929240A (en) Method, device, terminal and non-transitory storage medium for acquiring communication delay time
CN112291573B (en) Live stream pushing method and device, electronic equipment and computer readable medium
CN112887742B (en) Live stream processing method, device, equipment and storage medium
CN112153322B (en) Data distribution method, device, equipment and storage medium
CN113364672B (en) Method, device, equipment and computer readable medium for determining media gateway information
CN113495712A (en) Automatic volume adjustment method, apparatus, medium, and device
CN113115074B (en) Video jamming processing method and device
CN114979762B (en) Video downloading and transmitting method and device, terminal equipment, server and medium
CN113556352B (en) Information pushing method and device, terminal equipment and storage medium
CN112995780B (en) Network state evaluation method, device, equipment and storage medium

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