CN113794933A - Data transmission method, data transmission device, storage medium, and electronic device - Google Patents
Data transmission method, data transmission device, storage medium, and electronic device Download PDFInfo
- Publication number
- CN113794933A CN113794933A CN202111083205.7A CN202111083205A CN113794933A CN 113794933 A CN113794933 A CN 113794933A CN 202111083205 A CN202111083205 A CN 202111083205A CN 113794933 A CN113794933 A CN 113794933A
- Authority
- CN
- China
- Prior art keywords
- data
- target
- sending
- receiving terminal
- pushing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000005540 biological transmission Effects 0.000 title claims abstract description 36
- 238000004590 computer program Methods 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 6
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 238000009877 rendering Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 6
- 238000003491 array Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 208000019116 sleep disease Diseases 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing 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/4402—Processing 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
- H04N21/440218—Processing 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 by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/611—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
- H04L65/762—Media network packet handling at the source
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a data transmission method, a data transmission device, a storage medium and an electronic device. The data sending method comprises the following steps: acquiring a frame of original data of a video; converting a frame of original data into target data with a target format; the target data is pushed to the receiving terminals in the data list, so that the receiving terminals play videos according to the target data, namely, the sending terminals send the data to the multiple receiving terminals in a multicast mode, and the multiple receiving terminals can display real-time video pictures of the sending terminals by rendering after receiving the data, thereby solving the technical problem that one-to-many sending of the data cannot be realized in the prior art.
Description
Technical Field
The present invention relates to the field of computers, and in particular, to a data transmission method, device, storage medium, and electronic device.
Background
With the development of the technology, the office efficiency is improved, people who do not communicate with one space can carry out the conference on line, multiple people can generally participate in the conference on line, one person can speak, and the other person can see the video of the speaker, wherein the video data is pushed.
In the related art, only one-to-one plug flow can be realized, or a plug flow server needs to be deployed and distributed through the server, and a receiving end needs to pull the flow by itself; only one-to-one data transmission or screen projection can be carried out, or a rtmp plug flow mode is used, so that the realization is complex and the cost is high.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a data sending method, a data sending device, a storage medium and an electronic device, and at least solves the technical problem that one-to-many data sending cannot be realized in the prior art.
According to an aspect of the embodiments of the present invention, there is provided a data transmission method, including: acquiring a frame of original data of a video; converting the frame of original data into target data with a target format; and pushing the target data to a receiving terminal in a data list so that the receiving terminal plays the video according to the target data.
Optionally, the pushing the target data to a receiving terminal in a data list, so that the receiving terminal plays the video according to the target data, includes: discovering the receiving terminal in the data list in a multicast mode; and pushing the target data to a receiving terminal in a data list so that the receiving terminal plays the target data according to the target data.
Optionally, after converting the frame of original data into target data having a target format, the method further includes: encoding the target data to obtain encoded data; and storing the coded data to a sending array.
Optionally, the storing the encoded data in a sending array includes: and under the condition that the data quantity stored in the sending array is greater than or equal to a target threshold value, discarding a frame of data farthest from the current moment in the sending array, and storing the coded data in the sending array.
Optionally, the pushing the target data to a receiving terminal in a data list, so that the receiving terminal plays the video according to the target data, includes: acquiring the coded data from the sending array, wherein the target data comprises the coded data; and pushing the coded data to the receiving end in a data list so that the receiving end plays the video according to the target data.
Optionally, the obtaining the encoded data from the sending array includes: under the condition that the data in the sending array is empty, acquiring the coded data from the sending array after a preset time interval; and under the condition that the data in the sending array is not empty, acquiring the coded data stored firstly from the sending array.
According to another aspect of the embodiments of the present invention, there is also provided a data transmitting apparatus, including: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring one frame of original data of a video; a conversion unit for converting the one frame of original data into target data having a target format; and the pushing unit is used for pushing the target data to a receiving terminal in a data list so as to enable the receiving terminal to play the video according to the target data.
Optionally, the pushing unit includes: a discovery module, configured to discover the receiving terminal in the data list in a multicast manner; and the first pushing module is used for pushing the target data to a receiving terminal in a data list so as to enable the receiving terminal to play the target data.
Optionally, the apparatus further comprises: the encoding unit is used for encoding the target data after converting the frame of original data into the target data with the target format to obtain encoded data; and the storage unit is used for storing the coded data to the sending array.
Optionally, the storage unit includes: and the storage module is used for discarding the frame data farthest away from the current moment in the sending array and storing the coded data in the sending array under the condition that the data quantity stored in the sending array is greater than or equal to a target threshold value.
Optionally, the pushing unit includes: an obtaining module, configured to obtain the encoded data from the sending array, where the target data includes the encoded data; and the second pushing module is used for pushing the encoded data to the receiving end in a data list so that the receiving end plays the video according to the target data.
Optionally, the obtaining module includes: the first obtaining sub-module is used for obtaining the coded data from the sending array after a preset time interval under the condition that the data in the sending array is empty; and the second obtaining submodule is used for obtaining the coded data stored firstly from the sending array under the condition that the data in the sending array is not empty.
According to a first aspect of embodiments of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is configured to execute the above data transmission method when running.
According to a first aspect of embodiments of the present application, there is provided an electronic apparatus, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the above data transmission method.
In the embodiment of the invention, one frame of original data of a video is obtained; converting a frame of original data into target data with a target format; the target data is pushed to the receiving terminals in the data list, so that the receiving terminals play videos according to the target data, namely, the sending terminals send the data to the multiple receiving terminals in a multicast mode, and the multiple receiving terminals can display real-time video pictures of the sending terminals by rendering after receiving the data, thereby solving the technical problem that one-to-many sending of the data cannot be realized in the prior art.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal according to an alternative data transmission method in an embodiment of the present invention;
fig. 2 is a flow chart of an alternative data transmission method according to an embodiment of the present invention;
fig. 3 is a diagram illustrating an architecture of an alternative method for implementing one-to-many push flows by a terminal device in a local area network according to an embodiment of the present invention;
fig. 4 is a diagram of an alternative data transmission apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a sequence of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The data transmission method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Taking an example of the operation on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of a data transmission method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the data transmission method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Fig. 2 is a flowchart of a data transmission method according to an embodiment of the present invention, and as shown in fig. 2, the data transmission method includes the following steps:
step S202, a frame of original data of the video is obtained.
Step S204, convert a frame of original data into target data having a target format.
Step S206, the target data is pushed to the receiving terminal in the data list, so that the receiving terminal plays the video according to the target data.
In this embodiment, the video may include, but is not limited to, a video in a video conference, and a monitoring video captured by a monitoring device. The one-frame raw data of the video may be one-frame raw data of a speaking terminal in the video conference. The raw data may include, but is not limited to, yuv 420 raw data.
Converting one frame of original data into target data having a target format may be understood as rotating the acquired yuv _420 original data first, and then converting the original data into data having an nv12 format (target data having a target format).
The executing body of the data transmission method may include, but is not limited to, a smart device, a server, a terminal device, and the like.
In addition, when the data transmission method is performed by a transmitting side, the transmitting side may transmit a packet to a receiving side discovered by multicast. And further, the data can be transmitted to a plurality of receiving ends at one time, and one-to-many transmission of the data is realized. The method can realize one-to-many video sharing or screen projection in the local area network.
According to the embodiment provided by the application, one frame of original data of a video is obtained; converting a frame of original data into target data with a target format; the target data is pushed to the receiving terminals in the data list, so that the receiving terminals play videos according to the target data, namely, the sending terminals send the data to the multiple receiving terminals in a multicast mode, and the multiple receiving terminals can display real-time video pictures of the sending terminals by rendering after receiving the data, thereby solving the technical problem that one-to-many sending of the data cannot be realized in the prior art.
Optionally, pushing the target data to a receiving terminal in the data list, so that the receiving terminal plays the video according to the target data, includes: discovering a receiving terminal in the data list in a multicast mode; and pushing the target data to a receiving terminal in the data list so that the receiving terminal plays according to the target data.
In this embodiment, the sending end may send video data to multiple receiving ends in a multicast manner, so that the multiple receiving ends receive and play the data.
Optionally, after converting a frame of original data into target data having a target format, the method further includes: encoding the target data to obtain encoded data; and storing the coded data to a sending array.
The target data may include, but is not limited to, nv12 format data, the nv12 format data is h264 hard-coded, and the coded data is stored in the transmission data group.
Optionally, storing the encoded data in a sending array includes: and under the condition that the data quantity stored in the sending array is larger than or equal to the target threshold value, discarding the frame data farthest away from the current moment in the sending array, and storing the coded data in the sending array.
In this embodiment, the h264 data after hard coding is stored in the sending array, and when the number of the stored arrays is greater than 10, the oldest frame data is discarded, and a new frame of data is saved.
Optionally, pushing the target data to a receiving terminal in the data list, so that the receiving terminal plays the video according to the target data, includes: acquiring coded data from a sending array, wherein target data comprises the coded data; and pushing the encoded data to a receiving terminal in a data list so that the receiving terminal plays the video according to the target data.
Optionally, acquiring the encoded data from the transmission array includes: under the condition that data in the sending array is empty, acquiring coded data from the sending array after a preset time interval; and under the condition that the data in the sending array is not empty, acquiring the coded data stored firstly from the sending array.
In this embodiment, a udp data sending thread is started, and if the h264 data storage array is empty, the udp data sending thread is acquired again after sleeping for 10 milliseconds; if the stored h264 data array is larger than 0, the first data array is taken, and a udp data packet is sent to a receiving end found through multicast, the receiving end can receive the data of the sending end only by starting a socket server, and the real-time video picture of the sending end can be displayed by rendering after the data is received.
As an optional embodiment, the present application further provides a method for implementing one-to-many stream pushing by a terminal device in a local area network. As shown in fig. 3, an architecture diagram of a terminal device in a local area network implementing the one-to-many push flow method is shown. As shown in fig. 3, the system includes 1 transmitting end and 3 receiving ends and a local area network.
Step 1, the devices discover each other through the local area network multicast and complete information exchange, and a sending end stores a receiving end IP needing to push a video stream.
step 4, carrying out h264 hard coding (equivalent to coded data) on the converted nv12 format data;
step 5, storing the h264 data after hard coding into a sending array, and discarding the oldest frame data and storing new frame data when the number of the stored arrays is more than 10 (equivalent to a target threshold);
step 6, starting a udp data sending thread, and if the h264 data storage array is empty, sleeping for 10 milliseconds and then acquiring again;
and 7, if the stored h264 data array is larger than 0, the first data array is taken, a udp data packet is sent to a receiving end found by multicast, the receiving end can receive the data of the sending end only by starting a socket server, and the real-time video picture of the sending end can be displayed by rendering after the data is received.
Through the embodiment provided by the application, one end pushes multiple ends of the video data stream to be received and played through the local area network, and the problems that only one-to-one push stream is available or an external network server needs to be accessed for forwarding at present, the realization difficulty is high, and the cost is high are solved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a data sending device is further provided, and the data sending device is used to implement the foregoing embodiments and preferred embodiments, and the description of the data sending device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a data transmission apparatus according to an embodiment of the present invention, as shown in fig. 4, the data transmission apparatus including:
the acquiring unit 41 is configured to acquire one frame of original data of the video.
A conversion unit 43, for converting one frame of original data into target data having a target format.
And a pushing unit 45, configured to push the target data to a receiving terminal in the data list, so that the receiving terminal plays the video according to the target data.
By the embodiment provided by the application, the obtaining unit 41 obtains one frame of original data of a video; the conversion unit 43 converts one frame of original data into target data having a target format; the pushing unit 45 pushes the target data to the receiving terminals in the data list, so that the receiving terminals play videos according to the target data, and data transmission is achieved, that is, the transmitting terminal transmits data to the receiving terminals in a multicast mode, so that the receiving terminals render the data to display real-time video pictures of the transmitting terminal, and the technical problem that one-to-many data transmission cannot be achieved in the prior art is solved.
Optionally, the pushing unit 45 may include: a discovery module, configured to discover a receiving terminal in a data list in a multicast manner; the first pushing module is used for pushing the target data to a receiving terminal in the data list so that the receiving terminal can play according to the target data.
Optionally, the apparatus may further include: the encoding unit is used for converting one frame of original data into target data with a target format and then encoding the target data to obtain encoded data; and the storage unit is used for storing the coded data to the sending array.
Optionally, the storage unit may include: and the storage module is used for discarding the frame data farthest away from the current moment in the sending array under the condition that the data quantity stored in the sending array is greater than or equal to the target threshold value, and storing the coded data into the sending array.
Optionally, the pushing unit 45 may include: the acquisition module is used for acquiring the coded data from the sending array, wherein the target data comprises the coded data; and the second pushing module is used for pushing the coded data to a receiving end in the data list so that the receiving end plays the video according to the target data.
Optionally, the obtaining module may include: the first obtaining submodule is used for obtaining coded data from the sending array after a preset time interval under the condition that the data in the sending array is empty; and the second acquisition submodule is used for acquiring the encoded data stored firstly from the sending array under the condition that the data in the sending array is not empty.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a frame of original data of the video;
s2, converting a frame of original data into target data with a target format;
and S3, pushing the target data to the receiving terminal in the data list so that the receiving terminal plays the video according to the target data.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a frame of original data of the video;
s2, converting a frame of original data into target data with a target format;
and S3, pushing the target data to the receiving terminal in the data list so that the receiving terminal plays the video according to the target data.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (14)
1. A data transmission method, comprising:
acquiring a frame of original data of a video;
converting the frame of original data into target data with a target format;
and pushing the target data to a receiving terminal in a data list so that the receiving terminal plays the video according to the target data.
2. The method of claim 1, wherein the pushing the target data to a receiving terminal in a data list so that the receiving terminal plays the video according to the target data comprises:
discovering the receiving terminal in the data list in a multicast mode;
and pushing the target data to a receiving terminal in a data list so that the receiving terminal plays the target data according to the target data.
3. The method of claim 1, wherein after converting the frame of raw data into target data having a target format, the method further comprises:
encoding the target data to obtain encoded data;
and storing the coded data to a sending array.
4. The method of claim 3, wherein the storing the encoded data in a transmit array comprises:
and under the condition that the data quantity stored in the sending array is greater than or equal to a target threshold value, discarding a frame of data farthest from the current moment in the sending array, and storing the coded data in the sending array.
5. The method of claim 4, wherein the pushing the target data to a receiving terminal in a data list so that the receiving terminal plays the video according to the target data comprises:
acquiring the coded data from the sending array, wherein the target data comprises the coded data;
and pushing the coded data to the receiving end in a data list so that the receiving end plays the video according to the target data.
6. The method of claim 5, wherein the obtaining the encoded data from the transmit array comprises:
under the condition that the data in the sending array is empty, acquiring the coded data from the sending array after a preset time interval;
and under the condition that the data in the sending array is not empty, acquiring the coded data stored firstly from the sending array.
7. A data transmission apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring one frame of original data of a video;
a conversion unit for converting the one frame of original data into target data having a target format;
and the pushing unit is used for pushing the target data to a receiving terminal in a data list so as to enable the receiving terminal to play the video according to the target data.
8. The apparatus of claim 7, wherein the pushing unit comprises:
a discovery module, configured to discover the receiving terminal in the data list in a multicast manner;
and the first pushing module is used for pushing the target data to a receiving terminal in a data list so as to enable the receiving terminal to play the target data.
9. The apparatus of claim 7, further comprising:
the encoding unit is used for encoding the target data after converting the frame of original data into the target data with the target format to obtain encoded data;
and the storage unit is used for storing the coded data to the sending array.
10. The apparatus of claim 9, wherein the storage unit comprises:
and the storage module is used for discarding the frame data farthest away from the current moment in the sending array and storing the coded data in the sending array under the condition that the data quantity stored in the sending array is greater than or equal to a target threshold value.
11. The apparatus of claim 10, wherein the pushing unit comprises:
an obtaining module, configured to obtain the encoded data from the sending array, where the target data includes the encoded data;
and the second pushing module is used for pushing the encoded data to the receiving end in a data list so that the receiving end plays the video according to the target data.
12. The apparatus of claim 11, wherein the obtaining module comprises:
the first obtaining sub-module is used for obtaining the coded data from the sending array after a preset time interval under the condition that the data in the sending array is empty;
and the second obtaining submodule is used for obtaining the coded data stored firstly from the sending array under the condition that the data in the sending array is not empty.
13. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 6 when executed.
14. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111083205.7A CN113794933A (en) | 2021-09-15 | 2021-09-15 | Data transmission method, data transmission device, storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111083205.7A CN113794933A (en) | 2021-09-15 | 2021-09-15 | Data transmission method, data transmission device, storage medium, and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113794933A true CN113794933A (en) | 2021-12-14 |
Family
ID=79183680
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111083205.7A Pending CN113794933A (en) | 2021-09-15 | 2021-09-15 | Data transmission method, data transmission device, storage medium, and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113794933A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1383334A2 (en) * | 2002-07-17 | 2004-01-21 | Matsushita Electric Industrial Co., Ltd. | Video data transmitting apparatus, video data receiving apparatus, and broadcasting system |
CN106406789A (en) * | 2016-08-29 | 2017-02-15 | 武汉启目科技有限公司 | Method for realizing screen projection from single PC screen to multiple different device screens |
CN110945494A (en) * | 2017-07-28 | 2020-03-31 | 杜比实验室特许公司 | Method and system for providing media content to a client |
CN113301021A (en) * | 2021-04-23 | 2021-08-24 | 深圳乐播科技有限公司 | One-to-many screen projection method, system, equipment and storage medium |
-
2021
- 2021-09-15 CN CN202111083205.7A patent/CN113794933A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1383334A2 (en) * | 2002-07-17 | 2004-01-21 | Matsushita Electric Industrial Co., Ltd. | Video data transmitting apparatus, video data receiving apparatus, and broadcasting system |
CN106406789A (en) * | 2016-08-29 | 2017-02-15 | 武汉启目科技有限公司 | Method for realizing screen projection from single PC screen to multiple different device screens |
CN110945494A (en) * | 2017-07-28 | 2020-03-31 | 杜比实验室特许公司 | Method and system for providing media content to a client |
CN113301021A (en) * | 2021-04-23 | 2021-08-24 | 深圳乐播科技有限公司 | One-to-many screen projection method, system, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101859064B1 (en) | Video synchronous playback method, apparatus, and system | |
CN106406789A (en) | Method for realizing screen projection from single PC screen to multiple different device screens | |
US10171815B2 (en) | Coding manner switching method, transmit end, and receive end | |
CN107770564B (en) | Method and device for remotely acquiring audio and video data | |
CN103533389A (en) | Video pushing method and video pushing system | |
CN112616065B (en) | Screen image initiating method, device and system and readable storage medium | |
CN110291774A (en) | A kind of image processing method, equipment, system and storage medium | |
US20230269410A1 (en) | Method, device and system for transmitting data stream and computer storage medium | |
US20210105404A1 (en) | Video photographing processing method, apparatus, and video photographing processing system | |
CN103248685A (en) | Smart phone-based P2P monitoring method and system | |
CN110366005A (en) | Sending method and device, the display methods and device of analog composite video signal | |
CN113438442A (en) | Conference data sharing method and device | |
US20140211024A1 (en) | Communication apparatus, control method for communication apparatus, and storage medium | |
CN111641878A (en) | Three-dimensional model display method and device and electronic equipment | |
CN109474471B (en) | RTPS (real time packet service) protocol acceleration method of DDS (direct digital synthesizer) network, node and system thereof | |
CN205105347U (en) | Video wireless transmission equipment, video playback devices and system | |
CN110996137B (en) | Video processing method and device | |
CN113794933A (en) | Data transmission method, data transmission device, storage medium, and electronic device | |
CN114979408A (en) | Method and device for shooting multi-view video | |
CN204031363U (en) | A kind of multifunction wireless personal portable digital device | |
CN110602065A (en) | Live broadcast stream pushing method and device | |
CN112565799B (en) | Video data processing method and device | |
CN113422929A (en) | Image data processing method, image data processing device, storage medium, and electronic device | |
CN113347383A (en) | Signal transmitting and receiving method, device, storage medium, and electronic device | |
CN110012307A (en) | Video transmission method, device and main terminal 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20211214 |