CN108259948A - A kind of playback method, device, computer and storage medium that audio and video are broadcast live - Google Patents

A kind of playback method, device, computer and storage medium that audio and video are broadcast live Download PDF

Info

Publication number
CN108259948A
CN108259948A CN201810289214.3A CN201810289214A CN108259948A CN 108259948 A CN108259948 A CN 108259948A CN 201810289214 A CN201810289214 A CN 201810289214A CN 108259948 A CN108259948 A CN 108259948A
Authority
CN
China
Prior art keywords
code check
mark
audio
client
video data
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
CN201810289214.3A
Other languages
Chinese (zh)
Other versions
CN108259948B (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.)
Aerospace Guosheng Technology Co ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810289214.3A priority Critical patent/CN108259948B/en
Publication of CN108259948A publication Critical patent/CN108259948A/en
Application granted granted Critical
Publication of CN108259948B publication Critical patent/CN108259948B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client

Abstract

The invention discloses a kind of playback method, device, computer and storage mediums that audio and video are broadcast live.Wherein method includes:At least two code checks mark that service server receiving stream media server is sent, wherein, code check mark includes the primary key rate mark of the keynote video data of main broadcaster end transmission, it is identified at least one from code check, the slave audio, video data for carrying out code check conversion generation to keynote video data with streaming media server from code check mark is corresponding;Service server obtains the maximum of client and receives code check, and identified in primary key rate according to preset matching rule and determine to identify with the maximum matched target bit rate of code check that receives from code check mark;Target bit rate mark is sent to streaming media server by service server, so that streaming media server is to the corresponding audio, video data of client push.The problem of avoiding being more than the reception code check of client, client live streaming interim card and audio and video jump due to audio and video code check, causing user that can not browse live streaming audio and video glibly.

Description

