[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110677699B - Video stream and/or picture stream data sharing method and device and electronic equipment - Google Patents

Video stream and/or picture stream data sharing method and device and electronic equipment Download PDF

Info

Publication number
CN110677699B
CN110677699B CN201910956998.5A CN201910956998A CN110677699B CN 110677699 B CN110677699 B CN 110677699B CN 201910956998 A CN201910956998 A CN 201910956998A CN 110677699 B CN110677699 B CN 110677699B
Authority
CN
China
Prior art keywords
decoded data
data
sharing
clients
video stream
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
CN201910956998.5A
Other languages
Chinese (zh)
Other versions
CN110677699A (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.)
Shanghai Yitu Technology Co ltd
Original Assignee
Shanghai Yitu 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 Shanghai Yitu Technology Co ltd filed Critical Shanghai Yitu Technology Co ltd
Priority to CN201910956998.5A priority Critical patent/CN110677699B/en
Publication of CN110677699A publication Critical patent/CN110677699A/en
Application granted granted Critical
Publication of CN110677699B publication Critical patent/CN110677699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to a sharing method and a sharing device of video stream and/or picture stream data, electronic equipment and a storage medium, wherein the sharing method of the video stream and/or the picture stream data comprises the following steps: acquiring a video stream and/or a picture stream of a monitoring system and decoding the acquired video stream and/or picture stream to obtain decoded data; caching the decoded data in a memory; and sharing the decoded data for the plurality of clients respectively according to the received requests sent by the plurality of clients so that the plurality of clients can acquire the decoded data. The sharing method of the video stream and/or the picture stream data improves the multiplexing rate of the decoded data, reduces the decoding times of the hardware decoding unit in the processor on the same video stream and/or the picture stream, reduces the decoding pressure of the hardware decoding unit in the processor, and can increase the access path number of the video stream and/or the picture stream without depending on special hardware and increasing the cost.

Description

Video stream and/or picture stream data sharing method and device and electronic equipment
Technical Field
The present invention relates to the field of video data processing technologies, and in particular, to a method and an apparatus for sharing video stream and/or picture stream data, an electronic device, and a computer storage medium.
Background
In the prior art, the hardware decoding unit decodes the acquired video stream and/or picture stream for multiple times to send the decoded data to a plurality of clients respectively, but the capacity of the hardware decoding unit in the processor is limited, if the number of access paths of the video stream and/or picture stream is to be increased, an external video decoding chip needs to be expanded or a processor with a higher specification needs to be selected, and related cost is increased.
Disclosure of Invention
To solve the above technical problems, an object of the present invention is to provide a method for sharing video stream and/or picture stream data, which improves the multiplexing rate of decoded data, reduces the decoding times of the same video stream and/or picture stream by a hardware decoding unit in a processor, and further reduces the decoding pressure of the hardware decoding unit in the processor, so as to increase the number of access paths for the video stream and/or picture stream without depending on special hardware and increasing the cost
Another object of the present invention is to provide a video stream and/or picture stream data sharing apparatus for implementing the above sharing method.
In order to achieve the purpose, the invention adopts the following technical scheme:
the method for sharing the video stream and/or the picture stream data according to the embodiment of the first aspect of the invention comprises the following steps:
acquiring a video stream and/or a picture stream of a monitoring system and decoding the acquired video stream and/or picture stream to obtain decoded data;
caching the decoded data in a memory;
and sharing the decoded data for the plurality of clients respectively according to the received requests sent by the plurality of clients so that the plurality of clients can acquire the decoded data.
Preferably, the method for sharing video stream and/or picture stream data further includes: and after the plurality of clients all acquire the decoded data, clearing the decoded data cached in the memory.
Preferably, the clearing the decoded data cached in the memory specifically includes: and after the client side acquires the decoded data, respectively sending out a clearing instruction for clearing the cached decoded data, and after receiving the clearing instructions sent by all the plurality of client sides, clearing the cached decoded data.
Preferably, the sharing the decoded data among the plurality of clients respectively specifically includes:
mapping the decoded data to a physical address thereof, and mapping the physical address to a virtual address;
and sending the virtual address to the plurality of clients, and the plurality of clients accessing the physical address according to the received virtual address to share the decoded data.
Preferably, the request sent by the client comprises a data processing rule;
and respectively sharing the decoded data to a plurality of clients, and simultaneously respectively carrying out data processing on the decoded data according to the data processing rule in the request sent by each client.
The device for sharing video stream and/or picture stream data according to the second aspect of the present invention comprises:
the decoding module is used for acquiring a video stream and/or a picture stream of the monitoring system and decoding the acquired video stream and/or picture stream to obtain decoded data;
the storage module is used for caching the decoded data in a memory;
and the sharing module is used for respectively sharing the decoded data to the plurality of clients according to the received requests sent by the plurality of clients so that the plurality of clients can acquire the decoded data.
Preferably, the apparatus for sharing video stream and/or picture stream data further comprises:
and the clearing module is used for clearing the decoded data cached in the memory after the plurality of clients all acquire the decoded data.
Preferably, the clearing module is specifically configured to: and after the client side acquires the decoded data, respectively sending out a clearing instruction for clearing the cached decoded data, and after receiving the clearing instructions sent by all the plurality of client sides, clearing the cached decoded data.
Preferably, the sharing module is specifically configured to:
mapping the decoded data to a physical address thereof, and mapping the physical address to a virtual address;
and sending the virtual address to the plurality of clients, and the plurality of clients accessing the physical address according to the received virtual address to share the decoded data.
Preferably, the request sent by the client comprises a data processing rule;
the sharing module is further configured to, while sharing the decoded data with the multiple clients, perform data processing on the decoded data according to the data processing rule in the request sent by each client.
An electronic device for sharing of video stream and/or picture stream data according to an embodiment of the third aspect of the invention, comprises:
one or more processors;
one or more memories having computer readable code stored therein, which when executed by the one or more processors, performs the method of sharing video stream and/or picture stream data of any of the above embodiments.
A non-transitory computer storage medium according to a fourth aspect of the invention, wherein computer readable code is stored, which when executed by one or more processors performs the method of sharing video stream and/or picture stream data as described in any of the above embodiments.
The invention has the beneficial effects that:
the sharing method of the video stream and/or the picture stream data improves the multiplexing rate of the decoded data, reduces the decoding times of a hardware decoding unit in a processor on the same video stream and/or the picture stream, further reduces the decoding pressure of the hardware decoding unit in the processor, and can increase the access path number of the video stream and/or the picture stream without depending on special hardware and increasing the cost. In addition, the sharing method also avoids resource waste and time consumption caused by copying the decoded data.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood and to implement them in accordance with the contents of the description, the following detailed description is given with reference to the preferred embodiments of the present invention and the accompanying drawings.
Drawings
Fig. 1 is a flowchart of a method for sharing video stream and/or picture stream data according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for sharing video stream and/or picture stream data according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention, but are not intended to limit the scope of the invention.
It will be appreciated that as used herein, the term module may refer to or include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and/or memory that executes one or more software or firmware programs, a combinational logic circuit, and/or other suitable hardware components that provide the described functionality, or may be part of such hardware components.
It will be appreciated that in embodiments of the invention, the processor may be a microprocessor, a digital signal processor, a microcontroller, the like, and/or any combination thereof. According to another aspect, the processor may be a single-core processor, a multi-core processor, the like, and/or any combination thereof.
According to the sharing device of the video stream and/or the picture stream data, the sharing device can acquire the video stream and/or the picture stream of the monitoring system, decode the acquired video stream and/or the picture stream and share the decoded video stream and/or the picture stream to a plurality of clients, and enable the plurality of clients to acquire the decoded data.
For example, in a security product, the sharing device may collect a video stream and/or a picture stream of a monitoring camera, decode the obtained video stream and/or picture stream, and share the video playing client and the AI data processing client, so that the video playing client and the AI data processing client obtain the decoded data for processing.
The device for sharing video stream and/or picture stream data comprises a decoding module 10, a storage module 20 and a sharing module 30.
The decoding module 10 is configured to acquire a video stream and/or a picture stream of the monitoring system and decode the acquired video stream and/or picture stream to obtain decoded data. The video stream and/or the picture stream may be directly transmitted to the decoding module 10 by the monitoring system, or one of the video stream and/or the picture stream obtained by copying the video stream and/or the picture stream of the monitoring system through the copying module may be transmitted to the decoding module 10. Wherein, the decoded data can be YUV stream.
The storage module 20 is configured to cache the decoded data in the memory.
The sharing module 30 is configured to share the decoded data with the multiple clients respectively according to the received requests sent by the multiple clients, so that the multiple clients can obtain the decoded data.
The sharing device of the video stream and/or the picture stream data improves the multiplexing rate of the decoded data, reduces the decoding times of a hardware decoding unit in a processor on the same video stream and/or the picture stream, further reduces the decoding pressure of the hardware decoding unit in the processor, and can increase the access path number of the video stream and/or the picture stream without depending on special hardware and increasing the cost. In addition, the sharing device also avoids resource waste and time consumption caused by copying the decoded data. Moreover, the sharing device of the video stream and/or the picture stream data has wide application range and can be widely popularized and applied.
According to some embodiments of the present invention, the apparatus for sharing video stream and/or picture stream data further includes a clearing module, configured to clear the decoded data cached in the memory after the plurality of clients all obtain the decoded data. So as to ensure the use space of the memory and further ensure the decoding capability of the sharing device of the video stream and/or the picture stream data on the video stream and/or the picture stream data.
Preferably, the purging module is specifically configured to send the purging instructions for purging the cached decoded data respectively after the client acquires the decoded data, and purge the cached decoded data after receiving the purging instructions sent by all of the plurality of clients. The method can ensure that the decoded data cached in the memory is cleared after the plurality of clients all acquire the decoded data, and is simple.
According to some embodiments of the present invention, the sharing module 30 is specifically configured to map the decoded data to a physical address thereof, and map the physical address to a virtual address; and sending the virtual address to the plurality of clients, and the plurality of clients accessing the physical address according to the received virtual address to share the decoded data. The decoded data can be simply shared by a plurality of clients, so that the plurality of clients can conveniently acquire the decoded data.
According to some embodiments of the invention, the request sent by the client comprises a data processing rule;
the sharing module 30 is further configured to, while sharing the decoded data with the multiple clients, perform data processing on the decoded data according to the data processing rule in the request sent by each client.
The method for sharing the video stream and/or the picture stream data based on the video stream and/or the picture stream data sharing device comprises the following steps:
step S1, acquiring a video stream and/or a picture stream of a monitoring system and decoding the acquired video stream and/or picture stream to obtain decoded data;
step S2, caching the decoded data in a memory;
step S3, according to the received requests sent by the multiple clients, sharing the decoded data with the multiple clients, respectively, so that the multiple clients can obtain the decoded data.
According to some embodiments of the invention, the request sent by the client comprises a data processing rule;
and respectively sharing the decoded data to a plurality of clients, and simultaneously respectively carrying out data processing on the decoded data according to the data processing rule in the request sent by each client. The data processing rule may be to perform all or interval access on the decoded data, or may perform other processing on the decoded data according to actual conditions.
The sharing method of the video stream and/or the picture stream data improves the multiplexing rate of the decoded data, reduces the decoding times of a hardware decoding unit in a processor on the same video stream and/or the picture stream, further reduces the decoding pressure of the hardware decoding unit in the processor, and can increase the access path number of the video stream and/or the picture stream without depending on special hardware and increasing the cost.
According to some embodiments of the present invention, sharing the decoded data among the plurality of clients specifically includes:
mapping the decoded data to a physical address thereof, and mapping the physical address to a virtual address;
and sending the virtual address to the plurality of clients, and the plurality of clients accessing the physical address according to the received virtual address to share the decoded data.
According to some embodiments of the invention, the method of sharing video stream and/or picture stream data further comprises:
step S4, after all the clients acquire the decoded data, the decoded data cached in the memory is cleared.
Preferably, the clearing the decoded data cached in the memory specifically includes: and after the client side acquires the decoded data, respectively sending out a clearing instruction for clearing the cached decoded data, and after receiving the clearing instructions sent by all the plurality of client sides, clearing the cached decoded data.
Based on the same inventive concept as the above-described method of sharing video stream and/or picture stream data, the present application further provides an electronic device 1400, the electronic device 1400 comprising one or more processors 1401 and one or more memories 1402, the memory 1402 storing therein computer readable code,
wherein the computer readable code when executed by the one or more processors 1401 performs the steps of:
acquiring a video stream and/or a picture stream of a monitoring system and decoding the acquired video stream and/or picture stream to obtain decoded data;
caching the decoded data in a memory;
and sharing the decoded data for the plurality of clients respectively according to the received requests sent by the plurality of clients so that the plurality of clients can acquire the decoded data.
Preferably, the sharing of the decoded data by the plurality of clients specifically includes:
mapping the decoded data to a physical address thereof, and mapping the physical address to a virtual address;
and sending the virtual address to the plurality of clients, and the plurality of clients accessing the physical address according to the received virtual address to share the decoded data.
Preferably, the request sent by the client comprises a data processing rule;
and respectively sharing the decoded data to a plurality of clients, and simultaneously respectively carrying out data processing on the decoded data according to the data processing rule in the request sent by each client.
Further, the electronic device 1400 further includes a network interface 1403, an input device 1404, a hard disk 1405, and a display device 1406.
The various interfaces and devices described above may be interconnected by a bus architecture. A bus architecture may be any architecture that may include any number of interconnected buses and bridges. One or more Central Processing Units (CPUs), represented in particular by processor 1401, and the various circuits of one or more memories 1402, represented by memory 1402, are coupled together. The bus architecture may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like. It will be appreciated that a bus architecture is used to enable communications among the components. The bus architecture includes a power bus, a control bus, and a status signal bus, in addition to a data bus, all of which are well known in the art and therefore will not be described in detail herein.
The network interface 1403 may be connected to a network (e.g., the internet, a local area network, etc.), obtain relevant data from the network, and store the data in the hard disk 1405.
An input device 1404 may receive various instructions input by an operator and send to processor 1401 for execution. The input devices 1404 may include a keyboard or pointing device (e.g., mouse, trackball, touch pad, touch screen, or the like).
The display device 1406 may display a result obtained by the processor 1401 executing the instruction.
The memory 1402 is used for storing programs and data necessary for the operation of the operating system 14021, and data such as intermediate results in the calculation process of the processor 1401.
It will be appreciated that the memory 1402 in the subject embodiments can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The nonvolatile memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. The memory 1402 of the apparatus and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 1402 stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 14021 and application programs 14014.
The operating system 14021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 14014 includes various applications, such as a Browser (Browser), and the like, for implementing various application services. A program implementing the methods of embodiments of the present application may be included in application 14014.
The methods disclosed in the embodiments described above may be implemented in processor 1401, or by processor 1401. Processor 1401 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by instructions in the form of hardware integrated logic circuits or software in the processor 1401. The processor 1401 may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, and may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 1402, and a processor 1401 reads information in the memory 1402 and performs the steps of the above method in combination with hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Preferably, the computer readable code when executed by the one or more processors 1401 may also implement the steps of:
and after the plurality of clients all acquire the decoded data, clearing the decoded data cached in the memory.
Preferably, the clearing the decoded data cached in the memory specifically includes: and after the client side acquires the decoded data, respectively sending out a clearing instruction for clearing the cached decoded data, and after receiving the clearing instructions sent by all the plurality of client sides, clearing the cached decoded data.
In the embodiment of the present application, the electronic device 1400 caches the decoded data in the memory and shares the data with multiple clients, so that the multiple clients obtain the decoded data, thereby improving the multiplexing rate of the decoded data, reducing the decoding times of the hardware decoding unit in the processor for the same video stream and/or picture stream, and further reducing the decoding pressure of the hardware decoding unit in the processor, so as to increase the number of access paths for the video stream and/or picture stream without depending on special hardware or increasing the cost.
Additionally, embodiments of the present application also provide a non-transitory computer storage medium storing computer readable code that when executed by one or more processors performs the steps of:
acquiring a video stream and/or a picture stream of a monitoring system and decoding the acquired video stream and/or picture stream to obtain decoded data;
caching the decoded data in a memory;
and sharing the decoded data for the plurality of clients respectively according to the received requests sent by the plurality of clients so that the plurality of clients can acquire the decoded data.
When executed by the processor, the computer readable code implements the processes of the above-mentioned video stream and/or picture stream data sharing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, detailed processes are not repeated here. The computer storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, 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, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A method for sharing video stream and/or picture stream data, comprising:
acquiring a video stream and/or a picture stream of a monitoring system, and decoding the acquired video stream and/or picture stream to obtain decoded data, wherein one of the decoded data types is a YUV stream;
caching the decoded data in a memory;
respectively sharing the decoded data to a plurality of clients according to the received requests sent by the plurality of clients so that the plurality of clients can acquire the decoded data;
wherein the sharing of the decoded data by the plurality of clients respectively specifically includes:
mapping the decoded data to a physical address thereof, and mapping the physical address to a virtual address;
sending the virtual address to the plurality of clients, and the plurality of clients accessing the physical address according to the received virtual address to share the decoded data;
wherein, the request sent by the client comprises a data processing rule;
and respectively sharing the decoded data to a plurality of clients, and simultaneously respectively carrying out data processing on the decoded data according to the data processing rule in the request sent by each client.
2. The method for sharing video stream and/or picture stream data according to claim 1, wherein the method for sharing video stream and/or picture stream data further comprises:
and after the plurality of clients all acquire the decoded data, clearing the decoded data cached in the memory.
3. The method according to claim 2, wherein the clearing the decoded data cached in the memory specifically comprises: and after the client side acquires the decoded data, respectively sending out a clearing instruction for clearing the cached decoded data, and after receiving the clearing instructions sent by all the plurality of client sides, clearing the cached decoded data.
4. An apparatus for sharing stream data of video stream and/or picture, comprising:
the device comprises a decoding module, a data processing module and a data processing module, wherein the decoding module is used for acquiring a video stream and/or a picture stream of a monitoring system and decoding the acquired video stream and/or picture stream to obtain decoded data, and one of the decoded data types is a YUV stream;
the storage module is used for caching the decoded data in a memory;
the sharing module is used for respectively sharing the decoded data to a plurality of clients according to the received requests sent by the plurality of clients so that the plurality of clients can acquire the decoded data;
wherein the sharing module is specifically configured to:
mapping the decoded data to a physical address thereof, and mapping the physical address to a virtual address;
sending the virtual address to the plurality of clients, and the plurality of clients accessing the physical address according to the received virtual address to share the decoded data;
wherein, the request sent by the client comprises a data processing rule;
the sharing module is further configured to, while sharing the decoded data with the multiple clients, perform data processing on the decoded data according to the data processing rule in the request sent by each client.
5. The apparatus for sharing video stream and/or picture stream data according to claim 4, wherein the apparatus for sharing video stream and/or picture stream data further comprises:
and the clearing module is used for clearing the decoded data cached in the memory after the plurality of clients all acquire the decoded data.
6. The apparatus for sharing video stream and/or picture stream data according to claim 5, wherein the clearing module is specifically configured to: and after the client side acquires the decoded data, respectively sending out a clearing instruction for clearing the cached decoded data, and after receiving the clearing instructions sent by all the plurality of client sides, clearing the cached decoded data.
7. An electronic device for sharing of video stream and/or picture stream data, comprising:
one or more processors;
one or more memories having computer readable code stored therein which, when executed by the one or more processors, performs the method of sharing of video and/or picture stream data of any of claims 1-3.
8. A non-transitory computer storage medium having stored therein computer readable code, which when executed by one or more processors performs the method of sharing of video stream and/or picture stream data of any one of claims 1-3.
CN201910956998.5A 2019-10-10 2019-10-10 Video stream and/or picture stream data sharing method and device and electronic equipment Active CN110677699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910956998.5A CN110677699B (en) 2019-10-10 2019-10-10 Video stream and/or picture stream data sharing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910956998.5A CN110677699B (en) 2019-10-10 2019-10-10 Video stream and/or picture stream data sharing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110677699A CN110677699A (en) 2020-01-10
CN110677699B true CN110677699B (en) 2022-03-08

Family

ID=69081345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910956998.5A Active CN110677699B (en) 2019-10-10 2019-10-10 Video stream and/or picture stream data sharing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110677699B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111862617B (en) * 2020-06-12 2022-06-03 浙江大华技术股份有限公司 License plate recognition method, device and system and computer equipment
CN114500877A (en) * 2021-12-30 2022-05-13 惠州华阳通用智慧车载系统开发有限公司 Camera sharing method, system and storage medium
CN116208816A (en) * 2023-01-10 2023-06-02 深圳市拔超科技股份有限公司 Video code stream processing and rendering system and method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136208B (en) * 2011-11-23 2016-03-30 腾讯科技(深圳)有限公司 A kind of method of Showing Picture and device
CN102752582A (en) * 2012-06-19 2012-10-24 杭州海康威视系统技术有限公司 Intelligent video analysis system and method
US9712871B2 (en) * 2014-05-01 2017-07-18 Qualcomm Incorporated Determination bitstream decoding capability in video coding
US10110930B2 (en) * 2015-07-02 2018-10-23 Dialogic Corporation Robust packet loss handling in recording real-time video
US20170332096A1 (en) * 2016-05-11 2017-11-16 Advanced Micro Devices, Inc. System and method for dynamically stitching video streams
CN106162192A (en) * 2016-07-06 2016-11-23 华为技术有限公司 Process the method and apparatus of video data
CN107248989B (en) * 2017-06-09 2020-01-14 浙江宇视科技有限公司 Monitoring video processing method and device
CN107959824A (en) * 2017-10-31 2018-04-24 深信服科技股份有限公司 A kind of monitor video processing method, physical server and storage medium
CN107943417A (en) * 2017-11-21 2018-04-20 广州市百果园网络科技有限公司 Image processing method, terminal, computer-readable storage medium and computer program

Also Published As

Publication number Publication date
CN110677699A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN110677699B (en) Video stream and/or picture stream data sharing method and device and electronic equipment
US10467135B2 (en) Multi-section garbage collection
US9336001B2 (en) Dynamic instrumentation
CN104462225B (en) The method, apparatus and system of a kind of digital independent
US20240311314A1 (en) Data Access Method and Computing Device
EP3327571B1 (en) Data storage method and corresponding apparatus
CN109656637B (en) Rendering method and device for cross-platform call of OpenGL ES and computer storage medium
CN109376104B (en) Chip and data processing method and device based on chip
CN111679728B (en) Data reading method and device
CN116599917A (en) Network port determining method, device, equipment and storage medium
US10168934B2 (en) Method and device for monitoring data integrity in shared memory environment
US20170097779A1 (en) Conditional access with timeout
US11221770B2 (en) Providing a dynamic random-access memory cache as second type memory
CN116756070B (en) PCIe interconnection system, data processing method, device, storage medium and product
CN110995698A (en) Cross-network request transmission method and device
CN111510658A (en) Picture data processing method and device, electronic equipment and storage medium
CN107291628B (en) Method and apparatus for accessing data storage device
CN113032088A (en) Dirty page recording method and device, electronic equipment and computer readable medium
US10579428B2 (en) Data token management in distributed arbitration systems
CN110662047B (en) Image storage method and device, electronic equipment and computer storage medium
CN109558181B (en) Method for enabling non-IE browser to be compatible with OCX control, computer storage medium and equipment
CN110008071B (en) Remote debugging device and method
CN111199003B (en) Multi-webpage window management method, management device and terminal equipment
CN106375426A (en) Information obtaining method and system
CN114185682B (en) Log output method and device, electronic equipment and storage medium

Legal Events

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