WO2017202060A1 - 一种视频播放方法及装置 - Google Patents

一种视频播放方法及装置 Download PDF

Info

Publication number
WO2017202060A1
WO2017202060A1 PCT/CN2017/073341 CN2017073341W WO2017202060A1 WO 2017202060 A1 WO2017202060 A1 WO 2017202060A1 CN 2017073341 W CN2017073341 W CN 2017073341W WO 2017202060 A1 WO2017202060 A1 WO 2017202060A1
Authority
WO
WIPO (PCT)
Prior art keywords
gop packet
gop
timestamp
frame
packet
Prior art date
Application number
PCT/CN2017/073341
Other languages
English (en)
French (fr)
Inventor
黄华东
夏伟强
王伟
林起芊
Original Assignee
杭州海康威视数字技术股份有限公司
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 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2017202060A1 publication Critical patent/WO2017202060A1/zh

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/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • 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/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • 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/4333Processing operations in response to a pause request
    • 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
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Definitions

  • the present application relates to the field of video playback technologies, and in particular, to a video playback method and apparatus.
  • Video data is typically stored in the form of I-frames, P-frames, and B-frames, where an I-frame records a complete video image, and P-frames and B-frames record image changes relative to a video image of an I-frame.
  • the process of video playback of already saved video data generally includes the following steps:
  • the video data stored in the electronic device can be played back and inverted.
  • the playback and playback of the video data not only provide image data for the forensic of the event, but also for the user to repeatedly view the interest.
  • the event fragment provides a convenient way to clearly grasp the event process.
  • the process of video data playback is the same as the above process.
  • the time sequence from the video playback request starts from the morning to the night.
  • the process of video data reversal is similar to the above process, and the difference is Step 3 is to determine the last I frame adjacent to the I frame, and when playing the found video data, start from the late to the early end of the video playback request.
  • the video segment in which the event is located may only be a moment, but it is always necessary to find the corresponding I frame by looking up the data of each frame by time stamp. Therefore, This method is time consuming, when the video data is large, the efficiency is low, and the video image obtained by the difference calculation generates distortion.
  • the purpose of the embodiments of the present application is to provide a video playing method and apparatus, so as to achieve the purpose of quickly positioning video data and playing a more realistic video image.
  • the specific technical solutions are as follows:
  • a video playing method is applied to an electronic device, where the video data in the form of a picture group GOP packet is stored, and the method includes:
  • the process for the electronic device to store video data in the form of a GOP packet includes:
  • the video frame between the I frame and the next I frame and the I frame are stored as one GOP packet, and the GOP packet is recorded in the a storage location in the electronic device, a timestamp corresponding to the I frame in the GOP packet as a timestamp of the GOP packet, a timestamp of the GOP packet, and the GOP packet in the electronic device
  • the storage location is correspondingly stored in the database
  • the timestamp corresponding to the I frame in the GOP packet is used as a timestamp of the GOP packet, and the timestamp of the GOP packet and the storage location of the GOP packet in the electronic device are stored correspondingly In the database.
  • the sending the acquired GOP packet to the player for playing includes:
  • the method further includes:
  • the next timestamp of the target timestamp is used as a new target timestamp
  • sending the acquired GOP packet to the player for playing includes:
  • the method further includes:
  • the last timestamp of the target timestamp is used as a new target timestamp
  • a video playback device is applied to an electronic device, wherein the electronic device stores video data in the form of a picture group GOP packet, and the device includes:
  • a receiving module configured to receive a video play request
  • a lookup module for using data in the target timestamp in the received video play request Storing, in the database, a storage location of the GOP packet corresponding to the target timestamp, wherein the database stores a timestamp of each GOP packet and a storage location of each GOP packet in the electronic device;
  • the first sending module is configured to acquire a GOP packet corresponding to the target timestamp in the electronic device according to the found storage location, and send the acquired GOP packet to the player for playing.
  • the video module is configured to store video data in the form of a GOP packet, where the storage module is specifically configured to:
  • the video frame between the I frame and the next I frame and the I frame are stored as one GOP packet, and the GOP packet is recorded in the a storage location in the electronic device, a timestamp corresponding to the I frame in the GOP packet as a timestamp of the GOP packet, a timestamp of the GOP packet, and the GOP packet in the electronic device
  • the storage location is correspondingly stored in the database
  • the timestamp corresponding to the I frame in the GOP packet is used as a timestamp of the GOP packet, and the timestamp of the GOP packet and the storage location of the GOP packet in the electronic device are stored correspondingly In the database.
  • the first sending module is specifically configured to:
  • the GOP packet corresponding to the target time stamp is acquired in the electronic device according to the found storage location, and the acquired GOP packet is sent to the player, so that The player parses the GOP packet and plays the parsed video frame in a positive sequence.
  • the device further includes:
  • a first determining module configured to: when the user stops the play request, does not receive the next timestamp of the target timestamp as a new target timestamp;
  • a second sending module configured to search, in the database, the new target timestamp The storage location of the GOP packet in the electronic device, obtaining a corresponding GOP packet according to the found storage location, and transmitting the obtained GOP packet to the player, so that the player parses the received GOP packet. And the parsed video frame is played in the correct order.
  • the first sending module is specifically configured to:
  • the GOP packet corresponding to the target time stamp is acquired in the electronic device according to the found storage location, and the acquired GOP packet is sent to the player, so that The player parses the GOP packet and plays the parsed video frame in reverse order.
  • the device further includes:
  • a second determining module configured to: when a stop play request of the user is not received, the last timestamp of the target timestamp is used as a new target timestamp;
  • a third sending module configured to search, in the database, a storage location of the GOP packet corresponding to the new target timestamp in the electronic device, obtain a corresponding GOP packet according to the found storage location, and obtain The GOP packet is sent to the player, so that the player parses the received GOP packet and plays the parsed video frame in reverse order.
  • the present application also provides an electronic device comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; a power circuit for powering each circuit or device; a memory for storing executable program code; the processor running a program corresponding to the executable program code by reading executable program code stored in the memory for execution of the program
  • the video playing method provided by the embodiment is applied.
  • the embodiment of the present application provides an application program, which is used to execute the video playing method provided by the embodiment of the present application at runtime.
  • the embodiment of the present application provides a storage medium for storing executable program code, and the executable program code is executed to execute the video playing method provided by the embodiment of the present application.
  • a video playing method and apparatus provided by an embodiment of the present application since the timestamp of each GOP packet and the storage location of each GOP packet in the electronic device are stored in the database in the embodiment of the present application, when the target is received After the timestamp, the storage location of the corresponding GOP packet can be found according to the target timestamp, thereby improving the query efficiency of the GOP packet, thereby improving the efficiency of video playback.
  • the information of the complete video image is stored in each GOP packet, so that the authenticity of the subsequent video playback can be ensured. It is not necessary for any of the products or methods of the present application to achieve all of the advantages described above.
  • FIG. 1 is a schematic flowchart of a video playing method according to an embodiment of the present disclosure
  • FIG. 2 is another schematic flowchart of a video playing method according to an embodiment of the present application.
  • FIG. 3 is another schematic flowchart of a video playing method according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a video playing device according to an embodiment of the present disclosure.
  • the embodiment of the present application provides a video playing method and apparatus.
  • a video playing method provided by the embodiment of the present application is first introduced.
  • a video playing method provided by an embodiment of the present application is applied to an electronic device.
  • the electronic device can be a camera with a screen, a mobile phone, a tablet, a desktop computer, a laptop computer, etc., which is reasonable.
  • a video playing method is provided in an electronic device, where the video data in the form of a group of pictures (GOP) is stored in the electronic device, and the method includes:
  • the user can click a position in the time progress bar of the player according to his own needs to issue a video play request, and the electronic device receives the video play request sent by the user for subsequent steps.
  • the video play request carries a target timestamp, and the target timestamp may be a time point corresponding to the location in the time progress bar of the user click.
  • S102 Search for a storage location of the GOP packet corresponding to the target timestamp in the database according to the target timestamp in the received video play request.
  • the time stamp of each GOP packet and the storage location of each GOP packet in the electronic device are stored in the database.
  • the target timestamp can be searched in the database according to the target timestamp in the video playback request sent by the user.
  • the same timestamp when found, determines the storage location of the GOP packet corresponding to the found timestamp in the electronic device, and determines the storage location as the storage location of the GOP packet corresponding to the target timestamp. Since there is no need to traverse the data of each frame of image, the database is faster to find, so this process reduces the time consuming.
  • S103 Acquire a GOP packet corresponding to the target timestamp in the electronic device according to the found storage location, and send the acquired GOP packet to the player for playing.
  • the GOP packet at the storage location is found in the video data stored in the electronic device, and the GOP packet is sent to the player.
  • the player may be a local player of the electronic device or a player in an independent playing device.
  • the player When receiving the GOP packet, the player parses the GOP packet, puts the parsed video frame into the player's memory, and then draws the video frame in the memory to the player's play window for playing.
  • the I frame, B frame and P frame in the GOP packet can decode the complete video image, the image is not analyzed by the difference calculation, and the image distortion is not generated, so each video played in the player's play window is played. Images are complete and realistic images.
  • each GOP package is stored in the database in the embodiment of the present application
  • the timestamp and the storage location of each GOP packet in the electronic device so that after receiving the target timestamp, the storage location of the corresponding GOP packet can be searched according to the target timestamp, thereby improving the query efficiency of the GOP packet, thereby improving
  • the information of the complete video image is stored in each GOP packet, so that the authenticity of the subsequent video playback can be ensured.
  • the process of the electronic device storing the video data in the form of a GOP packet may include:
  • the video frame between the I frame and the next I frame and the I frame are stored as a GOP packet, and the storage of the GOP packet in the electronic device is recorded.
  • the timestamp corresponding to the I frame in the GOP packet is used as the timestamp of the GOP packet, and the timestamp of the GOP packet and the storage location of the GOP packet in the electronic device are stored in the database;
  • the I frame and the remaining video frames in the video data are stored as one GOP packet, and the storage location of the GOP packet in the electronic device is recorded, and the GOP is recorded.
  • the timestamp corresponding to the I frame in the packet is used as the timestamp of the GOP packet, and the timestamp of the GOP packet and the storage location of the GOP packet in the electronic device are stored in the database.
  • a GOP package is a set of consecutive pictures.
  • the GOP packet is a sequence set of I frame, P frame and B frame, and there is only one I frame in the sequence set, for example: one GOP packet can be I frame P frame B frame P frame, I frame P frame P frame B frame P frame I frame P frame B frame P frame or I frame B frame P frame P frame.
  • the GOP packet is stored and the storage location of the GOP packet in the electronic device is recorded, and then the next GOP packet is determined, and the determined GOP packets are separately stored into the electronic device.
  • the length of a GOP packet is generally 1 S, it can include 20-30 frames, and the time is short. Therefore, one GOP packet corresponds to one time stamp.
  • the timestamp corresponding to the I frame in the GOP packet is used as the timestamp of the GOP packet, and the timestamp of the GOP packet and the storage location of the GOP packet in the electronic device. The corresponding storage is stored in the database.
  • the video data obtained by the player from any point in time is a complete GOP package.
  • the decoder since each GOP packet starts with an I frame, the decoder does not generate decoding delay or decoding failure when decoding.
  • the process of the electronic device storing the video data in the form of a GOP packet may include:
  • Determining a reference I frame corresponding to the earliest timestamp in the video data determining a next target I frame adjacent to the reference I frame, and using the reference I frame and the video frame between the reference I frame and the target I frame Determining as a GOP packet, storing the GOP packet and recording a storage location of the GOP packet in the electronic device, using a timestamp corresponding to the I frame in the GOP packet as a timestamp of the GOP packet, and a timestamp of the GOP packet And storing the GOP packet in a storage location corresponding to the storage location in the electronic device;
  • the video frame is determined as a GOP packet step. If not, the reference I frame and the remaining video frames in the video data are determined as one GOP packet, the GOP packet is stored, and the storage location of the GOP packet in the electronic device is recorded. The timestamp corresponding to the I frame in the GOP packet is used as the timestamp of the GOP packet, and the timestamp of the GOP packet and the storage location of the GOP packet in the electronic device are stored in the database.
  • the preset video data can be set to a length of 0.5MB.
  • the stored process includes:
  • the reference I frame corresponding to the earliest timestamp in the 0.5 MB video data is I 1
  • the next target I frame I 2 adjacent to I 1 is determined
  • the video between I 1 and I 1 and I 2 is determined.
  • the frame is determined as a GOP packet, that is, I 1 P B PPP B P P B P B P PP B P BP B is determined as a GOP packet
  • the GOP packet is stored and the storage location of the GOP packet in the electronic device is recorded, and the I 1 frame in the GOP packet is corresponding.
  • the timestamp is used as a timestamp of the GOP packet, and the timestamp of the GOP packet is stored in the database corresponding to the storage location of the GOP packet in the electronic device;
  • I 2 is determined as the reference I frame, and it is judged whether or not there is a next target I frame adjacent to I 2 . Since there is an I 3 frame, the video frame between I 2 and I 2 and I 3 is determined as one GOP packet, that is, I 2 PB PPP BPPBPBP PP BP BP B is determined as one GOP packet, the GOP packet is stored and the GOP is recorded. packet storage position in the electronic device, corresponding to the GOP I stamp packet as a time stamp of the GOP 2 packet, and the time stamp of the GOP GOP packet packet stored in the corresponding memory location of the electronic device Into the database;
  • I 3 I frame is determined as a reference, I 3 determines whether there is the next target adjacent I frame, since the I frame next target is not present, and I 3, and the remaining video data frame is determined as a video GOP packets coming I 3 P B P GOP is determined as a packet, stores the packet and records the GOP GOP electronic device package in a storage location, the timestamp GOP package I 3 corresponding to the frame of the GOP as a time stamp packet, Storing the timestamp of the GOP packet and the storage location of the GOP packet in the electronic device in a database;
  • 0.5 MB of video data is stored as 3 GOP packets.
  • the video play request may be a video playback request or a video playback request.
  • sending the acquired GOP packet to the player for playing may include:
  • the obtained GOP packet is sent to the player, so that the player parses the GOP packet, and the parsed video frame is played in the correct order.
  • FIG. 2 the process of performing video playback by applying the embodiment of the present application is shown in FIG. 2 .
  • another process of a video playing method provided by the present application includes:
  • S202 Search for a storage location of the GOP packet corresponding to the target timestamp in the database according to the target timestamp in the received video play request.
  • the database stores the timestamp of each GOP packet and the storage location of each GOP packet in the electronic device.
  • the step S202 is the same as the step S102 shown in FIG. 1 , and details are not described herein again.
  • S203 Acquire a GOP packet corresponding to the target timestamp in the electronic device according to the found storage location, and send the acquired GOP packet to the player, so that the player parses the GOP packet, and the parsed video frame is to be parsed. Positive sequence play.
  • the time is drawn from morning to night to the play window for playback.
  • the player parses out 25 video frames from the GOP packet, and sequentially numbers them from 1 to 25 according to the time of day and night.
  • 25 video frames are drawn to the playback window in order from 1 to 25.
  • the next time stamp of the target time stamp is automatically used as the new target time stamp to perform the subsequent steps.
  • S205 Searching, in the database, a storage location of the GOP packet corresponding to the new target timestamp in the electronic device, obtaining a corresponding GOP packet according to the found storage location, and sending the obtained GOP packet to the player, so that The player parses the received GOP packet and plays the parsed video frame in the correct order.
  • the same timestamp as the new target timestamp can be searched in the database according to the new target timestamp. And determining, when found, a storage location of the GOP packet corresponding to the found timestamp, and determining the storage location as a storage location of the GOP packet corresponding to the new target timestamp. Based on the found storage location, the GOP packet at the storage location is obtained in the electronic device, and the obtained GOP packet is transmitted to the player. The player parses the received GOP packet, and the parsed video frame is drawn from the early to the night to the play window according to the video recording time.
  • the player After the video playback, that is, the player plays a GOP packet in the positive sequence, the next GOP packet of the GOP packet that has been broadcasted is played in the same order.
  • the GOP packet corresponding to the next timestamp is found and the video of the GOP packet corresponding to the next timestamp is obtained in order from morning to night.
  • the frame is drawn to the playback window for playback to complete the video playback.
  • the following shows an example in which the electronic device is a computer and the player is a local player of the computer.
  • the method shown in FIG. 2 is described in detail by using a specific embodiment.
  • the target timestamp is a B timestamp
  • the C timestamp is the next timestamp of the B timestamp
  • 25 video frames can be parsed in each GOP packet according to time.
  • the number of the GOP packets corresponding to the B timestamp is found in the database after the video playback request is received, and the GOP packet corresponding to the B timestamp is obtained in the electronic device according to the found storage location.
  • the local player parses out 25 video frames in the GOP packet corresponding to the B timestamp, and draws the 25 video frames into the play window of the local player in order from 1 to 25, and completes the GOP corresponding to the B timestamp. The play of the package.
  • the C timestamp is used as the new target timestamp, and the storage location of the GOP packet corresponding to the C timestamp in the electronic device is found in the database.
  • the GOP packet corresponding to the C timestamp is obtained according to the found storage location, and the obtained GOP packet is sent to the local player.
  • the local player parses out 25 video frames in the GOP packet corresponding to the C timestamp, and draws the 25 video frames into the play window of the local player in order from 1 to 25, and completes the GOP corresponding to the C timestamp. The play of the package.
  • sending the acquired GOP packet to the player for playing may include:
  • the obtained GOP packet is sent to the player to enable the player to parse the GOP packet, and the parsed video frame is played back in reverse.
  • another process of a video playing method provided by the present application includes:
  • S302 Search for a storage location of the GOP packet corresponding to the target timestamp in the database according to the target timestamp in the received video play request.
  • the database stores the timestamp of each GOP packet and the storage location of each GOP packet in the electronic device.
  • the step S302 is the same as the step S102 shown in FIG. 1 , and details are not described herein again.
  • S303 Acquire a GOP packet corresponding to the target timestamp in the electronic device according to the found storage location, and send the acquired GOP packet to the player, so that the player parses the GOP packet, and the parsed video frame is parsed. Play in reverse order.
  • the time is drawn from late to early to the playback window for playback.
  • the player parses out 25 video frames from the GOP packet, and sequentially numbers them from 1 to 25 according to the time of day and night.
  • the playback is to play 25 video frames in the order from 25 to 1 to the playback window for playback.
  • the last time stamp of the target time stamp is automatically used as the target time stamp to perform the subsequent steps.
  • S305 Searching, in the database, a storage location of the GOP packet corresponding to the new target timestamp in the electronic device, obtaining a corresponding GOP packet according to the found storage location, and sending the obtained GOP packet to the player, so that The player parses the received GOP packet and plays the parsed video frame in reverse order.
  • the same timestamp as the new target timestamp can be searched in the database according to the new target timestamp. And determining, when found, a storage location of the GOP packet corresponding to the found timestamp, and determining the storage location as a storage location of the GOP packet corresponding to the new target timestamp. Based on the found storage location, the GOP packet at the storage location is obtained in the electronic device, and the GOP packet is sent to the player. The player parses the received GOP packet, and the parsed video frame is drawn from the late to the early to the playback window according to the video recording time.
  • the player plays back a GOP packet in reverse order, and then plays the last GOP packet of the GOP packet that has been broadcasted in reverse order.
  • the GOP packet corresponding to the previous timestamp is found and the video of the GOP packet corresponding to the previous timestamp is in the order from late to early.
  • the frame is drawn to the playback window for playback and the video is reversed.
  • the following shows an example in which the electronic device is a computer and the player is a local player of the computer.
  • the method shown in FIG. 3 is described in detail by using a specific embodiment.
  • receiving a video playback request wherein the target timestamp is a B timestamp
  • the A timestamp is the last timestamp of the B timestamp
  • 25 video frames can be parsed in each GOP packet, according to The time is sooner or later, the number is 1 to 25, and after receiving the video playback request, the storage location of the GOP packet corresponding to the B timestamp is found in the database, and the GOP corresponding to the B timestamp is obtained in the electronic device according to the found storage location.
  • the local player parses out 25 video frames in the GOP packet corresponding to the B timestamp, and draws the 25 video frames into the play window of the local player in order from 25 to 1, and completes the GOP corresponding to the B timestamp.
  • the play of the package During the playing of the GOP packet, if the stop play request of the user is not received, the A timestamp is used as the new target timestamp, and the storage location of the GOP packet corresponding to the A timestamp in the electronic device is found in the database.
  • the GOP packet corresponding to the A timestamp is obtained according to the found storage location, and the obtained GOP packet is sent to the local player.
  • the local player parses out 25 video frames in the GOP packet corresponding to the A timestamp, and draws the 25 video frames into the play window of the local player in the order of 25 to 1 to play, and completes the GOP packet corresponding to the A timestamp. Play.
  • the embodiment of the present application further provides a video playing device, which is applied to an electronic device, where the video data in the form of a picture group GOP packet is stored, as shown in FIG. 4, the device may include :
  • the receiving module 401 is configured to receive a video play request.
  • the searching module 402 is configured to search, in the database, the storage location of the GOP packet corresponding to the target timestamp according to the target timestamp in the received video playback request, where the timestamp of each GOP packet is stored in the database. And a storage location of each GOP packet in the electronic device;
  • the first sending module 403 is configured to acquire a GOP packet corresponding to the target time stamp in the electronic device according to the found storage location, and send the acquired GOP packet to the player for playing.
  • the target time stamp may be received according to the target time. Searching for the storage location of the corresponding GOP packet, thereby improving the query efficiency of the GOP packet, thereby improving the efficiency of video playback.
  • the complete video image information is stored in each GOP packet. Therefore, the authenticity of subsequent video playback can be guaranteed.
  • the storage module stores video data in the form of a GOP packet, and the storage module may be specifically configured to:
  • the video frame between the I frame and the next I frame and the I frame are stored as a GOP packet, and the storage of the GOP packet in the electronic device is recorded.
  • the timestamp corresponding to the I frame in the GOP packet is used as the timestamp of the GOP packet, and the timestamp of the GOP packet and the storage location of the GOP packet in the electronic device are stored in the database;
  • the I frame and the remaining video frames in the video data are stored as one GOP packet, and the storage location of the GOP packet in the electronic device is recorded, and the GOP is recorded.
  • the timestamp corresponding to the I frame in the packet is used as the timestamp of the GOP packet, and the timestamp of the GOP packet and the storage location of the GOP packet in the electronic device are stored in the database.
  • the first sending module 403 may be specifically configured to:
  • the GOP packet corresponding to the target time stamp is acquired in the electronic device according to the found storage location, and the obtained GOP packet is sent to the player, so that the player pair
  • the GOP packet is parsed, and the parsed video frame is played in the correct order.
  • the apparatus may further include:
  • a first determining module configured to: when the user stops the play request, does not receive the next timestamp of the target timestamp as a new target timestamp;
  • a second sending module configured to search, in the database, a storage location of the GOP packet corresponding to the new target timestamp in the electronic device, obtain a corresponding GOP packet according to the found storage location, and obtain the obtained GOP packet Send to the player, so that the player parses the received GOP packet and plays the parsed video frame in the correct order.
  • the GOP packet corresponding to the next timestamp is found and the video of the GOP packet corresponding to the next timestamp is obtained in order from morning to night.
  • the frame is drawn to the playback window for playback to complete the video playback.
  • the first sending module 403 may be specifically configured to:
  • the GOP packet corresponding to the target time stamp is obtained in the electronic device according to the found storage location, and the acquired GOP packet is sent to the player, so that the player The GOP packet is parsed, and the parsed video frame is played back in reverse.
  • the apparatus may further include:
  • a second determining module configured to use the last timestamp of the target timestamp as a new target timestamp if the user stops the play request during the playing of the GOP packet;
  • a third sending module configured to search, in the database, a storage location of the GOP packet corresponding to the new target timestamp in the electronic device, obtain a corresponding GOP packet according to the found storage location, and obtain the obtained GOP packet Send to the player, so that the player parses the received GOP packet and plays the parsed video frame in reverse order.
  • the GOP packet corresponding to the previous timestamp is found and the GOP corresponding to the previous timestamp is in the order from late to early.
  • the video frame of the package is drawn to the playback window for playback to complete the video playback.
  • the embodiment of the present application further provides an electronic device, including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and the processor and the memory are disposed on the circuit board.
  • a power supply circuit for supplying power to each circuit or device; a memory for storing executable program code; and a processor for executing a program corresponding to the executable program code by reading executable program code stored in the memory for use in
  • the video playing method provided by the embodiment of the present application, where the video playing method may include:
  • the target time stamp may be received according to the target time. Searching for the storage location of the corresponding GOP packet, thereby improving the query efficiency of the GOP packet, thereby improving the efficiency of video playback.
  • the complete video image information is stored in each GOP packet. Therefore, the authenticity of subsequent video playback can be guaranteed.
  • the embodiment of the present application provides an application program, which is used to execute the video playing method provided by the embodiment of the present application at runtime.
  • the video playing method may include:
  • each GOP package is stored in the database in the embodiment of the present application
  • the timestamp and the storage location of each GOP packet in the electronic device so that after receiving the target timestamp, the storage location of the corresponding GOP packet can be searched according to the target timestamp, thereby improving the query efficiency of the GOP packet, thereby improving
  • the information of the complete video image is stored in each GOP packet, so that the authenticity of the subsequent video playback can be ensured.
  • the embodiment of the present application provides a storage medium for storing executable program code, and the executable program code is executed to execute the video playing method provided by the embodiment of the present application.
  • the video playing method may include:
  • the target time stamp may be received according to the target time. Searching for the storage location of the corresponding GOP packet, thereby improving the query efficiency of the GOP packet, thereby improving the efficiency of video playback.
  • the complete video image information is stored in each GOP packet. Therefore, the authenticity of subsequent video playback can be guaranteed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本申请实施例提供了一种视频播放方法及装置,该方法中,接收视频播放请求,根据所接收到的视频播放请求中的目标时间戳,在数据库中查找目标时间戳对应的GOP包的存储位置,其中,数据库中存储有每个GOP包的时间戳和每个GOP包在所述电子设备中的存储位置,根据所查找到的存储位置在电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器播放。由于本申请在数据库中存储每个GOP包的时间戳和每个GOP包在电子设备中的存储位置,因此当接收到目标时间戳后根据该目标时间戳查找其对应的GOP包的存储位置,提高GOP包的查询效率,进而提高视频播放的效率,另外,在本申请中每个GOP包存储有完整的视频图像的信息,因此可保证后续视频播放的真实性。