A kind of playback method, device, computer and storage medium that audio and video are broadcast live
Technical field
The present embodiments relate to audio and video treatment technology more particularly to it is a kind of be broadcast live the playback methods of audio and video, device, Computer and storage medium.
Background technology
With the development of network technology, more and more people obtain required information by network.Especially audio and video are straight It broadcasts and has merged the abundant element such as image, word and sound, excellent both in sound and shape is gradually received by more and more users.
But during current audio and video live streaming, when main broadcaster end updates the code check of current audio and video, it can will update code The audio, video data of reception is pushed to corresponding visitor by the audio, video data plug-flow of rate to streaming media server, streaming media server Thus family end causes client that can only play a kind of live streaming audio and video of code check, can not be by currently playing live streaming audio and video Code stream switches over, and client can not adjust the clear of currently playing live broadcast stream media according to factors such as the network states of client Clear degree, therefore easily exist since the problems such as live video interim card, live streaming flexibility is low caused by network factors.
Invention content
The present invention provides a kind of playback method, device, computer and storage medium that audio and video are broadcast live, to realize according to visitor The dynamic at family end receives the live streaming audio, video data that code check determines push.
In a first aspect, an embodiment of the present invention provides a kind of playback method that audio and video are broadcast live, this method includes:
At least two code checks mark that service server receiving stream media server is sent, wherein, the code check mark packet Include main broadcaster end transmission keynote video data primary key rate mark and it is at least one from code check identify, it is described from code check mark with The slave audio, video data that the streaming media server carries out the keynote video data code check conversion generation is corresponding;
The service server obtains the maximum of client and receives code check, and identified in primary key rate according to preset matching rule With identified from code check in determine to identify with the maximum matched target bit rate of code check that receives;
Target bit rate mark is sent to the streaming media server by the service server, so that the Streaming Media Server is to the corresponding audio, video data of the client push.
Optionally, the service server obtains the maximum of client and receives code check, and according to preset matching rule in master Code check identifies and determines to identify with the maximum matched target bit rate of code check that receives from code check mark, including:
If the maximum code check that receives is more than the first code check of the keynote video data or the maximum reception code check It is less than or equal to the first preset value with the absolute difference of first code check, then primary key rate mark is determined as the mesh Coding rate identifies;
If maximum first code check for receiving code check and being less than the keynote video data, and it is described it is maximum receive code check with The absolute difference of first code check is more than first preset value, then screening with it is described it is maximum receive that code check matches from Code check identifies, and the slave code check mark that screening is obtained is determined as the target bit rate and identifies.
Optionally, target bit rate mark is sent to the streaming media server by the service server, so that institute Streaming media server is stated to the corresponding audio, video data of the client push, including:
Target bit rate mark is sent to the streaming media server by the service server, so that the Streaming Media Server is identified according to the target bit rate, is determined the address information of corresponding audio, video data, is read according to described address information Audio, video data, and push to the client.
Optionally, it after audio, video data is pushed to the client, further includes:
If the target bit rate is identified as from code check and identifies, the standard straight sowing time for obtaining the audio, video data carves and works as Preceding playing time, is carved according to the standard straight sowing time and the generation of currently playing moment recommends playback rate, and the recommendation is broadcast It puts rate and is sent to the client, so that the client plays the audio, video data according to the recommendation playback rate.
Optionally, target bit rate mark is sent to the streaming media server in the service server, so that The streaming media server further includes after the corresponding audio, video data of the client push:
The service server receives the code check change request that client is sent, wherein code check change request carries It is expected code rate information;
The service server determines to identify with the change code check for it is expected code check information matches, by the change code check Mark is sent to the streaming media server, so that the streaming media server is to the corresponding audio and video number of the client push According to.
Optionally, after target bit rate mark is sent to the streaming media server by the service server, It further includes:
Target bit rate mark is sent to the client by the service server, so that the client is according to institute State the code check display mark that target bit rate mark updates the client.
Optionally, it after the code check mark that the client is updated according to target bit rate mark, further includes:
The service server counts the target bit rate and is identified as the number clients identified from code check mark and primary key rate Amount ratio;
If the client terminal quantity ratio is more than preset ratio, code check modification information is generated, and be sent to the main broadcaster End, so that main broadcaster end adjusts audio-video collection code check according to the code check modification information.
Second aspect, the embodiment of the present invention additionally provide a kind of playing device that audio and video are broadcast live, which includes:
Code check identifies receiving module, for at least two code checks mark that receiving stream media server is sent, wherein, it is described Code check mark include main broadcaster end transmission keynote video data primary key rate mark and it is at least one from code check mark, it is described from Code check identifies the slave audio, video data phase for carrying out code check conversion generation to the keynote video data with the streaming media server It is corresponding;
Target bit rate identifies determining module, and code check is received, and according to preset matching rule for obtaining the maximum of client It determines to identify with the maximum matched target bit rate of code check that receives;
First audio, video data pushing module, for target bit rate mark to be sent to the streaming media server, So that the streaming media server is to the corresponding audio, video data of the client push.
Optionally, target bit rate mark determining module is specifically used for:
If the maximum code check that receives is more than the first code check of the keynote video data or the maximum reception code check It is less than or equal to the first preset value with the absolute difference of first code check, then primary key rate mark is determined as the mesh Coding rate identifies;
If maximum first code check for receiving code check and being less than the keynote video data, and it is described it is maximum receive code check with The absolute difference of first code check is more than first preset value, then screening with it is described it is maximum receive that code check matches from Code check identifies, and the slave code check mark that screening is obtained is determined as the target bit rate and identifies.
Optionally, the first audio, video data pushing module is specifically used for:
Target bit rate mark is sent to the streaming media server by the service server, so that the Streaming Media Server is identified according to the target bit rate, is determined the address information of corresponding audio, video data, is read according to described address information Audio, video data, and push to the client.
Optionally, described device further includes playback rate recommending module, for audio, video data to be pushed to the visitor After the end of family, if the target bit rate be identified as from code check identify, obtain the audio, video data standard straight sowing time carve and The currently playing moment carves according to the standard straight sowing time and the generation of currently playing moment recommends playback rate, and by the recommendation Playback rate is sent to the client, so that the client plays the audio and video number according to the recommendation playback rate According to.
Optionally, described device further includes code check change request module, in the service server by the target Code check mark is sent to the streaming media server, so that the streaming media server is regarded to the corresponding sound of the client push For frequency after, the service server receives the code check change request that client is sent, wherein code check change request is taken With expectation code rate information;
Second audio, video data pushing module determines and the expectation code check information matches for the service server Change code check mark, by it is described change code check mark be sent to the streaming media server so that the streaming media server to The corresponding audio, video data of the client push.
Optionally, described device further includes code check display mark update module, described in being incited somebody to action in the service server Target bit rate mark is sent to after the streaming media server, and target bit rate mark is sent to by the service server The client, so that the code check that the client updates the client according to target bit rate mark shows mark.
Optionally, which further includes mark statistical module, for updating the client according to target bit rate mark After the code check mark at end, the service server counts the target bit rate and is identified as what is identified from code check mark and primary key rate Client terminal quantity ratio;
Code check feedback module is acquired, if being more than preset ratio for the client terminal quantity ratio, generates code check change Information, and the main broadcaster end is sent to, so that main broadcaster end adjusts audio-video collection code check according to the code check modification information.
The third aspect, the embodiment of the present invention additionally provide a kind of service server, including memory, processor and are stored in On memory and the computer program that can run on a processor, the processor realize that the present invention such as appoints when performing described program Embodiment of anticipating provides a kind of playback method that audio and video are broadcast live.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer Program, which is characterized in that realize that any embodiment of the present invention such as provides a kind of live streaming audio and video when the program is executed by processor Playback method.
In the embodiment of the present invention, service server receives code check, and according to preset matching by obtaining the maximum of client Rule identifies in primary key rate and determines to identify with the maximum matched target bit rate of code check that receives from code check mark so that transmission The receiving ability of audio, video data and client matches, and avoids receiving code since audio and video code check is more than the maximum of client Rate, client smooth can not receive live streaming interim card and the audio and video jump that audio, video data is formed, cause user smooth The problem of ground browsing live streaming audio and video.
Description of the drawings
Fig. 1 is the application scenarios schematic diagram of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of the playback method for live streaming audio and video that the embodiment of the present invention one provides;
Fig. 3 is a kind of flow chart of playback method that audio and video are broadcast live provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of structure diagram of the playing device for live streaming audio and video that the embodiment of the present invention three provides;
Fig. 5 is a kind of structure diagram for service server that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Part related to the present invention rather than entire infrastructure are illustrated only in description, attached drawing.
Referring to Fig. 1, Fig. 1 is the application scenarios schematic diagram of the embodiment of the present invention, including main broadcaster end 101, streaming media server 102nd, service server 103 and client 104, wherein, main broadcaster end 101 refers to acquiring and generates the terminal of audio and video, can be with It is the mobile terminal for being provided with audio and video acquisition devices of smart mobile phone or tablet computer etc., can also be that computer etc. is set It is equipped with the terminal of audio and video acquisition devices.Client 104 refers to that user receives and plays the client of main broadcaster's audio, video data, Client can be the terminal of computer, smart mobile phone or tablet computer etc., wherein, multiple client can be simultaneously Receive the audio, video data of same main broadcaster end push.The major function of streaming media server 102 is with streaming protocol that video is literary Part is transferred to client, is watched online for user, also can receive live video stream, then from video acquisition, compressed software with streaming Agreement is broadcast live to client.Service server 103 is newly-increased server, for coordinating the code of the audio, video data of main broadcaster end push The reception code check of rate and client.
Main broadcaster end 101 can be connect by wireless network with streaming media server 102 and service server 103, client 104 can be connect by wireless network with streaming media server 102 and service server 103, streaming media server 102 and business Server 103 can pass through wireless network connection.
Embodiment one
Fig. 2 is the flow chart of the playback method of a kind of live streaming audio and video that the embodiment of the present invention one provides, and the present embodiment can Suitable for determining the situation of live streaming audio, video data according to the dynamic code rate of user terminal, this method can be carried by the embodiment of the present invention The service server 103 of confession performs, specifically can be by the software and/or the mode of hardware that are deployed on service server 103 To implement.Specifically comprise the following steps:
At least two code checks mark that S110, service server receiving stream media server are sent, wherein, code check mark packet Include main broadcaster end transmission keynote video data primary key rate mark and it is at least one from code check identify, from code check identify with flow matchmaker The slave audio, video data that body server carries out keynote video data code check conversion generation is corresponding.
Wherein, code check mark is a kind of symbol for indicating code check, can be Chinese character, number, symbol or above-mentioned shape The arbitrary combination of formula.Illustratively, code check mark can be but not limited to Chinese characters forms such as " high definitions ", " super clear " or " SD " Formula.Optionally, a code check mark can be corresponding a certain range of code check.
Keynote video data is the original audio, video data of main broadcaster end generation, and in the present embodiment, main broadcaster end is in generation keynote After video data, keynote video data is sent by plug-flow software to stream medium data, while have sent keynote video data Code check primary key rate mark.
Streaming media server carries out code check after keynote video data is received, to the keynote video data received and turns It changes, generates the slave audio, video data of different code checks, while generate each and identified from audio, video data is corresponding from code check, it is optional , it is less than the code check of keynote video data from the code check of audio, video data.
Primary key rate mark and at least one identified from code check are sent to service server by stream medium data, can also be main End is broadcast when sending keynote video data, while primary key rate mark is sent to service server, stream medium data is completed in transcoding Afterwards service server is sent to from code check mark by least one.
It should be noted that streaming media server can carry out keynote video data at least one of code check conversion generation It is two or more from audio, video data.Each one is corresponded to from audio, video data to identify from code check, therefore, regarded with described from sound Frequency according to it is corresponding from code check mark can also there are one, it is two or more.
S120, service server obtain the maximum of client and receive code check, and according to preset matching rule in primary key rate mark Know and determine to identify with the maximum matched target bit rate of code check that receives from code check mark.
Wherein, the maximum code check that receives of client refers to user in the data receiver smoothly corresponding maximum code of situation Rate, optionally, it can be determined according to the real-time network speed of client that maximum, which receives code check, and optionally, service server is according to pre- If interval time obtains the maximum of client and receives code check, illustratively, preset interval time starts 1 minute, 5 minutes or 10 Minute etc..In the present embodiment, service server can be to determine the client for receiving the main broadcaster end audio, video data, further obtain The maximum of client is taken to receive code check.
In the present embodiment, the audio, video data to client push is determined according to the maximum reception code check of client, it is optional , determine that the target bit rate of the audio, video data to client push identifies according to the maximum code check that receives of client, according to mesh Coding rate mark determines corresponding audio, video data.
Optionally, it is identified in primary key rate according to preset matching rule and determines to receive code check with maximum from code check mark The target bit rate mark matched, including:If maximum, which receives code check, is more than the first code check of keynote video data or maximum reception code Rate and the absolute difference of the first code check are less than or equal to the first preset value, then primary key rate mark are determined as target bit rate mark Know;If maximum receives the first code check that code check is less than keynote video data, and the maximum difference for receiving code check and the first code check is exhausted First preset value is more than to value, then screens and maximum receives the slave code check that code check matches and identifies, the slave code check that screening is obtained Mark is determined as target bit rate mark.
Wherein, the first preset value refers to the maximum allowable error range for receiving code check and the first code check.If maximum receives Code check is more than the first code check of keynote video data or the absolute difference of maximum reception code check and the first code check is less than or waits In the first preset value, then showing the maximum code check that receives of client can support to receive keynote video data glibly, by primary key rate Mark is determined as target bit rate mark.
If maximum receives the first code check that code check is less than keynote video data, and the maximum difference for receiving code check and the first code check It is worth absolute value and is more than the first preset value, then showing the maximum code check that receives of client cannot supports to receive keynote video counts glibly According to the slave code check that screening matches with maximum reception code check identifies.Wherein, each is regarded for corresponding one from code check mark from sound The code check of frequency evidence, if there are a code check from audio, video data in the maximum advance error range for receiving code check, it will It is corresponding to be determined as target bit rate mark from code check mark;If code is received in maximum there is no any code check from audio, video data In the advance error range of rate, then corresponding identified from code check of the slave audio, video data of minimum code rate is determined as target bit rate mark Know.
Target bit rate mark is sent to streaming media server by S130, service server, so that streaming media server is to visitor Family end pushes corresponding audio, video data.
After target bit rate mark is determined, target bit rate mark is sent to streaming media server by service server. Streaming media server identifies according to the target bit rate and determines corresponding audio, video data, and pushes to client.
Optionally, step S130 includes:Target bit rate mark is sent to streaming media server by service server, so that stream Media server is identified according to target bit rate, determines the address information of corresponding audio, video data, and reading sound according to address information regards Frequency evidence, and push to client.
Wherein, code check mark and the map information of the address information of audio, video data, root are provided in streaming media server It can determine the address information of the corresponding audio, video data of target bit rate mark according to the map information, the address letter based on audio, video data Breath can obtain audio, video data.
In the present embodiment, by determining the maximum target bit rate mark for receiving code check and matching with client so that hair The audio, video data and the receiving ability of client sent matches, and avoids receiving since audio and video code check is more than the maximum of client Code check, client smooth can not receive live streaming interim card and the audio and video jump that audio, video data is formed, cause user that can not flow The problem of freely browsing live streaming audio and video.
Optionally, it after audio, video data is pushed to client, further includes:If target bit rate is identified as from code check mark Know, then quarter standard straight sowing time of audio, video data and currently playing moment are obtained, when carving according to standard straight sowing time and is currently playing It carves generation and recommends playback rate, and playback rate will be recommended to be sent to client, so that client is broadcast according to recommendation playback rate Playback video data.
In the present embodiment, when target bit rate, which is identified as, to be identified from code check, push to client audio, video data be from Audio, video data, due to streaming media server by keynote video data carry out code check conversion, can just be formed from audio, video data, because This postpones from the push existence time of audio, video data.When determine target bit rate be identified as identified from code check when, service server Send recommendation playback rate simultaneously so that client can be according to playback rate playing audio-video data be recommended, to improve from sound The playback rate of video data reduces to receive from the user of the client of audio, video data and watches progress with receiving keynote video counts According to client user watch progress.
Wherein, the playing time for referring to keynote video data is carved from the standard straight sowing time of audio, video data, when currently playing Quarter can be the playing time from audio, video data in client, and when standard straight sowing time carves, there are differences with the currently playing moment When, i.e., exist from the broadcasting of audio, video data and be delayed.Optionally, when recommendation playback rate is carved with standard straight sowing time and is currently playing Quarter, there are difference correlations.Illustratively, standard straight sowing time carves and the currently playing moment is bigger there are difference, from audio, video data Broadcast time-delay is bigger, recommends playback rate bigger;Correspondingly, standard straight sowing time carves and the currently playing moment is smaller there are difference, It is smaller from the broadcast time-delay of audio, video data, recommend playback rate smaller, to reduce the broadcast time-delay from audio, video data.Its In, recommend that playback rate can be but not limited to 1.5 times of playback rates of normal play rate, 2 times of playback rates or 3 times are broadcast Put rate etc..
In the present embodiment, after the slave audio, video data to match to client push with maximum reception code check, according to Broadcast time-delay improves the playback rate from audio, video data so that user is playing all live streaming audio, video datas glibly On the basis of, the delay with standard straight broadcast video is reduced, improves the viewing experience of live streaming user.
Optionally, target bit rate mark is sent to streaming media server in service server, so that streaming media server After the corresponding audio, video data of client push, further include:Service server receives the code check change that client is sent please It asks, wherein code check change request carries expectation code rate information;Service server determines the change with it is expected code check information matches Code check identifies, and change code check mark is sent to streaming media server, so that streaming media server is corresponding to client push Audio, video data.
Wherein, code check change request refers to the request for carrying expectation code rate information that client is sent, and it is expected code check Information can be code check value or code check mark.
Service server determines that the corresponding main broadcaster end of the client or live streaming sound regard after code check change request is received Frequency evidence, and determine whether there is and identified with the code check for it is expected code check information matches, if in the presence of, it is determined that change code check mark, And change code check mark and be sent to streaming media server, so that streaming media server is to the corresponding audio and video number of client push According to;If there is no the code check mark with it is expected code check information matches, service server sends prompt message to client.
In the present embodiment, service server can according to the code check of reception change request in expectation code rate information, determine pair The audio, video data answered, live streaming audio, video data can be sent according to the demand of user by realizing, to adjust currently playing live streaming The clarity of Streaming Media improves the flexibility of live streaming audio and video.
The technical solution of the present embodiment, service server receive code check, and according to default by obtaining the maximum of client Matching rule identifies in primary key rate and determines to identify with the maximum matched target bit rate of code check that receives from code check mark so that hair The audio, video data and the receiving ability of client sent matches, and avoids receiving since audio and video code check is more than the maximum of client Code check, client smooth can not receive live streaming interim card and the audio and video jump that audio, video data is formed, cause user that can not flow The problem of freely browsing live streaming audio and video.
Based on the above technical solution, it after the code check mark that update client is identified according to target bit rate, also wraps It includes:Service server statistics target bit rate is identified as the client terminal quantity ratio from code check mark and primary key rate mark;If client Quantitative proportion is held to be more than preset ratio, then code check modification information is generated, and be sent to main broadcaster end, so that main broadcaster end becomes according to code check More information adjusts audio-video collection code check.
Wherein it is possible to receive and play the audio, video data of same main broadcaster, service server simultaneously there are multiple client After the corresponding target bit rate mark of each client is determined, statistics target bit rate mark is respectively from code check mark and primary key The client data and client data ratio of rate mark.When the client data ratio from code check mark and primary key rate mark When example is more than preset ratio, illustratively, preset ratio can be 1:1 or 3:2 etc., show that there are a large amount of clients not flowing Keynote video data, service server generation code check modification information freely are received, and is sent to main broadcaster end.Wherein code check change letter Cease reduces information for code check so that main broadcaster end reduces the acquisition code check of live streaming audio and video, and push meets the sound of a large number of users demand Video data so that client can receive keynote video data, improve the viewing experience of the live streaming of user.
Embodiment two
Fig. 3 is a kind of flow chart of playback method that audio and video are broadcast live provided by Embodiment 2 of the present invention, in above-mentioned implementation On the basis of example, the client code check further provided shows the update method of mark.Specifically, this method includes:
At least two code checks mark that S210, service server receiving stream media server are sent.
Wherein, code check mark include main broadcaster end transmission keynote video data primary key rate identify and it is at least one from code Rate identifies, and carries out the slave audio, video data phase of code check conversion generation to keynote video data with streaming media server from code check mark It is corresponding.
S220, service server obtain the maximum of client and receive code check, and according to preset matching rule in primary key rate mark Know and determine to identify with the maximum matched target bit rate of code check that receives from code check mark.
Target bit rate mark is sent to streaming media server by S230, service server, so that streaming media server is to visitor Family end pushes corresponding audio, video data.
Target bit rate mark is sent to client by S240, service server, so that client is identified according to target bit rate Update the code check display mark of client.
In the present embodiment, when streaming media server is to client push audio, video data, service server will be regarded with sound Frequency is sent to client according to corresponding target bit rate mark so that client is when receiving target bit rate mark, update visitor The code check display mark at family end, avoids when pushing to the code check of audio, video data of client and changing, user can not Know the situation of change of code check, cause currently playing audio, video data code check and broadcast interface code check display mark not With the problem of.
Optionally, client identifies the code check display mark of update client according to target bit rate, including:Client is being examined Survey current code check display mark identified whether with target bit rate it is identical;It is current according to target bit rate mark update if differing Code check display mark, if identical, current code check is kept to show that mark is constant.
In the present embodiment, by the way that when pushing audio, video data, target bit rate mark is sent to client, real-time update The code check display mark of client so that code check display mark matches with the audio, video data played, is set manually without user It puts or refreshes, improve the intelligent of live streaming interface.
Embodiment three
Fig. 4 be the embodiment of the present invention three provide a kind of live streaming audio and video playing device structure diagram, the device Including:
Code check identifies receiving module 310, for at least two code checks mark that receiving stream media server is sent, wherein, Code check mark include main broadcaster end transmission keynote video data primary key rate mark and it is at least one from code check mark, from code check It identifies corresponding to the slave audio, video data of keynote video data progress code check conversion generation with streaming media server;
Target bit rate identifies determining module 320, and code check is received, and advise according to preset matching for obtaining the maximum of client It then determines to identify with the maximum matched target bit rate of code check that receives;
First audio, video data pushing module 330, for target bit rate mark to be sent to streaming media server, so that stream Media server is to the corresponding audio, video data of client push.
Optionally, target bit rate mark determining module 320 is specifically used for:
If maximum, which receives code check, is more than the first code check of keynote video data or maximum code check and the first code check of receiving Absolute difference is less than or equal to the first preset value, then primary key rate mark is determined as target bit rate mark;
If maximum receives the first code check that code check is less than keynote video data, and the maximum difference for receiving code check and the first code check Be worth absolute value and be more than the first preset value, then screening receives the slave code check that code check matches and identifies with maximum, by screen obtain from Code check mark is determined as target bit rate mark.
Optionally, the first audio, video data pushing module 330 is specifically used for:
Target bit rate mark is sent to streaming media server by service server, so that streaming media server is according to object code Rate identifies, and determines the address information of corresponding audio, video data, and audio, video data is read, and push to client according to address information End.
Optionally, device further includes playback rate recommending module, for after audio, video data is pushed to client, It is identified if target bit rate is identified as from code check, obtains quarter standard straight sowing time of audio, video data and currently playing moment, according to Standard straight sowing time carves and the generation of currently playing moment recommends playback rate, and playback rate will be recommended to be sent to client, so that Client is according to recommendation playback rate playing audio-video data.
Optionally, device further includes code check change request module, is sent for identifying target bit rate in service server To streaming media server, so that streaming media server, after the corresponding audio, video data of client push, service server connects The code check change request that client is sent is received, wherein code check change request carries expectation code rate information;
Second audio, video data pushing module determines the change code check with it is expected code check information matches for service server Change code check mark is sent to streaming media server, so that streaming media server is regarded to the corresponding sound of client push by mark Frequency evidence.
Optionally, device further includes code check display mark update module, for identifying target bit rate in service server It is sent to after streaming media server, target bit rate mark is sent to client by service server, so that client is according to mesh The code check display mark of coding rate mark update client.
Optionally, which further includes mark statistical module, for identifying the code check of update client according to target bit rate After mark, service server statistics target bit rate is identified as the client terminal quantity ratio from code check mark and primary key rate mark;
Code check feedback module is acquired, if being more than preset ratio for client terminal quantity ratio, generates code check modification information, And main broadcaster end is sent to, so that main broadcaster end adjusts audio-video collection code check according to code check modification information.
The playing device of live streaming audio and video provided in an embodiment of the present invention can perform what any embodiment of the present invention was provided The playback method of audio and video is broadcast live, has the corresponding function module of playback method and advantageous effect for performing live streaming audio and video.
Example IV
Fig. 5 is a kind of service server structure diagram that the embodiment of the present invention four provides.Referring to Fig. 5, the business service Device includes:
One or more processors 410;
Memory 420, for storing one or more programs;
When one or more of programs are performed by one or more of processors 410 so that one or more of Processor 410 is realized such as the playback method of live streaming audio and video provided in an embodiment of the present invention.
In Fig. 5 by taking a processor as an example;Processor can be connected with memory by bus or other modes, in Fig. 5 For being connected by bus.
Memory is as a kind of computer readable storage medium, available for storage software program, computer executable program And module.Processor is by running software program stored in memory, instruction and module, so as to perform business service The playback method of above-mentioned live streaming audio and video is realized in the various function application of device and data processing.
Memory can mainly include storing program area and storage data field, wherein, storing program area can storage program area, Application program needed at least one function;Storage data field can be stored uses created data according to service server Deng.In addition, memory can include high-speed random access memory, can also include nonvolatile memory, for example, at least one A disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory can be into one Step is included relative to the remotely located memory of processor, these remote memories can pass through network connection to business service Device.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
In addition, according to the different form of service server, in addition to processor and memory, control service server can be with Including other modules or structure, for example, service server can have voice broadcast function, then loud speaker is further included;For another example, industry Business server can be the equipment for having display function, then further includes display screen, for showing map datum, also be available for user Touch control operation is carried out in navigation software interface.
The playback method of live streaming audio and video that the service server that the present embodiment proposes is proposed with the embodiment of the present invention belongs to Same inventive concept, the technical detail of detailed description not can be found in above-described embodiment in the present embodiment, and the present embodiment with Above-described embodiment has identical advantageous effect.
Embodiment five
The present embodiment provides a kind of computer readable storage mediums, are stored thereon with computer program, which is handled The playback method of the live streaming audio and video proposed such as the embodiment of the present invention is realized when device performs.
The playback method category for the live streaming audio and video that the computer readable storage medium that the present embodiment proposes is proposed with embodiment In same inventive concept, the technical detail of detailed description not can be found in above-described embodiment, and the present embodiment in the present embodiment There is identical advantageous effect with above-described embodiment.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on such understanding, what technical scheme of the present invention substantially in other words contributed to the prior art Part can be embodied in the form of software product, which can be stored in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) performs the method described in each embodiment of the present invention.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiment described here, can carry out for a person skilled in the art various apparent variations, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of playback method that audio and video are broadcast live, which is characterized in that including:
At least two code checks mark that service server receiving stream media server is sent, wherein, the code check mark includes master Broadcast end send keynote video data primary key rate mark and it is at least one from code check identify, it is described from code check mark with it is described The slave audio, video data that streaming media server carries out the keynote video data code check conversion generation is corresponding;
The service server obtains the maximum of client and receives code check, and according to preset matching rule primary key rate identify and from It determines to identify with the maximum matched target bit rate of code check that receives in code check mark;
Target bit rate mark is sent to the streaming media server by the service server, so that the streaming media service Device is to the corresponding audio, video data of the client push.
2. according to the method described in claim 1, it is characterized in that, the service server, which obtains the maximum of client, receives code Rate, and identified in primary key rate according to preset matching rule and determine to receive the matched mesh of code check with the maximum from code check mark Coding rate identifies, including:
If the maximum code check that receives is more than the first code check of the keynote video data or the maximum reception code check and institute The absolute difference for stating the first code check is less than or equal to the first preset value, then primary key rate mark is determined as the object code Rate identifies;
If maximum first code check for receiving code check and being less than the keynote video data, and it is described it is maximum receive code check with it is described The absolute difference of first code check is more than first preset value, then screening and the maximum slave code check for receiving code check and matching Mark, the slave code check mark that screening is obtained are determined as the target bit rate and identify.
3. according to the method described in claim 2, it is characterized in that, the target bit rate is identified transmission by the service server To the streaming media server, so that the streaming media server is to the corresponding audio, video data of the client push, including:
Target bit rate mark is sent to the streaming media server by the service server, so that the streaming media service Device is identified according to the target bit rate, determines the address information of corresponding audio, video data, and reading sound according to described address information regards Frequency evidence, and push to the client.
4. according to the method described in claim 3, it is characterized in that, after audio, video data is pushed to the client, It further includes:
If the target bit rate is identified as from code check and identifies, the standard straight sowing time for obtaining the audio, video data carves and currently broadcasts The moment is put, is carved according to the standard straight sowing time and the generation of currently playing moment recommends playback rate, and recommend to play speed by described Rate is sent to the client, so that the client plays the audio, video data according to the recommendation playback rate.
5. it according to the method described in claim 3, is sent out it is characterized in that, identifying the target bit rate in the service server Send to the streaming media server so that the streaming media server to the corresponding audio, video data of the client push it Afterwards, it further includes:
The service server receives the code check change request that client is sent, wherein code check change request carries expectation Code rate information;
The service server determines to identify with the change code check for it is expected code check information matches, by the change code check mark The streaming media server is sent to, so that the streaming media server is to the corresponding audio, video data of the client push.
6. it according to the method described in claim 1, is sent out it is characterized in that, identifying the target bit rate in the service server It send to the streaming media server, further includes:
Target bit rate mark is sent to the client by the service server, so that the client is according to the mesh Coding rate mark updates the code check display mark of the client.
7. according to the method described in claim 1, it is characterized in that, the client is updated according to target bit rate mark After code check mark, further include:
The service server counts the target bit rate and is identified as the client terminal quantity ratio identified from code check mark and primary key rate Example;
If the client terminal quantity ratio is more than preset ratio, code check modification information is generated, and be sent to the main broadcaster end, with Main broadcaster end is made to adjust audio-video collection code check according to the code check modification information.
8. a kind of playing device that audio and video are broadcast live, which is characterized in that service server is set to, including:
Code check identifies receiving module, for at least two code checks mark that receiving stream media server is sent, wherein, the code check Mark include main broadcaster end transmission keynote video data primary key rate mark and it is at least one from code check mark, it is described from code check It identifies corresponding to the slave audio, video data of keynote video data progress code check conversion generation with the streaming media server;
Target bit rate identifies determining module, and code check is received, and determine according to preset matching rule for obtaining the maximum of client It is identified with the maximum matched target bit rate of code check that receives;
Audio, video data pushing module, for target bit rate mark to be sent to the streaming media server, so that described Streaming media server is to the corresponding audio, video data of the client push.
9. a kind of service server including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes the side as described in any in claim 1-7 when performing described program Method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The method as described in any in claim 1-7 is realized during execution.
CN201810289214.3A 2018-03-30 2018-03-30 Method and device for playing live broadcast audio and video, computer and storage medium Active CN108259948B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810289214.3A CN108259948B (en) 2018-03-30 2018-03-30 Method and device for playing live broadcast audio and video, computer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810289214.3A CN108259948B (en) 2018-03-30 2018-03-30 Method and device for playing live broadcast audio and video, computer and storage medium

