CN111010599B - Method and device for processing multi-scene video stream and computer equipment - Google Patents

Method and device for processing multi-scene video stream and computer equipment Download PDF

Info

Publication number
CN111010599B
CN111010599B CN201911311036.0A CN201911311036A CN111010599B CN 111010599 B CN111010599 B CN 111010599B CN 201911311036 A CN201911311036 A CN 201911311036A CN 111010599 B CN111010599 B CN 111010599B
Authority
CN
China
Prior art keywords
video stream
stream data
scene
data
processing unit
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.)
Active
Application number
CN201911311036.0A
Other languages
Chinese (zh)
Other versions
CN111010599A (en
Inventor
宣辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201911311036.0A priority Critical patent/CN111010599B/en
Publication of CN111010599A publication Critical patent/CN111010599A/en
Application granted granted Critical
Publication of CN111010599B publication Critical patent/CN111010599B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching

Abstract

The invention discloses a method and a device for processing a multi-scene video stream and computer equipment, which are used for improving the processing efficiency of the multi-scene video stream. The method comprises the following steps: receiving a plurality of video stream data corresponding to a plurality of scenes, wherein each video stream data in the plurality of video stream data at least comprises real-time video data corresponding to one scene and scene parameter information corresponding to one scene; according to scene parameter information included in each video stream data in the video stream data, synchronously performing scene parameter verification processing on the video stream data to determine scene identification information corresponding to each video stream data; and triggering a video stream processing unit corresponding to the scene identification information in the multi-path video stream processing unit according to the scene identification information corresponding to the video stream data, and processing the real-time video data in the video stream data so that the multi-path video stream processing unit can process a plurality of video stream data in parallel.

Description

Method and device for processing multi-scene video stream and computer equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing a multi-scene video stream, and a computer device.
Background
At present, in scenes with high crowd density, such as various malls, subways, high-speed rails and the like, a plurality of shooting devices are usually arranged at different positions and different places, so that the scenes with high crowd density can be better managed.
However, in the actual process of processing video information, generally, video streams acquired from all scenes are transmitted to all scene video processing units according to the acquisition time, and then all scene video processing units concurrently determine whether the video streams can be processed, if so, the processable process is performed, and if not, other processing units do not perform the process. Therefore, the processing efficiency of the multi-scene video stream in the prior art is low.
Disclosure of Invention
The embodiment of the invention provides a method for processing multi-scene video stream, which is used for solving the technical problem of low processing efficiency of multi-scene video stream data in the prior art.
In a first aspect, a method for processing a multi-scene video stream is provided, the method comprising:
receiving a plurality of video stream data corresponding to a plurality of scenes, wherein each video stream data in the plurality of video stream data at least comprises real-time video data corresponding to one scene and scene parameter information corresponding to the one scene;
according to scene parameter information included in each video stream data in the video stream data, synchronously performing scene parameter verification processing on the video stream data to determine scene identification information corresponding to each video stream data;
triggering a video stream processing unit corresponding to the scene identification information in a multi-path video stream processing unit according to the scene identification information corresponding to the video stream data, and processing real-time video data in the video stream data so that the multi-path video stream processing unit can process the plurality of video stream data in parallel.
In a possible implementation manner, performing, according to scene parameter information included in each of the plurality of video stream data, a scene parameter check process on the plurality of video stream data synchronously to determine scene identification information corresponding to each of the plurality of video stream data includes:
judging whether scene parameter information included in each video stream data in the plurality of video stream data and any set parameter information of the multi-channel video stream processing unit have a correlation;
and if the scene parameter information included in the first video stream data in the plurality of video stream data is in a correlation relationship with the setting parameter information of the first video stream processing unit, determining the scene identification information corresponding to the first video stream data.
In a possible implementation manner, if the scene parameter information included in the second video stream data of the plurality of video stream data is not related to the setting parameter information of any video stream processing unit, the second video stream data is discarded.
In a possible implementation manner, triggering a video stream processing unit corresponding to scene identification information in multiple paths of video stream processing units according to the scene identification information corresponding to video stream data, and processing real-time video data in the video stream data includes:
determining unit index information of a video stream processing unit corresponding to the scene identification information according to the scene identification information and a preset rule;
and triggering a video stream processing unit corresponding to the unit index information in the multi-path video stream processing unit according to the unit index information, and processing the real-time video data in the video stream data.
In one possible implementation, the processing mechanism of the multi-path video stream processing unit is multi-thread concurrent processing.
In a second aspect, an apparatus for processing a multi-scene video stream is provided, the apparatus comprising:
a receiving unit, configured to receive a plurality of video stream data corresponding to a plurality of scenes, where each of the plurality of video stream data at least includes real-time video data corresponding to one scene and scene parameter information corresponding to the one scene;
a determining unit, configured to perform scene parameter verification processing on the plurality of pieces of video stream data synchronously according to scene parameter information included in each piece of video stream data in the plurality of pieces of video stream data, so as to determine scene identification information corresponding to each piece of video stream data;
and the processing unit is used for triggering the video stream processing unit corresponding to the scene identification information in the multi-path video stream processing unit according to the scene identification information corresponding to the video stream data, and processing the real-time video data in the video stream data so that the multi-path video stream processing unit can process the plurality of video stream data in parallel.
In a possible implementation, the determining unit is configured to:
judging whether scene parameter information included in each video stream data in the plurality of video stream data and any set parameter information of the multi-channel video stream processing unit have a correlation;
and if the scene parameter information included in the first video stream data in the plurality of video stream data is in a correlation relationship with the setting parameter information of the first video stream processing unit, determining the scene identification information corresponding to the first video stream data.
In a possible implementation, the determining unit is further configured to:
and if the scene parameter information included in the second video stream data in the plurality of video stream data is not related to the setting parameter information of any video stream processing unit, discarding the second video stream data.
In a possible implementation, the processing unit is configured to:
determining unit index information of a video stream processing unit corresponding to the scene identification information according to the scene identification information and a preset rule;
and triggering a video stream processing unit corresponding to the unit index information in the multi-path video stream processing unit according to the unit index information, and processing the real-time video data in the video stream data.
In one possible implementation, the processing mechanism of the multi-path video stream processing unit is multi-thread concurrent processing.
In a third aspect, a computer device is provided, the computer device comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the steps included in any of the methods of the first aspect according to the obtained program instructions.
In a fourth aspect, there is provided a storage medium having stored thereon computer-executable instructions for causing a computer to perform the steps included in any one of the methods of the first aspect.
In a fifth aspect, a computer program product is provided, which, when run on a computer device, enables the computer device to perform the steps comprised in any of the methods of the first aspect.
The technical scheme provided by the embodiment of the invention at least has the following beneficial effects:
in the embodiment of the present invention, a plurality of pieces of video stream data corresponding to multiple scenes may be received, and then, according to scene parameter information included in each piece of video stream data in the plurality of pieces of video stream data, a scene parameter check process may be performed on the plurality of pieces of video stream data synchronously, so that scene identification information corresponding to each piece of video stream data may be determined. That is to say, the embodiment of the present invention may perform the scene parameter verification processing on a plurality of video stream data at the same time, and thus, the processing efficiency on the video stream data may be improved.
Further, the video stream processing unit corresponding to the scene identification information in the multi-path video stream processing unit may be triggered according to the scene identification information corresponding to the video stream data to process the real-time video data in the video stream data, so that the multi-path video stream processing unit performs parallel processing on the plurality of video stream data. In other words, in the embodiment of the present invention, the scene parameter verification processing may be performed on multiple pieces of video stream data at the same time, and after determining multiple pieces of scene identification information, multiple pieces of video stream processing units corresponding to the scene identifications may be triggered synchronously to perform processing, so that the processing efficiency of the video stream data may be improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention.
FIG. 1 is a schematic diagram of an application scenario in an embodiment of the present invention;
FIG. 2 is a flow chart of a method of processing a multi-scene video stream in an embodiment of the invention;
fig. 3 is a block diagram illustrating an apparatus for processing a multi-scene video stream according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying 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. The embodiments and features of the embodiments of the present invention may be arbitrarily combined with each other without conflict. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The terms "first" and "second" in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the term "comprises" and any variations thereof, which are intended to cover non-exclusive protection. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
In the embodiment of the present invention, the "plurality" may mean at least two, for example, two, three, or more, and the embodiment of the present invention is not limited.
As described above, in the prior art, when video stream data of a plurality of scenes are acquired, the video stream data are sorted first, and then the video stream data sorted most forward is sent to all the video stream processing units, so that all the video stream processing units process and judge the video stream data sorted most forward, and when it is determined that the processing is possible, the video stream data sorted most forward is processed, which results in a waste of computing power of other processing units, and a low efficiency of processing the video stream data of the plurality of scenes.
In view of this, the present invention provides a method for processing a multi-scene video stream, by which a scene of a multi-path multi-scene video stream data can be determined in advance, and then the video stream is sent to a video stream processing unit corresponding to the multi-scene video stream data, so that the efficiency of checking that the video stream data belongs to a certain scene is improved, and the efficiency of processing the multi-scene video stream is improved.
After the design idea of the embodiment of the present invention is introduced, some simple descriptions are made below to application scenarios to which the technical solution of the method for processing a multi-scene video stream in the embodiment of the present invention is applicable, and it should be noted that the application scenarios described below are only used for illustrating the embodiment of the present invention and are not limited. In specific implementation, the technical scheme provided by the embodiment of the invention can be flexibly applied according to actual needs.
In an actual implementation process, a plurality of scenes for acquiring high-density crowd image data information may be set at different places and at different heights, and specifically, the scenes may be shopping malls, campuses, high-speed rail stations, subway stations, and the like.
Referring to fig. 1, in an embodiment of the present invention, a computer device may receive a plurality of capturing devices for capturing video data of different places, which are set in a shopping mall, specifically, the capturing devices may be cameras or video capturing devices including video capturing accessories and cameras, where the video capturing accessories include lenses, holders, decoders, supports, protective covers, video distributors, and the like. It should be noted that fig. 1 is only exemplarily shown with one computer device and 3 video capture devices. In a specific implementation, a plurality of video capture devices, for example, 5 video capture devices, may transmit video data to the computer device, or 10 video capture devices may transmit video data to the computer device. Of course, a plurality of computer devices may interact with a plurality of different video capture devices, which is not limited in the embodiment of the present invention.
In a specific implementation process, real-time video data acquired by an acquisition device (e.g., a camera) with a definition of 1080P and a length of less than 9 meters may be used as real-time video data of a scene, data acquired by a camera with a definition of 8K and a length of more than 9 meters may be used as real-time video data of a scene, and of course, real-time video data acquired by an acquisition device with a definition of 1080P and a length of more than 9 meters may be used as real-time video data of a scene. That is to say, the real-time video data of multiple scenes in the embodiment of the present invention may be understood as the real-time video data collected by the video collecting devices with different set heights and different collection definitions.
Further, after the real-time video data acquired by the plurality of acquisition devices is obtained, the scene parameters corresponding to the acquisition devices can be synchronously acquired, the scene parameters are used for representing the setting parameters of the video acquisition devices, for example, the setting height of the video acquisition devices can be 7 meters, the definition is 1080P, and then the real-time video data and the scene parameters are synchronously packed into one path of video stream data to be transmitted, so that the computer device can acquire the path of video stream data. In a specific implementation process, the multiple paths of multi-scene video stream data acquired by the computer device may be in the aforementioned acquisition mode, and the acquired video stream data includes real-time video data and scene parameter information.
In the embodiment of the invention, after the video stream data is obtained, the computer equipment can firstly carry out scene check on the input multi-path multi-scene video stream data, so that the scene identification information corresponding to the video stream data can be determined, and then the index identification of the corresponding video stream processing unit is determined according to the scene identification information.
In a specific implementation process, the computer device may set a plurality of different video stream processing units in advance for a plurality of scenes to be processed, where the video stream processing units may be understood as algorithm models for different scenes. It should be noted that, in the embodiment of the present invention, for convenience of description, the processing library including multiple video stream processing units may be referred to as a multiple video stream processing unit, and a processing mechanism of the multiple video stream processing unit is multi-thread concurrent processing.
The method for processing a multi-scene video stream according to the embodiment of the present invention is described below with reference to the method flowchart shown in fig. 2, and the steps shown in fig. 2 can be executed by the aforementioned computer device in fig. 1. In an implementation, the computer device may be a server, such as a personal computer, a midrange computer, a cluster of computers, and so forth.
A plurality of video stream data corresponding to a plurality of scenes is received, step 201.
In the embodiment of the present invention, the computer device may receive a plurality of video stream data corresponding to multiple scenes, specifically, the video stream data of the multiple scenes received by the computer device may be a plurality of video stream data corresponding to multiple scenes belonging to the same application scene (for example, a shopping mall), for example, video stream data acquired by a video acquisition device including a video acquisition accessory and a camera, of a plurality of different scenes set in a department store; or multiple video stream data corresponding to multiple scenes of different application scenes, for example, the computer device may receive video stream data collected from a video capture device disposed in an airport and video stream data collected from a video capture device disposed in a high-speed rail station.
In a specific implementation process, the computer device receives a plurality of video stream data corresponding to a plurality of scenes, wherein each video stream data in the plurality of video stream data at least comprises real-time video data corresponding to one scene and scene parameter information corresponding to one scene, and specifically, the real-time video data at least comprises crowd flowing audio/video information and crowd conversation audio/video information.
Step 202: according to scene parameter information included in each video stream data in the plurality of video stream data, synchronously performing scene parameter verification processing on the plurality of video stream data to determine scene identification information corresponding to each video stream data.
In the embodiment of the present invention, it may be determined whether scene parameter information included in each of the plurality of pieces of video stream data and any setting parameter information of the plurality of paths of video stream processing units have an association, and if the scene parameter information included in a first piece of video stream data among the plurality of pieces of video stream data and the setting parameter information of the first piece of video stream processing units have an association, scene identification information corresponding to the first piece of video stream data is determined.
In a specific implementation process, the method for checking and processing the scene parameter included in any one of the video stream data may be to determine whether the scene parameter information included in the video stream data and any setting parameter information of the multiple video stream processing units have a relationship, and specifically, in the embodiment of the present invention, the relationship may be that the scene parameter information and the setting parameter information have partial information that is the same or information that is completely the same, and certainly, the scene parameter information and the setting parameter information have a corresponding relationship.
For example, when it is determined that the scene parameter information of the a video stream data is 5 meters in set height and 1080P in video definition, it may be determined whether there is setting parameter information of 5 meters in set height and 1080P in video definition from a place (for example, a storage unit or a database) where the setting parameter information corresponding to the multiple video stream processing unit is stored.
Further, in the embodiment of the present invention, when it is determined that the scene parameter information included in the first video stream data of the plurality of video stream data has an association relationship with the setting parameter information of the first video stream processing unit, the scene identification information corresponding to the first video stream data may be determined. The scene identification information may be a character, a number, a letter, or the like, which is not limited in the embodiment of the present invention.
For example, continuing with the foregoing example as an example, when it is determined that the setting parameter information of the first video stream processing unit is 5 meters in setting height and 1080P in video definition, it may be determined that the a video stream data has an association with the first video stream processing unit, and thus the scene identification information, i.e., 1, corresponding to 5 meters in setting height and 1080P in video definition may be taken as the scene identification information of the a video stream data.
In this embodiment of the present invention, the foregoing method may be adopted to perform scene parameter verification processing on multiple pieces of video stream data synchronously according to scene parameter information included in each piece of video stream data, so as to determine scene identification information corresponding to each piece of video stream data.
In the embodiment of the present invention, when the foregoing method is adopted to perform scene parameter verification processing on multiple pieces of video stream data synchronously, and when it is determined that the scene parameter information included in a second piece of video stream data in the multiple pieces of video stream data does not have a relationship with the setting parameter information of any video stream processing unit, the second piece of video stream data is discarded.
In a specific implementation process, there may be video stream data that cannot be processed by the multiple video stream processing units in the multiple video stream data received by the computer device, and during the scene parameter verification processing, the video stream data that cannot be processed by the multiple video stream processing units is determined, so that the video stream data is discarded. In such a mode, the received multiple video stream data can be judged in parallel in advance, and the processing efficiency of the multiple video stream data is improved.
Step 203: and triggering a video stream processing unit corresponding to the scene identification information in the multi-path video stream processing unit according to the scene identification information corresponding to the video stream data, and processing the real-time video data in the video stream data so that the multi-path video stream processing unit can process a plurality of video stream data in parallel.
In the embodiment of the present invention, when the scene identification information corresponding to the video stream data is obtained, the video stream processing unit corresponding to the scene identification information in the multi-path video stream processing unit may be triggered to process the real-time video data in the video stream data, so that the multi-path video stream processing unit may process a plurality of video stream data in parallel.
In a specific implementation process, the unit index information of the video stream processing unit corresponding to the scene identification information may be determined according to the scene identification information and a preset rule, and then the video stream processing unit corresponding to the unit index information in the multiple paths of video stream processing units may be triggered according to the unit index information to process real-time video data in the video stream data.
In the embodiment of the present invention, the scene identification information may be understood as identification information of video stream data, the unit index information may be understood as identification information of a video stream processing unit, and then the scene identification information and the unit index information may be matched by a preset rule, so that a corresponding video stream processing unit capable of processing the video stream data may be determined. The preset rule may match the scene identification information according to a corresponding matching pair of the predetermined scene identification information and the unit index information, so as to determine the corresponding unit index information.
Further, the multi-path video stream processing unit performs parallel processing on the plurality of video stream data, and may obtain processing information of the plurality of video stream data at the same time, for example, heat map information of the crowd flowing corresponding to the video stream data.
Based on the same inventive concept, embodiments of the present invention provide an apparatus for processing a multi-scene video stream, where the apparatus for processing a multi-scene video stream can implement a function corresponding to the foregoing method for processing a multi-scene video stream. The means for processing the multi-scene video stream may be a hardware structure, a software module, or a hardware structure plus a software module. The device for processing the multi-scene video stream can be realized by a chip system, and the chip system can be formed by a chip and can also comprise the chip and other discrete devices. Referring to fig. 3, the apparatus for processing a multi-scene video stream includes a receiving unit 301, a determining unit 303, and a processing unit 303. Wherein:
a receiving unit 301, configured to receive a plurality of video stream data corresponding to multiple scenes, where each of the plurality of video stream data at least includes real-time video data corresponding to one scene and scene parameter information corresponding to the one scene;
a determining unit 302, configured to perform scene parameter verification processing on the plurality of pieces of video stream data synchronously according to scene parameter information included in each piece of video stream data in the plurality of pieces of video stream data, so as to determine scene identification information corresponding to each piece of video stream data;
the processing unit 303 is configured to trigger a video stream processing unit corresponding to the scene identifier information in the multiple paths of video stream processing units according to the scene identifier information corresponding to the video stream data, and process the real-time video data in the video stream data, so that the multiple paths of video stream processing units perform parallel processing on the multiple video stream data.
In a possible implementation, the determining unit 302 is configured to:
judging whether scene parameter information included in each video stream data in the plurality of video stream data and any set parameter information of the multi-channel video stream processing unit have a correlation;
and if the scene parameter information included in the first video stream data in the plurality of video stream data is in a correlation relationship with the setting parameter information of the first video stream processing unit, determining the scene identification information corresponding to the first video stream data.
In a possible implementation, the determining unit 302 is further configured to:
and if the scene parameter information included in the second video stream data in the plurality of video stream data is not related to the setting parameter information of any video stream processing unit, discarding the second video stream data.
In a possible implementation, the processing unit 303 is configured to:
determining unit index information of a video stream processing unit corresponding to the scene identification information according to the scene identification information and a preset rule;
and triggering a video stream processing unit corresponding to the unit index information in the multi-path video stream processing unit according to the unit index information, and processing the real-time video data in the video stream data.
In one possible implementation, the processing mechanism of the multi-path video stream processing unit is multi-thread concurrent processing.
In one possible implementation, the processing mechanism of the multi-path video stream processing unit is multi-thread concurrent processing. All relevant contents of each step involved in the foregoing embodiment of the method for processing a multi-scene video stream may be referred to the functional description of the functional module corresponding to the apparatus for processing a multi-scene video stream in the embodiment of the present invention, and are not described herein again.
The division of the modules in the embodiments of the present invention is schematic, and only one logical function division is provided, and in actual implementation, there may be another division manner, and in addition, each functional module in each embodiment of the present invention may be integrated in one processor, or may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Based on the same inventive concept, an embodiment of the present invention provides a computer device, please refer to fig. 4, where the computer device includes at least one processor 401 and a memory 402 connected to the at least one processor, a specific connection medium between the processor 401 and the memory 402 is not limited in the embodiment of the present invention, in fig. 4, the processor 401 and the memory 402 are connected through a bus 400 as an example, the bus 400 is represented by a thick line in fig. 4, and a connection manner between other components is only schematically illustrated and not limited. The bus 400 may be divided into an address bus, a data bus, a control bus, etc., and is shown with only one thick line in fig. 4 for ease of illustration, but does not represent only one bus or type of bus.
In the embodiment of the present invention, the memory 402 stores instructions executable by the at least one processor 401, and the at least one processor 401 may execute the steps included in the foregoing method for processing a multi-scene video stream by executing the instructions stored in the memory 402.
The processor 401 is a control center of the computer device, and may connect various portions of the entire computer device by using various interfaces and lines, and perform various functions and process data of the computer device by executing or executing instructions stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the computer device.
Optionally, the processor 401 may include one or more processing units, and the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles an operating system, a user interface, an application program, and the like, and the modem processor mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401. In some embodiments, processor 401 and memory 402 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 401 may be a general-purpose processor, such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
Memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 402 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 402 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 402 of embodiments of the present invention may also be circuitry or any other device capable of performing a storage function to store program instructions and/or data.
By programming the processor 401, the code corresponding to the method for processing a multi-scene video stream described in the foregoing embodiment may be solidified in the chip, so that the chip can execute the steps of the method for processing a multi-scene video stream when running.
Based on the same inventive concept, embodiments of the present invention also provide a storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the steps of the method for processing a multi-scene video stream as described above.
In some possible embodiments, the aspects of the method for processing a multi-scene video stream provided by the present invention can also be implemented in the form of a program product, which includes program code for causing an apparatus for processing a multi-scene video stream to perform the steps in the method for processing a multi-scene video stream according to various exemplary embodiments of the present invention described above in this specification when the program product is run on the apparatus for processing a multi-scene video stream.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A method of processing a multi-scene video stream, the method comprising:
receiving a plurality of video stream data corresponding to a plurality of scenes, wherein each video stream data in the plurality of video stream data at least comprises real-time video data corresponding to one scene and scene parameter information corresponding to the one scene;
according to scene parameter information included in each video stream data in the video stream data, synchronously performing scene parameter verification processing on the video stream data to determine scene identification information corresponding to each video stream data;
triggering a video stream processing unit corresponding to the scene identification information in a multi-path video stream processing unit according to the scene identification information corresponding to the video stream data, and processing real-time video data in the video stream data so that the multi-path video stream processing unit can process the plurality of video stream data in parallel;
the method for synchronously performing scene parameter verification processing on the plurality of video stream data according to the scene parameter information included in each of the plurality of video stream data to determine the scene identification information corresponding to each of the plurality of video stream data includes:
judging whether scene parameter information included in each video stream data in the plurality of video stream data and any set parameter information of the multi-channel video stream processing unit have a correlation;
and if the scene parameter information included in the first video stream data in the plurality of video stream data is in a correlation relationship with the setting parameter information of the first video stream processing unit, determining the scene identification information corresponding to the first video stream data.
2. The method of claim 1, wherein a second video stream data of the plurality of video stream data is discarded if the second video stream data includes scene parameter information that is not associated with the setting parameter information of any video stream processing unit.
3. The method of claim 1, wherein triggering a video stream processing unit corresponding to the scene identification information in multiple video stream processing units according to the scene identification information corresponding to the video stream data to process the real-time video data in the video stream data comprises:
determining unit index information of a video stream processing unit corresponding to the scene identification information according to the scene identification information and a preset rule;
and triggering a video stream processing unit corresponding to the unit index information in the multi-path video stream processing unit according to the unit index information, and processing the real-time video data in the video stream data.
4. The method of claim 1, wherein the processing mechanism of the multi-way video stream processing unit is multi-threaded concurrent processing.
5. An apparatus for processing a multi-scene video stream, the apparatus comprising:
a receiving unit, configured to receive a plurality of video stream data corresponding to a plurality of scenes, where each of the plurality of video stream data at least includes real-time video data corresponding to one scene and scene parameter information corresponding to the one scene;
a determining unit, configured to perform scene parameter verification processing on the plurality of pieces of video stream data synchronously according to scene parameter information included in each piece of video stream data in the plurality of pieces of video stream data, so as to determine scene identification information corresponding to each piece of video stream data;
the processing unit is used for triggering a video stream processing unit corresponding to the scene identification information in the multi-path video stream processing unit according to the scene identification information corresponding to the video stream data, and processing the real-time video data in the video stream data so that the multi-path video stream processing unit can process the plurality of video stream data in parallel;
the determining unit is configured to:
judging whether scene parameter information included in each video stream data in the plurality of video stream data and any set parameter information of the multi-channel video stream processing unit have a correlation;
and if the scene parameter information included in the first video stream data in the plurality of video stream data is in a correlation relationship with the setting parameter information of the first video stream processing unit, determining the scene identification information corresponding to the first video stream data.
6. The apparatus of claim 5, wherein the determining unit is further configured to:
and if the scene parameter information included in the second video stream data in the plurality of video stream data is not related to the setting parameter information of any video stream processing unit, discarding the second video stream data.
7. A computer device, wherein the computer comprises:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the steps comprised in the method of any one of claims 1 to 4 in accordance with the obtained program instructions.
8. A storage medium storing computer-executable instructions for causing a computer to perform the steps comprising the method of any one of claims 1-4.
CN201911311036.0A 2019-12-18 2019-12-18 Method and device for processing multi-scene video stream and computer equipment Active CN111010599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911311036.0A CN111010599B (en) 2019-12-18 2019-12-18 Method and device for processing multi-scene video stream and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911311036.0A CN111010599B (en) 2019-12-18 2019-12-18 Method and device for processing multi-scene video stream and computer equipment

Publications (2)

Publication Number Publication Date
CN111010599A CN111010599A (en) 2020-04-14
CN111010599B true CN111010599B (en) 2022-04-12

Family

ID=70116795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911311036.0A Active CN111010599B (en) 2019-12-18 2019-12-18 Method and device for processing multi-scene video stream and computer equipment

Country Status (1)

Country Link
CN (1) CN111010599B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111918025A (en) * 2020-06-29 2020-11-10 北京大学 Scene video processing method and device, storage medium and terminal

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101601302B (en) * 2007-01-31 2012-07-04 汤姆森特许公司 Method and apparatus for automatically categorizing potential shot and scene detection information
IL210427A0 (en) * 2011-01-02 2011-06-30 Agent Video Intelligence Ltd Calibration device and method for use in a surveillance system for event detection
CN105516624A (en) * 2015-12-10 2016-04-20 合肥师范学院 Multi-core digital signal processor (DSP) based multi-channel image acquisition processing system
CN105847851A (en) * 2016-04-19 2016-08-10 北京金山安全软件有限公司 Panoramic video live broadcast method, device and system and video source control equipment
US10412462B2 (en) * 2016-11-08 2019-09-10 Ati Technologies Ulc Video frame rate conversion using streamed metadata
CN108109209A (en) * 2017-12-11 2018-06-01 广州市动景计算机科技有限公司 A kind of method for processing video frequency and its device based on augmented reality
CN108090664A (en) * 2017-12-13 2018-05-29 北京网博视界科技股份有限公司 A kind of workflow adaptation dispatching method, device, equipment and storage medium
CN110147722A (en) * 2019-04-11 2019-08-20 平安科技(深圳)有限公司 A kind of method for processing video frequency, video process apparatus and terminal device
CN110263619A (en) * 2019-04-30 2019-09-20 上海商汤智能科技有限公司 Image processing method and device, electronic equipment and computer storage medium
CN110381326B (en) * 2019-06-19 2022-01-28 北京百度网讯科技有限公司 Video system, processing method, device and computer readable medium
CN110266926B (en) * 2019-06-28 2021-08-17 Oppo广东移动通信有限公司 Image processing method, image processing device, mobile terminal and storage medium
CN110381322B (en) * 2019-07-15 2023-03-14 腾讯科技(深圳)有限公司 Video stream decoding method and device, terminal equipment and storage medium
CN110401820A (en) * 2019-08-15 2019-11-01 北京迈格威科技有限公司 Multipath video processing method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN111010599A (en) 2020-04-14

Similar Documents

Publication Publication Date Title
CN109710780B (en) Archiving method and device
CN110929066A (en) Method and device for displaying personnel and package information in association manner and security check machine
CN109756760B (en) Video tag generation method and device and server
CN110944296A (en) Accompanying determination method and device of motion trail and server
CN109660823A (en) Video distribution method, apparatus, electronic equipment and storage medium
CN110110269B (en) Event subscription method and device based on block chain
CN111698555B (en) Video frame extraction processing method and device
CN106131083A (en) A kind of attack message detection and take precautions against method and switch
CN111010599B (en) Method and device for processing multi-scene video stream and computer equipment
CN108200387A (en) A kind of transmission method of file, system and camera
CN112613508A (en) Object identification method, device and equipment
CN110659905A (en) Transaction verification method, device, terminal equipment and storage medium
CN109800675A (en) A kind of method and device of the identification image of determining face object
CN113869230A (en) Football goal type identification method, device, system and storage medium
CN109597566B (en) Data reading and storing method and device
CN111741247A (en) Video playback method and device and computer equipment
CN108647699A (en) task image processing method, device, equipment and storage medium
CN111651522A (en) Data synchronization method and device
CN113127314A (en) Method and device for detecting program performance bottleneck and computer equipment
CN109784226B (en) Face snapshot method and related device
CN114449308A (en) Automatic video clipping method and device and cloud clipping server
CN112269940A (en) Data processing method and device
CN110647858B (en) Video occlusion judgment method and device and computer storage medium
CN110391952B (en) Performance analysis method, device and equipment
CN111125022A (en) Method, device, equipment and storage medium for determining video coverage weight

Legal Events

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