CN110012343A - The generation method and device of network message - Google Patents

The generation method and device of network message Download PDF

Info

Publication number
CN110012343A
CN110012343A CN201910132805.4A CN201910132805A CN110012343A CN 110012343 A CN110012343 A CN 110012343A CN 201910132805 A CN201910132805 A CN 201910132805A CN 110012343 A CN110012343 A CN 110012343A
Authority
CN
China
Prior art keywords
memory space
data
heading
heading data
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910132805.4A
Other languages
Chinese (zh)
Inventor
谢胜利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shengdi Wisdom Technology Co Ltd
Original Assignee
Shengdi Wisdom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shengdi Wisdom Technology Co Ltd filed Critical Shengdi Wisdom Technology Co Ltd
Priority to CN201910132805.4A priority Critical patent/CN110012343A/en
Publication of CN110012343A publication Critical patent/CN110012343A/en
Pending legal-status Critical Current

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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides the generation method and device of a kind of network message.A kind of generation method of network message of the present invention, comprising: determine the first memory space of audio, video data, further include the second memory space before first memory space, second memory space is used for stored messages head data;Collected audio, video data is stored in first memory space;Heading data are generated according to collected audio, video data;The heading data are stored in second memory space;By the first memory space data and the second memory space data together as the message of stream media protocol, it is sent to recipient.Present invention realization exempts to copy the packing of stream media network message, solves the problems, such as to consume a large amount of computing resources due to data copy.

Description