Publications (2)

Publication Number Publication Date
CN108259948A true CN108259948A (en) 2018-07-06
CN108259948B CN108259948B (en) 2020-12-15

Family

ID=62748018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810289214.3A Active CN108259948B (en) 2018-03-30 2018-03-30 Method and device for playing live broadcast audio and video, computer and storage medium

Country Status (1)

Country Link
CN (1) CN108259948B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038722A (en) * 2017-12-07 2018-05-15 深圳慧逛信息服务有限公司 A kind of interactive marketing system
WO2020034082A1 (en) * 2018-08-14 2020-02-20 海能达通信股份有限公司 Slicing-based rtp stream transmission method, device, terminal and server
CN110996117A (en) * 2019-12-20 2020-04-10 北京达佳互联信息技术有限公司 Video transcoding method and device, electronic equipment and storage medium
CN111385590A (en) * 2018-12-28 2020-07-07 广州市百果园信息技术有限公司 Live broadcast data processing method and device and terminal
CN111416989A (en) * 2020-04-28 2020-07-14 北京金山云网络技术有限公司 Video live broadcast method and system and electronic equipment
CN111541884A (en) * 2020-05-07 2020-08-14 深圳市亿联智能有限公司 High-compatibility network streaming media distribution system
CN111654713A (en) * 2020-04-20 2020-09-11 视联动力信息技术股份有限公司 Live broadcast interaction method and device
CN112511884A (en) * 2019-09-16 2021-03-16 武汉斗鱼网络科技有限公司 Mixed flow control method and system of audio and video stream and storage medium
CN113556569A (en) * 2021-07-14 2021-10-26 青岛聚看云科技有限公司 Server and live channel playing method
CN114651449A (en) * 2020-04-26 2022-06-21 华为技术有限公司 Method and device for adjusting streaming media parameter dynamic adaptive network
CN115086779B (en) * 2021-12-17 2024-04-16 浙江大华技术股份有限公司 Video transmission system

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101835029A (en) * 2010-04-21 2010-09-15 深圳市紫云鑫软件技术有限公司 Control method, system and client for playing streaming media
CN102883216A (en) * 2011-07-14 2013-01-16 上海聚力传媒技术有限公司 Video live broadcasting method and apparatus
CN103873888A (en) * 2012-12-12 2014-06-18 深圳市快播科技有限公司 Live broadcast method of media files and live broadcast source server
CN103986914A (en) * 2014-05-27 2014-08-13 东南大学 Code rate self-adaption method based on number of client sides in wireless video monitoring system
CN104602044A (en) * 2015-02-05 2015-05-06 秦永红 RTMP stream media public network live broadcast system and design method thereof
CN105357591A (en) * 2015-11-16 2016-02-24 北京理工大学 QoE monitoring and optimization method for adaptive code rate video direct broadcast
CN105871808A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Method and device for transcoding live video
CN105898408A (en) * 2016-04-28 2016-08-24 乐视控股(北京)有限公司 Video play method and device
US20160316235A1 (en) * 2014-03-31 2016-10-27 Arris Enterprises Llc Adaptive streaming transcoder synchronization
CN106162214A (en) * 2016-09-05 2016-11-23 腾讯科技(深圳)有限公司 Method for video coding and net cast client
CN106303608A (en) * 2016-09-27 2017-01-04 北京小米移动软件有限公司 Live treating method and apparatus, direct broadcast server and live broadcast system
CN106488265A (en) * 2016-10-12 2017-03-08 广州酷狗计算机科技有限公司 A kind of method and apparatus sending Media Stream
CN106507024A (en) * 2016-11-17 2017-03-15 北京数码视讯技术有限公司 A kind of self-adaption code rate method of adjustment and device
CN106604055A (en) * 2017-01-06 2017-04-26 广州四三九九信息科技有限公司 Video smooth transmission and live broadcasting uplink method based on complex weak mobile network environment
US20180098132A1 (en) * 2012-11-28 2018-04-05 Sinclair Broadcast Group, Inc. Terrestrial broadcast market exchange network platform and broadcast augmentation channels for hybrid broadcasting in the internet age

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101835029A (en) * 2010-04-21 2010-09-15 深圳市紫云鑫软件技术有限公司 Control method, system and client for playing streaming media
CN102883216A (en) * 2011-07-14 2013-01-16 上海聚力传媒技术有限公司 Video live broadcasting method and apparatus
US20180098132A1 (en) * 2012-11-28 2018-04-05 Sinclair Broadcast Group, Inc. Terrestrial broadcast market exchange network platform and broadcast augmentation channels for hybrid broadcasting in the internet age
CN103873888A (en) * 2012-12-12 2014-06-18 深圳市快播科技有限公司 Live broadcast method of media files and live broadcast source server
US20160316235A1 (en) * 2014-03-31 2016-10-27 Arris Enterprises Llc Adaptive streaming transcoder synchronization
CN103986914A (en) * 2014-05-27 2014-08-13 东南大学 Code rate self-adaption method based on number of client sides in wireless video monitoring system
CN104602044A (en) * 2015-02-05 2015-05-06 秦永红 RTMP stream media public network live broadcast system and design method thereof
CN105357591A (en) * 2015-11-16 2016-02-24 北京理工大学 QoE monitoring and optimization method for adaptive code rate video direct broadcast
CN105871808A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Method and device for transcoding live video
CN105898408A (en) * 2016-04-28 2016-08-24 乐视控股(北京)有限公司 Video play method and device
CN106162214A (en) * 2016-09-05 2016-11-23 腾讯科技(深圳)有限公司 Method for video coding and net cast client
CN106303608A (en) * 2016-09-27 2017-01-04 北京小米移动软件有限公司 Live treating method and apparatus, direct broadcast server and live broadcast system
CN106488265A (en) * 2016-10-12 2017-03-08 广州酷狗计算机科技有限公司 A kind of method and apparatus sending Media Stream
CN106507024A (en) * 2016-11-17 2017-03-15 北京数码视讯技术有限公司 A kind of self-adaption code rate method of adjustment and device
CN106604055A (en) * 2017-01-06 2017-04-26 广州四三九九信息科技有限公司 Video smooth transmission and live broadcasting uplink method based on complex weak mobile network environment

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038722A (en) * 2017-12-07 2018-05-15 深圳慧逛信息服务有限公司 A kind of interactive marketing system
WO2020034082A1 (en) * 2018-08-14 2020-02-20 海能达通信股份有限公司 Slicing-based rtp stream transmission method, device, terminal and server
CN111385590A (en) * 2018-12-28 2020-07-07 广州市百果园信息技术有限公司 Live broadcast data processing method and device and terminal
CN112511884A (en) * 2019-09-16 2021-03-16 武汉斗鱼网络科技有限公司 Mixed flow control method and system of audio and video stream and storage medium
CN112511884B (en) * 2019-09-16 2023-11-03 江苏怀业信息技术股份有限公司 Mixed flow control method, system and storage medium for audio and video flow
CN110996117A (en) * 2019-12-20 2020-04-10 北京达佳互联信息技术有限公司 Video transcoding method and device, electronic equipment and storage medium
CN110996117B (en) * 2019-12-20 2021-10-22 北京达佳互联信息技术有限公司 Video transcoding method and device, electronic equipment and storage medium
CN111654713A (en) * 2020-04-20 2020-09-11 视联动力信息技术股份有限公司 Live broadcast interaction method and device
CN114651449A (en) * 2020-04-26 2022-06-21 华为技术有限公司 Method and device for adjusting streaming media parameter dynamic adaptive network
CN114651449B (en) * 2020-04-26 2023-09-29 华为技术有限公司 Method and device for adjusting stream media parameter dynamic self-adaptive network
CN111416989A (en) * 2020-04-28 2020-07-14 北京金山云网络技术有限公司 Video live broadcast method and system and electronic equipment
CN111541884A (en) * 2020-05-07 2020-08-14 深圳市亿联智能有限公司 High-compatibility network streaming media distribution system
CN113556569A (en) * 2021-07-14 2021-10-26 青岛聚看云科技有限公司 Server and live channel playing method
CN113556569B (en) * 2021-07-14 2023-10-24 青岛聚看云科技有限公司 Server and live channel playing method
CN115086779B (en) * 2021-12-17 2024-04-16 浙江大华技术股份有限公司 Video transmission system

