CN108769805A - Data transmission method, device, computer equipment and storage medium - Google Patents

Data transmission method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108769805A
CN108769805A CN201810595339.9A CN201810595339A CN108769805A CN 108769805 A CN108769805 A CN 108769805A CN 201810595339 A CN201810595339 A CN 201810595339A CN 108769805 A CN108769805 A CN 108769805A
Authority
CN
China
Prior art keywords
data
slice
terminal
video
label
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.)
Granted
Application number
CN201810595339.9A
Other languages
Chinese (zh)
Other versions
CN108769805B (en
Inventor
邱志光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu kugou business incubator management Co.,Ltd.
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201810595339.9A priority Critical patent/CN108769805B/en
Publication of CN108769805A publication Critical patent/CN108769805A/en
Application granted granted Critical
Publication of CN108769805B publication Critical patent/CN108769805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The present invention relates to a kind of data transmission method, device, computer equipment and storage mediums, belong to field of communication technology.The method includes:The first slice of data is sent to terminal;When being transmitted to the first slice of data, transmission process is detected in real time, obtains detection data;When determining that network quality does not meet preset condition based on detection data, according to the first slice of data to be sent, the second slice of data of target is determined, the second slice of data of target is sent to terminal.The present invention is when being transmitted live video stream, obtain detection data, when determining that network quality does not meet preset condition, by the first video data transmission of live video stream to terminal so that can be according to the network quality of data connection, the video data to which code check of terminal transmission judged, the data received without end-on carry out code check conversion, avoid terminal that broadcast time-delay occurs, are more applicable for live scene, intelligent more excellent, user's viscosity is higher.

Description

Data transmission method, device, computer equipment and storage medium
Technical field
The present invention relates to field of communication technology, more particularly to a kind of data transmission method, device, computer equipment and storage Medium.
Background technology
With the development of the communication technology, user can connect wireless network with using terminal, more freely and targetedly The video that selection viewing is liked.Wherein, it includes real-time video and recorded broadcast video to select the video of viewing for user, these videos exist Smooth, three kinds of play mode of SD and high definition selection, the data of these three play mode transmission can be selected when broadcasting mostly Video code rate be different.In order to adapt to transmission of these three play mode to data, the server end of supplier is usually adopted With HLS, (Hyper text transport protocol Live Streaming, hypertext transfer protocol dynamic code rate are adaptive Answer technology), DASH (Dynamic Adaptive Streaming over Hyper text transport protocol, surpass Text transfer protocol dynamic self-adapting technical standard) etc. transmission modes the data of video are transmitted.
In the related technology, when being transmitted to the data of video using transmission modes such as HLS, DASH, it usually needs clothes Device end be engaged in by the video stream data that Video coding to be transmitted is multiple and different code checks, and multiple video stream datas are carried out respectively Slice, obtains the slice of data of different code checks.When determining to the video of any code check of terminal transmission, terminal is needed actively to visit The network quality for itself arriving server end is surveyed, and asks the video of specified code check to server end according to network quality from terminal, In this way, when received server-side to the held terminal-pair of user specifies the request of the video of code check, by the requested code check of terminal The slice of data of corresponding video is transferred to terminal, and terminal is allow to play out.
In the implementation of the present invention, inventor has found that the relevant technologies have at least the following problems:
When being transmitted to the data of video using transmission modes such as HLS, DASH, arrived since terminal needs to detect itself The network quality of server end, and this detection process is present in user and watches during the entire process of video, so just so that such as The video data of fruit transmission is the data of real-time video, then terminal is played out in the data of the server end transmission to receiving When, there can be larger delay, and being delayed can be increasing, causes the data transmission method that can not adapt to live scene, intelligence Property is poor, and user's viscosity is relatively low.
Invention content
To overcome, there are larger delays present in the relevant technologies, and being delayed can be increasing, leads to the data transmission Method can not adapt to live scene, intelligent poor, the relatively low problem of user's viscosity, and the present invention provides a kind of transmission side data Method, device, computer equipment and storage medium.
According to a first aspect of the embodiments of the present invention, a kind of data transmission method is provided, the method includes:
At least one first slice of data of live video stream is sent to terminal, at least one first slice of data is Code check is more than the first video data of the first default code check;
When being transmitted at least one first slice of data, transmission process is detected in real time, obtains inspection Measured data, the detection data include at least Retransmission timeout parameter, send packet amount parameter and congestion parameter;
When determining that network quality does not meet preset condition based on the detection data, according to the first number of slices to be sent According to from least one second slice of data of the live video stream, the second slice of data of target being determined, by the target Two slice of data are sent to the terminal;
Wherein, at least one second slice of data is the second video data that code check is less than the second default code check, institute The second slice of data of target is stated to cut with described to be sent first the location of at least one second slice of data Sheet data is consistent the location of at least one first slice of data.
In another embodiment, before at least one first slice of data that live video stream is sent to terminal, The method further includes:
The access request of the terminal is received, RTMP agreements is transmitted based on real-time messages, the terminal is accessed;
The messaging parameter between the terminal is created, the data connection between the terminal is established.
In another embodiment, before at least one first slice of data that live video stream is sent to terminal, The method further includes:
The video request that the terminal is sent is received, the video request includes at least the resource of first video data Mark;
According to the resource identification, first video data is obtained;
Based on coded system, code check conversion is carried out to first video data, generates second video data.
In another embodiment, described to be based on coded system, code check conversion is carried out to first video data, is generated After second video data, the method further includes:
It is at least one first slice of data by the first video data cutting, second video data is cut Divide at least one second slice of data;
At least one first label is distributed at least one first slice of data, at least one second slice Data distribute at least one second label;
According to putting in order at least one first slice of data and at least one second slice of data, by institute At least one first label is stated to be associated with at least one second label;
Correspondingly, described when determining that network quality does not meet preset condition based on the detection data, according to be sent The first slice of data determine the second slice of data of target from least one second slice of data of the live video stream, The second slice of data of the target, which is sent to the terminal, includes:
When the propagation threshold is more than predetermined threshold value, determine that network quality does not meet preset condition, and waited for described in acquisition Specified first label of the first slice of data sent;
It determines and specifies the first label is corresponding to specify the second label with described, at least one second slice of data Extract corresponding the second slice of data of target of specified second label;
The second slice of data of the target is transmitted to the terminal.
In another embodiment, described when being transmitted at least one first slice of data, in real time to passing Defeated process is detected, and after obtaining detection data, the method further includes:
The Retransmission timeout parameter, the first weight system for sending packet amount parameter and the congestion parameter are determined respectively Number, the second weight coefficient and third weight coefficient;
Based on first weight coefficient, second weight coefficient and the third weight coefficient, to the time-out weight It passes parameter, the transmission packet amount parameter and the congestion parameter to be calculated, obtains the propagation threshold;
The predetermined threshold value is obtained, judges whether the propagation threshold is more than the predetermined threshold value.
In another embodiment, the method further includes:
When determining that network quality meets the preset condition based on the detection data, continue to execute it is presently described at least The transmission process of one the first slice of data.
In another embodiment, the method further includes:
It determines default detection cycle, every the default detection cycle, executes above-mentioned acquisition detection data and determine network Whether quality meets the process of preset condition.
In another embodiment, the method further includes:
If receiving the disconnection request of the terminal, the data connection between the terminal is disconnected;
At least one first slice of data and at least one second slice of data are deleted.
According to a second aspect of the embodiments of the present invention, a kind of data transmission device is provided, described device includes:
Sending module, at least one first slice of data for sending live video stream to terminal are described at least one First slice of data is the first video data that code check is more than the first default code check;
Detection module, for when being transmitted at least one first slice of data, in real time to transmission process into Row detection, obtains detection data, and the detection data includes at least Retransmission timeout parameter, sends packet amount parameter and congestion parameter;
Determining module, for when determining that network quality does not meet preset condition based on the detection data, according to pending The first slice of data sent determines the second number of slices of target from least one second slice of data of the live video stream According to the second slice of data of the target is sent to the terminal;
Wherein, at least one second slice of data is the second video data that code check is less than the second default code check, institute The second slice of data of target is stated to cut with described to be sent first the location of at least one second slice of data Sheet data is consistent the location of at least one first slice of data.
In another embodiment, described device further includes:
AM access module, the access request for receiving the terminal transmit RTMP agreements, by the end based on real-time messages Terminate into;
Creation module, for creating the messaging parameter between the terminal, the data established between the terminal connect It connects.
In another embodiment, described device further includes:
Receiving module, the video request sent for receiving the terminal, the video request include at least described first The resource identification of video data;
Acquisition module, for according to the resource identification, obtaining first video data;
Conversion module carries out code check conversion to first video data, generates described second for being based on coded system Video data.
In another embodiment, described device further includes:
Cutting module will be described for being at least one first slice of data by the first video data cutting At least one second slice of data described in second video data cutting;
Distribution module, for distributing at least one first label at least one first slice of data, for described in extremely Few second slice of data distributes at least one second label;
Relating module, for according at least one first slice of data and at least one second slice of data It puts in order, at least one first label is associated with at least one second label;
Correspondingly, the determining module, for when the propagation threshold is more than predetermined threshold value, determining that network quality is not inconsistent Preset condition is closed, and obtains specified first label of first slice of data to be sent;It determines and specified first mark Corresponding specified second label is signed, the corresponding mesh of specified second label is extracted at least one second slice of data Mark the second slice of data;The second slice of data of the target is transmitted to the terminal.
In another embodiment, described device further includes:
Coefficient determination module, for determining the Retransmission timeout parameter, the transmission packet amount parameter and the congestion respectively The first weight coefficient, the second weight coefficient and the third weight coefficient of parameter;
Computing module, for being based on first weight coefficient, second weight coefficient and the third weight coefficient, The Retransmission timeout parameter, the transmission packet amount parameter and the congestion parameter are calculated, the propagation threshold is obtained;
Judgment module judges whether the propagation threshold is more than the predetermined threshold value for obtaining the predetermined threshold value.
In another embodiment, the sending module is additionally operable to determine that network quality is accorded with based on the detection data When closing the preset condition, the transmission process of presently described at least one first slice of data is continued to execute.
In another embodiment, the detection module is additionally operable to determine default detection cycle, every the default detection Period executes above-mentioned acquisition detection data and determines whether network quality meets the process of preset condition.
In another embodiment, described device further includes:
Module is disconnected, if the disconnection for receiving the terminal is asked, disconnects the data between the terminal Connection;
Removing module, for deleting at least one first slice of data and at least one second slice of data It removes.
According to a third aspect of the embodiments of the present invention, a kind of computer equipment, including memory, processor and storage are provided On a memory and the computer executable instructions that can run on a processor, it is executable that the processor executes the computer The data transmission method described in above-mentioned first aspect is realized when instruction.
According to a fourth aspect of the embodiments of the present invention, a kind of storage medium is provided, instruction is stored on the storage medium, Described instruction is executed by processor to complete the data transmission method described in above-mentioned first aspect.
The technical solution that the embodiment of the present invention provides can include the following benefits:
By sending at least one first slice of data of live video stream to terminal, at least one first number of slices When according to being transmitted, transmission process being detected in real time, detection data is obtained, when determining network quality not based on detection data When meeting preset condition, according to the first slice of data to be sent, from least one second slice of data of live video stream, Determine the second slice of data of target, the second slice of data of target be sent to terminal so that server end can according to terminal Between data connection network quality, judge, to the video data of any code check of terminal transmission, to receive without end-on Data carry out code check conversion, avoid terminal that broadcast time-delay occurs when being converted to code check, are more applicable for live scene, intelligence Energy property is more excellent, and user's viscosity is higher.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not It can the limitation present invention.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of data transmission method shown according to an exemplary embodiment;
Fig. 2A is a kind of flow chart of data transmission method shown according to an exemplary embodiment;
Fig. 2 B are a kind of schematic diagrames of data transmission method shown according to an exemplary embodiment;
Fig. 3 A are a kind of block diagrams of data transmission device shown according to an exemplary embodiment;
Fig. 3 B are a kind of block diagrams of data transmission device shown according to an exemplary embodiment;
Fig. 3 C are a kind of block diagrams of data transmission device shown according to an exemplary embodiment;
Fig. 3 D are a kind of block diagrams of data transmission device shown according to an exemplary embodiment;
Fig. 3 E are a kind of block diagrams of data transmission device shown according to an exemplary embodiment;
Fig. 3 F are a kind of block diagrams of data transmission device shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of data transmission device 400 shown according to an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of data transmission method shown according to an exemplary embodiment, as shown in Figure 1, the party Method includes the following steps.
In a step 101, at least one first slice of data of live video stream is sent to terminal, at least one first cuts Sheet data is the first video data that code check is more than the first default code check.
In a step 102, when being transmitted at least one first slice of data, transmission process is examined in real time It surveys, obtains detection data, detection data includes at least Retransmission timeout parameter, sends packet amount parameter and congestion parameter.
In step 103, when determining that network quality does not meet preset condition based on detection data, according to be sent One slice of data determines the second slice of data of target from least one second slice of data of live video stream, by target Two slice of data are sent to terminal;Wherein, at least one second slice of data is that second of code check less than the second default code check regards Frequency evidence, the second slice of data of target location and first number of slices to be sent at least one second slice of data According to consistent the location of at least one first slice of data.
Method provided in an embodiment of the present invention, by least one first number of slices for sending live video stream to terminal According to, when being transmitted at least one first slice of data, transmission process is detected in real time, obtains detection data, when When determining that network quality does not meet preset condition based on detection data, according to the first slice of data to be sent, from live video In at least one second slice of data of stream, determines the second slice of data of target, the second slice of data of target is sent to terminal, Server end is allow to judge regarding to any code check of terminal transmission according to the network quality of data connection between terminal Frequency evidence, the data received without end-on carry out code check conversion, terminal are avoided to be played when being converted to code check Delay, is more applicable for live scene, intelligent more excellent, user's viscosity is higher.
In another embodiment, before at least one first slice of data of live video stream being sent to terminal, method Further include:
The access request for receiving terminal transmits RTMP agreements based on real-time messages, terminal is accessed;
The messaging parameter between terminal is created, the data connection between terminal is established.
In another embodiment, before at least one first slice of data of live video stream being sent to terminal, method Further include:
The video request that terminal is sent is received, video request includes at least the resource identification of the first video data;
According to resource identification, the first video data is obtained;
Based on coded system, code check conversion is carried out to the first video data, generates the second video data.
In another embodiment, it is based on coded system, code check conversion is carried out to the first video data, generates the second video After data, method further includes:
It is at least one first slice of data by the first video data cutting, by the second video data cutting at least one the Two slice of data;
At least one first label is distributed at least one first slice of data, is distributed at least one second slice of data At least one second label;
According to putting in order at least one first slice of data and at least one second slice of data, by least one One label is associated with at least one second label;
Correspondingly, it when determining that network quality does not meet preset condition based on detection data, is cut according to be sent first Sheet data determines the second slice of data of target from least one second slice of data of live video stream, and target second is cut Sheet data is sent to terminal:
It when propagation threshold is more than predetermined threshold value, determines that network quality does not meet preset condition, and obtains to be sent the Specified first label of one slice of data;
It determines specified second label corresponding with specified first label, is extracted at least one second slice of data specified Corresponding the second slice of data of target of second label;
The second slice of data of target is transmitted to terminal.
In another embodiment, when being transmitted at least one first slice of data, in real time to transmission process into Row detection, after obtaining detection data, method further includes:
The first weight coefficient, the second weight system for determining Retransmission timeout parameter respectively, sending packet amount parameter and congestion parameter Number and third weight coefficient;
Based on the first weight coefficient, the second weight coefficient and third weight coefficient, to Retransmission timeout parameter, packet amount ginseng is sent Number and congestion parameter are calculated, and propagation threshold is obtained;
Predetermined threshold value is obtained, judges whether propagation threshold is more than predetermined threshold value.
In another embodiment, method further includes:
When determining that network quality meets preset condition based on detection data, current at least one first slice is continued to execute The transmission process of data.
In another embodiment, method further includes:
It determines default detection cycle, every default detection cycle, executes above-mentioned acquisition detection data and determine network quality Whether the process of preset condition is met.
In another embodiment, method further includes:
If receiving the disconnection request of terminal, the data connection between terminal is disconnected;
At least one first slice of data and at least one second slice of data are deleted.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 2A is a kind of flow chart of data transmission method shown according to an exemplary embodiment, as shown in Figure 2 A, should Method includes the following steps.
In step 201, the access request of received server-side terminal, be based on RTMP agreements, terminal is accessed, create with Messaging parameter between terminal establishes the data connection between terminal.
In embodiments of the present invention, it in order to subsequently between server end and terminal carry out data transmission, needs servicing Data connection is established between device end and terminal.In view of the present invention can also transmit real time video data, therefore, server end can base In RTMP (Real Time Messaging Protocol, real-time messages transport protocol) agreement, the number between terminal is established According to connection.Wherein, server end can be live video server, and server end can be mounted in the form of client in terminal, Hold terminal user can in the terminal download server end support client so that server end can be based on client Provide corresponding service to the user.
When user needs server end to provide service, the client that the server end of download is supported can be accessed, and transport The row client.When terminal detects client operation, access request just is sent to server end, in this way, server end The access request of terminal will be received, and establishes the data connection between terminal.Wherein, terminal connects to server end transmission When entering to ask, in order to which correct data can be transferred to terminal by subsequent server end, terminal can obtain user in the client Log-on message, and the log-on message is carried in access request.The content that the embodiment of the present invention includes to access request is not Specifically limited.
When the access request of received server-side to terminal, the data connection between terminal can be established.It is building When founding the data connection between terminal, server end can carry out RTMP between terminal and shake hands and session flow, be based on RTMP It shakes hands and session flow, creates the messaging parameter between server end and terminal, and then establish between server end and terminal Data connection.The embodiment of the present invention establishes the mode of data connection without specifically limiting between server end and terminal.
In step 202, the video request that received server-side terminal is sent obtains the first video according to resource identification Data, video request include at least the resource identification of the first video data.
In embodiments of the present invention, in the client installed in the held terminal of user the multiple of different video can be provided to regard Frequency viewing entrance.When terminal detects that user triggers a certain video-see entrance, the money that the viewing entrance can be watched is determined The resource identification in source is based on resource identification, video request is generated, and the video request is sent to server end, to service Device end pushes corresponding resource according to resource identification to terminal.
After the video request that received server-side to terminal is sent, resource identification is just extracted in video request, and obtain The resource data for taking resource identification to indicate.Wherein, for server end, since server end and some clients may Have the function of reducing code check, and user is more desirable to see the higher video data of code check, therefore, the money at end of uploading onto the server Source data is typically greater than the video data of the first default code check namely high bit-rate video data, in this way, server end is according to money The resource data that source mark is got just is usually the first video data.In general, AH1 may be used and indicate get the One video data.
Wherein, since server end can provide the function of broadcasting recorded broadcast video and real-time video, resource identification institute The resource of instruction may be the first video data of recorded broadcast video, it is also possible to be the first video data of real-time video.If money Mark indicated resource in source is the first video data of recorded broadcast video, then when receiving video request, server end can be with Complete first video data is obtained, and complete first video data is stored in the storage database of server end, into And the first video data transmission to terminal is played out;Resource as indicated by resource identification is the first video of real-time video Data, then, server end needs the main broadcaster by being broadcast live to upload in real time when obtaining these first video datas, in this way, After the video request that received server-side to terminal is sent, just needs persistently to pull the resource identification carried in video request and refer to The first video data shown, and the first video data transmission pulled is played out to terminal.
It should be noted that since main broadcaster is uploaded by the first video data that equipment uploads in real time, not record The resource of completion, therefore, server end can create cache database, and the first video data persistently pulled is buffered in In the cache database of establishment, to ensure to continue to carry out data transmission to terminal.
In step 203, server end is based on coded system, carries out code check conversion to the first video data, generates second Video data.
In embodiments of the present invention, the code check of the second video data is less than the second default code check.It was recognized by the inventor that some The tool of user's playing video data may be the included broadcasting tool of system, these broadcasting tools play out video data Strategy be fixed, namely be only capable of playing out video data using fixed code check.In addition, by the held terminal of user Residing network environment is inconsistent, and the network quality of data connection between server end and terminal is caused to be different.Such as The network quality of data connection is preferable between fruit server end and terminal, then server end can send the first video to terminal Data, it is smoothly situations such as being not in delay that terminal, which receives the first video data,;If between server end and terminal The network quality of data connection is poor, then when server end sends the first video data to terminal, it may occur that data transmission At this moment situations such as delay, data packetloss, should just avoid sending the first video data, need to reduce the video data sent Code check.Therefore, in order to allow server end to provide normal video-see server for the terminal of user, server end is carrying After getting the first video data, the code check for reducing the first video data is needed, the first video data is converted into the second video counts According to, and when the network quality of data connection is poor between server end and terminal, server can be from trend terminal transmission Two video datas carry out the conversion of code check without terminal again after receiving the first video data, are ensureing to provide just for terminal Normal viewing service simultaneously, reduces the requirement for providing terminal broadcasting tool.Wherein, the first video data and the second video counts Difference between exists only in code check, and the code check of the first video data is more than the code check of the second video data, and, the first video Data are the video data that code check is more than the first default code check, and the second video data is the video that code check is less than the second default code check Data, the first default code check are more than the second default code check, in general, can the code check of the first video data be referred to as high code check, second The code check of video data is low bit- rate, but the first video data is phase with the video particular content included by the second video data With.
Wherein, the coded system that user converts code check can be arranged in server end.When generating the second video data, service Device end is carried out in the first video data transmission to the coded system extracted based on first video data of coded system pair Conversion generates the second video data.In general, AL1 expressions may be used in the second video data.
During practical application, it may be multiple and more to ask the user of same video resource due to the same time The network quality of data connection is irregular between the terminal and server end of a user, therefore, when server end extracts To after the first video data, the first video data can be converted in real time, the second video data is generated, to meet difference Terminal is due to different demands caused by network quality.
In step 204, the first video data cutting is at least one first slice of data by server end, and second is regarded Frequency distributes at least one first label according at least one second slice of data of cutting, at least one first slice of data, is At least one second slice of data distributes at least one second label.
In embodiments of the present invention, it is contemplated that the data volume for the first video data that server end is got is larger, and can Can continue to obtain the first video data, and be continuously generated the second video data, therefore, server is getting the first video counts According to after the second video data, can't be by entire first video data got or the second video data transmission to end End, but need the first video data and the second video data carrying out cutting obtains at least one first slice of data and extremely Few second slice of data, and in the follow-up network quality according to the data connection between terminal, send successively at least one First slice of data or at least one second slice of data.Wherein, at least one first slice of data is the first video data Slice of data, at least one second slice of data are the slice of data of the second video data.First slice of data and the second slice The essence of data is GOP (Group Of Pictures, image group), and in general, the first slice of data is sliced with second The duration of data can be 10 seconds, the embodiment of the present invention to the mode of the first video data of cutting and the second video data without It is specific to limit.
It should be noted that carrying out cutting to the first video data and the second video data, at least one first is generated After slice of data and at least one second slice of data, in order to ensure to detect data connection net between server end and terminal When network is second-rate, the of content that the second slice of data of the second video data next sent includes and upper one transmission The content that first slice of data of one video data includes is that linking is correct, avoids the entanglement that slice of data occurs, therefore, After generating at least one first slice of data and at least one second slice of data, need at least one first slice of data point With at least one first label, at least one second label is distributed at least one second slice of data, to be subsequently based on At least one first label and at least one second label are by least one first slice of data and at least one second number of slices According to one-to-one correspondence.Wherein, the first label can be indicated with TAG1, and the second label can be indicated with TAG2.
In step 205, server end is according at least one first slice of data and at least one second slice of data It puts in order, at least one first label and at least one second label is corresponded.
In embodiments of the present invention, after obtaining at least one first slice of data and at least one second slice of data, Just the second mark by least one first label of at least one first slice of data and at least one second slice of data is needed Label correspond.Wherein, by least one first label and at least one second label to it is corresponding when can be by least one One slice of data is compared with the content that at least one second slice of data includes, by the first number of slices including identical content According to the first label and the second slice of data the second label it is associated, and then realize at least one first label and at least one A second label corresponds to.
Wherein, due at least one first slice of data and at least one second slice of data be sequentially in time into Row arrangement, therefore, in order to simplify the first label and the corresponding flow of the second label, in the first label that will be ranked the first and the After two labels correspond to, can putting in order according to remaining first label and the second label, by remaining first label and the Two labels are mapped, and the content without including with the second slice of data in the content for including by the first slice of data compares It is right, and then save a large amount of manpowers.
In step 206, server end determines at least one first slice of data, at least one first slice of data When being transmitted, the transmission process for being transmitted to terminal at least one first slice of data in real time is detected, and obtains testing number According to.
In embodiments of the present invention, detection data includes at least Retransmission timeout parameter, sends packet amount parameter and congestion parameter. After server end determines at least one first slice of data and at least one second slice of data, in order to ensure network quality compared with Good user can receive the first video data as early as possible, and server end can send first when for the first time to terminal transmission data First slice of data of video data, and if be deteriorated in subsequent detection to network quality, the second video counts of transmission will be changed to According to the second slice of data.Wherein, when server end starts to transmit first first slice at least one first slice of data When data, since the network quality of data connection between server end and terminal is in the presence of fluctuation, for real-time awareness network The case where quality, can be cut with the slice of data of the code check of normal transmission, server end first first according to network quality transmission When sheet data starts transmission, data transmission procedure will be detected in real time, and obtain detection data.
Wherein, when obtaining detection data, detection duration can be arranged in server end, obtain long interior send when detecting and lose The failure number of the first slice of data lost, using the failure number as Retransmission timeout parameter;Obtain long interior transmission when detecting The first slice of data total number, using the number as send packet amount parameter;It is shared in total number to calculate failure number Ratio, using the ratio as congestion parameter.After getting Retransmission timeout parameter, sending packet amount parameter and congestion parameter, Using by Retransmission timeout parameter, send packet amount parameter and congestion parameter as detection data.Wherein, the embodiment of the present invention is to getting Detection data type and obtain detection data method without specifically limiting.
In step 207, server end determines Retransmission timeout parameter, sends the first of packet amount parameter and congestion parameter respectively Weight coefficient, the second weight coefficient and third weight coefficient are based on the first weight coefficient, the second weight coefficient and third weight system Number calculates Retransmission timeout parameter, transmission packet amount parameter and congestion parameter, obtains propagation threshold.
In embodiments of the present invention, it in order to consider the detection data got, and then is determined according to detection data Network quality between server end and terminal, server end can be respectively set Retransmission timeout parameter, send packet amount parameter and The first weight coefficient, the second weight coefficient and the third weight coefficient of congestion parameter, and then according to the first weight coefficient, the second power Weight coefficient and third weight coefficient generate propagation threshold.
Wherein, when generating propagation threshold, the first product of Retransmission timeout parameter and the first weight coefficient can be calculated, is counted The second product for sending packet amount parameter and the second weight coefficient is calculated, the third product of congestion parameter and third weight coefficient is calculated, And the first product, the summation of the second sum of products third product are calculated, using the summation as propagation threshold.The above-mentioned transmission threshold referred to The algorithm of value is only a kind of possible situation, according to different real-time scenes, can there is the method for different generation propagation thresholds, The embodiment of the present invention is to generating the method for propagation threshold without specifically limiting.
In a step 208, server end obtains predetermined threshold value, judges whether propagation threshold is more than predetermined threshold value, works as transmission When threshold value is less than predetermined threshold value, following step 209 is executed;When propagation threshold is more than predetermined threshold value, following step 210 is executed.
In embodiments of the present invention, in order to according to the network matter of propagation threshold data connection between server end and terminal Amount is assessed, and predetermined threshold value can be arranged in server end, and the propagation threshold of generation is compared with predetermined threshold value, is judged Whether propagation threshold is more than predetermined threshold value, when propagation threshold is less than predetermined threshold value, indicates between current server end and terminal The network quality of data connection meets preset condition, can continue to the first video data of terminal transmission (namely the first number of slices According to), in this way, following step 209 can be executed;When propagation threshold is more than predetermined threshold value, current server end and end are indicated The network quality of data connection does not meet preset condition between end, and the first video data is not appropriate for the number between present terminal According to connection, needs replacing the second video data (namely second slice of data) and be transmitted, in this way, following step can be executed 210。
It should be noted that for different application scenarios and area, the predetermined threshold value of server end setting can be Different, for example, more for base station, the stronger area of network signal can suitably reduce predetermined threshold value;For base station compared with Few, the weaker area of the network information can properly increase predetermined threshold value, the embodiment of the present invention to the value of predetermined threshold value without It is specific to limit.
In step 209, when propagation threshold is less than predetermined threshold value, determine that network quality meets preset condition, server End continues to execute the transmission process of current at least one first slice of data.
In embodiments of the present invention, it when propagation threshold is less than predetermined threshold value, indicates between current server end and terminal The network quality of data connection meets preset condition, can continue to the first video data of terminal transmission, also can be to terminal Continue to transmit the first slice of data, in this way, can continue to send remaining first slice of data to terminal.
In step 210, it when propagation threshold is more than predetermined threshold value, determines that network quality does not meet preset condition, services Device end obtains specified first label of the first slice of data to be sent, determines that target second corresponding with specified first label is marked Label extract corresponding the second slice of data of target of the second label of target, by target second at least one second slice of data Slice of data is transmitted to terminal.
In embodiments of the present invention, when propagation threshold is more than predetermined threshold value, number between current server and terminal is indicated Preset condition is not met according to the network quality of connection, the first video data is not appropriate for the data connection between present terminal, The second video data is needed replacing to carry out data transmission.Due to having transmitted some first slice of data before to terminal, Server end is it needs to be determined that current first slice of data to be sent, and then determination is corresponding with the first slice of data to be sent The second slice of data of target, to send the second slice of data of target to terminal.
After server end determines the first slice of data to be sent, the first slice of data to be sent can be extracted Specified first label.At least one first label due at least one first slice of data and at least one second slice of data At least one second label between there are correspondences, hence, it can be determined that target corresponding with specified first label second Label.After determining the second label of target, the second label of target correspondence can be extracted at least one second slice of data The second slice of data of target, the second slice of data of target is transmitted to terminal.
It should be noted that after the second slice of data of target is transmitted to terminal, server end can also continue to terminal Other subsequent slice of data of the second slice of data of transmission objectives.
In step 211, server end, which determines, presets detection cycle, every default detection cycle, executes above-mentioned acquisition inspection Measured data simultaneously determines whether network quality meets the process of preset condition.
In embodiments of the present invention, since the network quality of data connection between server end and terminal is the presence of fluctuation , there is the possibility that subsequently improves in network quality, therefore, server end can persistently pair between terminal data connection network matter Amount is detected.Wherein, default detection cycle can be arranged in server end, each preset detection cycle, will execute above-mentioned obtain Detection data is taken, and determines whether network quality meets the process of preset condition.Wherein, it obtains detection data and determines network matter The process whether amount meets preset condition is consistent to process shown in step 208 with above-mentioned steps 206, no longer goes to live in the household of one's in-laws on getting married herein It states.
It should be noted that if at certain once to the judgement of propagation threshold in determine propagation threshold be less than predetermined threshold value, The second slice of data corresponding first for determining to terminal the second slice of data of transmission with being currently ready for sending can then be stopped Slice of data sends corresponding with the second slice of data being currently ready for sending the first slice of data to terminal and this first is cut Other subsequent first slice of data of sheet data.Referring to Fig. 2 B, at the moment 16:20:03 to 16:20:When 05, server end is to end End transmission is the first slice of data of high bit-rate video;At the moment 16:20:Number between server end and terminal is detected when 05 Preset condition is not met according to the network quality of connection, then at the moment 16:20:When 05, it is second that server end is sent to terminal Second slice of data of video data;At the moment 16:20:The network of data connection between server end and terminal is detected when 06 Quality meets preset condition, then at the moment 16:20:When 06, it is the second of the first video data that server end is sent to terminal Slice of data;At the moment 16:20:It is default to detect that the network quality of data connection between server end and terminal is not met when 07 Condition, then at the moment 16:20:When 07, server end to terminal send be the second video data the second slice of data.Its In, process and the above-mentioned steps 210 of above-mentioned determination the first slice of data corresponding with the second slice of data being currently ready for sending Shown in determine that the process of target the second slice of data is consistent, no longer repeated herein.
In the step 212, if receiving the disconnection request of terminal, server end disconnects the data between terminal and connects It connects, at least one first slice of data and at least one second slice of data is deleted.
In embodiments of the present invention, when terminal detects that user closes the page of playing video in client, It then determines and needs to stop the broadcasting to video, at this moment, terminal will generate disconnection request, and will be switched off request and be sent to server End, so that server end stops the data transmission to terminal.Wherein, in order to ensure server end when receiving disconnection request, Can determine the transmission for stopping which data, terminal can disconnect ask in carry resource to be cut off wait cutting off mark.
If the disconnection of received server-side to terminal is asked, server end will disconnect the company of the data between terminal It connects.Furthermore, it is contemplated that server end may be cached with the video data for being not yet transferred to terminal, in order to save server end Memory space, avoid causing server end overweight load, when server end disconnect and terminal between data connection when, It can be by buffered at least one first slice of data and at least one second number of slices being converted to According to deletion.
It should be noted that the content in above-mentioned steps 212 is only executed when terminal sends and disconnects request, if clothes Business device end does not receive the disconnection request of terminal transmission, then server end keeps the data transmission state to terminal.
Method provided in an embodiment of the present invention, by least one first number of slices for sending live video stream to terminal According to, when being transmitted at least one first slice of data, transmission process is detected in real time, obtains detection data, when When determining that network quality does not meet preset condition based on detection data, according to the first slice of data to be sent, from live video In at least one second slice of data of stream, determines the second slice of data of target, the second slice of data of target is sent to terminal, Server end is allow to judge regarding to any code check of terminal transmission according to the network quality of data connection between terminal Frequency evidence, the data received without end-on carry out code check conversion, terminal are avoided to be played when being converted to code check Delay, is more applicable for live scene, intelligent more excellent, user's viscosity is higher.
Fig. 3 A are a kind of block diagrams of data transmission device shown according to an exemplary embodiment.With reference to Fig. 3 A, the device Including sending module 301, detection module 302 and determining module 303.
The sending module 301, at least one first slice of data for sending live video stream to terminal are at least one First slice of data is the first video data that code check is more than the first default code check;
The detection module 302, for when being transmitted at least one first slice of data, in real time to transmission process into Row detection, obtains detection data, and detection data includes at least Retransmission timeout parameter, sends packet amount parameter and congestion parameter;
The determining module 303, for when determining that network quality does not meet preset condition based on detection data, according to pending The first slice of data sent determines the second slice of data of target from least one second slice of data of live video stream, will The second slice of data of target is sent to terminal;Wherein, at least one second slice of data is that code check is less than the second default code check Second video data, the second slice of data of target location and to be sent first at least one second slice of data Slice of data is consistent the location of at least one first slice of data.
Device provided in an embodiment of the present invention, by least one first number of slices for sending live video stream to terminal According to, when being transmitted at least one first slice of data, transmission process is detected in real time, obtains detection data, when When determining that network quality does not meet preset condition based on detection data, according to the first slice of data to be sent, from live video In at least one second slice of data of stream, determines the second slice of data of target, the second slice of data of target is sent to terminal, Server end is allow to judge regarding to any code check of terminal transmission according to the network quality of data connection between terminal Frequency evidence, the data received without end-on carry out code check conversion, terminal are avoided to be played when being converted to code check Delay, is more applicable for live scene, intelligent more excellent, user's viscosity is higher.
In another embodiment, referring to Fig. 3 B, which further includes AM access module 304 and creation module 305.
The AM access module 304, the access request for receiving terminal transmit RTMP agreements, by terminal based on real-time messages Access;
The creation module 305 establishes the data connection between terminal for creating the messaging parameter between terminal.
In another embodiment, referring to Fig. 3 C, which further includes receiving module 306, acquisition module 307 and modulus of conversion Block 308.
The receiving module 306, the video request for receiving terminal transmission, video request include at least the first video data Resource identification;
The acquisition module 307, for according to resource identification, obtaining the first video data;
The conversion module 308 carries out code check conversion for being based on coded system to the first video data, generates second and regards Frequency evidence.
In another embodiment, referring to Fig. 3 D, which further includes cutting module 309, distribution module 310 be associated with mould Block 311.
The cutting module 309, for being at least one first slice of data by the first video data cutting, by the second video At least one second slice of data of data cutting;
The distribution module 310 is at least one for distributing at least one first label at least one first slice of data A second slice of data distributes at least one second label;
The relating module 311, for the row according at least one first slice of data and at least one second slice of data Row sequence, at least one first label is associated with at least one second label;
Correspondingly, determining module 303, for when propagation threshold is more than predetermined threshold value, determining that network quality is not met Preset condition, and obtain specified first label of the first slice of data to be sent;Determine finger corresponding with specified first label Fixed second label extracts at least one second slice of data and specifies corresponding the second slice of data of target of the second label;It will The second slice of data of target is transmitted to terminal.
In another embodiment, referring to Fig. 3 E, device further includes coefficient determination module 312, computing module 313 and judgement Module 314.
The coefficient determination module 312, for determining Retransmission timeout parameter respectively, sending the of packet amount parameter and congestion parameter One weight coefficient, the second weight coefficient and third weight coefficient;
The computing module 313, for being based on the first weight coefficient, the second weight coefficient and third weight coefficient, to time-out Retransmission parameter, transmission packet amount parameter and congestion parameter are calculated, and propagation threshold is obtained;
The judgment module 314 judges whether propagation threshold is more than predetermined threshold value for obtaining predetermined threshold value.
In another embodiment, the sending module 301 is additionally operable to pre- when determining that network quality meets based on detection data If when condition, continuing to execute the transmission process of current at least one first slice of data.
In another embodiment, the detection module 302 is additionally operable to determine default detection cycle, every default detection week Phase executes above-mentioned acquisition detection data and determines whether network quality meets the process of preset condition.
In another embodiment, referring to Fig. 3 F, which further includes disconnecting module 315 and removing module 316.
The disconnection module 315, if the disconnection for receiving terminal is asked, the data disconnected between terminal connect It connects;
The removing module 316, for deleting at least one first slice of data and at least one second slice of data.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram of the device 400 of data transmission shown according to an exemplary embodiment.For example, device 400 It may be provided as a server.With reference to Fig. 4, device 400 includes processing component 422, further comprises one or more places Device is managed, and by the memory resource representated by memory 432, it can be by the instruction of the execution of processing component 422, example for storing Such as application program.The application program stored in memory 432 may include it is one or more each correspond to one group The module of instruction.In addition, processing component 422 is configured as executing instruction, to execute above-mentioned data transmission method.
Device 400 can also include the power management that a power supply module 426 is configured as executive device 400, and one has Line or radio network interface 450 are configured as device 400 being connected to network and input and output (I/O) interface 458.Dress Setting 400 can operate based on the operating system for being stored in memory 432, such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMOr it is similar.
The embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and storage are on a memory And the computer executable instructions that can be run on a processor, the processor are realized when executing the computer executable instructions Above-mentioned data transmission method.
The embodiment of the present invention additionally provides a kind of readable storage medium storing program for executing, when the instruction in the storage medium is by data transmission When the processor of device executes so that data transmission device is able to carry out above-mentioned data transmission method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (18)

1. a kind of data transmission method, which is characterized in that the method includes:
At least one first slice of data of live video stream is sent to terminal, at least one first slice of data is code check More than the first video data of the first default code check;
When being transmitted at least one first slice of data, transmission process is detected in real time, obtains testing number According to the detection data includes at least Retransmission timeout parameter, sends packet amount parameter and congestion parameter;
When determining that network quality does not meet preset condition based on the detection data, according to the first slice of data to be sent, From at least one second slice of data of the live video stream, the second slice of data of target is determined, by the target second Slice of data is sent to the terminal;
Wherein, at least one second slice of data is the second video data that code check is less than the second default code check, the mesh Mark the second slice of data location and first number of slices to be sent at least one second slice of data According to consistent the location of at least one first slice of data.
2. according to the method described in claim 1, it is characterized in that, described send at least one the of live video stream to terminal Before one slice of data, the method further includes:
The access request of the terminal is received, RTMP agreements is transmitted based on real-time messages, the terminal is accessed;
The messaging parameter between the terminal is created, the data connection between the terminal is established.
3. according to the method described in claim 1, it is characterized in that, described send at least one the of live video stream to terminal Before one slice of data, the method further includes:
The video request that the terminal is sent is received, the video request includes at least the resource mark of first video data Know;
According to the resource identification, first video data is obtained;
Based on coded system, code check conversion is carried out to first video data, generates second video data.
4. according to the method described in claim 3, it is characterized in that, described be based on coded system, to first video data Code check conversion is carried out, after generating second video data, the method further includes:
It is at least one first slice of data by the first video data cutting, by the second video data cutting institute State at least one second slice of data;
At least one first label is distributed at least one first slice of data, is at least one second slice of data Distribute at least one second label;
According to putting in order at least one first slice of data and at least one second slice of data, will described in extremely Few first label is associated with at least one second label;
Correspondingly, described when determining that network quality does not meet preset condition based on the detection data, according to be sent One slice of data determines the second slice of data of target from least one second slice of data of the live video stream, by institute It states the second slice of data of target and is sent to the terminal and include:
When the propagation threshold is more than predetermined threshold value, determine that network quality does not meet preset condition, and obtain described to be sent The first slice of data specified first label;
It determines and specifies the first label is corresponding to specify the second label with described, extracted at least one second slice of data Corresponding the second slice of data of target of specified second label;
The second slice of data of the target is transmitted to the terminal.
5. according to the method described in claim 1, it is characterized in that, described carry out at least one first slice of data When transmission, transmission process is detected in real time, after obtaining detection data, the method further includes:
The Retransmission timeout parameter, first weight coefficient for sending packet amount parameter and the congestion parameter, the are determined respectively Two weight coefficients and third weight coefficient;
Based on first weight coefficient, second weight coefficient and the third weight coefficient, the Retransmission timeout is joined Several, the described transmission packet amount parameter and the congestion parameter are calculated, and the propagation threshold is obtained;
The predetermined threshold value is obtained, judges whether the propagation threshold is more than the predetermined threshold value.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
When determining that network quality meets the preset condition based on the detection data, continue to execute presently described at least one The transmission process of first slice of data.
7. according to the method described in claim 1, it is characterized in that, the method further includes:
It determines default detection cycle, every the default detection cycle, executes above-mentioned acquisition detection data and determine network quality Whether the process of preset condition is met.
8. according to the method described in claim 1, it is characterized in that, the method further includes:
If receiving the disconnection request of the terminal, the data connection between the terminal is disconnected;
At least one first slice of data and at least one second slice of data are deleted.
9. a kind of data transmission device, which is characterized in that described device includes:
Sending module, at least one first slice of data for sending live video stream to terminal, described at least one first Slice of data is the first video data that code check is more than the first default code check;
Detection module, for when being transmitted at least one first slice of data, being examined in real time to transmission process It surveys, obtains detection data, the detection data includes at least Retransmission timeout parameter, sends packet amount parameter and congestion parameter;
Determining module, for when determining that network quality does not meet preset condition based on the detection data, according to be sent First slice of data determines the second slice of data of target from least one second slice of data of the live video stream, will The second slice of data of the target is sent to the terminal;
Wherein, at least one second slice of data is the second video data that code check is less than the second default code check, the mesh Mark the second slice of data location and first number of slices to be sent at least one second slice of data According to consistent the location of at least one first slice of data.
10. device according to claim 9, which is characterized in that described device further includes:
AM access module, the access request for receiving the terminal transmit RTMP agreements based on real-time messages, the terminal are connect Enter;
Creation module establishes the data connection between the terminal for creating the messaging parameter between the terminal.
11. device according to claim 9, which is characterized in that described device further includes:
Receiving module, the video request sent for receiving the terminal, the video request include at least first video The resource identification of data;
Acquisition module, for according to the resource identification, obtaining first video data;
Conversion module carries out code check conversion to first video data, generates second video for being based on coded system Data.
12. according to the devices described in claim 11, which is characterized in that described device further includes:
Cutting module, for being at least one first slice of data by the first video data cutting, by described second At least one second slice of data described in video data cutting;
Distribution module is described at least one for distributing at least one first label at least one first slice of data A second slice of data distributes at least one second label;
Relating module, for the arrangement according at least one first slice of data and at least one second slice of data Sequentially, at least one first label is associated with at least one second label;
Correspondingly, the determining module, for when the propagation threshold is more than predetermined threshold value, it is pre- to determine that network quality is not met If condition, and obtain specified first label of first slice of data to be sent;It determines and specified first label pair Specified second label answered extracts the corresponding target of specified second label at least one second slice of data Two slice of data;The second slice of data of the target is transmitted to the terminal.
13. device according to claim 9, which is characterized in that described device further includes:
Coefficient determination module, for determining the Retransmission timeout parameter, the transmission packet amount parameter and the congestion parameter respectively The first weight coefficient, the second weight coefficient and third weight coefficient;
Computing module, for being based on first weight coefficient, second weight coefficient and the third weight coefficient, to institute It states Retransmission timeout parameter, the transmission packet amount parameter and the congestion parameter to be calculated, obtains the propagation threshold;
Judgment module judges whether the propagation threshold is more than the predetermined threshold value for obtaining the predetermined threshold value.
14. device according to claim 9, which is characterized in that the sending module is additionally operable to when based on the testing number When according to determining that network quality meets the preset condition, being transmitted across for presently described at least one first slice of data is continued to execute Journey.
15. device according to claim 9, which is characterized in that the detection module is additionally operable to determine default detection week Phase executes above-mentioned acquisition detection data and determines whether network quality meets preset condition every the default detection cycle Process.
16. device according to claim 9, which is characterized in that described device further includes:
Module is disconnected, if the disconnection for receiving the terminal is asked, disconnects the data connection between the terminal;
Removing module, for deleting at least one first slice of data and at least one second slice of data.
17. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine executable instruction, which is characterized in that the processor realizes claim 1-8 when executing the computer executable instructions Any one of them data transmission method.
18. a kind of storage medium, which is characterized in that be stored with instruction on the storage medium, described instruction is executed by processor To complete claim 1-8 any one of them data transmission methods.
CN201810595339.9A 2018-06-11 2018-06-11 Data transmission method and device, computer equipment and storage medium Active CN108769805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810595339.9A CN108769805B (en) 2018-06-11 2018-06-11 Data transmission method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810595339.9A CN108769805B (en) 2018-06-11 2018-06-11 Data transmission method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108769805A true CN108769805A (en) 2018-11-06
CN108769805B CN108769805B (en) 2021-05-07

Family

ID=64021849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810595339.9A Active CN108769805B (en) 2018-06-11 2018-06-11 Data transmission method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108769805B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110312150A (en) * 2019-04-24 2019-10-08 网宿科技股份有限公司 A kind of video frame transmission method, system and server
CN111083536A (en) * 2019-12-31 2020-04-28 广州酷狗计算机科技有限公司 Method and device for adjusting video code rate
CN111901825A (en) * 2020-08-11 2020-11-06 中国联合网络通信集团有限公司 Wireless communication network quality evaluation method and device based on network quality slice
CN112527310A (en) * 2020-12-15 2021-03-19 平安国际智慧城市科技股份有限公司 Multi-tenant data isolation method and device, computer equipment and storage medium
CN114826750A (en) * 2022-04-29 2022-07-29 阿里巴巴(中国)有限公司 Network anomaly detection method, server cluster and storage medium
WO2023010356A1 (en) * 2021-08-04 2023-02-09 深圳市大疆创新科技有限公司 Video transmission method and apparatus, and system, terminal device, movable platform and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447938A (en) * 2008-12-08 2009-06-03 深圳华为通信技术有限公司 Network service quality processing method, device and system
CN102843351A (en) * 2012-03-31 2012-12-26 华为技术有限公司 Streaming media service processing method, streaming media server and system
CN106454395A (en) * 2016-09-20 2017-02-22 北京百度网讯科技有限公司 Method and device for providing multi-code rate streaming media self-adaptively in server
CN106488265A (en) * 2016-10-12 2017-03-08 广州酷狗计算机科技有限公司 A kind of method and apparatus sending Media Stream
CN108024126A (en) * 2017-11-28 2018-05-11 北京潘达互娱科技有限公司 Network direct broadcasting video regulation method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447938A (en) * 2008-12-08 2009-06-03 深圳华为通信技术有限公司 Network service quality processing method, device and system
CN102843351A (en) * 2012-03-31 2012-12-26 华为技术有限公司 Streaming media service processing method, streaming media server and system
CN106454395A (en) * 2016-09-20 2017-02-22 北京百度网讯科技有限公司 Method and device for providing multi-code rate streaming media self-adaptively in server
CN106488265A (en) * 2016-10-12 2017-03-08 广州酷狗计算机科技有限公司 A kind of method and apparatus sending Media Stream
CN108024126A (en) * 2017-11-28 2018-05-11 北京潘达互娱科技有限公司 Network direct broadcasting video regulation method, device, electronic equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110312150A (en) * 2019-04-24 2019-10-08 网宿科技股份有限公司 A kind of video frame transmission method, system and server
CN110312150B (en) * 2019-04-24 2022-04-05 网宿科技股份有限公司 Video frame transmission method, system and server
CN111083536A (en) * 2019-12-31 2020-04-28 广州酷狗计算机科技有限公司 Method and device for adjusting video code rate
CN111901825A (en) * 2020-08-11 2020-11-06 中国联合网络通信集团有限公司 Wireless communication network quality evaluation method and device based on network quality slice
CN111901825B (en) * 2020-08-11 2023-02-24 中国联合网络通信集团有限公司 Wireless communication network quality evaluation method and device based on network quality slice
CN112527310A (en) * 2020-12-15 2021-03-19 平安国际智慧城市科技股份有限公司 Multi-tenant data isolation method and device, computer equipment and storage medium
WO2023010356A1 (en) * 2021-08-04 2023-02-09 深圳市大疆创新科技有限公司 Video transmission method and apparatus, and system, terminal device, movable platform and storage medium
CN114826750A (en) * 2022-04-29 2022-07-29 阿里巴巴(中国)有限公司 Network anomaly detection method, server cluster and storage medium
CN114826750B (en) * 2022-04-29 2024-02-06 阿里巴巴(中国)有限公司 Network anomaly detection method, server cluster and storage medium

Also Published As

Publication number Publication date
CN108769805B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN108769805A (en) Data transmission method, device, computer equipment and storage medium
CN102571726B (en) Method, system and the state judgment server that multi-medium data is shared
EP4362422A2 (en) Network traffic identification method and related device
US9521178B1 (en) Dynamic bandwidth thresholds
US8239525B2 (en) Server apparatus and communication system
CN105991412B (en) Information push method and device
CN107566786A (en) A kind of method, apparatus and terminal device for obtaining monitor video
CN103312593B (en) A kind of message distributing system and method
WO2018166415A1 (en) Cloud storage system, media data storage method and system
CN113438129B (en) Data acquisition method and device
CN101917406B (en) Data transmission method and data transmission system
CN107920072B (en) Multimedia sharing method and system based on data characteristics
US9392048B2 (en) Method, a system, a server, a device, a computer program and a computer program product for transmitting data in a computer network
CN113453025A (en) Data acquisition method and device
CN112752111B (en) Live stream processing method and device, computer readable storage medium and electronic equipment
CN101958934B (en) Electronic program guide incremental content synchronization method, device and system
CN110266987A (en) Passive type kinescope method and computer readable storage medium
CN109831335A (en) A kind of data monitoring method, monitor terminal, storage medium and data monitoring system
WO2021190050A1 (en) Service monitoring method, apparatus and system
CN106657116B (en) Method and device for remotely starting streaming data transmission
CN112698829B (en) Abnormal resource positioning method and device, storage medium and electronic equipment
CN110798691A (en) Live content uploading and acquiring method and device
CN101888406A (en) Set top box, business server, program downloading method and program transmitting method and system
CN105431835A (en) Defragmentation of adaptive streaming segment files in a content delivery network
WIT et al. 5G Experimentation Environment for 3rd Party Media Services D2. 9 Continuous QoS/QoE Monitoring Engine Development-Initial

Legal Events

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

Effective date of registration: 20220406

Address after: 4119, 41st floor, building 1, No.500, middle section of Tianfu Avenue, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu kugou business incubator management Co.,Ltd.

Address before: No. 315, Huangpu Avenue middle, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.