The generation method and device of network message
Technical field
The present invention relates to audio and video technology more particularly to the generation methods and device of a kind of network message.
Background technique
Currently, Streaming Media is widely used on network, and people can be real-time on network by Streaming Media Watch or listen to program.Streaming Media refers to transmits audio, the form of video and multimedia file in a network in a streaming manner, stream Formula transmission mode is that the multimedia files such as video and audio are divided into compressed package one by one by special compress mode, by taking Business device continuous, real-time transmission to subscriber computer.Using in the system of streaming manner, user plays that not necessarily like non-stream Sample wait until just to see after entire file download in content, allow viewer to download files in stream media on one side, on one side This document is played, so that the download time of user be greatly saved.
In the prior art, when audio-video acquisition equipment is transmitted by stream media network transport protocol, needing will be collected Audio, video data copies the message buffer of streaming media transmission protocol to, is subsequently sent to the network receiving terminal of stream media protocol.
However, being beaten in the prior art since the data volume of audio, video data is all bigger in stream media protocol network message Audio, video data is copied when packet can consume a large amount of computing resource.
Summary of the invention
The present invention provides the generation method and device of a kind of network message, to overcome in the prior art due to audio, video data Data volume it is all bigger, stream media protocol network message be packaged when copy audio, video data consume a large amount of computing resource Problem.
The present invention provides a kind of generation method of network message, comprising:
It determines the first memory space of audio, video data, further includes the second memory space before first memory space, Second memory space is used for stored messages head data;
Collected audio, video data is stored in first memory space;
Heading data are generated according to the audio, video data after the completion of the acquisition;
The heading data are stored in second memory space;
By the first memory space data and the second memory space data together as the message of stream media protocol, it is sent to and connects Debit.
It is further, described that heading data are stored in second memory space, comprising:
According to the size of the heading data, the third memory space of the heading data is determined, the third is deposited Store up the space for the size that space is the heading data in second memory space from back to front;
The heading data are stored in third memory space.
Further, the first memory space of the determining audio, video data, comprising:
Determine the start address of the first memory space of the audio, video data.
Further, the size according to the heading data determines that the third storage of the heading data is empty Between, comprising:
According to the size of the heading data, the start address of the memory space of the heading data is determined.
Further, the size according to the heading data determines that the third storage of the heading data is empty Between start address, comprising:
The start address that the start address of the third memory space of the heading data is equal to the first memory space subtracts The data length of heading data.
The present invention also provides a kind of generating means of network message, comprising:
Determination unit, the determination unit are used to determine the first memory space of audio, video data, and first storage is empty Between before further include the second memory space, second memory space be used for stored messages head data;
Acquisition unit, the acquisition unit are used to collected audio, video data being stored in first memory space;
Generation unit, the generation unit are used to generate heading number according to the audio, video data after the completion of the acquisition According to;
Heading data storage cell, the heading data storage cell are used to the heading data being stored in institute State the second memory space;
Transmission unit, the transmission unit be used for by the first memory space data and the second memory space data together as The message of stream media protocol, is sent to recipient.
Further, the heading data storage cell is also used to, and according to the size of the heading data, determines institute State the third memory space of heading data, the third memory space of the heading data be in second memory space from The space of the size of the forward heading data afterwards;The heading data are stored in the third memory space.
Further, the determination unit is also used to, with determining the beginning of the first memory space of the audio, video data Location.
Further, the heading data storage cell is also used to determine institute according to the size of the heading data State the start address of the third memory space of heading data.
Further, the heading data storage cell is also used to determine the third memory space of the heading data Start address be equal to the start address of the first memory space and subtract the data lengths of heading data.
The generation method and device of inventive network message, by being supplied to audio-video when audio, video data acquires Reserved second memory space, this storage of the second memory space as heading data before acquiring the first memory space of equipment Space generates heading data according to collected audio, video data information, by heading after the completion of audio, video data acquisition Data are stored in the second memory space, then by the first memory space data and the second memory space data together as Streaming Media The message of agreement is sent to recipient, and realization exempts to copy the packing of stream media network message, and solution is consumed big due to data copy The problem of measuring computing resource.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the generation method embodiment one of network message of the present invention;
Fig. 2 is a kind of flow chart of the generation method embodiment two of network message of the present invention;
Fig. 3 a is a schematic diagram of memory space in a kind of generation method embodiment two of network message of the present invention;
Fig. 3 b is another schematic diagram of memory space in a kind of generation method embodiment two of network message of the present invention;
Fig. 3 c is another schematic diagram of memory space in a kind of generation method embodiment two of network message of the present invention;
Fig. 3 d is another schematic diagram of memory space in a kind of generation method embodiment two of network message of the present invention;
Fig. 4 is a kind of structural schematic diagram of the generating means embodiment one of network message of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
In the description of the present invention, unless otherwise indicated, the meaning of " plurality " is two or more.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this A little process, methods, the other step or units of product or equipment inherently.
These specific embodiments can be combined with each other below, may be at certain for the same or similar concept or process A little embodiments repeat no more.
Fig. 1 is a kind of flow chart of the generation method embodiment one of network message of the present invention, as shown in Figure 1, the present embodiment Method may include:
S101, the first memory space for determining audio, video data, first memory space further include before the second storage Space, second memory space are used for stored messages head data;
In audio, video data when acquiring data, need device software provide one for store collected data Buffer area.Data buffer area i.e. the first memory space.The method of the present embodiment first has to one reasonable memory space of distribution, this The size of memory space should meet the needs of audio, video data output, and plus possible stream media protocol heading data Maximum possible size.
Another optional embodiment, the size of this memory space can also rationally be set according to the utilization rate in space It sets, guarantees the reasonable utilization of memory space.
In the present embodiment, one section of memory headroom is also reserved before data buffer area, i.e. the second memory space, reserved is interior Space is deposited for stored messages head data, the i.e. head space as stream media protocol message.
S102, collected audio, video data is stored in the first memory space;
In the present embodiment, i.e., collected audio, video data is stored in data buffer area.
In the present embodiment, after determining the first memory space, by opening for i.e. the first memory space of the information of the first memory space Beginning address information passes to audio, video data acquisition equipment (or video acquisition software module), acquires equipment or acquisition software mould Collected audio, video data is stored in data buffer area according to the information by root tuber.
Another optional embodiment, after determining the first memory space, by the start address information of the first memory space and The length information of memory space passes to audio, video data acquisition equipment (or video acquisition software module), acquires equipment or adopts Collect software module and collected audio, video data is stored in by data buffer area according to the information.
Since output data is directly deposited in the caching that the first memory space start address starts by audio-video acquisition equipment Area, the second memory space before this storage address are left empty white region, for constructing stream media protocol heading data Information.
S103, heading data are generated according to collected audio, video data;
In the present embodiment, when audio-video acquisition equipment completes a unit (frame or a packet) data acquisition, according to institute The audio, video data of acquisition calculates the length of stream media protocol heading data.The calculation method of the length of heading data is this Conventional calculation method, the present invention are not specifically limited in this embodiment in field.
S104, the heading data are stored in second memory space;
In the present embodiment, heading data are stored in the second memory space, that is, it is reserved before being stored in data buffer area Memory headroom.Protocol massages head data are packed into reserved memory headroom.
S105, the message by the first memory space data and the second memory space data together as stream media protocol, hair It is sent to recipient.
In the present embodiment, the first memory space data are the audio, video data acquired, the second memory space data, that is, message Head data.
In the present embodiment, i.e., directly by data buffer zone and reserved memory headroom together as the report of stream media protocol Text is sent to the recipient of stream media network agreement.
The present embodiment, by when audio, video data acquires, in the first memory space for being supplied to audio-video acquisition equipment The second memory space is reserved before, this memory space of the second memory space as heading data is acquired in audio, video data After the completion, heading data are generated according to collected audio, video data information, heading data is stored in the second storage sky Between, then the first memory space data and the second memory space data are sent to and are connect together as the message of stream media protocol Debit, realization exempt to copy the packing of stream media network message, solve the problems, such as to consume a large amount of computing resources due to data copy.
Fig. 2 is a kind of flow chart of the generation method embodiment two of network message of the present invention, and the present embodiment is shown in Fig. 1 On the basis of embodiment, specifically, the generation method of the network message in the present embodiment, further:
It is described that heading data are stored in second memory space, comprising:
According to the size of the heading data, the third memory space of the heading data, the heading are determined The third memory space of data is the space of the size of the heading data in second memory space from back to front;
The heading data are stored in the third memory space.
As shown in Fig. 2, method in the present embodiment, comprising:
S201, the first memory space for determining audio, video data, first memory space further include before the second storage Space, second memory space are used for stored messages head data;
S202, collected audio, video data is stored in first memory space;
S203, heading data are generated according to collected audio, video data;
S204, according to the size of the heading data, determine the third memory space of the heading data, the report The third memory space of literary head data is the sky of the size of the heading data in second memory space from back to front Between;The heading data are stored in the third memory space;
In real work, the not of uniform size of heading data is exactly equal to the second reserved memory space surely, in this situation Under, using the stream media protocol heading data information of sequence filling from back to front, to guarantee final stream media protocol heading The memory headroom and audio, video data buffer area in data information data area are spatially continuous.
Third memory space in the present embodiment is a part of the second memory space, and actually heading data only take up Third memory space.
Therefore, described heading data are stored in described second to deposit in the present embodiment compared with embodiment illustrated in fig. 1 Storage space is implemented as, and according to the size of the heading data, determines the third memory space of the heading data, institute The third memory space for stating heading data is the size of the heading data in second memory space from back to front Space;The heading data are stored in the third memory space.
S205, the message by the first memory space data and the second memory space data together as stream media protocol, hair It is sent to recipient.
In the present embodiment, heading data are actually stored in the third memory space in the second memory space, in S205 The second memory space data be actually data in third storage space.
The present embodiment ensure that final Streaming Media by using the stream media protocol heading of sequence filling from back to front The memory headroom and audio, video data buffer area in protocol massages head data information data area are spatially continuous, complete a sound view The Streaming Media of frequency data packet or frame be packaged transmission process, thus realize directly by the first memory space and the second memory space together As the message of stream media protocol, it is sent to the recipient of stream media network agreement, without copying stream media protocol network report to Literary buffer area removes a data copy operation from, solves the problems, such as to consume a large amount of computing resources due to data copy, improves Equipment operating efficiency.
Fig. 3 a is a schematic diagram of memory space in a kind of generation method embodiment two of network message of the present invention, Fig. 3 b It is another schematic diagram of memory space in a kind of generation method embodiment two of network message of the present invention, Fig. 3 c is the present invention one Another schematic diagram of memory space in the generation method embodiment two of kind network message;Fig. 3 d is a kind of network message of the present invention Generation method embodiment two in memory space another schematic diagram;On the basis of the present embodiment is embodiment shown in Fig. 2, With reference to shown in Fig. 3 a, 3b, 3c and 3d,
The memory space of distribution includes the first memory space and the second memory space,
Second memory space is located at before the first memory space,
L is the length of the first memory space,
N is the length of the second memory space,
The initial address of the memory space of distribution is X,
The start address of first memory space is equal to the initial address X of the memory space of distribution plus the second memory space Length n, the i.e. start address of the first memory space are X+n;
As shown in Figure 3b, Lh is the data length of heading data, and memory space, that is, third storage of heading data is empty Between start address be equal to the start address of the first memory space and subtract the data lengths of heading data, i.e. heading data Initial address is X+n-Lh.
The start address of the stream media protocol message finally constructed is X+n-Lh, in figure, the final sound for acquiring equipment acquisition Video data, as shown in shade in figure, length Lm, the total length of protocol massages is Lh+Lm.
By this complete stream media protocol message transmissions to network, that is, completes an audio, video data packet or the Streaming Media of frame is beaten Packet transmission process.
When practical audio-video collection, after the Streaming Media packing transmission process for completing an audio, video data packet or frame, again The Streaming Media for starting next audio, video data packet or frame is packaged transmission and processing process, that is, repeats acquisition, packing, transmission, Until acquisition is completed.
In the present embodiment, the size of the first memory space can be set to the maximum amount of data of audio, video data output Value.
Optionally, the size of the first memory space can be arranged according to those skilled in the art's experience.Those skilled in the art can The first memory space is rule of thumb dimensioned to the size that can satisfy most of data storage, to improve sky Between utilization rate.As shown in Figure 3c, the length that the size of the first memory space is arranged is L1.
When data collected are greater than the size of the memory space of distribution, memory space are filled a vacancy first full, that is, stored Audio, video data length Lm be equal to the first memory space length L1.For the audio-video number of remaining acquisition equipment output According to, it can be to one new memory space of device software application, the start address of the new memory space of distribution is X1, and new deposits Storage space is also classified into deposits for the 5th memory space of stored messages head data and the 4th for storing remaining audio, video data Space is stored up, size those skilled in the art of the 4th memory space can rule of thumb be arranged, remaining audio, video data is filled Enter in the 4th memory space, as shown in Figure 3d, the length of the 4th memory space is L2, it is assumed that remaining audio, video data length is Then Ls generates heading data according to audio, video data, heading data is stored in the 5th memory space, such as Fig. 3 d institute Show, it is Lh1 according to the heading data length that remaining audio, video data obtains that the length of the 5th memory space, which is n1, finally will 5th memory space data and the 4th memory space data are sent to recipient together as the message of stream media protocol.For New data acquisition, then continue to be stored in the first memory space, repeat the acquisition method in Fig. 1 or 2 illustrated embodiments, until adopting Collection is completed.
Another optional embodiment, in the case where not high to audio-video collection quality requirement, when data collected Greater than the memory space of distribution size when, first fill a vacancy memory space full, that is, length Lm of the audio, video data stored etc. In the length L1 of the first memory space, then, for the audio, video data of remaining acquisition equipment output, discarding can choose.
In the present embodiment, the size of the second memory space can also be according to those skilled in the art's experience flexible setting.
Optionally, the second address for depositing space can be set to the size of heading data maximum possible.
The size of i.e. the first memory space of the memory space of distribution adds the size of the second memory space.
The length of the memory space actually distributed is n+L.
In the present embodiment, stored by the length computation first of the initial address and the second storage address of distributing memory space The start address in space, and heading data are calculated by the length of heading data and the initial address of the first memory space Start address so that acquisition audio, video data and heading data can smoothly store, so as to realize directly By the first memory space and the second memory space together as the message of stream media protocol, it is sent to connecing for stream media network agreement Debit removes a data copy operation from, solves since data are copied without copying stream media protocol network message buffer area to Shellfish and the problem of consume a large amount of computing resources, improve equipment operating efficiency.
Fig. 4 is a kind of structural schematic diagram of the generating means embodiment one of network message of the present invention,
As shown in figure 4, the device of the present embodiment includes:
Determination unit 401, acquisition unit 402, generation unit 403, heading data storage cell 404 and transmission unit 405,
Wherein it is determined that unit 401, the determination unit is used to determine the first memory space of audio, video data, described the It further include the second memory space before one memory space, second memory space is used for stored messages head data;
Acquisition unit 402, it is empty that the acquisition unit is used to for collected audio, video data being stored in first storage Between;
Generation unit 403, the generation unit are used to generate heading according to the audio, video data after the completion of the acquisition Data;
Heading data storage cell 404, the heading data storage cell are used to store the heading data In second memory space;
Transmission unit 405, the transmission unit are used for the heading data and the collected audio, video data Together as the message of stream media protocol, it is sent to recipient.
Optionally, the heading data storage cell is also used to, according to the size of the heading data, determine described in The third memory space of heading data, the third memory spaces of the heading data be in second memory space after The space of the size of the forward heading data;The heading data are stored in the third memory space.
Optionally, the first memory space of the determining audio, video data, comprising:
Determine the start address of the first memory space of the audio, video data.
Optionally, the heading data storage cell is also used to the size according to the heading data, determine described in The start address of the memory space of heading data.
Optionally, the heading data storage cell is also used to determine the beginning of the memory space of the heading data The start address that address is equal to the first memory space subtracts the data length of heading data.
The device of the present embodiment, can be used for executing the technical solution of embodiment of the method shown in Fig. 1-2, realization principle and Technical effect is similar, and details are not described herein again.
The generation method and device of inventive network message, by being supplied to audio-video when audio, video data acquires Reserved second memory space, this storage of the second memory space as heading data before acquiring the first memory space of equipment Space generates heading data according to collected audio, video data information, by heading after the completion of audio, video data acquisition Data are stored in the second memory space, then by the first memory space data and the second memory space data together as Streaming Media The message of agreement is sent to recipient, and realization exempts to copy the packing of stream media network message, and solution is consumed big due to data copy The problem of measuring computing resource.
It should be noted that it should be understood that the modules of apparatus above division be only a kind of logic function division, It can completely or partially be integrated on a physical entity in actual implementation, it can also be physically separate.And these modules can be with All realized by way of processing element calls with software;It can also all realize in the form of hardware;It can also part mould Block realizes that part of module passes through formal implementation of hardware by way of processing element calls software.For example, determining module can be with For the processing element individually set up, it also can integrate and realized in some chip of above-mentioned apparatus, in addition it is also possible to program The form of code is stored in the memory of above-mentioned apparatus, is called by some processing element of above-mentioned apparatus and is executed above true The function of cover half block.The realization of other modules is similar therewith.Furthermore these modules completely or partially can integrate together, can also With independent realization.Processing element described here can be a kind of integrated circuit, the processing capacity with signal.In the process of realization In, each step of the above method or the above modules can by the integrated logic circuit of the hardware in processor elements or The instruction of software form is completed.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of generation method of network message characterized by comprising
It determines the first memory space of audio, video data, further includes the second memory space before first memory space, it is described Second memory space is used for stored messages head data;
Collected audio, video data is stored in first memory space;
Heading data are generated according to collected audio, video data;
The heading data are stored in second memory space;
By the first memory space data and the second memory space data together as the message of stream media protocol, it is sent to reception Side.
2. the heading data be stored in described second depositing the method according to claim 1, wherein described Store up space, comprising:
According to the size of the heading data, the third memory space of the heading data, the heading data are determined Third memory space be the size of heading data from back to front in second memory space space;
The heading data are stored in the third memory space.
3. method according to claim 1 or 2, which is characterized in that the first memory space of the determining audio, video data, Include:
Determine the start address of the first memory space of the audio, video data.
4. according to the method described in claim 2, it is characterized in that, the size according to the heading data, determines institute State the third memory space of heading data, comprising:
According to the size of the heading data, the start address of the third memory space of the heading data is determined.
5. according to the method described in claim 4, it is characterized in that, the size according to the heading data, determines institute State the start address of the third memory space of heading data, comprising:
The start address that the start address of the third memory space of the heading data is equal to the first memory space subtracts message The data length of head data.
6. a kind of generating means of network message characterized by comprising
Determination unit, the determination unit are used to determine the first memory space of audio, video data, first memory space it Before further include the second memory space, second memory space be used for stored messages head data;
Acquisition unit, the acquisition unit are used to collected audio, video data being stored in first memory space;
Generation unit, the generation unit are used to generate heading data according to the audio, video data after the completion of the acquisition;
Heading storage unit, it is empty that the heading storage unit is used to for the heading data being stored in second storage Between;
Transmission unit, the transmission unit are used for the first memory space data and the second memory space data together as stream matchmaker The message of body agreement, is sent to recipient.
7. device according to claim 6, which is characterized in that
The heading data storage cell is also used to, and according to the size of the heading data, determines the heading data Third memory space, the third memory spaces of the heading data is from back to front described in second memory space The space of the size of heading data;The heading data are stored in third memory space.
8. device according to claim 6 or 7, which is characterized in that the determination unit is also used to,
Determine the start address of the first memory space of the audio, video data.
9. device according to claim 7, which is characterized in that
The heading data storage cell is also used to the size according to the heading data, determines the heading data The start address of third memory space.
10. device according to claim 9, which is characterized in that
The heading data storage cell is also used to determine the start address etc. of the third memory space of the heading data The data length of heading data is subtracted in the start address of the first memory space.
CN201910132805.4A 2019-02-21 2019-02-21 The generation method and device of network message Pending CN110012343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910132805.4A CN110012343A (en) 2019-02-21 2019-02-21 The generation method and device of network message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910132805.4A CN110012343A (en) 2019-02-21 2019-02-21 The generation method and device of network message

