CN115022671B - Multi-process video output method, cloud terminal, electronic equipment and storage medium - Google Patents

Multi-process video output method, cloud terminal, electronic equipment and storage medium Download PDF

Info

Publication number
CN115022671B
CN115022671B CN202210625165.2A CN202210625165A CN115022671B CN 115022671 B CN115022671 B CN 115022671B CN 202210625165 A CN202210625165 A CN 202210625165A CN 115022671 B CN115022671 B CN 115022671B
Authority
CN
China
Prior art keywords
memory space
time frame
video
video real
terminal
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
CN202210625165.2A
Other languages
Chinese (zh)
Other versions
CN115022671A (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.)
Zhidao Network Technology Beijing Co Ltd
Original Assignee
Zhidao Network Technology Beijing 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 Zhidao Network Technology Beijing Co Ltd filed Critical Zhidao Network Technology Beijing Co Ltd
Priority to CN202210625165.2A priority Critical patent/CN115022671B/en
Publication of CN115022671A publication Critical patent/CN115022671A/en
Application granted granted Critical
Publication of CN115022671B publication Critical patent/CN115022671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • 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/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/241Operating system [OS] processes, e.g. server setup

Abstract

The disclosure relates to a multi-process video output method, a cloud, a terminal, an electronic device and a storage medium, wherein the method comprises the following steps: determining the number of terminals for reading the video real-time frames, and setting a memory space corresponding to the terminals; acquiring a video real-time frame, and determining a memory space in which the video real-time frame can be written; for each memory space to be written with the video real-time frame, executing a writing task of the video real-time frame on the current memory space; when a read request of a video real-time frame in a current memory space is received, judging whether the terminal is allowed to read the video real-time frame or not, and sending a judging result to the terminal, so that when the same frame of video is written into a plurality of memory spaces and the video is read from each memory space, a plurality of tasks which are not interfered with each other are started, the video input rate of each path is maximum on the premise that a plurality of processes read the video frames in parallel, and the video output rate of each path can be controlled according to a writing time interval and a reading time interval.

Description