Description

一种视频播放方法及装置
本申请要求于2016年5月24日提交中国专利局、申请号为201610347663.X发明名称为“一种视频播放方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及视频播放技术领域,特别是涉及一种视频播放方法及装置。
背景技术
视频数据通常是以I帧、P帧和B帧的形式存储的,其中,I帧记录的是完整的视频图像,P帧和B帧记录的是相对于I帧的视频图像的图像变化。目前,对已经保存的视频数据进行视频播放的过程通常包括如下步骤:
1、接收视频播放请求;
2、根据视频播放请求中的时间戳,查找已经保存的视频数据中与该时间戳对应的I帧;
3、确定与该I帧相邻的下一个I帧;
4、获得视频数据中两个I帧之间的差值,确定两个I帧之间的P帧和/或B帧的图像并播放。
实际应用中,例如安防监控系统,在视频监控过程中保存了大量的视频数据。当用户需要查看感兴趣的事件片段时,可对电子设备中存储的视频数据进行回放和倒放,视频数据的回放和倒放不仅为事件的取证提供了影像数据,而且为用户反复查看感兴趣的事件片段以清晰掌握事件过程提供了方便。
其中,视频数据回放的过程与上述过程相同,播放查找到的视频数据时,从视频播放请求中的时间戳开始从早往晚正序播放;视频数据倒放的过程与上述过程相似,区别为步骤3为确定与该I帧相邻的上一个I帧,播放查找到的视频数据时,从视频播放请求中的时间戳开始从晚往早倒序播放。
在视频数据回放或倒放过程中,事件所在的视频片段可能只有一瞬间,但是始终需要通过时间戳查找每一帧图像的数据,才能找到对应的I帧,因此, 该方法比较耗时,当视频数据较大时,效率较低,并且通过差值计算得到的视频图像会产生失真。
发明内容
本申请实施例的目的在于提供一种视频播放方法及装置,以实现快速定位视频数据,播放更真实视频图像的目的。具体技术方案如下:
一种视频播放方法,应用于电子设备,所述电子设备中存储有画面组GOP包形式的视频数据,所述方法包括:
接收视频播放请求;
根据所接收到的视频播放请求中的目标时间戳,在数据库中查找所述目标时间戳对应的GOP包的存储位置,其中,所述数据库中存储有每个GOP包的时间戳和每个GOP包在所述电子设备中的存储位置;
根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器播放。
可选的,所述电子设备存储GOP包形式的视频数据的过程包括:
针对电子设备接收到的视频数据中的每个I帧,判断是否存在与其相邻的下一个I帧:
如果存在与所述I帧相邻的下一个I帧,将所述I帧和所述下一个I帧之间的视频帧以及所述I帧作为一个GOP包存储,记录所述GOP包在所述电子设备中的存储位置,将所述GOP包中的I帧对应的时间戳作为所述GOP包的时间戳,将所述GOP包的时间戳和所述GOP包在所述电子设备中的存储位置对应存储至所述数据库中;
如果不存在与所述I帧相邻的下一个I帧,将所述I帧以及所述视频数据中剩余的视频帧作为一个GOP包存储,记录所述GOP包在所述电子设备中的存储位置,将所述GOP包中的I帧对应的时间戳作为所述GOP包的时间戳,将所述GOP包的时间戳和所述GOP包在所述电子设备中的存储位置对应存储至所述数据库中。
可选的,当所述视频播放请求为视频回放请求时,所述将获取的GOP包发送给播放器播放包括:
将获取的GOP包发送给播放器,以使所述播放器对所述GOP包进行解析,并将解析出的视频帧正序播放。
可选的,所述方法还包括:
在所述GOP包播放过程中,如果未接收到用户的停止播放请求,则将所述目标时间戳的下一时间戳作为新的目标时间戳;
在所述数据库中查找所述新的目标时间戳对应的GOP包在所述电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使所述播放器对接收到的GOP包进行解析,并将解析出的视频帧正序播放。
可选的,当所述视频播放请求为视频倒放请求时,所述将获取的GOP包发送给播放器播放包括:
将获取的GOP包发送给播放器,以使所述播放器对所述GOP包进行解析,并将解析出的视频帧倒序播放。
可选的,所述方法还包括:
在所述GOP包播放过程中,如果未接收到用户的停止播放请求,则将所述目标时间戳的上一时间戳作为新的目标时间戳;
在所述数据库中查找所述新的目标时间戳对应的GOP包在所述电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使所述播放器对接收到的GOP包进行解析,并将解析出的视频帧倒序播放。
一种视频播放装置,应用于电子设备,所述电子设备中存储有画面组GOP包形式的视频数据,所述装置包括:
接收模块,用于接收视频播放请求;
查找模块,用于根据所接收到的视频播放请求中的目标时间戳,在数据 库中查找所述目标时间戳对应的GOP包的存储位置,其中,所述数据库中存储有每个GOP包的时间戳和每个GOP包在所述电子设备中的存储位置;
第一发送模块,用于根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器播放。
可选的,通过储存模块存储GOP包形式的视频数据,所述储存模块,具体用于:
针对电子设备接收到的视频数据中的每个I帧,判断是否存在与其相邻的下一个I帧:
如果存在与所述I帧相邻的下一个I帧,将所述I帧和所述下一个I帧之间的视频帧以及所述I帧作为一个GOP包存储,记录所述GOP包在所述电子设备中的存储位置,将所述GOP包中的I帧对应的时间戳作为所述GOP包的时间戳,将所述GOP包的时间戳和所述GOP包在所述电子设备中的存储位置对应存储至所述数据库中;
如果不存在与所述I帧相邻的下一个I帧,将所述I帧以及所述视频数据中剩余的视频帧作为一个GOP包存储,记录所述GOP包在所述电子设备中的存储位置,将所述GOP包中的I帧对应的时间戳作为所述GOP包的时间戳,将所述GOP包的时间戳和所述GOP包在所述电子设备中的存储位置对应存储至所述数据库中。
可选的,所述第一发送模块,具体用于:
当所述视频播放请求为视频回放请求时,根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器,以使所述播放器对所述GOP包进行解析,并将解析出的视频帧正序播放。
可选的,所述装置还包括:
第一确定模块,用于在所述GOP包播放过程中,如果未接收到用户的停止播放请求,则将所述目标时间戳的下一时间戳作为新的目标时间戳;
第二发送模块,用于在所述数据库中查找所述新的目标时间戳对应的 GOP包在所述电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使所述播放器对接收到的GOP包进行解析,并将解析出的视频帧正序播放。
可选的,所述第一发送模块,具体用于:
当所述视频播放请求为视频倒放请求时,根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器,以使所述播放器对所述GOP包进行解析,并将解析出的视频帧倒序播放。
可选的,所述装置还包括:
第二确定模块,用于在所述GOP包播放过程中,如果未接收到用户的停止播放请求,则将所述目标时间戳的上一时间戳作为新的目标时间戳;
第三发送模块,用于在所述数据库中查找所述新的目标时间戳对应的GOP包在所述电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使所述播放器对接收到的GOP包进行解析,并将解析出的视频帧倒序播放。
本申请还提供了一种电子设备,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行本申请实施例所提供的视频播放方法。
本申请实施例提供了一种应用程序,该应用程序用于在运行时执行本申请实施例提供的视频播放方法。
本申请实施例提供了一种存储介质,所述存储介质用于存储可执行程序代码,所述可执行程序代码被运行以执行本申请实施例提供的视频播放方法。
本申请实施例提供的一种视频播放方法及装置,由于本申请实施例中在数据库中存储有每个GOP包的时间戳和每个GOP包在电子设备中的存储位置,因此当接收到目标时间戳后可以根据该目标时间戳查找其对应的GOP包的存储位置,从而提高了GOP包的查询效率,进而提高了视频播放的效率,另外, 在本申请实施例中每个GOP包中存储有完整的视频图像的信息,因此可以保证后续视频播放的真实性。实施本申请的任一产品或方法不一定需要同时达到以上所述的所有优点。
附图说明
为了更清楚地说明本申请实施例和相关技术的技术方案,下面对实施例和相关技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种视频播放方法的流程示意图;
图2为本申请实施例提供的一种视频播放方法的另一流程示意图;
图3为本申请实施例提供的一种视频播放方法的另一流程示意图;
图4为本申请实施例提供的一种视频播放装置的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
为了解决相关技术问题,本申请实施例提供了一种视频播放方法及装置。
下面首先对本申请实施例所提供的一种视频播放方法进行介绍。
需要说明的是,本申请实施例所提供的一种视频播放方法应用于电子设备。该电子设备可以为带屏幕的摄像机、手机、平板电脑、台式机和笔记本电脑等,这都是合理的。
如图1所示,本申请实施例提供的一种视频播放方法,应用于电子设备,该电子设备中存储有GOP(Group of Pictures,画面组)包形式的视频数据,该方法包括:
S101:接收视频播放请求。
在实际应用中,用户可以根据自身的需求,点击播放器中时间进度条中的某个位置,以发出视频播放请求,电子设备接收用户发出的视频播放请求,以便进行后续步骤。
其中,视频播放请求中携带目标时间戳,该目标时间戳可以为用户点击的时间进度条中位置对应的时间点。
S102:根据所接收到的视频播放请求中的目标时间戳,在数据库中查找该目标时间戳对应的GOP包的存储位置。
其中,数据库中存储有每个GOP包的时间戳和每个GOP包在电子设备中的存储位置。
由于数据库中存储有每个GOP包的时间戳和每个GOP包在电子设备中的存储位置,因此,可以根据用户发出的视频播放请求中的目标时间戳,在数据库中查找与该目标时间戳相同的时间戳,当查找到时,确定该查找到的时间戳对应的GOP包在电子设备中的存储位置,将该存储位置确定为目标时间戳对应的GOP包的存储位置。由于无需遍历每帧图像的数据,所以,查找数据库速度较快,因此此过程减少了耗时。
S103:根据所查找到的存储位置在电子设备中获取该目标时间戳对应的GOP包,并将获取的GOP包发送给播放器播放。
根据查找到的存储位置,在电子设备中存储的视频数据中查找到该存储位置上的GOP包,并且将该GOP包发送到播放器。其中,播放器可以为该电子设备本地播放器,也可以为独立的播放设备中的播放器。
播放器在接收到该GOP包时,对该GOP包进行解析,将解析出的视频帧放入播放器的内存中,然后将内存中的视频帧绘制到播放器的播放窗口进行播放。其中,由于GOP包中的I帧、B帧和P帧都可以解码出完整的视频图像,无需通过差值计算解析图像,不会产生图像失真,所以播放器的播放窗口中播放的每幅视频图像都是完整且真实的图像。
与相关技术相比,由于本申请实施例中在数据库中存储有每个GOP包的 时间戳和每个GOP包在电子设备中的存储位置,因此当接收到目标时间戳后可以根据该目标时间戳查找其对应的GOP包的存储位置,从而提高了GOP包的查询效率,进而提高了视频播放的效率,另外,在本申请实施例中每个GOP包中存储有完整的视频图像的信息,因此可以保证后续视频播放的真实性。
本实施例中,电子设备存储GOP包形式的视频数据的过程可以包括:
针对电子设备接收到的视频数据中的每个I帧,判断是否存在与其相邻的下一个I帧:
如果存在与该I帧相邻的下一个I帧,将该I帧和该下一个I帧之间的视频帧以及该I帧作为一个GOP包存储,记录该GOP包在该电子设备中的存储位置,将该GOP包中的I帧对应的时间戳作为该GOP包的时间戳,将该GOP包的时间戳和该GOP包在电子设备中的存储位置对应存储至该数据库中;
如果不存在与该I帧相邻的下一个I帧,将该I帧以及该视频数据中剩余的视频帧作为一个GOP包存储,记录该GOP包在该电子设备中的存储位置,将该GOP包中的I帧对应的时间戳作为该GOP包的时间戳,将该GOP包的时间戳和该GOP包在电子设备中的存储位置对应存储至该数据库中。
其中,一个GOP包就是一组连续的画面。GOP包为I帧、P帧和B帧的序列集合,并且序列集合中只有一个I帧,例如:一个GOP包可以为I帧P帧B帧P帧、I帧P帧P帧B帧P帧、I帧P帧B帧P帧或I帧B帧P帧P帧。当确定一个GOP包后,存储该GOP包并记录该GOP包在电子设备中的存储位置,然后再继续确定下一个GOP包,将确定的GOP包一个一个分别存储到电子设备中。
由于一个GOP包的时间长度一般为1S,可以包括20-30帧,时间较短,因此,一个GOP包对应一个时间戳。本实施例中在确定一个GOP包后,就将该GOP包中的I帧对应的时间戳作为该GOP包的时间戳,将该GOP包的时间戳和该GOP包在电子设备中的存储位置对应存储至数据库中。
由于每个GOP包和其对应的原始视频数据的数据长度和数据值是一致的,且各GOP包之间没有间隙,因此,在将视频数据存储为GOP包形式时不会出现视频数据丢失的现象。
将视频数据以GOP包的形式存储,具有如下优势:
一、播放器从任意时间点得到的视频数据都是一个完整的GOP包。
二、由于每个GOP包都以I帧开头,因此播放器解码时不会产生解码延时或解码失败的情况。
三、当电子设备对视频流这种源源不断的视频数据进行播放时,不会产生单个视频文件过大的问题。
另外,在本申请的另一种实现方式中,电子设备存储GOP包形式的视频数据的过程可以包括:
当电子设备接收的视频数据达到预设长度时,对接收的视频数据执行如下步骤:
确定该视频数据中最早的时间戳对应的参考I帧,确定与该参考I帧相邻的下一个目标I帧,将该参考I帧及该参考I帧与该目标I帧之间的视频帧确定为一个GOP包,存储该GOP包并记录该GOP包在电子设备中的存储位置,将该GOP包中的I帧对应的时间戳作为该GOP包的时间戳,将该GOP包的时间戳和该GOP包在电子设备中的存储位置对应存储至数据库中;
将该目标I帧确定为参考I帧,判断是否存在与该参考I帧相邻的下一个目标I帧,如果是,返回执行将该参考I帧及该参考I帧与该目标I帧之间的视频帧确定为一个GOP包的步骤,如果否,将该参考I帧及该视频数据中剩余的视频帧确定为一个GOP包,存储该GOP包并记录该GOP包在电子设备中的存储位置,将该GOP包中的I帧对应的时间戳作为该GOP包的时间戳,将该GOP包的时间戳和该GOP包在电子设备中的存储位置对应存储至数据库中。
下面通过一个具体实施例对上述过程进行详细描述:
例如:可以设置预设视频数据的长度为0.5MB。当电子设备接收的视频数据达到0.5MB时,其中,该0.5MB视频数据包括I1P B PPP B P PBPBPPP B P BP B I2P B PPP B P P B P B P PP B P BP BI3P B P,存储的过程包括:
首先,确定该0.5MB视频数据中最早的时间戳对应的参考I帧即I1,确定与I1相邻的下一个目标I帧I2,将I1及I1与I2之间的视频帧确定为一个GOP包,即将I1P B PPP B P P B P B P PP B P BP B确定为一个GOP包,存储该GOP包并记录 该GOP包在电子设备中的存储位置,将该GOP包中的I1帧对应的时间戳作为该GOP包的时间戳,将该GOP包的时间戳和该GOP包在电子设备中的存储位置对应存储至数据库中;
然后,将I2确定为参考I帧,判断是否存在与I2相邻的下一个目标I帧。由于存在I3帧,将I2及I2与I3之间的视频帧确定为一个GOP包,即将I2P B PPP B P P B P B P PP B P BP B确定为一个GOP包,存储该GOP包并记录该GOP包在电子设备中的存储位置,将该GOP包中的I2帧对应的时间戳作为该GOP包的时间戳,将该GOP包的时间戳和该GOP包在电子设备中的存储位置对应存储至数据库中;
最后,将I3确定为参考I帧,判断是否存在与I3相邻的下一个目标I帧,由于未存在下一个目标I帧,将及I3及视频数据中剩余的视频帧确定为一个GOP包即将I3P B P确定为一个GOP包,存储该GOP包并记录该GOP包在电子设备中的存储位置,将该GOP包中的I3帧对应的时间戳作为该GOP包的时间戳,将该GOP包的时间戳和该GOP包在电子设备中的存储位置对应存储至数据库中;
由此,将0.5MB的视频数据存储为3个GOP包。
在本申请实施例中,视频播放请求可以为视频回放请求也可以为视频倒放请求。
当视频播放请求为视频回放请求时,将获取的GOP包发送给播放器播放可以包括:
将获取的GOP包发送给播放器,以使该播放器对该GOP包进行解析,将解析出的视频帧正序播放。
详细的,应用本申请实施例进行视频回放的过程参见图2。
如图2所示,本申请提供的一种视频播放方法的另一流程,包括:
S201:接收视频回放请求。
接收用户发出的视频回放请求,以便进行后续步骤。
S202:根据所接收到的视频播放请求中的目标时间戳,在数据库中查找该目标时间戳对应的GOP包的存储位置。
其中,该数据库中存储有每个GOP包的时间戳和每个GOP包在电子设备中的存储位置。
其中,步骤S202与图1所示步骤S102相同,在此不再赘述。
S203:根据所查找到的存储位置在电子设备中获取该目标时间戳对应的GOP包,并将获取的GOP包发送给播放器以使播放器对该GOP包进行解析,将解析出的视频帧正序播放。
根据查找到的存储位置,在电子设备中查找到该存储位置上的GOP包,并且将该GOP包发送到播放器,播放器解析接收到的该GOP包,将解析出的视频帧按照视频录制时间从早往晚绘制到播放窗口进行播放。
例如:播放器从GOP包中解析出了25个视频帧,按照时间早晚依次编号为1到25,则回放是将25个视频帧按照从1到25的顺序绘制到播放窗口进行播放。
S204:在该GOP包播放过程中,如果未接收到用户的停止播放请求,则将目标时间戳的下一时间戳作为新的目标时间戳。
在未接收到用户的停止播放请求时,由于所接收到的是用户发出的视频回放请求,所以自动将该目标时间戳的下一时间戳作为新的目标时间戳,以进行后续的步骤。
S205:在数据库中查找该新的目标时间戳对应的GOP包在电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使播放器对接收到的GOP包进行解析,并将解析出的视频帧正序播放。
由于数据库中存储有每个GOP包的时间戳和每个GOP包在电子设备中的存储位置,因此,可以根据新的目标时间戳,在数据库中查找与该新的目标时间戳相同的时间戳,当查找到时,确定该查找到的时间戳对应的GOP包的存储位置,将该存储位置确定为新的目标时间戳对应的GOP包的存储位置。根据查找到的存储位置,在电子设备中获得该存储位置上的GOP包,并且将获得的GOP包发送到播放器。播放器解析接收到的该GOP包,将解析出的视频帧按照视频录制时间从早往晚绘制到播放窗口进行播放。
视频回放即播放器正序播放完一个GOP包后,再正序播放已播完的GOP包的下一个GOP包。
由此,通过将目标时间戳的下一时间戳作为目标时间戳的方式,查找到下一时间戳对应的GOP包并按照从早往晚的顺序,将下一时间戳对应的GOP包的视频帧绘制到播放窗口进行播放完成了视频回放。
下面以电子设备为电脑,播放器为电脑的本地播放器为例,通过一具体实施例对图2所示方法进行详细说明。
例如:接收视频回放请求,其中,目标时间戳为B时间戳,在视频数据中,C时间戳为B时间戳的下一时间戳,每个GOP包中可解析出25个视频帧,按照时间早晚依次编号为1到25,在接收视频回放请求后,在数据库中查找到B时间戳对应的GOP包的存储位置,根据所查找到的存储位置在电子设备中获取B时间戳对应的GOP包,并将获取的GOP包发送给本地播放器。本地播放器解析出B时间戳对应的GOP包中的25个视频帧,将该25个视频帧按照从1到25的顺序绘制到本地播放器的播放窗口进行播放,完成B时间戳对应的GOP包的播放。当该GOP包播放过程中,如果未接收到用户的停止播放请求,则将C时间戳作为新的目标时间戳,在数据库中查找到C时间戳对应的GOP包在电子设备中的存储位置,根据所查找到的存储位置获得C时间戳对应的GOP包,并将获得的GOP包发送给本地播放器。本地播放器解析出C时间戳对应的GOP包中的25个视频帧,将该25个视频帧按照从1到25的顺序绘制到本地播放器的播放窗口进行播放,完成C时间戳对应的GOP包的播放。
类似的,当视频播放请求为视频倒放请求时,将获取的GOP包发送给播放器播放可以包括:
将获取的GOP包发送给播放器以使该播放器对该GOP包进行解析,将解析出的视频帧倒序播放。
详细的,应用本申请实施例进行视频倒放的过程参见图3。
如图3所示,本申请提供的一种视频播放方法的另一流程,包括:
S301:接收视频倒放请求。
接收用户发出的视频倒放请求,以便进行后续步骤。
S302:根据所接收到的视频播放请求中的目标时间戳,在数据库中查找该目标时间戳对应的GOP包的存储位置。
其中,该数据库中存储有每个GOP包的时间戳和每个GOP包在电子设备中的存储位置。
其中,步骤S302与图1所示步骤S102相同,在此不再赘述。
S303:根据所查找到的存储位置在电子设备中获取该目标时间戳对应的GOP包,并将获取的GOP包发送给播放器以使播放器对该GOP包进行解析,将解析出的视频帧倒序播放。
根据查找到的存储位置,在电子设备中查找到该存储位置上的GOP包,并且将该GOP包发送到播放器,播放器解析接收到的该GOP包,将解析出的视频帧按照视频录制时间从晚往早绘制到播放窗口进行播放。
例如:播放器从GOP包中解析出了25个视频帧,按照时间早晚依次编号为1到25,则回放是将25个视频帧按照从25到1的顺序绘制到播放窗口进行播放。
S304:在该GOP包播放过程中,如果未接收到用户的停止播放请求,则将该目标时间戳的上一时间戳作为新的目标时间戳。
在未接收到用户的停止播放请求时,由于所接收到的是用户发出的视频倒放请求,所以自动将该目标时间戳的上一时间戳作为目标时间戳,以进行后续的步骤。
S305:在数据库中查找该新的目标时间戳对应的GOP包在电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使播放器对接收到的GOP包进行解析,并将解析出的视频帧倒序播放。
由于数据库中存储有每个GOP包的时间戳和每个GOP包在电子设备中的存储位置,因此,可以根据新的目标时间戳,在数据库中查找与该新的目标时间戳相同的时间戳,当查找到时,确定该查找到的时间戳对应的GOP包的存储位置,将该存储位置确定为新的目标时间戳对应的GOP包的存储位置。根据查找到的存储位置,在电子设备中获得该存储位置上的GOP包,并且将该GOP包发送到播放器。播放器解析接收到的该GOP包,将解析出的视频帧按照视频录制时间从晚往早绘制到播放窗口进行播放。
视频倒放即播放器倒序播放完一个GOP包后,再倒序播放已播完的GOP包的上一个GOP包。
由此,通过将目标时间戳的上一时间戳作为目标时间戳的方式,查找到上一时间戳对应的GOP包并按照从晚往早的顺序,将上一时间戳对应的GOP包的视频帧绘制到播放窗口进行播放完成了视频倒放。
下面以电子设备为电脑,播放器为电脑的本地播放器为例,通过一具体实施例对图3所示方法进行详细说明。
例如:接收视频倒放请求,其中,目标时间戳为B时间戳,在视频数据中,A时间戳为B时间戳的上一时间戳,每个GOP包中可解析出25个视频帧,按照时间早晚依次编号为1到25,在接收视频回放请求后,在数据库中查找到B时间戳对应的GOP包的存储位置,根据所查找到的存储位置在电子设备中获取B时间戳对应的GOP包,并将获取的GOP包发送给本地播放器。本地播放器解析出B时间戳对应的GOP包中的25个视频帧,将该25个视频帧按照从25到1的顺序绘制到本地播放器的播放窗口进行播放,完成B时间戳对应的GOP包的播放。当该GOP包播放过程中,如果未接收到用户的停止播放请求,则将A时间戳作为新的目标时间戳,在数据库中查找到A时间戳对应的GOP包在电子设备中的存储位置,根据所查找到的存储位置获得A时间戳对应的GOP包,并将获得的GOP包发送给本地播放器。本地播放器解析出A时间戳对应的GOP包中的25个视频帧,将该25个视频帧按照25到1的顺序绘制到本地播放器的播放窗口进行播放,完成A时间戳对应的GOP包的播放。
相对于上述方法实施例,本申请实施例还提供了一种视频播放装置,应用于电子设备,该电子设备中存储有画面组GOP包形式的视频数据,如图4所示,该装置可以包括:
接收模块401,用于接收视频播放请求;
查找模块402,用于根据所接收到的视频播放请求中的目标时间戳,在数据库中查找该目标时间戳对应的GOP包的存储位置,其中,该数据库中存储有每个GOP包的时间戳和每个GOP包在该电子设备中的存储位置;
第一发送模块403,用于根据所查找到的存储位置在该电子设备中获取该目标时间戳对应的GOP包,并将获取的GOP包发送给播放器播放。
与相关技术相比,由于本申请实施例中在数据库中存储有每个GOP包的时间戳和每个GOP包在电子设备中的存储位置,因此当接收到目标时间戳后可以根据该目标时间戳查找其对应的GOP包的存储位置,从而提高了GOP包的查询效率,进而提高了视频播放的效率,另外,在本申请实施例中每个GOP包中存储有完整的视频图像的信息,因此可以保证后续视频播放的真实性。
本申请的一个实施例中,通过储存模块存储GOP包形式的视频数据,该储存模块,可以具体用于:
针对电子设备接收到的视频数据中的每个I帧,判断是否存在与其相邻的下一个I帧:
如果存在与该I帧相邻的下一个I帧,将该I帧和该下一个I帧之间的视频帧以及该I帧作为一个GOP包存储,记录该GOP包在该电子设备中的存储位置,将该GOP包中的I帧对应的时间戳作为该GOP包的时间戳,将该GOP包的时间戳和该GOP包在电子设备中的存储位置对应存储至该数据库中;
如果不存在与该I帧相邻的下一个I帧,将该I帧以及该视频数据中剩余的视频帧作为一个GOP包存储,记录该GOP包在该电子设备中的存储位置,将该GOP包中的I帧对应的时间戳作为该GOP包的时间戳,将该GOP包的时间戳和该GOP包在电子设备中的存储位置对应存储至该数据库中。
本申请的一个实施例中,该第一发送模块403,可以具体用于:
当该视频播放请求为视频回放请求时,根据所查找到的存储位置在该电子设备中获取该目标时间戳对应的GOP包,并将获取的GOP包发送给播放器,以使该播放器对该GOP包进行解析,并将解析出的视频帧正序播放。
本申请的一个实施例中,该装置还可以包括:
第一确定模块,用于在该GOP包播放过程中,如果未接收到用户的停止播放请求,则将该目标时间戳的下一时间戳作为新的目标时间戳;
第二发送模块,用于在该数据库中查找该新的目标时间戳对应的GOP包在该电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使该播放器对接收到的GOP包进行解析,并将解析出的视频帧正序播放。
由此,通过将目标时间戳的下一时间戳作为目标时间戳的方式,查找到下一时间戳对应的GOP包并按照从早往晚的顺序,将下一时间戳对应的GOP包的视频帧绘制到播放窗口进行播放完成了视频回放。
本申请的一个实施例中,该第一发送模块403,可以具体用于:
当该视频播放请求为视频倒放请求时,根据所查找到的存储位置在该电子设备中获取该目标时间戳对应的GOP包,并将获取的GOP包发送给播放器,以使该播放器对该GOP包进行解析,并将解析出的视频帧倒序播放。
本申请的一个实施例中,该装置还可以包括:
第二确定模块,用于在该GOP包播放过程中,如果未接收到用户的停止播放请求,则将该目标时间戳的上一时间戳作为新的目标时间戳;
第三发送模块,用于在该数据库中查找该新的目标时间戳对应的GOP包在该电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使该播放器对接收到的GOP包进行解析,并将解析出的视频帧倒序播放。
由此,通过将目标时间戳的上一时间戳作为目标时间戳的方式,查找到上一时间戳对应的GOP包并按照从晚往早的顺序,将上一时间戳对应的GOP 包的视频帧绘制到播放窗口进行播放完成了视频倒放。
本申请实施例还提供了一种电子设备,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行本申请实施例所提供的视频播放方法,其中,该视频播放方法,可以包括:
接收视频播放请求;
根据所接收到的视频播放请求中的目标时间戳,在数据库中查找所述目标时间戳对应的GOP包的存储位置,其中,所述数据库中存储有每个GOP包的时间戳和每个GOP包在所述电子设备中的存储位置;
根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器播放。
与相关技术相比,由于本申请实施例中在数据库中存储有每个GOP包的时间戳和每个GOP包在电子设备中的存储位置,因此当接收到目标时间戳后可以根据该目标时间戳查找其对应的GOP包的存储位置,从而提高了GOP包的查询效率,进而提高了视频播放的效率,另外,在本申请实施例中每个GOP包中存储有完整的视频图像的信息,因此可以保证后续视频播放的真实性。
本申请实施例提供了一种应用程序,该应用程序用于在运行时执行本申请实施例提供的视频播放方法。其中,该视频播放方法,可以包括:
接收视频播放请求;
根据所接收到的视频播放请求中的目标时间戳,在数据库中查找所述目标时间戳对应的GOP包的存储位置,其中,所述数据库中存储有每个GOP包的时间戳和每个GOP包在所述电子设备中的存储位置;
根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器播放。
与相关技术相比,由于本申请实施例中在数据库中存储有每个GOP包的 时间戳和每个GOP包在电子设备中的存储位置,因此当接收到目标时间戳后可以根据该目标时间戳查找其对应的GOP包的存储位置,从而提高了GOP包的查询效率,进而提高了视频播放的效率,另外,在本申请实施例中每个GOP包中存储有完整的视频图像的信息,因此可以保证后续视频播放的真实性。
本申请实施例提供了一种存储介质,用于存储可执行程序代码,该可执行程序代码被运行以执行本申请实施例提供的视频播放方法。其中,该视频播放方法,可以包括:
接收视频播放请求;
根据所接收到的视频播放请求中的目标时间戳,在数据库中查找所述目标时间戳对应的GOP包的存储位置,其中,所述数据库中存储有每个GOP包的时间戳和每个GOP包在所述电子设备中的存储位置;
根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器播放。
与相关技术相比,由于本申请实施例中在数据库中存储有每个GOP包的时间戳和每个GOP包在电子设备中的存储位置,因此当接收到目标时间戳后可以根据该目标时间戳查找其对应的GOP包的存储位置,从而提高了GOP包的查询效率,进而提高了视频播放的效率,另外,在本申请实施例中每个GOP包中存储有完整的视频图像的信息,因此可以保证后续视频播放的真实性。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同 之处。尤其,对于装置、电子设备、应用程序及存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。