Publications (1)

Publication Number Publication Date
CN110012343A true CN110012343A (en) 2019-07-12

Family

ID=67165944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910132805.4A Pending CN110012343A (en) 2019-02-21 2019-02-21 The generation method and device of network message

Country Status (1)

Country Link
CN (1) CN110012343A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150487A (en) * 2007-11-15 2008-03-26 曙光信息产业(北京)有限公司 A transmission method for zero copy network packet
CN101150486A (en) * 2007-11-15 2008-03-26 曙光信息产业(北京)有限公司 A management method for receiving network data of zero copy buffer queue
US7617290B1 (en) * 2000-05-10 2009-11-10 Cisco Technology, Inc. Protocol-independent support of remote DMA
CN101702713A (en) * 2009-11-16 2010-05-05 中兴通讯股份有限公司 Method and device for increasing UDP transmission efficiency
CN101707590A (en) * 2009-09-25 2010-05-12 曙光信息产业(北京)有限公司 Zero-copy mode based TCP/IP messaging method and device
US20110258337A1 (en) * 2008-08-04 2011-10-20 Zte Corporation Method and system for enabling zero-copy transmission of streaming media data
CN104717257A (en) * 2013-12-13 2015-06-17 腾讯科技(深圳)有限公司 Method and device for transmitting data messages
US20180184142A1 (en) * 2016-12-28 2018-06-28 Google Inc. Scheme for zero-copy adaptive bitrate video streaming

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7617290B1 (en) * 2000-05-10 2009-11-10 Cisco Technology, Inc. Protocol-independent support of remote DMA
CN101150487A (en) * 2007-11-15 2008-03-26 曙光信息产业(北京)有限公司 A transmission method for zero copy network packet
CN101150486A (en) * 2007-11-15 2008-03-26 曙光信息产业(北京)有限公司 A management method for receiving network data of zero copy buffer queue
US20110258337A1 (en) * 2008-08-04 2011-10-20 Zte Corporation Method and system for enabling zero-copy transmission of streaming media data
CN101707590A (en) * 2009-09-25 2010-05-12 曙光信息产业(北京)有限公司 Zero-copy mode based TCP/IP messaging method and device
CN101702713A (en) * 2009-11-16 2010-05-05 中兴通讯股份有限公司 Method and device for increasing UDP transmission efficiency
CN104717257A (en) * 2013-12-13 2015-06-17 腾讯科技(深圳)有限公司 Method and device for transmitting data messages
US20180184142A1 (en) * 2016-12-28 2018-06-28 Google Inc. Scheme for zero-copy adaptive bitrate video streaming