Multi-process video output method, cloud terminal, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of information transmission, and in particular relates to a multi-process video output method, a cloud end, a terminal, electronic equipment and a storage medium.
Background
As in-vehicle terminal devices are matured, so too are the functions on the in-vehicle terminal devices. As terminal software, the main task is to transmit the collected in-vehicle information to a corresponding position, for example, the vehicle-mounted terminal collects video information through a camera and transmits the video information to a cloud, and a user can play back or live broadcast video at another terminal. The camera of the vehicle-mounted terminal is generally occupied by a vehicle recorder, when the real-time video frames acquired by the camera in the vehicle recorder are open to the outside and read out the right, the real-time video frames are stored in a shared memory, and other application processes read the video in the shared memory and transmit the video.
Currently, video frame reads of multiple processes in a shared memory can result in video output conflicts.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, embodiments of the present disclosure provide a multi-process video output method, a cloud end, a terminal, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a multi-process video output method applied to a cloud, where the method includes:
determining the number of terminals for reading video real-time frames, and setting memory spaces corresponding to the terminals, wherein the number of the memory spaces is the same as the number of the terminals;
acquiring a video real-time frame, and determining a memory space in which the video real-time frame can be written;
for each memory space to be written with video real-time frames, the following steps are performed: executing a writing task of the video real-time frame to the current memory space at the set writing time interval;
when a read request of the video real-time frame in the current memory space is received by the terminal at a set read time interval, judging whether the terminal is allowed to read the video real-time frame according to the state of the current memory space, and sending a judging result to the terminal.
In one possible implementation manner, the performing the task of writing the video real-time frame to the current memory space includes:
judging whether the current memory space is in a writable state or not:
if the current memory space is in a writable state, writing the acquired video real-time frame into the current memory space;
if the current memory space is not in the writable state, determining the next writing time point according to the preset writing time interval, re-executing the step of judging whether the current memory space is in the writable state at the next writing time point,
in a possible implementation manner, the determining whether to allow the terminal to read the video real-time frame according to the state of the current memory space includes:
judging whether the current memory space is in a readable state or not:
if the current memory space is in a readable state, allowing the terminal to read the video real-time frame;
if the current memory space is not in the readable state, the step of judging whether the current memory space is in the readable state is re-executed when the next time a reading request of the terminal for the video real-time frame in the current memory space is received.
In one possible implementation manner, the determining the memory space of the writable video real-time frame includes:
judging whether a terminal for reading the video real-time frame corresponding to each memory space is in a communication state with the cloud end or not:
when a terminal for reading the video real-time frame is in a communication state with the cloud end, determining that the memory space corresponding to the terminal is a memory space capable of being written into the video real-time frame;
when the terminal for reading the video real-time frame and the cloud end are not in a communication state, the memory space corresponding to the terminal for reading the video real-time frame is judged to be not the memory space capable of being written into the video real-time frame, and the memory space is released.
In a possible embodiment, the set write time interval and the set read time interval are determined by:
presetting an initial writing time interval and an initial reading time interval;
determining an initial output speed of the video frame at an initial writing time interval and an initial reading time interval;
comparing the initial output speed of the video frame with the preset output speed of the video frame, and adjusting an initial writing time interval and an initial reading time interval according to a comparison result;
and outputting the adjusted write time interval and the adjusted read time interval as the set write time interval and the set read time interval respectively when the determined video frame output speed is greater than the video frame preset output speed and the difference value between the two is within the preset threshold value.
In a second aspect, an embodiment of the present disclosure provides a multi-process video output method, which is applied to a terminal communicatively connected to a cloud, where the method includes:
transmitting a read request of a video real-time frame in the memory space to the cloud under a set write time interval;
and receiving a judging result of whether the terminal is allowed to read the video real-time frame or not, and reading the video real-time frame in the memory space according to the judging result.
In a third aspect, embodiments of the present disclosure provide a cloud comprising:
the setting module is used for determining the number of terminals for reading the video real-time frames and setting memory spaces corresponding to the terminals, wherein the number of the memory spaces is the same as the number of the terminals;
the determining module is used for acquiring the video real-time frame and determining the memory space capable of being written into the video real-time frame;
the execution module is used for executing the writing task of the video real-time frame on the current memory space at the set writing time interval for each memory space to be written with the video real-time frame;
and the judging module is used for judging whether the terminal is allowed to read the video real-time frame or not according to the state of the current memory space when the terminal receives the read request of the video real-time frame in the current memory space at the set read time interval, and sending the judging result to the terminal.
In a fourth aspect, an embodiment of the present disclosure provides a terminal, connected to a cloud communication, including:
the sending module is used for sending a reading request of the video real-time frame in the memory space to the cloud under the set writing time interval;
and the reading module is used for receiving a judging result of whether the terminal is allowed to read the video real-time frame or not and reading the video real-time frame in the memory space according to the judging result.
In a fifth aspect, embodiments of the present disclosure provide an electronic device comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the multi-process video output method when executing the program stored in the memory.
In a sixth aspect, embodiments of the present disclosure provide a computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the above-described multi-process video output method.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has at least part or all of the following advantages:
the multi-process video output method of the embodiment of the disclosure determines the number of terminals for reading video real-time frames, and sets memory spaces corresponding to the terminals, wherein the number of the memory spaces is the same as the number of the terminals; acquiring a video real-time frame, and determining a memory space in which the video real-time frame can be written; for each memory space to be written with video real-time frames, the following steps are performed: executing a writing task of the video real-time frame to the current memory space at the set writing time interval; when a terminal receives a read request of a video real-time frame in a current memory space at a set read time interval, judging whether the terminal is allowed to read the video real-time frame according to the state of the current memory space, and sending a judging result to the terminal, so that when the same frame of video is written into a plurality of memory spaces and the video is read from each memory space, a plurality of tasks which are not interfered with each other are started, the video input rate of each path is maximized on the premise of ensuring that a plurality of processes read the video frames in parallel, and the video output rate of each path can be controlled according to the write time interval and the read time interval.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the related art will be briefly described below, and it will be apparent to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 schematically illustrates a flow diagram of a multi-process video output method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a detailed flow diagram of step S3 according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a detailed flow diagram of step S4 according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram of a multi-process video output method when the number of video read processes is 3, in accordance with an embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of a multi-process video output device in accordance with an embodiment of the present disclosure; and
fig. 6 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some, but not all, embodiments of the present disclosure. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the disclosure, are within the scope of the disclosure.
Referring to fig. 1, an embodiment of the present disclosure provides a multi-process video output method applied to a cloud, the method including:
s1, determining the number of terminals for reading video real-time frames, and setting memory spaces corresponding to the terminals, wherein the number of the memory spaces is the same as the number of the terminals;
s2, acquiring a video real-time frame, and determining a memory space capable of being written into the video real-time frame;
s3, for each memory space to be written with the video real-time frame, executing a task of writing the video real-time frame into the current memory space at a set writing time interval;
and S4, when receiving a reading request of the video real-time frame in the current memory space by the terminal at the set reading time interval, judging whether the terminal is allowed to read the video real-time frame according to the state of the current memory space, and sending a judging result to the terminal.
Referring to fig. 2, in step S3, the performing a task of writing a video real-time frame to the current memory space includes:
s21, judging whether the current memory space is in a writable state:
if yes, go to step S22;
if not, executing step S23;
s22, writing the acquired video real-time frame into a current memory space;
s23, determining a next writing time point according to the preset writing time interval, and executing step S21 at the next writing time point.
Referring to fig. 3, in step S4, the determining whether to allow the terminal to read the video real-time frame according to the state of the current memory space includes:
s31, judging whether the current memory space is in a readable state or not:
if yes, go to step S32;
if not, executing step S33;
s32, allowing the terminal to read the video real-time frame;
s33, when the next time a terminal receives a reading request of the video real-time frame in the current memory space, the step of judging whether the current memory space is in a readable state is executed again.
In practical applications, whether the current memory space is in a writable state or a readable state may be determined by a state tag of the current memory space,
wherein the determining whether the current memory space is in a writable state includes:
when the state label of the current memory space is in a writable state, determining that the current memory space is in the writable state,
the determining whether the current memory space is in a readable state includes:
and when the state label of the current memory space is in a readable state, judging that the current memory space is in the readable state.
In this embodiment, in step S2, the determining the memory space in which the video real-time frame can be written includes:
judging whether a terminal for reading the video real-time frame corresponding to each memory space is in a communication state with the cloud end or not:
when a terminal for reading the video real-time frame is in a communication state with the cloud end, determining that the memory space corresponding to the terminal is a memory space capable of being written into the video real-time frame;
when the terminal for reading the video real-time frame and the cloud end are not in a communication state, the memory space corresponding to the terminal for reading the video real-time frame is judged to be not the memory space capable of being written into the video real-time frame, and the memory space is released.
In this embodiment, in steps S3 and S4, the set write time interval and the set read time interval are determined by:
presetting an initial writing time interval and an initial reading time interval, wherein the initial writing time interval and the initial reading time interval can be 0;
determining an initial output speed of the video frame at an initial writing time interval and an initial reading time interval;
comparing the initial output speed of the video frame with the preset output speed of the video frame, and adjusting an initial writing time interval and an initial reading time interval according to a comparison result;
and outputting the adjusted write time interval and the adjusted read time interval as the set write time interval and the set read time interval respectively when the determined video frame output speed is greater than the video frame preset output speed and the difference value between the two is within the preset threshold value.
In practical application, the video live broadcast or video playback function needs to output more than 15 frames of video frames within 1s, so that the video can be smoothly played, and it is critical that time waste is avoided as much as possible in the writing and reading processes; and secondly, the time interval of each execution of the writing and reading tasks is controlled properly, so that the maximum video output can be ensured. Thus, the video frame preset output speed may be 15 frames/second.
Fig. 4 shows a multiprocess video output method when the number of video read processes is 3. Referring to FIG. 4, when a left write process writes: the writing process maintains a plurality of writing tasks of the writing process, each writing task is not interfered with each other, the writing tasks are continuously carried out, the writing interval can be set by oneself, before writing, a plurality of memory spaces are judged to be required to be written into video frames, then whether the flag bit of the video frame in each memory space is in a writable state is judged, if the writing is possible, writing is carried out, if the writing is not possible, the writing is abandoned, and the next writing task is waited; the right side read process reads out: each reading process maintains a reading task of the user, the duration of the reading task and each reading interval are set, whether the flag bit of the memory space corresponding to the reading process is readable or not is firstly judged, if so, reading is carried out, if not, the reading task is abandoned, and the next reading task is waited.
Referring to fig. 5, an embodiment of the present disclosure provides a multi-process video output apparatus, including:
a setting module 11, configured to determine the number of terminals for reading the video real-time frames, and set memory spaces corresponding to the terminals, where the number of memory spaces is the same as the number of terminals;
a determining module 12, configured to acquire a video real-time frame, and determine a memory space in which the video real-time frame can be written;
an execution module 13, configured to execute, for each memory space to be written with a video real-time frame, a task of writing the video real-time frame into the current memory space at a set writing time interval;
the judging module 14 is configured to, when receiving a request for reading a video real-time frame in the current memory space from the terminal at a set reading time interval, judge whether to allow the terminal to read the video real-time frame according to the state of the current memory space, and send the judging result to the terminal.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present invention. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
In the above-described second embodiment, any of the setting module 11, the determining module 12, the executing module 13, and the judging module 14 may be incorporated in one module to be implemented, or any of them may be split into a plurality of modules. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. At least one of the setting module 11, the determining module 12, the executing module 13 and the judging module 14 may be implemented at least partly as a hardware circuit, for example as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or as hardware or firmware in any other reasonable way of integrating or packaging the circuits, or as any one of or a suitable combination of any of the three. Alternatively, at least one of the setting module 11, the determining module 12, the executing module 13 and the judging module 14 may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
The embodiment of the disclosure also provides a terminal, which is in communication connection with a cloud, and comprises:
a sending module 21, configured to send a read request for a video real-time frame in the memory space to the cloud end at a set write time interval;
the reading module 22 is configured to receive a determination result of whether to allow the terminal to read the video real-time frame, and read the video real-time frame in the memory space according to the determination result.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present invention. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
In the second embodiment described above, any of the transmission module 21 and the reading module 22 may be incorporated in one module to be implemented, or any of the modules may be split into a plurality of modules. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. At least one of the transmit module 21 and the read module 22 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware in any other reasonable manner of integrating or packaging circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the transmitting module 21 and the reading module 22 may be at least partially implemented as a computer program module, which when executed may perform the respective functions.
Referring to fig. 6, an electronic device provided in an embodiment of the disclosure includes a processor 1110, a communication interface 1120, a memory 1130, and a communication bus 1140, where the processor 1110, the communication interface 1120, and the memory 1130 perform communication with each other through the communication bus 1140;
a memory 1130 for storing a computer program;
processor 1110, when executing programs stored on memory 1130, implements a multi-process video output method as follows:
determining the number of terminals for reading video real-time frames, and setting memory spaces corresponding to the terminals, wherein the number of the memory spaces is the same as the number of the terminals;
acquiring a video real-time frame, and determining a memory space in which the video real-time frame can be written;
for each memory space to be written with video real-time frames, the following steps are performed: executing a writing task of the video real-time frame to the current memory space at the set writing time interval;
when receiving a read request of the terminal for the video real-time frame in the current memory space at the set read time interval, judging whether the terminal is allowed to read the video real-time frame according to the state of the current memory space, and sending the judging result to the terminal,
alternatively, a multi-process video output method is implemented as follows:
transmitting a read request of a video real-time frame in the memory space to the cloud under a set write time interval;
and receiving a judging result of whether the terminal is allowed to read the video real-time frame or not, and reading the video real-time frame in the memory space according to the judging result.
The communication bus 1140 may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices described above.
The memory 1130 may include random access memory (Random Access Memory, simply RAM) or may include non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. Optionally, the memory 1130 may also be at least one storage device located remotely from the processor 1110.
The processor 1110 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Based on the same inventive concept, the embodiments of the present disclosure also provide a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements a multi-process video output method as described above.
The computer-readable storage medium may be embodied in the apparatus/means described in the above embodiments; or may exist alone without being assembled into the apparatus/device. The computer-readable storage medium carries one or more programs that, when executed, implement a multi-process video output method according to an embodiment of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A multi-process video output method, applied to a cloud, the method comprising:
determining the number of terminals for reading video real-time frames, and setting memory spaces corresponding to the terminals, wherein the number of the memory spaces is the same as the number of the terminals;
acquiring a video real-time frame, and determining a memory space in which the video real-time frame can be written;
for each memory space to be written with video real-time frames, the following steps are executed in parallel: executing a writing task of the video real-time frame to the current memory space at the set writing time interval;
when a read request of a video real-time frame in a current memory space is received by a terminal at a set read time interval, judging whether the terminal is allowed to read the video real-time frame according to the state of the current memory space, and sending a judging result to the terminal;
wherein, the determining the memory space of the writable video real-time frame includes: when the terminal for reading the video real-time frame and the cloud end are not in a communication state, the memory space corresponding to the terminal for reading the video real-time frame is judged to be not the memory space capable of being written into the video real-time frame, and the memory space is released.
2. The method of claim 1, wherein performing a write task to a real-time frame of video for a current memory space comprises:
judging whether the current memory space is in a writable state or not:
if the current memory space is in a writable state, writing the acquired video real-time frame into the current memory space;
if the current memory space is not in the writable state, determining a next writing time point according to the preset writing time interval, and re-executing the step of judging whether the current memory space is in the writable state at the next writing time point.
3. The method of claim 1, wherein the determining whether to allow the terminal to read the video real-time frame according to the state of the current memory space comprises:
judging whether the current memory space is in a readable state or not:
if the current memory space is in a readable state, allowing the terminal to read the video real-time frame;
if the current memory space is not in the readable state, the step of judging whether the current memory space is in the readable state is re-executed when the next time a reading request of the terminal for the video real-time frame in the current memory space is received.
4. The method of claim 1, wherein determining the memory space in which the real-time frames of video can be written comprises:
judging whether a terminal for reading the video real-time frame corresponding to each memory space is in a communication state with the cloud end or not:
when the terminal for reading the video real-time frame is in a communication state with the cloud end, the memory space corresponding to the terminal is judged to be the memory space capable of being written into the video real-time frame.
5. The method of claim 1, wherein the set write time interval and the set read time interval are determined by:
presetting an initial writing time interval and an initial reading time interval;
determining an initial output speed of the video frame at an initial writing time interval and an initial reading time interval;
comparing the initial output speed of the video frame with the preset output speed of the video frame, and adjusting an initial writing time interval and an initial reading time interval according to a comparison result;
and outputting the adjusted write time interval and the adjusted read time interval as the set write time interval and the set read time interval respectively when the determined video frame output speed is greater than the video frame preset output speed and the difference value between the two is within the preset threshold value.
6. The multi-process video output method is characterized by being applied to a terminal in communication connection with a cloud, and comprises the following steps:
transmitting a read request of a video real-time frame in the memory space to the cloud under a set write time interval;
receiving a judging result of whether the terminal is allowed to read the video real-time frame or not, and reading the video real-time frame in the memory space according to the judging result;
the video real-time frame in the memory space is written by the following steps: the cloud acquires a video real-time frame and determines a memory space in which the video real-time frame can be written; for each memory space to be written with video real-time frames, the following steps are executed in parallel: executing a writing task of the video real-time frame to the current memory space at the set writing time interval;
wherein, the determining the memory space of the writable video real-time frame includes: when the terminal for reading the video real-time frame and the cloud end are not in a communication state, the memory space corresponding to the terminal for reading the video real-time frame is judged to be not the memory space capable of being written into the video real-time frame, and the memory space is released.
7. A cloud, comprising:
the setting module is used for determining the number of terminals for reading the video real-time frames and setting memory spaces corresponding to the terminals, wherein the number of the memory spaces is the same as the number of the terminals;
the determining module is used for acquiring the video real-time frame and determining the memory space capable of being written into the video real-time frame;
the execution module is used for executing the following steps in parallel for each memory space to be written into the video real-time frame: executing a writing task of the video real-time frame to the current memory space at the set writing time interval;
the judging module is used for judging whether the terminal is allowed to read the video real-time frame or not according to the state of the current memory space when the terminal receives a read request of the video real-time frame in the current memory space at the set read time interval, and sending a judging result to the terminal;
the determining module is specifically configured to: when the terminal for reading the video real-time frame and the cloud end are not in a communication state, the memory space corresponding to the terminal for reading the video real-time frame is judged to be not the memory space capable of being written into the video real-time frame, and the memory space is released.
8. A terminal, in communication with a cloud, comprising:
the sending module is used for sending a reading request of the video real-time frame in the memory space to the cloud under the set writing time interval;
the reading module is used for receiving a judging result of whether the terminal is allowed to read the video real-time frame or not and reading the video real-time frame in the memory space according to the judging result;
the video real-time frame in the memory space is written by the following steps: the cloud acquires a video real-time frame and determines a memory space in which the video real-time frame can be written; for each memory space to be written with video real-time frames, the following steps are executed in parallel: executing a writing task of the video real-time frame to the current memory space at the set writing time interval;
wherein, the determining the memory space of the writable video real-time frame includes: when the terminal for reading the video real-time frame and the cloud end are not in a communication state, the memory space corresponding to the terminal for reading the video real-time frame is judged to be not the memory space capable of being written into the video real-time frame, and the memory space is released.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the multi-process video output method of any one of claims 1-5 or 6 when executing a program stored on a memory.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the multi-process video output method of any of claims 1-5 or 6.
CN202210625165.2A 2022-06-02 2022-06-02 Multi-process video output method, cloud terminal, electronic equipment and storage medium Active CN115022671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210625165.2A CN115022671B (en) 2022-06-02 2022-06-02 Multi-process video output method, cloud terminal, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210625165.2A CN115022671B (en) 2022-06-02 2022-06-02 Multi-process video output method, cloud terminal, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115022671A CN115022671A (en) 2022-09-06
CN115022671B true CN115022671B (en) 2024-03-01

