Movatterモバイル変換


[0]ホーム

URL:


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

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

Info

Publication number
CN113596585A
CN113596585ACN202110938530.0ACN202110938530ACN113596585ACN 113596585 ACN113596585 ACN 113596585ACN 202110938530 ACN202110938530 ACN 202110938530ACN 113596585 ACN113596585 ACN 113596585A
Authority
CN
China
Prior art keywords
video
file
resolution
encoding
coding
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
CN202110938530.0A
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.)
Hangzhou Huacheng Software Technology Co Ltd
Original Assignee
Hangzhou Huacheng Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Huacheng Software Technology Co LtdfiledCriticalHangzhou Huacheng Software Technology Co Ltd
Priority to CN202110938530.0ApriorityCriticalpatent/CN113596585A/en
Publication of CN113596585ApublicationCriticalpatent/CN113596585A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a video processing method and device, a storage medium and electronic equipment. Wherein, the method comprises the following steps: acquiring a video playback instruction; in response to a video playback instruction, determining a second coding file associated with the first coding file from an internally stored index relation table according to the video identification of the target video; the first coding file is a file obtained by coding collected original video data according to a first resolution, the second coding file is a file obtained by coding the original video data according to a second resolution, and the first resolution is higher than the second resolution; performing soft decoding on the second encoded file to obtain a second encoded video; and playing the second coded video. The invention solves the technical problem that recorded videos cannot be played due to the fact that a hard decoding module is not arranged in a main chip of a law enforcement instrument in the related technology.

Description