Claims (15)

  1. 一种视频播放方法,其特征在于,应用于电子设备,所述电子设备中存储有画面组GOP包形式的视频数据,所述方法包括:
    接收视频播放请求;
    根据所接收到的视频播放请求中的目标时间戳,在数据库中查找所述目标时间戳对应的GOP包的存储位置,其中,所述数据库中存储有每个GOP包的时间戳和每个GOP包在所述电子设备中的存储位置;
    根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器播放。
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备存储GOP包形式的视频数据的过程包括:
    针对所述电子设备接收到的视频数据中的每个I帧,判断是否存在与其相邻的下一个I帧:
    如果存在与所述I帧相邻的下一个I帧,将所述I帧和所述下一个I帧之间的视频帧以及所述I帧作为一个GOP包存储,记录所述GOP包在所述电子设备中的存储位置,将所述GOP包中的I帧对应的时间戳作为所述GOP包的时间戳,将所述GOP包的时间戳和所述GOP包在所述电子设备中的存储位置对应存储至所述数据库中;
    如果不存在与所述I帧相邻的下一个I帧,将所述I帧以及所述视频数据中剩余的视频帧作为一个GOP包存储,记录所述GOP包在所述电子设备中的存储位置,将所述GOP包中的I帧对应的时间戳作为所述GOP包的时间戳,将所述GOP包的时间戳和所述GOP包在所述电子设备中的存储位置对应存储至所述数据库中。
  3. 根据权利要求1所述的方法,其特征在于,当所述视频播放请求为视频回放请求时,所述将获取的GOP包发送给播放器播放包括:
    将获取的GOP包发送给播放器,以使所述播放器对所述GOP包进行解析,并将解析出的视频帧正序播放。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    在所述GOP包播放过程中,如果未接收到用户的停止播放请求,则将所述目标时间戳的下一时间戳作为新的目标时间戳;
    在所述数据库中查找所述新的目标时间戳对应的GOP包在所述电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使所述播放器对接收到的GOP包进行解析,并将解析出的视频帧正序播放。
  5. 根据权利要求1所述的方法,其特征在于,当所述视频播放请求为视频倒放请求时,所述将获取的GOP包发送给播放器播放包括:
    将获取的GOP包发送给播放器,以使所述播放器对所述GOP包进行解析,并将解析出的视频帧倒序播放。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    在所述GOP包播放过程中,如果未接收到用户的停止播放请求,则将所述目标时间戳的上一时间戳作为新的目标时间戳;
    在所述数据库中查找所述新的目标时间戳对应的GOP包在所述电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使所述播放器对接收到的GOP包进行解析,并将解析出的视频帧倒序播放。
  7. 一种视频播放装置,其特征在于,应用于电子设备,所述电子设备中存储有画面组GOP包形式的视频数据,所述装置包括:
    接收模块,用于接收视频播放请求;
    查找模块,用于根据所接收到的视频播放请求中的目标时间戳,在数据库中查找所述目标时间戳对应的GOP包的存储位置,其中,所述数据库中存储有每个GOP包的时间戳和每个GOP包在所述电子设备中的存储位置;
    第一发送模块,用于根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器播放。
  8. 根据权利要求7所述的装置,其特征在于,通过储存模块存储GOP包形式的视频数据,所述储存模块,具体用于:
    针对所述电子设备接收到的视频数据中的每个I帧,判断是否存在与其相邻的下一个I帧:
    如果存在与所述I帧相邻的下一个I帧,将所述I帧和所述下一个I帧之间的视频帧以及所述I帧作为一个GOP包存储,记录所述GOP包在所述电子设备中的存储位置,将所述GOP包中的I帧对应的时间戳作为所述GOP包的时间戳,将所述GOP包的时间戳和所述GOP包在所述电子设备中的存储位置对应存储至所述数据库中;
    如果不存在与所述I帧相邻的下一个I帧,将所述I帧以及所述视频数据中剩余的视频帧作为一个GOP包存储,记录所述GOP包在所述电子设备中的存储位置,将所述GOP包中的I帧对应的时间戳作为所述GOP包的时间戳,将所述GOP包的时间戳和所述GOP包在所述电子设备中的存储位置对应存储至所述数据库中。
  9. 根据权利要求7所述的装置,其特征在于,所述第一发送模块,具体用于:
    当所述视频播放请求为视频回放请求时,根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器,以使所述播放器对所述GOP包进行解析,并将解析出的视频帧正序播放。
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    第一确定模块,用于在所述GOP包播放过程中,如果未接收到用户的停止播放请求,则将所述目标时间戳的下一时间戳作为新的目标时间戳;
    第二发送模块,用于在所述数据库中查找所述新的目标时间戳对应的GOP包在所述电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使所述播放器对接收到的GOP包进行解析,并将解析出的视频帧正序播放。
  11. 根据权利要求7所述的装置,其特征在于,所述第一发送模块,具体用于:
    当所述视频播放请求为视频倒放请求时,根据所查找到的存储位置在所述电子设备中获取所述目标时间戳对应的GOP包,并将获取的GOP包发送给播放器,以使所述播放器对所述GOP包进行解析,并将解析出的视频帧倒序播放。
  12. 根据权利要求11所述的装置,其特征在于,所述装置还包括:
    第二确定模块,用于在所述GOP包播放过程中,如果未接收到用户的停止播放请求,则将所述目标时间戳的上一时间戳作为新的目标时间戳;
    第三发送模块,用于在所述数据库中查找所述新的目标时间戳对应的GOP包在所述电子设备中的存储位置,根据所查找到的存储位置获得相应的GOP包,并将获得的GOP包发送给播放器,以使所述播放器对接收到的GOP包进行解析,并将解析出的视频帧倒序播放。
  13. 一种电子设备,其特征在于,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行可执行程序代码,以用于执行权利要求1-6任一项所述的视频播放方法。
  14. 一种应用程序,其特征在于,所述应用程序用于在运行时执行权利要求1-6任一项所述的视频播放方法。
  15. 一种存储介质,其特征在于,所述存储介质用于存储可执行程序代码,所述可执行程序代码被运行以执行权利要求1-6任一项所述的视频播放方法。