Family

ID=83073061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210625165.2A Active CN115022671B (en) 2022-06-02 2022-06-02 Multi-process video output method, cloud terminal, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115022671B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5737747A (en) * 1995-10-27 1998-04-07 Emc Corporation Prefetching to service multiple video streams from an integrated cached disk array
US6374336B1 (en) * 1997-12-24 2002-04-16 Avid Technology, Inc. Computer system and process for transferring multiple high bandwidth streams of data between multiple storage units and multiple applications in a scalable and reliable manner
WO2011123107A1 (en) * 2010-03-31 2011-10-06 Hewlett-Packard Development Company, L.P. Clients and servers for allocating and managing exclusive access to a portion of remote storage space
CN104802756A (en) * 2015-04-15 2015-07-29 北京路路顺丰科技发展有限责任公司 Method for tracking various vehicle-mounted terminals through mobile phone remote positioning
CN207184711U (en) * 2017-09-22 2018-04-03 成都市小镜科技有限公司 A kind of drive recorder based on cloud service
CN108829523A (en) * 2018-06-26 2018-11-16 迈普通信技术股份有限公司 Memory source distribution method, device, electronic equipment and readable storage medium storing program for executing
US10673919B1 (en) * 2016-06-29 2020-06-02 Amazon Technologies, Inc. Concurrent input monitor and ingest
KR102144512B1 (en) * 2020-04-22 2020-08-13 주식회사 유니넷 Storage apparatus of multi-channel video data
CN111698530A (en) * 2020-05-27 2020-09-22 深圳壹账通智能科技有限公司 Video transmission method, device, equipment and computer readable storage medium
CN111711843A (en) * 2020-06-09 2020-09-25 海信视像科技股份有限公司 Multimedia equipment and screen projection playing method
CN112732861A (en) * 2021-04-06 2021-04-30 智道网联科技(北京)有限公司 Road information data acquisition method and device and electronic equipment
WO2021082662A1 (en) * 2019-10-30 2021-05-06 支付宝(杭州)信息技术有限公司 Method and apparatus for assisting user in shooting vehicle video
CN112883003A (en) * 2021-04-27 2021-06-01 智道网联科技(北京)有限公司 Data sharing method and device for vehicle-mounted terminal
CN114071222A (en) * 2021-11-15 2022-02-18 深圳Tcl新技术有限公司 Audio and video data sharing device and electronic equipment
WO2022062719A1 (en) * 2020-09-28 2022-03-31 深圳市洲明科技股份有限公司 Video processing method, computer-readable storage medium, and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10042709B2 (en) * 2011-06-06 2018-08-07 International Business Machines Corporation Rebuild prioritization during a plurality of concurrent data object write operations
CN103812907B (en) * 2012-11-14 2018-01-16 华为技术有限公司 A kind of methods, devices and systems for determining terminal to be shared

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5737747A (en) * 1995-10-27 1998-04-07 Emc Corporation Prefetching to service multiple video streams from an integrated cached disk array
US6374336B1 (en) * 1997-12-24 2002-04-16 Avid Technology, Inc. Computer system and process for transferring multiple high bandwidth streams of data between multiple storage units and multiple applications in a scalable and reliable manner
WO2011123107A1 (en) * 2010-03-31 2011-10-06 Hewlett-Packard Development Company, L.P. Clients and servers for allocating and managing exclusive access to a portion of remote storage space
CN104802756A (en) * 2015-04-15 2015-07-29 北京路路顺丰科技发展有限责任公司 Method for tracking various vehicle-mounted terminals through mobile phone remote positioning
US10673919B1 (en) * 2016-06-29 2020-06-02 Amazon Technologies, Inc. Concurrent input monitor and ingest
CN207184711U (en) * 2017-09-22 2018-04-03 成都市小镜科技有限公司 A kind of drive recorder based on cloud service
CN108829523A (en) * 2018-06-26 2018-11-16 迈普通信技术股份有限公司 Memory source distribution method, device, electronic equipment and readable storage medium storing program for executing
WO2021082662A1 (en) * 2019-10-30 2021-05-06 支付宝(杭州)信息技术有限公司 Method and apparatus for assisting user in shooting vehicle video
KR102144512B1 (en) * 2020-04-22 2020-08-13 주식회사 유니넷 Storage apparatus of multi-channel video data
CN111698530A (en) * 2020-05-27 2020-09-22 深圳壹账通智能科技有限公司 Video transmission method, device, equipment and computer readable storage medium
CN111711843A (en) * 2020-06-09 2020-09-25 海信视像科技股份有限公司 Multimedia equipment and screen projection playing method
WO2022062719A1 (en) * 2020-09-28 2022-03-31 深圳市洲明科技股份有限公司 Video processing method, computer-readable storage medium, and electronic device
CN112732861A (en) * 2021-04-06 2021-04-30 智道网联科技(北京)有限公司 Road information data acquisition method and device and electronic equipment
CN112883003A (en) * 2021-04-27 2021-06-01 智道网联科技(北京)有限公司 Data sharing method and device for vehicle-mounted terminal
CN114071222A (en) * 2021-11-15 2022-02-18 深圳Tcl新技术有限公司 Audio and video data sharing device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
3G车载多路视频监控终端的研究与实现;金淑梅;金志刚;;计算机测量与控制(11);全文 *
基于SAN的大容量实时视频存储/回放系统的设计;龚少麟;;计算机与数字工程(05) *