Also Published As

Publication number Publication date
CN108259948B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN108259948A (en) A kind of playback method, device, computer and storage medium that audio and video are broadcast live
CN100591123C (en) Apparatus and method for providing media program
CN100359946C (en) A method and system for internet content acquisition according to a program guide
JP5905392B2 (en) Automatic media asset updates via online social networks
CN101467451B (en) Method for displaying a mosaic image in a receiver for the selection of audiovisual programs, receivers and related servers
US20080046944A1 (en) Ubiquitous home media service apparatus and method based on smmd, and home media service system and method using the same
CA2680797C (en) Systems and methods for portable personalized radio
CN101128813B (en) Method and system for providing information which relates in broadcasting
CN101577627B (en) System and method for downloading and playing multimedia file
CN101334739B (en) Method for managing evolving user preferences, method and circuit for managing user preferences information
CN103069830A (en) Transmission device and method, reception device and method, and transmission and reception system
US10313722B1 (en) Synchronizing audio content and video content
EP3043567A1 (en) Method and device for setting language type
CN115766676A (en) System, method and data store for facilitating actions related to content
JP7366003B2 (en) Information processing device, information processing method, transmitting device, and transmitting method
EP3311542B1 (en) System and method for setting time and date in a device without access to network time protocol
CN110582024A (en) method and device for playing video
CN101529885B (en) Rich media stream management
CN112201264A (en) Audio processing method and device, electronic equipment, server and storage medium
CN108989426B (en) HLS protocol-based stream pulling method, system, client and storage medium
CN104486648A (en) Recommended method and server
JP7094462B1 (en) Content modification system with geographic area-based features
KR102408267B1 (en) Receiving device, sending device and data processing method
CN115278317B (en) Method, device and medium for directional delivery of television content
US20220027120A1 (en) Systems and methods for portable personalized radio

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

Effective date of registration: 20240321

Address after: Room 601, 6th Floor, Building 5, Lianhuayuan, Haidian District, Beijing, 100080

Patentee after: Aerospace Guosheng Technology Co.,Ltd.

Country or region after: Zhong Guo

Address before: 11 / F, building B1, phase 4.1, software industry, No.1, Software Park East Road, Wuhan East Lake Development Zone, Wuhan City, Hubei Province, 430070

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Country or region before: Zhong Guo

TR01 Transfer of patent right