Video processing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of video processing technologies, and in particular, to a video processing method and apparatus, a storage medium, and an electronic device.
Background
In the related technology, the high-end law enforcement instrument with the display screen device comprises a main control module, a collection module, a hard coding module, a hard decoding module, a display module and the like, so that the requirement on a main chip is higher, the high-end law enforcement instrument needs to be provided with various functional modules, particularly, the high-end law enforcement instrument with the display screen device is provided with the hard decoding module, and the chip matched with the high-end law enforcement instrument is difficult to select due to the fact that the current mainstream chip is not provided with the hard decoding module, so that the technical problem that the recorded high-definition video cannot be played on the law enforcement instrument is caused.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a video processing method and device, a storage medium and electronic equipment, which at least solve the technical problem that recorded videos cannot be played due to the fact that a hard decoding module is not arranged in a main chip of a law enforcement instrument in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a video processing method, including: acquiring a video playback instruction, wherein the video playback instruction is used for requesting to play a target video in a video playing device, and the video playing device is configured to record a video with a resolution higher than a first threshold; in response to the video playback instruction, determining a second coding file associated with the first coding file from an internally stored index relation table according to the video identifier of the target video; the first encoding file is a file obtained by encoding collected original video data according to a first resolution, the second encoding file is a file obtained by encoding the original video data according to a second resolution, and the first resolution is higher than the second resolution; performing soft decoding on the second encoded file to obtain a second encoded video; and playing the second coded video.
According to another aspect of the embodiments of the present invention, there is also provided a video processing apparatus, including: the video playback device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a video playback instruction, the video playback instruction is used for requesting to play a target video in a video playing device, and the video playing device is configured to record a video with the resolution ratio higher than a first threshold value; a determining unit, configured to determine, in response to the video playback instruction, a second encoded file associated with the first encoded file from an index relation table stored inside according to the video identifier of the target video; the first encoding file is a file obtained by encoding collected original video data according to a first resolution, the second encoding file is a file obtained by encoding the original video data according to a second resolution, and the first resolution is higher than the second resolution; a decoding unit, configured to perform soft decoding on the second encoded file to obtain a second encoded video; and the playing unit is used for playing the second coded video.
According to a further aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned video processing method when running.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the video processing method described above by the computer program.
In the embodiment of the present invention, a video playback instruction is obtained, where the video playback instruction is used to request a video playing device to play a target video, and the video playing device is configured to record a video with a resolution higher than a first threshold; in response to the video playback instruction, determining a second coding file associated with the first coding file from an internally stored index relation table according to the video identifier of the target video; the first encoding file is a file obtained by encoding collected original video data according to a first resolution, the second encoding file is a file obtained by encoding the original video data according to a second resolution, and the first resolution is higher than the second resolution; performing soft decoding on the second encoded file to obtain a second encoded video; the second coding video mode is played, the purpose that the law enforcement instrument plays the corresponding recorded high-resolution video at low resolution without a chip of a hardware code module is achieved, the technical effects that the video recorded by the law enforcement instrument can be played only by soft decoding and the manufacturing cost is saved are achieved, and the technical problem that the video cannot be played and recorded due to the fact that a hard decoding module is not arranged in a main chip of the law enforcement instrument in the related technology is solved.
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 schematic diagram of an application environment of an alternative video processing method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an application environment of an alternative video processing method according to an embodiment of the invention;
FIG. 3 is a flow diagram illustrating an alternative video processing method according to an embodiment of the invention;
FIG. 4 is a block diagram of an alternative video processing apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart diagram of an alternative video processing method according to an embodiment of the invention;
FIG. 6 is a block diagram of an alternative video processing apparatus according to an embodiment of the present invention;
FIG. 7 is a block diagram of an alternative video processing apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of an alternative video processing apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic flow chart diagram of yet another alternative video processing method according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an alternative video processing apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
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. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, there is provided a video processing method, which may be applied, but not limited to, in the environment shown in fig. 1 as an optional implementation manner.
In fig. 1, the terminal device 104 is responsible for human-computer interaction with theuser 102, and the terminal device 104 includes a memory 106, a processor 108 and a display 110; the end devices 104 may interact with the management platform 114 via the network 112. The management platform 114 includes a database 116 and a processing engine 118; the management platform 114 determines the second encoded file associated with the first encoded file from the internally stored index relationship table based on the video identification of the target video.
As another alternative, the video processing method described above in this application can be applied to fig. 2. As shown in fig. 2, a human-computer interaction may be performed between auser 202 and a user device 204. The user equipment 204 includes a memory 206 and a processor 208. The user equipment 204 in this embodiment may refer to, but is not limited to, performing the operations performed by the terminal device 104 to implement playing the second encoded video.
Optionally, in this embodiment, the terminal device 104 and the user device 204 may be terminal devices configured with a target client, and may include but are not limited to at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, etc. The target client may be a video client, an instant messaging client, a browser client, an educational client, etc. The network 112 may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication. The management platform 114 may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is merely an example, and this is not limited in this embodiment.
Optionally, as an optional implementation manner, as shown in fig. 3, the video processing method includes:
s302, a video playback instruction is obtained, wherein the video playback instruction is used for requesting to play a target video in a video playing device, and the video playing device is configured to record a video with the resolution higher than a first threshold value;
s304, in response to the video playback instruction, determining a second encoding file associated with the first encoding file from an index relation table stored in the target video according to the video identifier of the target video; the first encoding file is a file obtained by encoding collected original video data according to a first resolution, the second encoding file is a file obtained by encoding the original video data according to a second resolution, and the first resolution is higher than the second resolution;
s306, carrying out soft decoding on the second coding file to obtain a second coding video;
s308, playing the second coded video.
Optionally, in this embodiment, the video processing method may be applied to, but not limited to, a video recording and playing device, such as a law enforcement recorder. This is an example, and this is not a limitation in this embodiment.
In step S302, in actual application, the video playback instruction may include, but is not limited to, triggering the video playback instruction by clicking or sliding the video recording and playing device. The video playing apparatus records videos with respective recording rates higher than the first threshold, that is, the recording resolution of the current video playing is high definition resolution, for example, the first threshold may be set to 1080p, and this embodiment is only an example, and is not limited herein.
In step S304, in actual application, the index relationship table stores relationships between FILEs with different resolutions, for example, the resolution of the currently recorded video is 1080p (first resolution), and then the second resolution is 320p, and at this time, the second encoded FILE2 of the second resolution 320p corresponding to the first encoded FILE1 of the first resolution 1080p is recorded in the index relationship table.
In step S306, in practical application, the second encoded file is a low resolution file, for example, a video encoded file with a resolution of 320p, and the video encoded file can be decoded by soft decoding.
In step S308, in actual application, the display may be directly displayed on the display screen of the current video playing device, or the screen projection display may be performed through a wireless network. And are not limited herein.
In the embodiment of the present invention, a video playback instruction is obtained, where the video playback instruction is used to request a video playing device to play a target video, and the video playing device is configured to record a video with a resolution higher than a first threshold; in response to the video playback instruction, determining a second coding file associated with the first coding file from an internally stored index relation table according to the video identifier of the target video; the first encoding file is a file obtained by encoding collected original video data according to a first resolution, the second encoding file is a file obtained by encoding the original video data according to a second resolution, and the first resolution is higher than the second resolution; performing soft decoding on the second encoded file to obtain a second encoded video; the second coding video mode is played, the purpose that the law enforcement instrument plays the corresponding recorded high-resolution video at low resolution without a chip of a hardware code module is achieved, the technical effects that the video recorded by the law enforcement instrument can be played only by soft decoding and the manufacturing cost is saved are achieved, and the technical problem that the video cannot be played and recorded due to the fact that a hard decoding module is not arranged in a main chip of the law enforcement instrument in the related technology is solved.
In one embodiment, step S306 may include the steps of: determining the type of the searched first wireless network; and activating a function module matched with the type of the first wireless network in the second electronic equipment so as to connect the second electronic equipment to the first wireless network through the function module. Here, since the type of the first wireless network may include, but is not limited to, a WIFI network, a bluetooth network, a ZigBee network, or the like, the second electronic device needs to activate a function module corresponding to the type of the first wireless network according to the type of the first wireless network. For example, if the type of the first wireless network is a WIFI network type, the WIFI module of the second electronic device is activated, and the first electronic device is connected to the WIFI network created by the first electronic device through the WIFI module.
In one embodiment, activating a function module in the second electronic device that matches the type of the first wireless network to connect the second electronic device to the first wireless network through the function module includes: activating a WIFI module matched with the WIFI network in the second electronic equipment under the condition that the type of the first wireless network is the WIFI network; connecting a first wireless network through a WIFI module according to the first wireless network information; the first wireless network information comprises a network identifier and an access password of the WIFI network.
In one or more embodiments, before the step S302 of acquiring the video playback instruction, the method includes:
the method comprises the steps of carrying out coding processing on collected original video data according to a first resolution ratio to obtain a first coding file; and encoding the acquired original video data according to a second resolution to obtain a second encoded file.
In one or more embodiments, encoding the acquired original video data according to a first resolution to obtain a first encoded file, includes: the method comprises the steps of carrying out coding processing on collected original video data corresponding to each time interval in different time intervals according to a first resolution ratio to obtain a first coding file of the original video data corresponding to each time interval;
encoding the acquired original video data according to a second resolution to obtain a second encoded file, comprising: and carrying out encoding processing on the acquired original video data corresponding to each time interval in different time intervals according to a second resolution to obtain a first encoding file and a second encoding file of the original video data corresponding to each time interval.
In one or more embodiments, before the obtaining the video playback instruction, the method further includes: writing the mapping relation between the first coding file and the second coding file into the index relation table; and storing the index relation table.
In one or more embodiments, the video processing method further includes:
storing the first encoded file into an internal high-speed storage module of the video playing device;
and storing the second coding file to an external storage module of the video playing device.
In one or more embodiments, the external storage module is an external memory card, and the format of the first encoded file is a common image transfer CIF format.
In one or more embodiments, the video processing method further includes:
the determining, in response to the video playback instruction, that the first encoded file associated with the second encoded file is previous to the first encoded file from the index association table includes: storing the second coding file to a background server through a wireless module;
the determining, in response to a video playback instruction, the first encoded file associated with the second encoded file from the index association table includes: responding to a video playback instruction, and determining the second coding file to be played from a background database; and determining the first encoding file associated with the second encoding file from an index association relation table.
Based on the above embodiments, the law enforcement instrument in the related art mainly functions to record video and play back video, and generally includes two types, namely a high-end law enforcement instrument and a low-end law enforcement instrument, the high-end law enforcement instrument has a display screen device, as shown in fig. 4, and mainly includes the following modules: anacquisition module 402, ahard coding module 404, an external storage module (TF card) 406, acontrol module 408, ahard decoding module 410, and adisplay module 412.
As shown in fig. 5, the main flow of the high-end device video processing method is as follows: step S502, the acquisition module starts video data acquisition; step S504, the hard coding module receives the collected data and generates coded data; step S506, the external storage module receives the coded data and stores the coded data as a local video file; step S508, receiving a video playback instruction, and appointing an external storage module to play back a video file; step S510, decoding the video file by a hard decoding module, and outputting decoded data; step S512, the display module receives the decoded data and displays the decoded data in real time.
In one embodiment, a low-end video apparatus is also provided, as shown in fig. 6, the main modules include anacquisition module 602, a hard-coding module 604, acontrol module 606, anexternal storage module 608,
as shown in fig. 7, the main flow of the video processing method of the low-end video apparatus is as follows: step S702, an acquisition module starts data acquisition; step S704, the hard coding module receives the collected data and generates coded data; step S706, the external storage module receives the encoded data and stores the encoded data as a local video file.
In one embodiment, an internal high speed storage module is added to store the low resolution video files and a soft decoding module is added to decode the low resolution video files. As shown in fig. 8, the device comprises anacquisition module 802, ahard coding module 804, anexternal storage module 806, acontrol module 808, asoft decoding module 810, adisplay module 812, and an internal high-speed storage module 814.
As shown in fig. 9, in an embodiment, the video processing method includes: step S902, the acquisition module starts data acquisition; step S904, the hard coding module receives the collected data, generates dual-code stream data and codes the data respectively; step S906, the internal high-speed storage module receives the low-resolution data of the dual-code stream and stores the data as a local video file; step S908, the external storage module receives the high-resolution coding data of the dual-code stream and stores the coding data as a local video file; step S910, establishing a one-to-one corresponding index table for the low resolution files and the high resolution files, and storing the index record table to an internal high-speed module; step S912, receiving a video playback instruction, and designating an external storage module to play back a video file; step S914, read the index record of the internal high-speed module, find the small resolution video file that is stored correspondingly inside; in step S916, the soft decoding module receives the small resolution video file of the internal high speed module and decodes the small resolution video file in real time. In step S918, the display module receives the decoded data and displays the decoded data in real time. In this embodiment, the hard coding module generates two resolution code streams, which are stored in the external storage module and the internal high-speed storage module, respectively, where the external storage module is used to store a user-defined resolution, such as 1080P, and the internal storage module stores a default small resolution, such as CIF, that is invisible to the user. The external storage module and the video recording files stored in the internal storage module correspond to each other one by one, an internal index is established, and the internal index and the video recording files are also stored in the internal high-speed module. Because the screens of the law enforcement instruments are small and the requirement on the definition of the video is not high, the scheme of decoding the small-resolution video file by using the soft decoding module can meet the video playing requirement when no hard decoding module exists.
In the embodiment of the present invention, a video playback instruction is obtained, where the video playback instruction is used to request a video playing device to play a target video, and the video playing device is configured to record a video with a resolution higher than a first threshold; in response to the video playback instruction, determining a second coding file associated with the first coding file from an internally stored index relation table according to the video identifier of the target video; the first encoding file is a file obtained by encoding collected original video data according to a first resolution, the second encoding file is a file obtained by encoding the original video data according to a second resolution, and the first resolution is higher than the second resolution; performing soft decoding on the second encoded file to obtain a second encoded video; the second coding video mode is played, the purpose that the law enforcement instrument plays the corresponding recorded high-resolution video at low resolution without a chip of a hardware code module is achieved, the technical effects that the video recorded by the law enforcement instrument can be played only by soft decoding and the manufacturing cost is saved are achieved, and the technical problem that the video cannot be played and recorded due to the fact that a hard decoding module is not arranged in a main chip of the law enforcement instrument in the related technology is solved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiments of the present invention, there is also provided a video processing apparatus for implementing the above-described video processing method. As shown in fig. 10, the apparatus includes:
an obtainingunit 1002, configured to obtain a video playback instruction, where the video playback instruction is used to request that a target video is played in a video playing device, and the video playing device is configured to play a video with a resolution higher than a first threshold;
a determiningunit 1004, configured to determine, in response to the video playback instruction, a second encoded file associated with the first encoded file from an internally stored index relationship table according to the video identifier of the target video; the first encoding file is a file obtained by encoding collected original video data according to a first resolution, the second encoding file is a file obtained by encoding the original video data according to a second resolution, and the first resolution is higher than the second resolution;
adecoding unit 1006, configured to perform soft decoding on the second encoded file to obtain a second encoded video;
aplaying unit 1008, configured to play the second encoded video.
Optionally, in this embodiment, the video processing method may be applied to, but not limited to, a video recording and playing device, such as a law enforcement recorder. This is an example, and this is not a limitation in this embodiment.
In step S302, in actual application, the video playback instruction may include, but is not limited to, triggering the video playback instruction by clicking or sliding the video recording and playing device. The video playing apparatus records videos with respective recording rates higher than the first threshold, that is, the recording resolution of the current video playing is high definition resolution, for example, the first threshold may be set to 1080p, and this embodiment is only an example, and is not limited herein.
In the embodiment of the present invention, the index relationship table stores relationships between FILEs with different resolutions, for example, the resolution of the currently recorded video is 1080p (first resolution), then the second resolution is 320p, and at this time, the second encoded FILE2 of the second resolution 320p corresponding to the first encoded FILE1 of the first resolution 1080p is recorded in the index relationship table.
In the embodiment of the present invention, the second encoded file is a low resolution file, for example, a video encoded file with a resolution of 320p, and the decoding of the video encoded file can be implemented by soft decoding.
In the embodiment of the invention, the display can be directly carried out on the display screen of the current video playing equipment, and the screen projection display can also be carried out through a wireless network. And are not limited herein.
In the embodiment of the present invention, a video playback instruction is obtained, where the video playback instruction is used to request a video playing device to play a target video, and the video playing device is configured to record a video with a resolution higher than a first threshold; in response to the video playback instruction, determining a second coding file associated with the first coding file from an internally stored index relation table according to the video identifier of the target video; the first encoding file is a file obtained by encoding collected original video data according to a first resolution, the second encoding file is a file obtained by encoding the original video data according to a second resolution, and the first resolution is higher than the second resolution; performing soft decoding on the second encoded file to obtain a second encoded video; the second coding video mode is played, the purpose that the law enforcement instrument plays the corresponding recorded high-resolution video at low resolution without a chip of a hardware code module is achieved, the technical effects that the video recorded by the law enforcement instrument can be played only by soft decoding and the manufacturing cost is saved are achieved, and the technical problem that the video cannot be played and recorded due to the fact that a hard decoding module is not arranged in a main chip of the law enforcement instrument in the related technology is solved.
In one or more embodiments, the video processing apparatus further includes: the first processing unit is used for coding the acquired original video data according to a first resolution ratio to obtain a first coding file;
and the second processing unit is used for encoding the acquired original video data according to a second resolution to obtain a second encoded file.
In one or more embodiments, the first processing unit includes: the first processing module is used for coding the acquired original video data corresponding to each time interval in different time intervals according to a first resolution ratio to obtain a first coding file of the original video data corresponding to each time interval;
the second processing unit includes: and the second processing module is used for coding the acquired original video data corresponding to each time interval in different time intervals according to a second resolution to obtain a first coding file and a second coding file of the original video data corresponding to each time interval.
In one or more embodiments, the video processing apparatus further includes:
a writing unit, configured to write the mapping relationship between the first encoded file and the second encoded file into the index relationship table;
and the first storage unit is used for storing the index relation table.
In one or more embodiments, the video processing apparatus further includes:
a second storage unit, configured to store the first encoded file in an internal high-speed storage module of the video playback device;
and a third storage unit, configured to store the second encoded file in an external storage module of the video playback device.
In one or more embodiments, in the video processing apparatus, the external storage module is an external memory card, and a format of the first encoded file is a common image transfer CIF format.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the video processing method, where the electronic device may be the terminal device or the management platform shown in fig. 1. As shown in fig. 11, the electronic device comprises amemory 1102 and aprocessor 1104, wherein thememory 1102 stores a computer program and theprocessor 1104 is arranged to execute the steps of any of the above method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a video playback instruction, wherein the video playback instruction is used for requesting to play a target video in a video playing device, and the video playing device is configured to play a video with a resolution higher than a first threshold;
s2, in response to the video playback instruction, determining a second encoding file associated with the first encoding file from an index relation table stored in the interior according to the video identifier of the target video; the first encoding file is a file obtained by encoding collected original video data according to a first resolution, the second encoding file is a file obtained by encoding the original video data according to a second resolution, and the first resolution is higher than the second resolution;
s3, carrying out soft decoding on the second coded file to obtain a second coded video;
and S4, playing the second coded video.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 11 is only an illustration, and the electronic device or electronic device may also be a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Devices (MID), a PAD, or other electronic Devices. Fig. 11 is a diagram illustrating a structure of the electronic device. For example, the electronics may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 11, or have a different configuration than shown in FIG. 11.
Thememory 1102 may be used to store software programs and modules, such as program instructions/modules corresponding to the video processing method and apparatus in the embodiments of the present invention, and theprocessor 1104 executes various functional applications and data processing by operating the software programs and modules stored in thememory 1102, so as to implement the video processing method described above. Thememory 1102 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, thememory 1102 can further include memory located remotely from theprocessor 1104 and such remote memory can be coupled to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Thememory 1102 may be, but is not limited to, specifically configured to store a first encoded file and a second encoded file. As an example, as shown in fig. 11, thememory 1102 may include, but is not limited to, an obtainingunit 1002, a determiningunit 1004, adecoding unit 1006, and aplaying unit 1008 in the video processing apparatus. In addition, the video processing apparatus may further include, but is not limited to, other module units in the video processing apparatus, which is not described in this example again.
Optionally, thetransmitting device 1106 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, thetransmission device 1106 includes a Network adapter (NIC) that can be connected to a router via a Network cable to communicate with the internet or a local area Network. In one example, thetransmission device 1106 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: adisplay 1108 for displaying the first encoded file and the second encoded file; and aconnection bus 1110 for connecting the respective module components in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to a further aspect of an embodiment of the present invention, there is also provided 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 method embodiments when executed.
Alternatively, 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, acquiring a video playback instruction, wherein the video playback instruction is used for requesting to play a target video in a video playing device, and the video playing device is configured to play a video with a resolution higher than a first threshold;
s2, in response to the video playback instruction, determining a second encoding file associated with the first encoding file from an index relation table stored in the interior according to the video identifier of the target video; the first encoding file is a file obtained by encoding collected original video data according to a first resolution, the second encoding file is a file obtained by encoding the original video data according to a second resolution, and the first resolution is higher than the second resolution;
s3, carrying out soft decoding on the second coded file to obtain a second coded video;
and S4, playing the second coded video.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, or network devices) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.