Also Published As

Publication number Publication date
CN115022671A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
CN113840012B (en) Block chain-based screen recording evidence obtaining method and system and electronic equipment
US9015695B2 (en) Information processing apparatus and information processing method
CN109726163A (en) A kind of communication system based on SPI, method, equipment and storage medium
CN108628712B (en) Application program testing method and terminal equipment
CN115022671B (en) Multi-process video output method, cloud terminal, electronic equipment and storage medium
CN103838746A (en) Method for multiple CPU systems to share storage data and systems
CN110099119B (en) Data sharing method and device
KR20170117326A (en) Direct memory access control device for at least one processing unit having a random access memory
JP2023021006A (en) Deterministic replay of event between software entities
CN110268697A (en) A kind of data processing method, device, system, movable equipment and storage medium
CN109614359B (en) AXI bus-based data transmission method, device and storage medium
JP4723334B2 (en) DMA transfer system
CN112423104A (en) Audio mixing method and system for multi-channel audio in live scene
CN115098428B (en) SPI data transmission method and device, electronic equipment and storage medium
JPH043282A (en) Ic card
CN115562466B (en) Unmanned aerial vehicle hardware reset control method and device and electronic equipment
CN115826481B (en) State detection equipment and state detection method
JP3630350B2 (en) Memory data comparison method
KR100615694B1 (en) Control system for controlling plural function block
CN114444423B (en) Data processing method and system based on verification platform and electronic equipment
CN115800992B (en) Splitting circuit, splitting method, splitting device, splitting equipment and splitting storage medium for handshake signals
KR20180080463A (en) Semiconductor device and method for operating the same
US20120089790A1 (en) Storage device and method for accessing data using the same
JPH0553787A (en) Program changing system
JP2002124967A (en) Communication equipment

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