PCT/CN2017/073341 2016-05-24 2017-02-13 一种视频播放方法及装置 WO2017202060A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610347663.X 2016-05-24
CN201610347663.XA CN107426603B (zh) 2016-05-24 2016-05-24 一种视频播放方法及装置

Publications (1)

Publication Number Publication Date
WO2017202060A1 true WO2017202060A1 (zh) 2017-11-30

Family

ID=60411057

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/073341 WO2017202060A1 (zh) 2016-05-24 2017-02-13 一种视频播放方法及装置

Country Status (2)

Country Link
CN (1) CN107426603B (zh)
WO (1) WO2017202060A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324825A (zh) * 2020-01-20 2020-06-23 北京百度网讯科技有限公司 查找目标人员的方法及装置
CN113630657A (zh) * 2021-08-03 2021-11-09 广东九联科技股份有限公司 基于hls协议的视频播放优化方法及系统

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108184161B (zh) * 2017-12-26 2021-01-01 努比亚技术有限公司 一种视频播放方法、移动终端及计算机可读存储介质
CN111083573A (zh) * 2018-10-22 2020-04-28 杭州海康威视系统技术有限公司 一种视频文件处理方法、装置和存储节点
CN111641824B (zh) * 2019-03-01 2022-08-05 杭州海康威视数字技术股份有限公司 视频倒放方法及装置
CN112491937B (zh) * 2019-09-11 2024-07-19 北京陌陌信息技术有限公司 数据传输方法、装置、设备及存储介质
CN111526404B (zh) * 2020-04-27 2022-07-08 杭州海康威视系统技术有限公司 单帧播放方法、视频播放装置、监控设备以及存储介质
CN112230872B (zh) * 2020-09-25 2023-08-15 北京博睿维讯科技有限公司 一种多机多源共屏信息云端存储管理方法、系统、智能终端以及存储介质
CN112230871B (zh) * 2020-09-25 2023-10-27 北京博睿维讯科技有限公司 一种多机多源共屏信息溯源方法、系统、智能终端以及存储介质
CN112788366B (zh) * 2020-12-28 2023-03-24 杭州海康威视系统技术有限公司 视频处理的方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420577A (zh) * 2008-11-07 2009-04-29 武汉烽火网络有限责任公司 一种多媒体数据的存储方法及精确定位回放位置的方法
CN101854508A (zh) * 2009-03-30 2010-10-06 三星电子株式会社 反向回放编码的多媒体内容的方法和装置
CN101895736A (zh) * 2010-07-07 2010-11-24 杭州华三通信技术有限公司 媒体流数据处理方法及其装置
CN102196249A (zh) * 2011-05-17 2011-09-21 杭州华三通信技术有限公司 监控数据回放方法及编码器、视频管理服务器
CN103780877A (zh) * 2013-12-26 2014-05-07 深圳市华仁达技术有限公司 基于h264编码的海量视频数据的存储及检索方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7206501B2 (en) * 2001-10-12 2007-04-17 The Directv Group, Inc. Method and apparatus for identifying MPEG picture coding types
US7720350B2 (en) * 2004-11-30 2010-05-18 General Instrument Corporation Methods and systems for controlling trick mode play speeds

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420577A (zh) * 2008-11-07 2009-04-29 武汉烽火网络有限责任公司 一种多媒体数据的存储方法及精确定位回放位置的方法
CN101854508A (zh) * 2009-03-30 2010-10-06 三星电子株式会社 反向回放编码的多媒体内容的方法和装置
CN101895736A (zh) * 2010-07-07 2010-11-24 杭州华三通信技术有限公司 媒体流数据处理方法及其装置
CN102196249A (zh) * 2011-05-17 2011-09-21 杭州华三通信技术有限公司 监控数据回放方法及编码器、视频管理服务器
CN103780877A (zh) * 2013-12-26 2014-05-07 深圳市华仁达技术有限公司 基于h264编码的海量视频数据的存储及检索方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324825A (zh) * 2020-01-20 2020-06-23 北京百度网讯科技有限公司 查找目标人员的方法及装置
CN111324825B (zh) * 2020-01-20 2024-04-30 北京百度网讯科技有限公司 查找目标人员的方法及装置
CN113630657A (zh) * 2021-08-03 2021-11-09 广东九联科技股份有限公司 基于hls协议的视频播放优化方法及系统

