CN112929706A - Video data playback method, device, storage medium, and electronic device - Google Patents

Video data playback method, device, storage medium, and electronic device Download PDF

Info

Publication number
CN112929706A
CN112929706A CN202110247305.2A CN202110247305A CN112929706A CN 112929706 A CN112929706 A CN 112929706A CN 202110247305 A CN202110247305 A CN 202110247305A CN 112929706 A CN112929706 A CN 112929706A
Authority
CN
China
Prior art keywords
video data
playback
decoding
parameter
client
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.)
Pending
Application number
CN202110247305.2A
Other languages
Chinese (zh)
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110247305.2A priority Critical patent/CN112929706A/en
Publication of CN112929706A publication Critical patent/CN112929706A/en
Pending legal-status Critical Current

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests

Abstract

The embodiment of the invention provides a video data playback method, a video data playback device, a storage medium and an electronic device, wherein the method comprises the following steps: the method comprises the steps of obtaining a playback request sent by a client, wherein the playback request comprises identification information and playback parameters of first video data, obtaining the first video data based on the identification information, decoding and encoding the first video data according to the playback parameters, and obtaining target video data, wherein the target video data are data supporting playing according to the playback parameters, and the target video data are sent to the client to indicate the client to play the target video data according to the playback parameters. Furthermore, the technical problem that video data are difficult to smoothly play according to user requirements exists in the related art, and the technical effect of improving the playback efficiency of the video data is achieved.

Description