Claims (10)

CN202110938530.0A2021-08-162021-08-16Video processing method and device, storage medium and electronic equipmentPendingCN113596585A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110938530.0ACN113596585A (en)2021-08-162021-08-16Video processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110938530.0ACN113596585A (en)2021-08-162021-08-16Video processing method and device, storage medium and electronic equipment

Publications (1)

Publication NumberPublication Date
CN113596585Atrue CN113596585A (en)2021-11-02

Family

ID=78258136

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110938530.0APendingCN113596585A (en)2021-08-162021-08-16Video processing method and device, storage medium and electronic equipment

Country Status (1)

CountryLink
CN (1)CN113596585A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105959799A (en)*2016-05-272016-09-21北京金山安全软件有限公司Video compression method and device and electronic equipment
WO2016165556A1 (en)*2015-04-152016-10-20腾讯科技(深圳)有限公司Data processing method, device and system for video stream
CN106162232A (en)*2016-06-292016-11-23乐视控股(北京)有限公司video playing control method and device
CN107707976A (en)*2017-09-292018-02-16维沃移动通信有限公司A kind of video encoding/decoding method and mobile terminal
CN107736019A (en)*2017-08-312018-02-23深圳市锐明技术股份有限公司Vehicle-mounted security-monitoring monitoring method, system and terminal device
CN107948674A (en)*2017-12-072018-04-20天津天地伟业机器人技术有限公司A kind of VOD method applied in NVR equipment
CN112672212A (en)*2020-12-162021-04-16深圳乐播科技有限公司Video transcoding screen projection method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2016165556A1 (en)*2015-04-152016-10-20腾讯科技(深圳)有限公司Data processing method, device and system for video stream
CN105959799A (en)*2016-05-272016-09-21北京金山安全软件有限公司Video compression method and device and electronic equipment
CN106162232A (en)*2016-06-292016-11-23乐视控股(北京)有限公司video playing control method and device
CN107736019A (en)*2017-08-312018-02-23深圳市锐明技术股份有限公司Vehicle-mounted security-monitoring monitoring method, system and terminal device
CN107707976A (en)*2017-09-292018-02-16维沃移动通信有限公司A kind of video encoding/decoding method and mobile terminal
CN107948674A (en)*2017-12-072018-04-20天津天地伟业机器人技术有限公司A kind of VOD method applied in NVR equipment
CN112672212A (en)*2020-12-162021-04-16深圳乐播科技有限公司Video transcoding screen projection method, device and system

