Summary of the invention
Embodiments of the invention provide a kind of video pushing method and server, can guarantee the normal play of video flowing.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The first aspect of the embodiment of the present invention, provides a kind of video pushing method, comprising:
Reception, from the video push instruction of electric terminal, comprises the identification information for the treatment of pushing video stream in described video push instruction;
Receiving after described video push instruction, be retrieved as the pre-configured video code rate of described electric terminal;
According to the identification information comprising in described video push instruction, obtain coupling pushing video stream, described coupling pushing video stream is that the pushing video for the treatment of matching with the video code rate getting flows;
Send described coupling pushing video and flow to described electric terminal.
In conjunction with first aspect, in a kind of possible implementation, described in be retrieved as the pre-configured video code rate of described electric terminal, comprising:
Obtain the terminal type of described electric terminal;
Look for the pre-configured corresponding video code rate of the terminal type with getting of described electric terminal.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, described according to the identification information comprising in described video push instruction, obtain video flowing set;
In described video flowing set, Search and acquirement to video code rate match treat pushing video stream.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, described in described video flowing set, search the pushing video for the treatment of matching with fixed video code flow and flow, comprising:
Obtain the system platform attribute information of described electric terminal;
In described video flowing set, Search and acquirement to video code rate match, and treat pushing video stream with the system platform attribute information getting matches.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, in described video flowing set, Search and acquirement to video code rate match, and flow with the pushing video for the treatment of that the system platform attribute information getting matches, comprising:
According to the system platform attribute information getting, determine the video format that described electric terminal is applicable;
In described video flowing set, Search and acquirement to video code rate match, and with according to the definite video format of described system platform attribute information, match treat pushing video stream.
The second aspect of the embodiment of the present invention, also provides a kind of server, comprising:
Receiving element, for receiving the video push instruction from electric terminal, comprises the identification information for the treatment of pushing video stream in described video push instruction;
The first acquiring unit, for receiving after described video push instruction at described receiving element, is retrieved as the pre-configured video code rate of described electric terminal;
Second acquisition unit, for the identification information comprising according to described video push instruction, obtains coupling pushing video stream, and described coupling pushing video stream is treated pushing video stream for what the video code rate getting with described the first acquiring unit matched;
Transmitting element, flow to described electric terminal for sending the described coupling pushing video that described second acquisition unit gets.
In conjunction with second aspect, in a kind of possible implementation, described the first acquiring unit, comprising:
The first acquisition module, for obtaining the terminal type of described electric terminal;
First searches module, for looking for the pre-configured corresponding video code rate of the terminal type getting with described acquisition module of described electric terminal.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described second acquisition unit, comprising:
The second acquisition module, for the identification information comprising according to described video push instruction, obtains video flowing set;
Second searches module, in described video flowing set, Search and acquirement to video code rate match treat pushing video stream.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described second searches module, also for obtaining the system platform attribute information of described electric terminal; In described video flowing set, Search and acquirement to video code rate match, and treat pushing video stream with the system platform attribute information getting matches.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described second searches module, also, for according to the system platform attribute information getting, determines the video format that described electric terminal is applicable; In described video flowing set, Search and acquirement to video code rate match, and with according to the definite video format of described system platform attribute information, match treat pushing video stream.
The video pushing method that the embodiment of the present invention provides and server, can receive the video push instruction from electric terminal, comprises the identification information for the treatment of pushing video stream in video push instruction; Receiving after video push instruction, be retrieved as the pre-configured video code rate of electric terminal; According to the identification information comprising in video push instruction, obtain and mate pushing video stream, coupling pushing video stream is that the pushing video for the treatment of matching with the video code rate getting flows; Send coupling pushing video and flow to electric terminal.
Compared with can not guaranteeing the normal play of video flowing in prior art, pass through this programme, server can be that different electric terminals pushes the video code rate pre-configured with being each electric terminal to the video flowing mating, can avoid resource limitation due to electric terminal (as, the bandwidth resources of electronic equipment are limited), cause the problem that electric terminal can not normal play video.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In addition, term " system " and " network " are often used interchangeably in this article herein.Term "and/or" herein, is only a kind of incidence relation of describing affiliated partner, and expression can exist three kinds of relations, and for example, A and/or B, can represent: individualism A exists A and B, these three kinds of situations of individualism B simultaneously.In addition, character "/" herein, generally represents that forward-backward correlation is to liking a kind of relation of "or".
Embodiment 1
The embodiment of the present invention provides a kind of video pushing method, as shown in Figure 1, comprising:
S101, server receive the video push instruction from electric terminal, comprise the identification information for the treatment of pushing video stream in video push instruction.
Exemplary, the electric terminal in the embodiment of the present invention, can any one have the wired or radio-based electronic devices of multimedia file playing function for mobile phone, PC, panel computer, mp4, mp5 and intelligent television etc.Server can be for having the feature such as highly distributed, highly virtual, the network platform or the server that can make Internet resources be fully used.
Concrete, server can detect the video push instruction whether having from electric terminal in real time, if the video push instruction from electric terminal detected, receive this video push instruction, and obtain the identification information for the treatment of pushing video stream comprising in video push instruction, so that server can search and treat pushing video stream according to the identification information for the treatment of pushing video stream, and the pushing video stream for the treatment of finding is pushed to described electric terminal.
S102, server are receiving after video push instruction, are retrieved as the pre-configured video code rate of electric terminal.
Exemplary, video code rate can be: the data bits that during video data transmitting, the unit interval transmits is generally that kilobit is per second with the kbps of unit.Code check can be understood as sampling rate, in unit interval, sampling rate is larger, and precision is just higher, and the file dealing just more approaches original document, but file volume is directly proportional to sampling rate, so what nearly all coded format was paid attention to is all how to reach minimum distortion with minimum code check, gives an example, for an audio frequency, its code check is higher, compressed ratio is less, and tonequality loss is less, more approaching with the tonequality of source of sound.
Concrete, the method that server is retrieved as the pre-configured video code rate of electric terminal can comprise: server obtains the terminal type of electric terminal; Look for the pre-configured corresponding video code rate of the terminal type with getting of electric terminal.Wherein, the video code rate storehouse that can prestore in server, described in the video code rate storehouse that prestores comprise terminal type and be the pre-configured video code rate of the electric terminal of this terminal type.
S103, server, according to the identification information comprising in video push instruction, obtain and mate pushing video stream, and coupling pushing video stream is that the pushing video for the treatment of matching with the video code rate getting flows.
Concrete, server can, according to the identification information comprising in video push instruction, obtain video flowing set, comprises at least two and treat pushing video stream in video flowing set; In video flowing set, Search and acquirement to video code rate match treat pushing video stream.
Wherein, server can obtain the system platform attribute information of electric terminal, then in video flowing set, Search and acquirement to video code rate match, and treat pushing video stream with the system platform attribute information getting matches.
Further, whois lookup specifically can comprise with the method for the treatment of pushing video stream that the system platform attribute information getting matches: server, according to the system platform attribute information getting, is determined the video format that electric terminal is applicable; Searching the pushing video for the treatment of matching with fixed video format flows.
S104, server send coupling pushing video and flow to electric terminal.
The video pushing method that the embodiment of the present invention provides, server can receive the video push instruction from electric terminal, comprises the identification information for the treatment of pushing video stream in video push instruction; Receiving after video push instruction, be retrieved as the pre-configured video code rate of electric terminal; According to the identification information comprising in video push instruction, obtain and mate pushing video stream, coupling pushing video stream is that the pushing video for the treatment of matching with the video code rate getting flows; Send coupling pushing video and flow to electric terminal.
Compared with can not guaranteeing the normal play of video flowing in prior art, pass through this programme, server can be that different electric terminals pushes the video code rate pre-configured with being each electric terminal to the video flowing mating, can avoid resource limitation due to electric terminal (as, the bandwidth resources of electronic equipment are limited), cause the problem that electric terminal can not normal play video.
Embodiment 2
The embodiment of the present invention provides a kind of video pushing method, as shown in Figure 2, comprising:
S201, server receive the video push instruction from electric terminal, comprise the identification information for the treatment of pushing video stream in video push instruction.
Concrete, server can detect the video push instruction whether having from electric terminal in real time, if the video push instruction from electric terminal detected, receive this video push instruction, and obtain the identification information for the treatment of pushing video stream comprising in video push instruction, so that server can search and treat pushing video stream according to the identification information for the treatment of pushing video stream, and the pushing video stream for the treatment of finding is pushed to described electric terminal.
It should be noted that, the server in the present embodiment and electric terminal can be with reference to the associated description in other embodiments of the invention, and the present embodiment repeats no more here.
S202, server are receiving after video push instruction, obtain the terminal type of electric terminal.
Exemplary, the terminal type of electric terminal can comprise: wireless terminal, catv terminal; Or server can do more careful division to the terminal type of electric terminal, and the terminal type of electric terminal can comprise: be connected to 2G mobile communications network wireless terminal, be connected to 3G mobile communications network wireless terminal, be connected to wifi network wireless terminal, be connected to the network bandwidth higher than the catv terminal of the network of first threshold and be connected to the network bandwidth higher than at least one in the catv terminal of the network of first threshold etc.
S203, whois lookup are the pre-configured corresponding video code rate of the terminal type with getting of electric terminal.
Concrete, in the video code rate storehouse that server can prestore according to the terminal type getting from server, look for the pre-configured video code rate of this electric terminal.
Exemplary, video code rate can comprise: 1080P, super clear, high definition, SD and smooth etc. at least one.Wherein, 1080P can be corresponding to the 16M network bandwidth; Surpassing clearly can be corresponding to the 8M network bandwidth; High definition can be corresponding to the 4M network bandwidth; SD can be corresponding to the 3M network bandwidth; Smoothness can be corresponding to the 2M network bandwidth.
For example, table 1 is a kind of video code rate storehouse example:
Table 1
It should be noted that, the method that server look for the pre-configured video code rate of electric terminal according to the terminal type getting includes but not limited to the above-mentioned cited method of the embodiment of the present invention, and additive method the present embodiment of whois lookup video code rate repeats no more here.
S204, server, according to the identification information comprising in video push instruction, obtain video flowing set, comprise at least two and treat pushing video stream in video flowing set.
Wherein, the identification information for the treatment of pushing video stream comprising in video push instruction can be for treating the title of pushing video stream, and server can be according to the corresponding video flowing of the name lookup of video flowing.
It should be noted that, can first carry out in embodiments of the present invention S202-S203, and then carry out S204; Also can first carry out S204, and then carry out S202-S203; Can also carry out S202-S203 and S204 simultaneously.The embodiment of the present invention does not limit the sequencing of S202-S203 and S204 execution.
S205, server in video flowing set, Search and acquirement to video code rate match treat pushing video stream.
Wherein, may comprise that more than one is waited to push and looks video flowing in the video flowing set getting due to server, therefore, server need to be in video flowing set, Search and acquirement to video code rate match treat pushing video stream.
Concrete, due to the system platform difference of installing in electric terminal, the form of the video flowing that can play in this electric terminal may be not identical, may cause due to electric terminal receive that the system platform of installing with this electric terminal provides can the unmatched video flowing of displaying video stream format, thereby can not guarantee the problem of the normal play of video flowing, therefore, S205 can comprise S205a and S205b in embodiments of the present invention:
S205a, server obtain the system platform attribute information of electric terminal.
Exemplary, the system platform attribute information of electric terminal is used to indicate the type of the system platform of installing in this electric terminal, as IOS system of Android Android system, Saipan system and apple etc.
S205b, server in video flowing set, Search and acquirement to video code rate match, and treat pushing video stream with the system platform attribute information getting matches.
Concrete, server can, according to the system platform attribute information getting, be determined the video format that electric terminal is applicable; In video flowing set, Search and acquirement to video code rate match, and with according to the definite video format of system platform attribute information, match treat pushing video stream.
Exemplary, if whois lookup to one match with the video code rate getting, and flow with the pushing video for the treatment of that the system platform attribute information getting matches, this server can directly be defined as mating pushing video stream by the pushing video stream for the treatment of finding; If whois lookup at least two match with the video code rate getting, and flow with the pushing video for the treatment of that the system platform attribute information getting matches, this server can be selected a video flowing flowing at random from the pushing video for the treatment of finding, and is defined as mating pushing video stream.
S206, server send coupling pushing video and flow to described electric terminal.
The video pushing method that the embodiment of the present invention provides, server can receive the video push instruction from electric terminal, comprises the identification information for the treatment of pushing video stream in video push instruction; Receiving after video push instruction, be retrieved as the pre-configured video code rate of electric terminal; According to the identification information comprising in video push instruction, obtain and mate pushing video stream, coupling pushing video stream is that the pushing video for the treatment of matching with the video code rate getting flows; Send coupling pushing video and flow to electric terminal.
Compared with can not guaranteeing the normal play of video flowing in prior art, pass through this programme, server can be that different electric terminals pushes the video code rate pre-configured with being each electric terminal to the video flowing mating, can avoid resource limitation due to electric terminal (as, the bandwidth resources of electronic equipment are limited), cause the problem that electric terminal can not normal play video.
Embodiment 3
The embodiment of the present invention provides a kind of server, as shown in Figure 3, comprising: receivingelement 31, the first acquiringunit 32,second acquisition unit 33 and transmittingelement 34.
Receivingelement 31, for receiving the video push instruction from electric terminal, comprises the identification information for the treatment of pushing video stream in described video push instruction.
The first acquiringunit 32, for receiving after described video push instruction at described receivingelement 31, is retrieved as the pre-configured video code rate of described electric terminal.
Second acquisition unit 33, for the identification information comprising according to described video push instruction, obtains coupling pushing video stream, and described coupling pushing video stream is treated pushing video stream for what the video code rate getting with described the first acquiringunit 32 matched.
Transmittingelement 34, flow to described electric terminal for sending the described coupling pushing video that describedsecond acquisition unit 33 gets.
Further, as shown in Figure 4, described the first acquiringunit 32, comprising: the first acquisition module 321 and first is searched module 322.
The first acquisition module 321, for obtaining the terminal type of described electric terminal.
First searches module 322, for looking for the pre-configured corresponding video code rate of the terminal type getting with described acquisition module of described electric terminal.
Further, as shown in Figure 5, describedsecond acquisition unit 33, comprising: the second acquisition module 331 and second is searched module 332.
The second acquisition module 331, for the identification information comprising according to described video push instruction, obtains video flowing set.
Second searches module 332, in described video flowing set, Search and acquirement to video code rate match treat pushing video stream.
Further, described second searches module 332, also for obtaining the system platform attribute information of described electric terminal; In described video flowing set, Search and acquirement to video code rate match, and treat pushing video stream with the system platform attribute information getting matches.
Further, described second searches module 332, also, for according to the system platform attribute information getting, determines the video format that described electric terminal is applicable; In described video flowing set, Search and acquirement to video code rate match, and with according to the definite video format of described system platform attribute information, match treat pushing video stream.
It should be noted that, in the server that the embodiment of the present invention provides, the specific descriptions of part functional module can be with reference to the corresponding content in the inventive method embodiment, and the present embodiment is no longer described in detail here.
The server that the embodiment of the present invention provides, can receive the video push instruction from electric terminal, comprises the identification information for the treatment of pushing video stream in video push instruction; Receiving after video push instruction, be retrieved as the pre-configured video code rate of electric terminal; According to the identification information comprising in video push instruction, obtain and mate pushing video stream, coupling pushing video stream is that the pushing video for the treatment of matching with the video code rate getting flows; Send coupling pushing video and flow to electric terminal.
Compared with can not guaranteeing the normal play of video flowing in prior art, pass through this programme, server can be that different electric terminals pushes the video code rate pre-configured with being each electric terminal to the video flowing mating, can avoid resource limitation due to electric terminal (as, the bandwidth resources of electronic equipment are limited), cause the problem that electric terminal can not normal play video.
Through the above description of the embodiments, those skilled in the art can be well understood to, for convenience and simplicity of description, only with the division of above-mentioned each functional module, be illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device be divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example multiple unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a computer read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.