Also Published As

Publication number Publication date
CN107426603A (zh) 2017-12-01
CN107426603B (zh) 2020-01-17

Similar Documents

Publication Publication Date Title
WO2017202060A1 (zh) 一种视频播放方法及装置
WO2017076171A1 (zh) 一种在视频图像上显示信息的方法和装置
US8670072B1 (en) Method and apparatus for streaming media data processing, and streaming media playback equipment
WO2018121740A1 (zh) 一种流数据的并发读写方法和装置
WO2018076998A1 (zh) 一种回放视频文件的生成方法和装置
US8818176B2 (en) System and method for aligning tags to specific video frames
US20100247066A1 (en) Method and apparatus for reverse playback of encoded multimedia content
WO2018077266A1 (zh) 监控录像的断点续传方法及装置
WO2010034168A1 (zh) 监控录像的播放控制方法及系统
CN111436004B (zh) 视频播放方法、装置和设备、计算机可读存储介质
CN109040773A (zh) 一种视频改进方法、装置、设备及介质
CN102467940A (zh) 一种无索引视频文件快进快退方法、装置以及播放系统
WO2019149066A1 (zh) 视频播放方法、终端设备及存储介质
US20150010288A1 (en) Media information server, apparatus and method for searching for media information related to media content, and computer-readable recording medium
CN106331871B (zh) 一种实现视频流快进或快退的方法及装置
US20090136204A1 (en) System and method for remote live pause
CN103873804B (zh) 用于嵌入式nvr的录像回放时间轴与内容同步控制方法
JP2009232334A5 (zh)
WO2015018119A1 (zh) 一种多媒体文件生成的方法及多媒体设备
US20090282076A1 (en) Playlist processing
EP1455360A2 (en) Disc apparatus, disc recording method, disc playback method, recording medium, and program
JP2019029801A (ja) 再生装置、再生装置の制御方法、及び、プログラム
TW201205314A (en) Method for seeking a document position and a corresponding electronic device
TWI279137B (en) Methods for processing media files, and related devices
US11653039B2 (en) Video stream batching

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17801916

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17801916

Country of ref document: EP

Kind code of ref document: A1