Similar Documents

PublicationPublication DateTitle
CN102685597B (en)Device, mobile terminal and method of content reappearing
US10929460B2 (en)Method and apparatus for storing resource and electronic device
CN103139651A (en)Method and system of video switching display
CN113891105A (en) Screen display method and device, storage medium and electronic device
CN109062930A (en)A kind of method, apparatus and system based on two dimensional code mark video
CN106162357A (en)Obtain the method and device of video content
CN110650357B (en)Video decoding method and device
CN110519607A (en)Video encoding/decoding method and device, method for video coding and device
CN110719526B (en)Video playing method and device
CN113596585A (en)Video processing method and device, storage medium and electronic equipment
CN114245156A (en)Live broadcast audio adjusting method and device, storage medium and electronic equipment
CN113391741A (en)Operation checking method and device, storage medium and electronic equipment
CN110677676A (en)Video encoding method and apparatus, video decoding method and apparatus, and storage medium
CN110677692B (en)Video decoding method and device and video encoding method and device
CN110321441A (en)A kind of method and relevant device generating recommendation information
CN113099270B (en)File storage method, decoding method, device, storage medium and electronic device
CN113066139A (en)Picture processing method and device, storage medium and electronic equipment
CN103780976B (en)System and method for constructing scene segments
US8762545B2 (en)Network data sharing system for sharing multimedia data on network and handheld electronic device thereof
CN110545431A (en)video decoding method and device and video encoding method and device
CN114911446B (en)Graphic code display method, graphic code display device, electronic equipment and computer readable storage medium
CN103686197B (en)The method of the program source of extension television set and television set
CN110611824B (en)Highlight video generation method, highlight video generation device using the same, and medium
HK40019399A (en)Method and apparatus for video decoding
HK40019399B (en)Method and apparatus for video decoding

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20211102


[8]ページ先頭

©2009-2025 Movatter.jp