CN111064989A - Data stream processing method and device, computing equipment and storage medium - Google Patents
Data stream processing method and device, computing equipment and storage medium Download PDFInfo
- Publication number
- CN111064989A CN111064989A CN201811210608.1A CN201811210608A CN111064989A CN 111064989 A CN111064989 A CN 111064989A CN 201811210608 A CN201811210608 A CN 201811210608A CN 111064989 A CN111064989 A CN 111064989A
- Authority
- CN
- China
- Prior art keywords
- data stream
- program unit
- label
- description information
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 17
- 238000000034 method Methods 0.000 claims abstract description 73
- 238000005111 flow chemistry technique Methods 0.000 claims 1
- 230000011218 segmentation Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8352—Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]
-
- 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/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
- H04N21/4351—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reassembling additional data, e.g. rebuilding an executable program from recovered modules
-
- 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
-
- 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/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application provides a data stream processing method, a data stream processing device, a computing device and a storage medium, wherein the method comprises the following steps: adding description information to a data stream to be transmitted, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a starting label, a process label and an ending label of the program unit; and sending the data stream to be transmitted and the description information.
Description
Technical Field
The present disclosure relates to the field of streaming media playing technologies, and in particular, to a data stream processing method and apparatus, a computing device, and a storage medium.
Background
In the current service of playing a certain channel based on streaming media technology, the boundary of a program unit, i.e. the beginning and the end, cannot be accurately described. When the server transmits the program content to the terminal, the terminal cannot perform applications such as downloading, unloading, playing and the like according to the required individual program; when the terminal needs to download the played program content, the server cannot perform applications such as individual downloading, unloading and playing, etc. on the terminal for the played content. The terminal cannot acquire the required program content to a great extent, and thus the user experience is poor.
Disclosure of Invention
In view of this, embodiments of the present specification provide a method, an apparatus, a computing device, and a storage medium for data stream processing, so as to solve technical defects in the prior art.
In a first aspect, an embodiment of the present specification provides a data stream processing method, which is applied to a server and includes:
adding description information to a data stream to be transmitted, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a starting label, a process label and an ending label of the program unit;
and sending the data stream to be transmitted and the description information.
Optionally, the data stream to be transmitted includes audio data, video data, or image data.
Optionally, in the description information, each program unit corresponds to a plurality of segment units, the start tag of the program unit is added before the first segment unit of the program unit, the end tag of the program unit is added before the last segment unit of the program unit, and the process tag is added before any segment unit of the program unit.
Optionally, the description tag further comprises: description tag type of the program unit, program unit ID, and storage address of the program unit.
Optionally, the method further comprises: and adding an end mark in the description information of the at least one program unit.
Optionally, the sending the data stream to be transmitted and the description information includes:
sending the data stream to be transmitted; and transmitting the description information at preset time intervals.
Optionally, the sending the data stream to be transmitted and the description information includes:
and sending the data stream to be transmitted, wherein the description information is loaded in a data head of the data stream to be transmitted.
In a second aspect, an embodiment of the present specification provides a data stream processing method, which is applied to a terminal, and includes:
receiving a data stream and corresponding description information, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a start label, a process label and an end label of the program unit;
and acquiring data of at least one unit in the data stream based on the description information.
In a third aspect, an embodiment of the present specification provides a data stream processing apparatus, which is applied to a server, and includes:
adding a module: the method comprises the steps that description information is added to a data stream to be transmitted, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a starting label, a process label and an ending label of the program unit;
a sending module: is configured to transmit the data stream to be transmitted and the description information.
In a fourth aspect, an embodiment of the present specification provides a data stream processing apparatus, which is applied to a terminal, and includes:
a receiving module: the method comprises the steps that a received data stream and corresponding description information are received, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a starting label, a process label and an ending label of the program unit;
an acquisition module: and acquiring data of at least one unit in the data stream based on the description information.
In a fifth aspect, embodiments of the present specification provide a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the instructions.
In a sixth aspect, the present specification provides a computer-readable storage medium storing computer instructions, which when executed by a processor, implement the steps of the above-mentioned method.
According to the data stream processing method, the data stream processing device, the computing equipment and the storage medium, the start tag, the end tag and the process tag are added into the description information of the program units in the data stream, so that each program unit can be divided in detail, and a user can download individual program contents.
Drawings
Fig. 1 is a schematic structural diagram of a data stream processing system according to an embodiment of the present application;
fig. 2 is a flowchart of a data stream processing method provided in an embodiment of the present application;
fig. 3 is a flowchart of a data stream processing method provided in an embodiment of the present application;
fig. 4 is a block diagram of a data stream processing apparatus provided in an embodiment of the present application;
fig. 5 is a block diagram of a data stream processing apparatus according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will be able to make and use the present disclosure without departing from the spirit and scope of the present disclosure.
The present invention will be described in detail below with reference to specific examples.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a data stream processing system according to an embodiment of the present invention, and before describing a technical solution of the present application, an architecture of the data stream processing system according to the present application is first described.
Fig. 1 is a schematic diagram showing an architecture of a data stream processing system according to an embodiment of the present specification. Including a server 110, a network 130 and a terminal 120.
The components of the server 110 and the terminal 120 include, but are not limited to, memory and processors. The processor is connected with the memory through a bus, and the database is used for storing data.
The server 110 and the terminal 120 also include access devices that enable the server 110 and the terminal 120 to communicate via one or more networks 130. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet.
The access device may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
Fig. 2 shows a flowchart of a data stream processing method in the embodiment of the present invention, which is applied to a server, and as shown in fig. 2, includes steps 202 to 204.
Step 202: adding description information to a data stream to be transmitted, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a start label, a process label and an end label of the program unit.
In an embodiment of this specification, the data stream to be transmitted includes audio data, video data, or image data. In the media stream, only audio data, video data, or image data is transmitted as a data stream.
In an embodiment of this specification, in the description information, a starting point of one program unit is recorded by a start tag, an end point of one program unit is recorded by an end tag, and a program unit being played is described by a process tag. In practical applications, the start tag may be added before the description information of the corresponding program unit starts, and the end tag may be added before the description information of the corresponding program unit ends. The first segmentation unit and the second segmentation unit may be the same segmentation unit or different segmentation units.
In case the program unit is relatively short, the first and second segmentation units may be the same segmentation unit, where the start tag is added at the beginning of the segmentation unit and the end tag is added at the end of the segmentation unit.
In the case where a program element occupies more than one segment element, the first and second segment elements are different segment elements, where the start tag is added at the beginning of the segment element and the end tag is added at the end of the segment element.
The data stream corresponding to a certain program unit can be obtained by identifying the start tag, the end tag and the process tag.
By adding the above-mentioned start tag and end tag to the description file, it is possible to mark independent program contents.
In an embodiment of the present specification, the description information further includes a process label of the at least one program unit. During the playing process, the program units in playing can be labeled, so that the terminal user can download the program units in playing more conveniently, and the program units can be downloaded without waiting for the end of the program.
In an embodiment of the present specification, the description tag further includes: description tag type of the program unit, program unit ID, and storage address of the program unit.
In practical applications, taking the protocol of real-time Streaming (HLS) as an example, the segment takes m3u8 as a description file, and ts as a segmentation unit.
The m3u8 file standard tags of Manifest are:
#EXTM3U.
#EXT-X-VERSION:3.
#EXT-X-TARGETDURATION:7.
#EXT-X-MEDIA-SEQUENCE:0.
#EXTINF:6.006.
98456.ts.
#EXTINF:6.006.
98457.ts.
……
in one embodiment of the present specification, where # EXT-X-VERSION:3 denotes a specified protocol VERSION; # EXT-X-TARGETDURATION:7 means that the maximum media segment time length is specified to be 7 (seconds); 0 denotes the first file SEQUENCE number in the current m3u8 file; 6.006 denotes the duration of video or audio in the media segment is 6.006 (seconds); ts denotes a segmentation unit of description information of a transport stream file.
Marking the program cells comprises:
the following program start tags are added before the ts segment unit description of the program unit start:
#X-GVMEDIA-CONTENT-CELL:CID=xxx,TYPE=begin,URL=http://XXXXX.m3u8
the tag in the embodiments of the present specification may include a tag name and a tag parameter.
Taking the program start tag as an example, X-GVMEDIA-CONTENT-CELL is the tag name. CID xxx, TYPE begin, URL http:// xxxx.m3u8 are all tag parameters.
Where CID refers to the ID of Content ID used to indicate a program unit.
TYPE refers to the tag TYPE: "TYPE ═ begin" denotes the start of a program cell; "TYPE ═ processing" means process; "TYPE end" indicates the end of the program unit.
In one embodiment of the present specification, for example, the following program start tags are added before the ts segment unit description of the program unit start:
#EXTM3U#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:7
#EXT-X-MEDIA-SEQUENCE:98456
#EXTINF:6.006,
98456.ts
#EXTINF:6.006,
98457.ts
#X-GVMEDIA-CONTENT-CELL:CID=gin,Uents/280,TYPE=begin,URL=http://xxx/playlist.m3u8
#EXTINF:6.006,
98458.ts
#EXTINF:6.006,
98459.ts
#EXTINF:6.006,
98460.ts
……
in the program unit progress, the following process tag is added before this ts segment unit description:
#X-GVMEDIA-CONTENT-CELL:CID=xxx,TYPE=processing,URL=http://XXXXX.m3u8
in one embodiment of the present specification, for example, the following process tag labels are added before the ts segmentation unit description in progress of the program unit:
#EXTM3U#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:7
#EXT-X-MEDIA-SEQUENCE:98469
#X-GVMEDIA-CONTENT-CELL:CID=xxx,TYPE=processing,URL=http://XXXXX.m3u8XXX/playlist.m3u8
#EXTINF:6.006,
98469.ts
#EXTINF:6.006,
98470.ts
#EXTINF:6.006,
98471.ts
#EXTINF:6.006,
98472.ts
#EXTINF:6.006,
98473.ts
……
the following end-of-program tags are added before the ts segmentation unit description of the end of the program unit:
#X-GVMEDIA-CONTENT-CELL:CID=xxx,TYPE=end,URL=http://XXXX.m3u8.
in one embodiment of the present specification, for example, the following end-of-program tag is added before the ts segmentation unit description of the end of the program unit:
#EXTM3U#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:7
#EXT-X-MEDIA-SEQUENCE:98479
#EXTINF:6.006,
98479.ts
#EXTINF:6.006,
98480.ts
#EXTINF:6.006,
98481.ts
#EXTINF:6.006,
98482.ts
#X-GVMEDIA-CONTENT-CELL:CID=xxx,TYPE=endcessing,URL=http://XXXXXX/playlist.m3u8
#EXTINF:6.006,
98483.ts
……
by adding a start tag, an end tag and a process tag to the description information of the program units in the data stream, each program unit can be divided in detail, so that a user can download individual program content.
In an embodiment of the present specification, the description tag further includes: the tag name, the description tag type of the program unit, the program unit ID, and the storage address of the program unit.
The storage address is a Uniform Resource Locator (URL), which is an address capable of identifying that the program unit can be played independently, and is different from the URL of the whole live data stream stored in the server. And determining the playing or downloading address of the current program unit by identifying the URL of the storage address.
In an embodiment of this specification, during a Live broadcast, an m3u8 file of a playlist manifest of a program unit is transferred to a corresponding ts segment stored in a broadcast stream of a media server, a stream media information file (manifest) of the playlist manifest of the program unit is a process gradually changed from Live to Video On Demand (VOD), until the end of the broadcast of the program unit, an end mark of # EXT-X-ENDLIST is marked at the end of the descriptor.
In an embodiment of this specification, in the m3u8 file of the playlist manifest of the program unit, the end mark of the # EXT-X-ENDLIST is added to the last line at the end of the file after the program unit is completely played. In the description information of the live stream, the starting point of a program unit is recorded by a starting tag, the ending point of a program unit is recorded by an ending tag, and the program unit in the process of playing is described by a process tag. In practical applications, the start tag may be added before the corresponding program unit starts, and the end tag may be added before the corresponding program unit ends, and by identifying the URL in the tag, the address of the program unit played individually may be obtained.
Step 204: and sending the data stream to be transmitted and the description information.
In an embodiment of this specification, the data stream to be transmitted may be broadcast through the internet, or may be sent through satellite broadcast. In practical application, the selection can be performed according to requirements, and the application does not limit the selection.
In practical application, the data stream to be transmitted can be sent; and transmitting the description information at preset time intervals.
In an embodiment of this specification, for example, the server may push an m3u8 file of playlist manifest of a program unit to the terminal through the unidirectional broadcast channel at a certain time interval after the data stream is transmitted.
In another embodiment of this specification, the data stream to be transmitted may also be sent, and the description information is loaded in a data header of the data stream to be transmitted.
For example, the related information of the program unit is added to the media data header transmitted by the unidirectional broadcast channel. Adding the following components into a media data header: the current program start slice number, the current program unit ID, and the last program end slice number. By sending the relevant information of the program unit by the server before the program starts, the terminal can receive the relevant information of the program unit in advance and download the required program media file according to the requirement.
By adding a start tag, an end tag and a process tag into the description information of the program units in the data stream, each program unit can be divided in detail, so that a user can download individual program content, and the function of downloading while playing can be realized for the program in playing.
Fig. 3 is a flowchart illustrating a data stream processing method in an embodiment of the present invention, which is applied to a terminal, and as shown in fig. 3, the method includes:
step 302: receiving a data stream and corresponding description information, wherein the description information includes a description label of at least one program unit in the data stream, and the description label includes at least one of a start label, a process label and an end label of the program unit.
Step 304: and acquiring data of at least one unit in the data stream based on the description information.
In an embodiment of the present specification, the data stream includes audio data, video data, or image data.
In an embodiment of this specification, in the description information, each program unit corresponds to a plurality of segment units, before a start tag of the program unit is added to a first segment unit of the program unit, before an end tag of the program unit is added to a last segment unit of the program unit, and before a process tag of the program unit is added to any segment unit of the program unit.
In an embodiment of the present specification, the description information further includes a process label of the at least one program unit. When the playing is carried out, the program units in the playing can be labeled, so that the terminal user can download the program units in the playing more conveniently, and the downloading can be carried out without waiting for the end of the program.
By extracting the start tag, the end tag and the process tag from the description information of the program unit in the data stream, the user can download the individual program content, and the program in the playing can realize the function of downloading while playing
In an embodiment of the present specification, the description tag further includes: description tag type of the program unit, program unit ID, and storage address of the program unit.
The storage address may be a Uniform Resource Locator (URL), or may be an address capable of identifying that the program unit can be played separately, which is different from the URL of the data stream stored in the server.
Receiving the data stream and the description information includes:
receiving a data stream and receiving the described information at preset time intervals; or
Receiving a data stream, wherein the description information is loaded in a data header of the data stream.
In an embodiment of this specification, after receiving a data stream, a terminal sends description information of the data stream at a certain time interval, for example, receives an m3u8 file of a playlist manifest pushed through a unidirectional broadcast channel.
In an embodiment of this specification, a header of a data stream received by a terminal includes description information of a program unit.
Taking the description information of the broadcast channel push program unit as an example, the description information is added to the data header, and the description information includes: the starting segment number of the current program; current program unit ID; last program end segment number. By sending the relevant information of the program unit by the server before the program starts, the terminal can receive the relevant information of the program unit in advance and download the required program media file according to the requirement.
Corresponding to the method embodiment, the present specification also provides a data stream processing apparatus embodiment. Fig. 4 is a block diagram of a data stream processing apparatus according to an embodiment of the present specification. As shown in fig. 4, the apparatus includes:
an add module 402: the method comprises the steps that description information is added to a data stream to be transmitted, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a starting label, a process label and an ending label of the program unit;
the sending module 404: is configured to transmit the data stream to be transmitted and the description information.
In an optional embodiment, the data stream to be transmitted includes audio data, video data, or image data. In the media stream, only audio data, video data, or image data is transmitted as a data stream.
In an optional embodiment, in the description information, each program unit corresponds to a plurality of segment units, the start tag of the program unit is added before the first segment unit of the program unit, the end tag of the program unit is added before the last segment unit of the program unit, and the process tag is added before any segment unit of the program unit.
In an optional embodiment, the adding module further includes: is configured to add an end marker in the descriptive information of the at least one program unit.
In an optional embodiment, the sending module includes:
a first unit: configured to transmit the data stream to be transmitted;
a second unit: is configured to transmit the description information at preset time intervals.
In an optional embodiment, the sending module includes:
a third unit: the method is configured to send the data stream to be transmitted, wherein the description information is loaded in a data header of the data stream to be transmitted.
In an optional embodiment, the description information further includes a process label of the at least one program unit. During the playing process, the program units in playing can be labeled, so that the terminal user can download the program units in playing more conveniently, and the program units can be downloaded without waiting for the end of the program.
In an optional embodiment, the description tag further comprises: description tag type of the program unit, program unit ID, and storage address of the program unit.
Corresponding to the method embodiment, the present specification also provides a data stream processing apparatus embodiment.
Fig. 5 is a block diagram of a data stream processing apparatus according to an embodiment of the present specification. As shown in fig. 5, the apparatus includes:
the receiving module 502: the data stream processing method comprises the steps that received data streams and corresponding description information are configured, the description information comprises description labels of at least one program unit in the data streams, and the description labels comprise at least one of a starting label, a process label and an ending label of the program unit;
the obtaining module 504: is configured to obtain data of at least one cell in the data stream based on the description information.
In an alternative embodiment, the received data stream comprises audio data, video data or image data. In the media stream, the received data stream is only audio data, video data, or image data.
In an optional embodiment, in the description information, each program unit corresponds to a plurality of segment units, the start tag of the program unit is added before the first segment unit of the program unit, the end tag of the program unit is added before the last segment unit of the program unit, and the process tag is added before any segment unit of the program unit.
In an optional embodiment, the description information further includes a process label of the at least one program unit. During the playing process, the program units in playing can be labeled, so that the terminal user can download the program units in playing more conveniently, and the program units can be downloaded without waiting for the end of the program.
In an optional embodiment, the description tag further comprises: description tag type of the program unit, program unit ID, and storage address of the program unit.
In an optional embodiment, the obtaining module includes:
a fourth unit: configured to receive a data stream;
a fifth unit: configured to receive the described information at preset time intervals.
In an optional embodiment, the obtaining module includes:
a sixth unit: is configured to acquire the data stream, wherein the description information is loaded in a data header of the data stream.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
An embodiment of the present specification further provides a computing device, including a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the data stream processing method when executing the instructions.
An embodiment of the present specification further provides a computer readable storage medium storing computer instructions, which when executed by a processor implement the steps of the data stream processing method.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the data stream processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the data stream processing method.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present disclosure is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present disclosure. Further, those skilled in the art should also appreciate that the embodiments described in this specification are preferred embodiments and that acts and modules referred to are not necessarily required for this description.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are intended only to aid in the description of the specification. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the specification and its practical application, to thereby enable others skilled in the art to best understand the specification and its practical application. The specification is limited only by the claims and their full scope and equivalents.
Claims (18)
1. A data flow processing method is applied to a server and comprises the following steps:
adding description information to a data stream to be transmitted, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a starting label, a process label and an ending label of the program unit;
and sending the data stream to be transmitted and the description information.
2. The method of claim 1, wherein the data stream to be transmitted comprises audio data, video data, or image data.
3. The method of claim 1, wherein each program unit in the description information corresponds to a plurality of segment units, and wherein the start tag of the program unit is added before the first segment unit of the program unit, and the end tag is added before the last segment unit of the program unit, and the process tag is added before any segment unit of the program unit.
4. The method of claim 1, wherein the descriptive tag further comprises: description tag type of the program unit, program unit ID, and storage address of the program unit.
5. The method of claim 1, further comprising: and adding an end mark in the description information of the at least one program unit.
6. The method of claim 1, wherein sending the data stream to be transmitted and the description information comprises:
and sending the data stream to be transmitted, and sending the description information according to a preset time interval.
7. The method of claim 1, wherein sending the data stream to be transmitted and the description information comprises:
and sending the data stream to be transmitted, wherein the description information is loaded in a data head of the data stream to be transmitted.
8. A data stream processing method is applied to a terminal and comprises the following steps:
receiving a data stream and corresponding description information, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a start label, a process label and an end label of the program unit;
and acquiring data of at least one unit in the data stream based on the description information.
9. The method of claim 8, wherein the data stream comprises audio data, video data, or image data.
10. The method of claim 8, wherein each program unit in the description information corresponds to a plurality of segment units, and wherein the start tag of the program unit is added before the first segment unit of the program unit, and the end tag is added before the last segment unit of the program unit, and wherein the process tag is added before any segment unit of the program unit.
11. The method of claim 8, wherein the descriptive tag further comprises: description tag type of the program unit, program unit ID, and storage address of the program unit.
12. The method of claim 8, wherein describing information further comprises: and (6) marking the end.
13. The method of claim 8, wherein receiving the data stream and the corresponding description information comprises:
a data stream is received and the described information is received at preset time intervals.
14. The method of claim 8, wherein receiving the data stream and the corresponding description information comprises:
receiving a data stream, wherein the description information is loaded in a data header of the data stream.
15. A data stream processing device applied to a server side is characterized by comprising:
adding a module: the method comprises the steps that description information is added to a data stream to be transmitted, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a starting label, a process label and an ending label of the program unit;
a sending module: is configured to transmit the data stream to be transmitted and the description information.
16. A data stream processing apparatus applied to a terminal, comprising:
a receiving module: the method comprises the steps that a received data stream and corresponding description information are received, wherein the description information comprises a description label of at least one program unit in the data stream, and the description label comprises at least one of a starting label, a process label and an ending label of the program unit;
an acquisition module: and acquiring data of at least one unit in the data stream based on the description information.
17. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the method of any of claims 1-7 or 8-14 when executing the instructions.
18. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method of any one of claims 1-7 or 8-14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811210608.1A CN111064989A (en) | 2018-10-17 | 2018-10-17 | Data stream processing method and device, computing equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811210608.1A CN111064989A (en) | 2018-10-17 | 2018-10-17 | Data stream processing method and device, computing equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111064989A true CN111064989A (en) | 2020-04-24 |
Family
ID=70297294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811210608.1A Pending CN111064989A (en) | 2018-10-17 | 2018-10-17 | Data stream processing method and device, computing equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111064989A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100169303A1 (en) * | 2008-12-31 | 2010-07-01 | David Biderman | Playlists for real-time or near real-time streaming |
CN104410902A (en) * | 2014-12-04 | 2015-03-11 | 华为技术有限公司 | Playing method and terminal for live program, as well as generation method and equipment for index document |
CN104902343A (en) * | 2015-05-26 | 2015-09-09 | 北京微吼时代科技有限公司 | Methods for transmitting and playing audio/video and message, server and terminal |
CN105979373A (en) * | 2015-12-03 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Play method and device |
CN107094263A (en) * | 2017-03-13 | 2017-08-25 | 华为技术有限公司 | A kind of video broadcasting method, user terminal and server |
-
2018
- 2018-10-17 CN CN201811210608.1A patent/CN111064989A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100169303A1 (en) * | 2008-12-31 | 2010-07-01 | David Biderman | Playlists for real-time or near real-time streaming |
CN104410902A (en) * | 2014-12-04 | 2015-03-11 | 华为技术有限公司 | Playing method and terminal for live program, as well as generation method and equipment for index document |
CN104902343A (en) * | 2015-05-26 | 2015-09-09 | 北京微吼时代科技有限公司 | Methods for transmitting and playing audio/video and message, server and terminal |
CN105979373A (en) * | 2015-12-03 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Play method and device |
CN107094263A (en) * | 2017-03-13 | 2017-08-25 | 华为技术有限公司 | A kind of video broadcasting method, user terminal and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104683884B (en) | A kind of stream media live broadcasting method and system | |
CN103813185B (en) | A kind of method that segment programs are quickly distributed, server and client | |
CN103581699A (en) | Video playing method, streaming media server and streaming media playing system | |
RU2016139046A (en) | METHOD, DEVICE AND SYSTEM FOR LOADING VIDEO IN REAL TIME | |
CN101494793B (en) | Method, device and system for sending and receiving stream media data | |
CN102916989B (en) | A kind of method for downloading video, service end and client | |
EP2151970A1 (en) | Processing and supplying video data | |
US11223856B2 (en) | Method for processing streaming media data and server for processing streaming media | |
CN109964467A (en) | The control based on node type for auxiliary data flow transmission | |
CN114222168B (en) | Resource scheduling method and system | |
CN108881956B (en) | Live stream transmission method and device and related equipment | |
CN102790779A (en) | Method and device for downloading live video resources | |
WO2012151865A1 (en) | Data transmission method and system | |
CN103986764A (en) | Equipment and method used for multi-client collaborative file uploading | |
CN108632642A (en) | Streaming Media method for pushing and device | |
CN102378001A (en) | Mobile terminal supporting picture live broadcast mode, video live broadcast method thereof and system thereof | |
CN115002497B (en) | Live broadcast source-returning scheduling method and system and source-returning server | |
CN109151614B (en) | Method and device for reducing HLS live broadcast delay | |
CN113891114A (en) | Transcoding task scheduling method and device | |
US8607282B2 (en) | Video on demand service method, video on demand receiver, and video on demand server | |
US8386632B2 (en) | Method, device, and system for controlling streaming media play | |
CN111064989A (en) | Data stream processing method and device, computing equipment and storage medium | |
CN114885181B (en) | Time delay playing method and device for live broadcast resources | |
CN111147817A (en) | Video processing method and device, electronic equipment and storage medium | |
CN114363651B (en) | Live stream processing method and device |
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: 20200424 |