Video data playback method, device, storage medium, and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a video data playback method, a video data playback device, a video data storage medium and an electronic device.
Background
With the popularization of the matched App applications of smart phones and manufacturers, users can check monitoring videos more and more conveniently. In a wireless network environment used in a common scene, the network bandwidth is generally limited, and the requirement of smooth video playing in a higher standard scene cannot be met.
In the related art, in the process of playing back video data, complete video data is generally sent to a terminal, and then the terminal executes corresponding processing according to different requirements, so that the technical problem that the requirement on network bandwidth is high, and video is difficult to smoothly play according to the user requirement under the condition that the network bandwidth is difficult to meet the video data transmission exists.
Aiming at the technical problem that video data are difficult to play smoothly according to user requirements in the related technology, an effective solution is not provided at present.
Disclosure of Invention
Embodiments of the present invention provide a playback method, an apparatus, a storage medium, and an electronic apparatus for video data, so as to at least solve the technical problem that video data is difficult to smoothly play according to user requirements in the related art.
According to an embodiment of the present invention, there is provided a playback method of video data, including: acquiring a playback request sent by a client, wherein the playback request comprises identification information and playback parameters of first video data; acquiring the first video data based on the identification information, and decoding and encoding the first video data according to the playback parameters to obtain target video data, wherein the target video data is data supporting playing according to the playback parameters; and sending the target video data to a client to instruct the client to play the target video data according to the playback parameters.
According to another embodiment of the present invention, there is provided a playback apparatus of video data including: the device comprises an acquisition module, a playback module and a processing module, wherein the acquisition module is used for acquiring a playback request sent by a client, and the playback request comprises identification information and playback parameters of first video data; the processing module is used for acquiring the first video data based on the identification information, and decoding and encoding the first video data according to the playback parameters to obtain target video data, wherein the target video data is data supporting playing according to the playback parameters; and the sending module is used for sending the target video data to a client so as to instruct the client to play the target video data according to the playback parameters.
According to yet another embodiment of the invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program, when executed by a processor, performs the steps in any of the above method embodiments.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps in any of the above method embodiments when executing the computer program.
By adopting the invention, the playback request sent by the client is obtained, wherein the playback request comprises the identification information and the playback parameter of the first video data, the first video data is obtained based on the identification information, and the first video data is decoded and encoded according to the playback parameter to obtain the target video data, wherein the target video data is the data supporting the playing according to the playback parameter, the target video data is sent to the client, so as to instruct the client to play the target video data according to the playback parameter, the identification and the playback parameter of the video data sent by the client are obtained at the image acquisition equipment or the server, further, the playback processing of the video data is completed at the image acquisition equipment or the server and then sent to the client, and the technical problems of video data playing card and the like caused by the network bandwidth failing to meet the requirement are avoided, furthermore, the technical problem that video data are difficult to smoothly play according to user requirements exists in the related art, and the technical effect of improving the playback efficiency of the video data is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal according to an alternative video data playback method of an embodiment of the present invention;
fig. 2 is a flow chart illustrating an alternative method for playing back video data according to an embodiment of the present invention;
fig. 3 is a flow chart illustrating an alternative method for playing back video data according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart diagram illustrating an alternative method for playback of video data according to an embodiment of the present invention;
fig. 5 is a block diagram of an alternative video data playback apparatus according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of the present invention running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a playback method of video data according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the playback method of video data in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a method for playing back video data running on a mobile terminal, a computer terminal or a similar computing device is provided, fig. 2 is a schematic flow chart of an alternative method for playing back video data according to an embodiment of the present invention, as shown in fig. 2, the flow chart includes the following steps:
s202, a playback request sent by a client is obtained, wherein the playback request comprises identification information and playback parameters of first video data;
s204, acquiring first video data based on the identification information, and decoding and encoding the first video data according to the playback parameters to obtain target video data, wherein the target video data is data supporting playing according to the playback parameters;
and S206, sending the target video data to the client to instruct the client to play the target video data according to the playback parameters.
Optionally, in this embodiment, the execution subject of the playback method of the video data may include, but is not limited to, an image capture device, such as a video recorder, a video camera, or other image capture devices with data processing capability, or may also include, but is not limited to, a server for storing video data, or the like.
Optionally, in this embodiment, the client may include, but is not limited to, at least one of the following: a Mobile phone (such as an Android Mobile phone, an iOS Mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, an MID (Mobile Internet Devices), a PAD, a desktop computer, a smart television, and other computer Devices.
Optionally, in this embodiment, the playback request may include, but is not limited to, configuration performed by a worker at a client, the identification information of the first video data may include, but is not limited to, an ID or domain name data of the first video data, and the playback parameters may include, but is not limited to, a playback multiple parameter, a playback path number parameter, and the like.
Optionally, in this embodiment, the decoding and encoding may be implemented by, but not limited to, a preset codec manner, for example, the decoding process is the same as the decoding process of local playback of the storage device (according to the playback parameter, corresponding data is read from the hard disk, and the audio and video module is sent for decoding), and the encoding process is the same as the encoding process of "zero channel preview" service (the picture effect of local double-speed playback or multi-channel playback of the storage device is re-encoded as a video code stream).
Optionally, in this embodiment, the method may further include, but is not limited to, obtaining, by the execution main body or the client of the present application, data transmission capability between the execution main body and the client, for example, transmission speed of network data, network bandwidth, and the like, and executing the playback method of the video data when the data transmission capability reaches a preset condition.
By the embodiment, a playback request sent by a client is obtained, wherein the playback request comprises identification information and a playback parameter of first video data, the first video data is obtained based on the identification information, and the first video data is decoded and encoded according to the playback parameter to obtain target video data, wherein the target video data is data supporting playing according to the playback parameter, the target video data is sent to the client, so that the client is instructed to play the target video data according to the playback parameter, the video data identifier and the playback parameter sent by the client are obtained at an image acquisition device or a server, and then the video data is played back at the image acquisition device or the server and then sent to the client, thereby avoiding the technical problems of video data playing cards and the like caused by the fact that network bandwidth cannot meet the requirements, furthermore, the technical problem that video data are difficult to smoothly play according to user requirements exists in the related art, and the technical effect of improving the playback efficiency of the video data is achieved.
As an alternative, decoding and encoding the first video data according to the playback parameter includes:
opening a target decoding channel;
sending the first video data to the decoding channel;
decoding the first video data in the decoding channel according to the playback parameters to obtain second video data;
and encoding the second video data to obtain the target video data.
Optionally, in this embodiment, the target decoding channels may include, but are not limited to, one or more channels, and in the target decoding channels, decoding the first video data according to the playback parameters can be implemented to obtain the second video data.
Optionally, in this embodiment, the encoding of the second video data may include, but is not limited to, compressing the second video data into a predetermined type of compressed data packet, so as to achieve sending the target video data to a corresponding client.
The above is merely an example, and the present embodiment is not limited in any way.
According to the embodiment, a target decoding channel is opened, the first video data are sent to the decoding channel, the first video data are decoded in the decoding channel according to the playback parameters to obtain second video data, the second video data are encoded to obtain the target video data, playback processing of the video data is completed at an image acquisition device or a server end, and the video data are sent to a client end, so that the technical problems that video data are played in a blocking mode and the like due to the fact that network bandwidth cannot meet requirements are solved, furthermore, the technical problem that the video data are difficult to be played smoothly according to user requirements in the related technology is solved, and the technical effect of improving playback efficiency of the video data is achieved.
As an alternative, decoding the first video data according to the playback parameter in the decoding channel to obtain second video data includes:
acquiring the parameter type of the playback parameter;
and in the case that the parameter type is used for representing a playback speed parameter, decoding the first video data according to the playback speed parameter in the decoding channel to obtain the second video data.
Optionally, in this embodiment, the playback speed parameter may include, but is not limited to, a 1.25 speed, a 1.5 speed, a 2 speed, a 3 speed, and the like, and specifically, the playback speed parameter may be determined in a client according to an actual requirement of a user, and then, a parameter type of the playback parameter is obtained, and the first video data is decoded in a decoding channel according to the playback speed parameter to obtain the second video data.
Optionally, in this embodiment, the parameter types may include, but are not limited to, one or more of a plurality of playback parameter types, such as a playback speed parameter, a playback path number parameter, and a playback time length.
Optionally, in this embodiment, when the decoding channels include a plurality of decoding channels, parallel decoding may be performed based on playback parameters of different parameter types, for example, when it is obtained that the playback parameter sent by the client is played at 1.25 × speed and at 3 × speed, the first video data is decoded in parallel in different decoding channels, respectively, to obtain second video data played at 1.25 × speed and second video data played at 3 × speed.
The above is merely an example, and the present embodiment is not limited in any way.
According to the embodiment, the parameter type of the playback parameter is obtained, and under the condition that the parameter type is used for representing the playback speed parameter, the first video data is decoded according to the playback speed parameter in the decoding channel to obtain the second video data, so that the technical problem that the video data are difficult to smoothly play according to user requirements in the related technology is solved, and the technical effect of improving the playback efficiency of the video data is achieved.
As an alternative, decoding the first video data according to the playback parameter in the decoding channel to obtain second video data includes:
acquiring the parameter type of the playback parameter;
and under the condition that the parameter type is used for representing a playback path number parameter, decoding the first video data according to the playback path number parameter in the decoding channel to obtain the second video data.
Optionally, in this embodiment, the playback path number parameter may include, but is not limited to, 2-channel, 4-channel, 8-channel, and the like, and specifically, the playback path number parameter may be determined in a client according to an actual requirement of a user, and then, a parameter type of the playback parameter is obtained, and the first video data is decoded according to the playback path number parameter in a decoding channel, so as to obtain the second video data.
Optionally, in this embodiment, the parameter types may include, but are not limited to, one or more of multiple playback parameter types, such as a playback path number parameter, and a playback time length.
Optionally, in this embodiment, when the plurality of decoding channels are included, parallel decoding may be performed based on playback parameters of different parameter types, for example, when it is obtained that the playback parameter sent by the client is played according to 4 channels and 8 channels, the first video data is decoded in the different decoding channels in parallel, respectively, so as to obtain second video data played according to 4 channels and second video data played according to 8 channels.
The above is merely an example, and the present embodiment is not limited in any way.
According to the embodiment, the parameter type of the playback parameter is obtained, and under the condition that the parameter type is used for representing the playback path number parameter, the first video data is decoded according to the playback path number parameter in the decoding channel to obtain the second video data, so that the technical problem that the video data are difficult to smoothly play according to user requirements in the related art is solved, and the technical effect of improving the playback efficiency of the video data is achieved.
As an alternative, decoding the first video data according to the playback parameter in the decoding channel to obtain second video data includes:
acquiring the parameter type of the playback parameter;
under the condition that the parameter type is used for representing a playback speed parameter, decoding the first video data according to the playback speed parameter in the decoding channel to obtain third video data;
under the condition that the parameter type is used for representing a playback path number parameter, decoding the first video data according to the playback path number parameter in the decoding channel to obtain fourth video data;
merging the third video data and the fourth video data into the second video data.
Optionally, in this embodiment, the parameter types may include, but are not limited to, one or more of multiple playback parameter types, such as a playback path number parameter, and a playback time length.
Optionally, in this embodiment, the playback path number parameter may include, but is not limited to, 2-channel, 4-channel, 8-channel, and the like, and specifically, the playback path number parameter may be determined in a client according to an actual requirement of a user, and then, a parameter type of the playback parameter is obtained, and the first video data is decoded according to the playback path number parameter in a decoding channel, so as to obtain the second video data.
Optionally, in this embodiment, the playback speed parameter may include, but is not limited to, a 1.25 speed, a 1.5 speed, a 2 speed, a 3 speed, and the like, and specifically, the playback speed parameter may be determined in a client according to an actual requirement of a user, and then, a parameter type of the playback parameter is obtained, and the first video data is decoded in a decoding channel according to the playback speed parameter to obtain the second video data.
Optionally, in this embodiment, when the decoding channels include a plurality of decoding channels, parallel decoding may be performed based on playback parameters of different parameter types, for example, when it is obtained that the playback parameter sent by the client is played at 1.25 × speed and at 4 channels, the first video data is decoded in parallel in different decoding channels, respectively, so as to obtain third video data played at 1.25 × speed and fourth video data played at 4 channels.
Optionally, in this embodiment, merging the third video data and the fourth video data into the second video data may include, but is not limited to, merging the third video data and the fourth video data in the same file, and playing sequentially at the client.
According to the embodiment, a parameter type of the playback parameter is obtained, the first video data is decoded according to the playback speed parameter in the decoding channel to obtain third video data under the condition that the parameter type is used for representing the playback speed parameter, the first video data is decoded according to the playback path number parameter in the decoding channel to obtain fourth video data under the condition that the parameter type is used for representing the playback path number parameter, and the third video data and the fourth video data are combined into the second video data, so that the technical problem that the video data are difficult to be smoothly played according to user requirements in the related art is solved, and the technical effect of improving the playback efficiency of the video data is achieved.
As an optional solution, decoding the first video data according to the playback path number parameter in the decoding channel to obtain the second video data, includes:
cutting the first video data into a plurality of paths of video data according to the playback path number parameter, wherein each path of video data in the plurality of paths of video data is played in a corresponding cutting area;
starting a plurality of decoding channels in a partition area corresponding to each path of video data in the multi-path video data respectively;
sending each path of video data in the multiple paths of video data to a decoding channel corresponding to the multiple decoding channels;
in the multiple decoding channels, decoding the each path of video data separately to obtain decoded multiple paths of video data, where the second video data includes the decoded multiple paths of video data.
Alternatively, in the present embodiment, the first video data may be divided into multiple paths of video data by means including, but not limited to:
it should be noted that the requested first video data includes the number of ways and the splitting mode (four-splitting, eight-splitting, nine-splitting, etc.), and the storage device performs the encoding and decoding operation locally according to the requested number of ways and splitting mode, and obtains the video data that meets the requirement.
Optionally, in this embodiment, each of the plurality of decoding channels corresponds to one of the plurality of video data,
optionally, in this embodiment, the above separately decoding each path of video data may include, but is not limited to, decoding each path of video data in the same or different manner, in other words, the decoding manner of each decoding channel may be different, or may be partially the same or all of the same.
By the present embodiment, the first video data is divided into a plurality of paths of video data according to the playback path number parameter, wherein each path of video data in the multiple paths of video data is played in a corresponding partition area respectively, starting a plurality of decoding channels in the partition areas corresponding to each path of video data in the multi-path video data respectively, sending each path of video data in the multi-path video data to the decoding channels corresponding to the plurality of decoding channels, decoding said each path of video data separately in said plurality of decoding channels to obtain decoded multiple paths of video data, said second video data comprising decoded multiple paths of video data, furthermore, the technical problem that video data are difficult to play smoothly according to user requirements in the related technology is solved, and the technical effect of improving the playback efficiency of the video data is achieved.
The present embodiment is further explained below with reference to specific examples:
in the embodiment, the action of double-speed playback is put on the device side for operation, and the picture played back at double speed is encoded, and the encoded data has the picture effect of double-speed playback and is consistent with the code flow of single-speed playback. Thereby realizing the function of high-speed playback under low bandwidth.
Fig. 3 is a schematic diagram of an alternative video data playback method according to an embodiment of the present invention, and as shown in fig. 3, the detailed steps of single-channel double-speed playback are as follows:
s302, starting;
s304, receiving a playback request of the client, and acquiring a set playback speed parameter;
s306, the equipment starts a decoding channel at the background;
s308, sending the hard disk data to a decoding channel and decoding according to the speed;
s310, recoding the decoding channel;
s312, sending the encoded data to a client;
and S314, ending.
Fig. 4 is a schematic diagram of another alternative video data playback method according to an embodiment of the present invention, and as shown in fig. 4, the detailed steps of multi-channel playback are as follows:
s402, starting;
s404, receiving a playback path number parameter set by a client;
s406, the equipment is cut and divided at the background according to the number of playback paths;
s408, playing back the video recording for each divided area individually (in accordance with the above-described steps S304 and S306);
s410, recoding the whole divided picture;
s412, sending the encoded data to a client;
and S414, ending.
The above is merely an example, and the present embodiment is not limited in any way.
Through the embodiment, the network double-speed playback does not need to draw a pin, the picture is smooth, the bottleneck of network bandwidth under complex services of high double speed and multiple channels does not exist, the embodiment decodes at the equipment end, and the double-speed playback effect is displayed at the client.
The playback method of video data in the present embodiment may include, but is not limited to, achieving the following technical effects:
network speed multiplying playback, firstly, playing back and decoding at an equipment end; sending the effect picture after the double-speed playback to the client instead of directly sending the original video data; no matter how many times of speed or how many channels playback at the same time, the network transmission data volume keeps the same with single speed single channel.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a playback apparatus of video data is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of an alternative video data playback apparatus according to an embodiment of the present invention, as shown in fig. 5, the apparatus including:
an obtaining module 502, configured to obtain a playback request sent by a client, where the playback request includes identification information of first video data and playback parameters;
a processing module 504, configured to obtain the first video data based on the identification information, and decode and encode the first video data according to the playback parameter to obtain target video data, where the target video data is data that supports playing according to the playback parameter;
a sending module 506, configured to send the target video data to a client, so as to instruct the client to play the target video data according to the playback parameter.
As an alternative, the apparatus is configured to decode and encode the first video data according to the playback parameters by:
opening a target decoding channel;
sending the first video data to the decoding channel;
decoding the first video data in the decoding channel according to the playback parameters to obtain second video data;
and encoding the second video data to obtain the target video data.
As an alternative, the apparatus is configured to decode the first video data according to the playback parameter in the decoding channel to obtain the second video data by:
acquiring the parameter type of the playback parameter;
and in the case that the parameter type is used for representing a playback speed parameter, decoding the first video data according to the playback speed parameter in the decoding channel to obtain the second video data.
As an alternative, the apparatus is configured to decode the first video data according to the playback parameter in the decoding channel to obtain the second video data by:
acquiring the parameter type of the playback parameter;
and under the condition that the parameter type is used for representing a playback path number parameter, decoding the first video data according to the playback path number parameter in the decoding channel to obtain the second video data.
As an alternative, the apparatus is configured to decode the first video data according to the playback parameter in the decoding channel to obtain the second video data by:
acquiring the parameter type of the playback parameter;
under the condition that the parameter type is used for representing a playback speed parameter, decoding the first video data according to the playback speed parameter in the decoding channel to obtain third video data;
under the condition that the parameter type is used for representing a playback path number parameter, decoding the first video data according to the playback path number parameter in the decoding channel to obtain fourth video data;
merging the third video data and the fourth video data into the second video data.
As an alternative, the apparatus is configured to decode the first video data according to the playback path number parameter in the decoding channel to obtain the second video data by:
cutting the first video data into a plurality of paths of video data according to the playback path number parameter, wherein each path of video data in the plurality of paths of video data is played in a corresponding cutting area;
starting a plurality of decoding channels in a partition area corresponding to each path of video data in the multi-path video data respectively;
sending each path of video data in the multiple paths of video data to a decoding channel corresponding to the multiple decoding channels;
in the multiple decoding channels, decoding the each path of video data separately to obtain decoded multiple paths of video data, where the second video data includes the decoded multiple paths of video data.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, obtaining a playback request sent by a client, wherein the playback request comprises identification information and playback parameters of first video data;
s2, acquiring first video data based on the identification information, and decoding and encoding the first video data according to the playback parameters to obtain target video data, wherein the target video data is data supporting playing according to the playback parameters;
and S3, sending the target video data to the client to instruct the client to play the target video data according to the playback parameters.
The computer readable storage medium is further arranged to store a computer program for performing the steps of:
s1, obtaining a playback request sent by a client, wherein the playback request comprises identification information and playback parameters of first video data;
s2, acquiring first video data based on the identification information, and decoding and encoding the first video data according to the playback parameters to obtain target video data, wherein the target video data is data supporting playing according to the playback parameters;
and S3, sending the target video data to the client to instruct the client to play the target video data according to the playback parameters.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the following steps by a computer program:
s1, obtaining a playback request sent by a client, wherein the playback request comprises identification information and playback parameters of first video data;
s2, acquiring first video data based on the identification information, and decoding and encoding the first video data according to the playback parameters to obtain target video data, wherein the target video data is data supporting playing according to the playback parameters;
and S3, sending the target video data to the client to instruct the client to play the target video data according to the playback parameters.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for playback of video data, comprising:
acquiring a playback request sent by a client, wherein the playback request comprises identification information and playback parameters of first video data;
acquiring the first video data based on the identification information, and decoding and encoding the first video data according to the playback parameters to obtain target video data, wherein the target video data is data supporting playing according to the playback parameters;
and sending the target video data to a client to instruct the client to play the target video data according to the playback parameters.
2. The method of claim 1, wherein decoding and encoding the first video data according to the playback parameters comprises:
opening a target decoding channel;
sending the first video data to the decoding channel;
decoding the first video data in the decoding channel according to the playback parameters to obtain second video data;
and encoding the second video data to obtain the target video data.
3. The method of claim 2, wherein decoding the first video data in the decoding channel according to the playback parameters to obtain second video data comprises:
acquiring the parameter type of the playback parameter;
and in the case that the parameter type is used for representing a playback speed parameter, decoding the first video data according to the playback speed parameter in the decoding channel to obtain the second video data.
4. The method of claim 2, wherein decoding the first video data in the decoding channel according to the playback parameters to obtain second video data comprises:
acquiring the parameter type of the playback parameter;
and under the condition that the parameter type is used for representing a playback path number parameter, decoding the first video data according to the playback path number parameter in the decoding channel to obtain the second video data.
5. The method of claim 2, wherein decoding the first video data in the decoding channel according to the playback parameters to obtain second video data comprises:
acquiring the parameter type of the playback parameter;
under the condition that the parameter type is used for representing a playback speed parameter, decoding the first video data according to the playback speed parameter in the decoding channel to obtain third video data;
under the condition that the parameter type is used for representing a playback path number parameter, decoding the first video data according to the playback path number parameter in the decoding channel to obtain fourth video data;
merging the third video data and the fourth video data into the second video data.
6. The method of any of claims 4 or 5, wherein decoding the first video data in the decoding channel according to the playback path number parameter to obtain the second video data comprises:
cutting the first video data into a plurality of paths of video data according to the playback path number parameter, wherein each path of video data in the plurality of paths of video data is played in a corresponding cutting area;
starting a plurality of decoding channels in a partition area corresponding to each path of video data in the multi-path video data respectively;
sending each path of video data in the multiple paths of video data to a decoding channel corresponding to the multiple decoding channels;
in the multiple decoding channels, decoding the each path of video data separately to obtain decoded multiple paths of video data, where the second video data includes the decoded multiple paths of video data.
7. A playback apparatus of video data, comprising:
the device comprises an acquisition module, a playback module and a processing module, wherein the acquisition module is used for acquiring a playback request sent by a client, and the playback request comprises identification information and playback parameters of first video data;
the processing module is used for acquiring the first video data based on the identification information, and decoding and encoding the first video data according to the playback parameters to obtain target video data, wherein the target video data is data supporting playing according to the playback parameters;
and the sending module is used for sending the target video data to a client so as to instruct the client to play the target video data according to the playback parameters.
8. The apparatus of claim 7, wherein the apparatus is configured to decode and encode the first video data according to the playback parameters by:
opening a target decoding channel;
sending the first video data to the decoding channel;
decoding the first video data in the decoding channel according to the playback parameters to obtain second video data;
and encoding the second video data to obtain the target video data.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method as claimed in any of claims 1 to 6 are implemented when the computer program is executed by the processor.
CN202110247305.2A 2021-03-05 2021-03-05 Video data playback method, device, storage medium, and electronic device Pending CN112929706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110247305.2A CN112929706A (en) 2021-03-05 2021-03-05 Video data playback method, device, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110247305.2A CN112929706A (en) 2021-03-05 2021-03-05 Video data playback method, device, storage medium, and electronic device

Publications (1)

Publication Number Publication Date
CN112929706A true CN112929706A (en) 2021-06-08

Family

ID=76171680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110247305.2A Pending CN112929706A (en) 2021-03-05 2021-03-05 Video data playback method, device, storage medium, and electronic device

Country Status (1)

Country Link
CN (1) CN112929706A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117579875A (en) * 2024-01-15 2024-02-20 深圳市易甲文技术有限公司 Video high-speed playback method, device, server and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750962A (en) * 2012-06-11 2012-10-24 杭州海康威视数字技术股份有限公司 Playback method and device for video files
CN103414883A (en) * 2013-08-20 2013-11-27 浙江宇视科技有限公司 Customized service method and customized playback device of video streams
US20150264411A1 (en) * 2014-03-11 2015-09-17 Axis Ab Method and system for playback of motion video
CN107493482A (en) * 2016-06-12 2017-12-19 杭州海康威视数字技术股份有限公司 A kind of video playback method and device
CN111491203A (en) * 2020-03-16 2020-08-04 浙江大华技术股份有限公司 Video playback method, device, equipment and computer readable storage medium
CN112437345A (en) * 2020-11-20 2021-03-02 北京字跳网络技术有限公司 Video speed doubling playing method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750962A (en) * 2012-06-11 2012-10-24 杭州海康威视数字技术股份有限公司 Playback method and device for video files
CN103414883A (en) * 2013-08-20 2013-11-27 浙江宇视科技有限公司 Customized service method and customized playback device of video streams
US20150264411A1 (en) * 2014-03-11 2015-09-17 Axis Ab Method and system for playback of motion video
CN107493482A (en) * 2016-06-12 2017-12-19 杭州海康威视数字技术股份有限公司 A kind of video playback method and device
CN111491203A (en) * 2020-03-16 2020-08-04 浙江大华技术股份有限公司 Video playback method, device, equipment and computer readable storage medium
CN112437345A (en) * 2020-11-20 2021-03-02 北京字跳网络技术有限公司 Video speed doubling playing method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117579875A (en) * 2024-01-15 2024-02-20 深圳市易甲文技术有限公司 Video high-speed playback method, device, server and computer readable storage medium

Similar Documents

Publication Publication Date Title
WO2017148442A1 (en) Audio and video processing method and apparatus, and computer storage medium
JP5572225B2 (en) Method and apparatus for processing ECM packets
CN104837057A (en) Video file playing method, device and system
CN105631970B (en) One-touch information sharing method and system based on drive recorder
CN106358050A (en) Android based audio and video streaming push method and device as well as Android based audio and video streaming playing method and device
CN114071174A (en) Processing method of live content, electronic equipment and readable storage medium
CN111954028A (en) Screen projection method, device and equipment of audio data and storage medium
CN111400127A (en) Service log monitoring method and device, storage medium and computer equipment
CN109217980B (en) Encoding and decoding capacity configuration method, device and computer storage medium
CN112929706A (en) Video data playback method, device, storage medium, and electronic device
CN110996137B (en) Video processing method and device
CN111917813A (en) Communication method, device, equipment, system and storage medium
CN110719526A (en) Video playing method and device
CN103414935A (en) Method and device for intercepting audio frequency and video frequency based on user identity information
CN110908643A (en) Configuration method, device and system of software development kit
CN102811342A (en) Video profile cut control method, device and system
CN103152615A (en) Method and device for issuing multimedia information
CN106507125A (en) A kind of pair of terminal coordinates live method and device
CN102572364A (en) Decoding method and device for video communication data
CN113099270B (en) File storage method, decoding method, device, storage medium and electronic device
CN107465946B (en) Video playing method, device, system and terminal equipment
CN112235592B (en) Live broadcast method, live broadcast processing method, device and computer equipment
CN112394882B (en) Data storage method and device, storage medium and electronic device
CN112073739A (en) Mobile recording and broadcasting control system and method
CN114039969A (en) Data transmission method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210608

RJ01 Rejection of invention patent application after publication