Similar Documents

Publication Publication Date Title
US7856501B2 (en) Network traffic prioritization
CN105340282B (en) Data structure, data structure for physical layer encapsulation generate device and method thereof
CN103402136B (en) Self adaptation is adjusted control method, device and the self adaptation player of buffer memory
CN101374233B (en) Method and apparatus for adapting video stream frame rate, and FPGA chip as well as equipment for processing video stream
CN101951387A (en) Method and device for transmitting stream media
CN104219286A (en) Method and device for processing stream media, client, CDN (content delivery network) node server and terminal
CN106535343A (en) Channel access method and device of wireless sensor network
CN108347580A (en) A kind of method and electronic equipment of processing video requency frame data
CN109101233A (en) It is adapted to the method, storage equipment and Android device of a variety of screen resolutions
CN106101712B (en) A kind of processing method and processing device of video stream data
CN109902059A (en) A kind of data transmission method between CPU and GPU
CN109379548A (en) Multi-media recording method, apparatus, terminal and storage medium
CN102103740B (en) Method and circuit for processing written address and width unaligned image
CN106911740A (en) A kind of method and apparatus of cache management
CN110012343A (en) The generation method and device of network message
CN105245313B (en) Unmanned plane multi-load data dynamic multiplexing method
CN105338376A (en) Streaming media code rate control method, streaming media code rate control system and streaming media server
CN108989898A (en) A kind of method, storage medium, equipment and system showing present double hit animation
CN104506920A (en) Method and device for playing omnimedia data information
CN102075407A (en) Method and device for processing mixed business flow
CN1234692A (en) Data multi-way multiplying apparatus having single external memory
CN110225353A (en) A kind of picture decoding method, device, equipment and computer readable storage medium
CN109474643A (en) Data analysis method, device, equipment and storage medium
CN106657097B (en) A kind of data transmission method for uplink and device
CN104580009B (en) Chip forwards the method and device of data

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

Application publication date: 20190712

RJ01 Rejection of invention patent application after publication