The content of the invention
The present invention provides a kind of method and device of the net cast of multiple video strems, to be spliced will regard according to defaultThe normal video parameter information of frequency stream carries out the multi-path video stream after transcoding, is spliced in same real-time video flowing, i.e.,The video pictures of multi-path video stream are played in same video pictures in default mode.
A kind of first aspect according to embodiments of the present invention, there is provided method of the net cast of multiple video strems, for terminal,Including:
Obtain the video flowing of the video flowing and real-time play of captured in real-time;
Analyze the Video parameter information of the video flowing of the video flowing and the real-time play of the captured in real-time, the videoParameter information includes any one of video format and video parameter or many persons;
According to the normal video parameter information of default video flowing to be spliced, video flowing to the captured in real-time and describedThe video flowing of real-time play carries out transcoding;
The video flowing of the captured in real-time after by transcoding is with the video stream splicing of the real-time play to same videoIn stream, confirm that the same video flowing is video flowing to be uploaded;
The video flowing to be uploaded is uploaded to into default direct broadcast server.
In one embodiment, the video flowing of the video flowing and the real-time play of the analysis captured in real-time is regardedFrequency parameter information, the Video parameter information include any one of video format and video parameter or many persons, including:
Analyze the video format of the video flowing of the video flowing and the real-time play of the captured in real-time, the video formatIncluding any one of stream media protocol, video encapsulation form and video compression format or many persons;
Analyze the video parameter of the video flowing of the video flowing and the real-time play of the captured in real-time, the video parameterIncluding any one of video resolution, video frame rate and video stream bit rate or many persons.
In one embodiment, the normal video parameter information according to default video flowing to be spliced, to the realityWhen the video flowing that shoots and the video flowing of the real-time play carry out transcoding, including:
According to the video format of the default video flowing to be spliced, video flowing to the captured in real-time and it is described in real timeThe video flowing of broadcasting carries out transcoding;
According to the video parameter of the default video flowing to be spliced, video flowing to the captured in real-time and it is described in real timeThe video flowing of broadcasting carries out transcoding.
In one embodiment, it is described by transcoding after the captured in real-time video flowing and the real-time play videoStream is spliced in same video flowing, confirms that the same video flowing is video flowing to be uploaded, including:
The video flowing of the captured in real-time after by transcoding is spelled according to default layout with the video flowing of the real-time playBe connected in same video flowing, the content of corresponding video flowing is played in the regional of video clip;Or
The video flowing of the captured in real-time after by transcoding is with the video flowing of the real-time play according to default transparencyIt is spliced in same video flowing, the content of each video flowing is carried out into overlap in video clip and is shown.
In one embodiment, also include:
The video flowing to be uploaded is played in real time.
A kind of second aspect according to embodiments of the present invention, there is provided device of the net cast of multiple video strems, for terminal,Including:
Acquisition module, for obtaining the video flowing of the video flowing and real-time play of captured in real-time;
Analysis module, for analyzing the video parameter of the video flowing of the video flowing and the real-time play of the captured in real-timeInformation, the Video parameter information include any one of video format and video parameter or many persons;
Transcoding module, for the normal video parameter information according to default video flowing to be spliced, to the captured in real-timeVideo flowing and the video flowing of the real-time play carry out transcoding;
Confirm module, for the video stream splicing of video flowing and the real-time play of the captured in real-time after by transcodingTo in same video flowing, confirm that the same video flowing is video flowing to be uploaded;
Upper transmission module, for the video flowing to be uploaded is uploaded to default direct broadcast server.
In one embodiment, the analysis module, including:
First analysis submodule, for analyzing regarding for the video flowing of the video flowing and the real-time play of the captured in real-timeFrequency form, the video format include any one of stream media protocol, video encapsulation form and video compression format or many persons;
Second analysis submodule, for analyzing regarding for the video flowing of the video flowing and the real-time play of the captured in real-timeFrequency parameter, the video parameter include any one of video resolution, video frame rate and video stream bit rate or many persons.
In one embodiment, the transcoding module, including:
First transcoding submodule, for the video format according to the default video flowing to be spliced, to the real-time batThe video flowing taken the photograph and the video flowing of the real-time play carry out transcoding;
Second transcoding submodule, for the video parameter according to the default video flowing to be spliced, to the real-time batThe video flowing taken the photograph and the video flowing of the real-time play carry out transcoding.
In one embodiment, the confirmation module, including:
First splicing submodule, for the video of video flowing and the real-time play of the captured in real-time after by transcodingStream is spliced in same video flowing according to default layout, is played in corresponding video flowing in the regional of video clipHold;
Second splicing submodule, for the video of video flowing and the real-time play of the captured in real-time after by transcodingStream is spliced in same video flowing according to default transparency, and the content of each video flowing is overlapped in video clipShow.
In one embodiment, also include:
Playing module, for playing the video flowing to be uploaded in real time.
Other features and advantages of the present invention will be illustrated in the following description, also, partly be become from descriptionObtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations writeIn book, claims and accompanying drawing, specifically noted structure is realizing and obtain.
Below by drawings and Examples, technical scheme is described in further detail.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described hereinApply example and be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is a kind of method flow diagram of the net cast of the multiple video strems according to an exemplary embodiment, such as Fig. 1Shown, the method for the net cast of the multiple video strems comprises the following steps S11-S15:
In step s 11, obtain the video flowing of the video flowing and real-time play of captured in real-time;
In step s 12, analyze the video parameter of the video flowing of the video flowing and the real-time play of the captured in real-timeInformation, the Video parameter information include any one of video format and video parameter or many persons;
In step s 13, according to the normal video parameter information of default video flowing to be spliced, to the captured in real-timeThe video flowing of video flowing and the real-time play carries out transcoding;
In step S14, by transcoding after the captured in real-time video flowing and the real-time play video stream splicingTo in same video flowing, confirm that the same video flowing is video flowing to be uploaded;
In step S15, the video flowing to be uploaded is uploaded to into default direct broadcast server.
In one embodiment, with the lifting and the popularization of internet video live broadcasting of network speed, people's viewing Internet video is straightThe living habit broadcast gradually is replacing people to watch the living habit of TV.In the program of some videos main broadcaster, Jing is normalImitation show can be carried out, the effect of amusement is reached by the imitation of main broadcaster's vivid and interesting.But it is imitated for not seenFor the spectators of former video, main broadcaster carries out the effect of imitation show will reduce a lot.Technical scheme in the present embodiment can be appropriateSolve the above problems.
Detailed step is as follows, obtains the video flowing of the video flowing and real-time play of captured in real-time.
The Video parameter information of the video flowing of the captured in real-time and the video flowing of the real-time play is analyzed, the video parameter is believedBreath includes any one of video format and video parameter or many persons.Further, analyze the video flowing of the captured in real-time and be somebody's turn to doThe video format of the video flowing of real-time play, the video format include stream media protocol, video encapsulation form and video compress latticeAny one of formula or many persons.The video parameter of the video flowing of the captured in real-time and the video flowing of the real-time play is analyzed, this regardsFrequency parameter includes any one of video resolution, video frame rate and video stream bit rate or many persons.
It is according to the normal video parameter information of default video flowing to be spliced, real-time to the video flowing and this of the captured in real-timeThe video flowing of broadcasting carries out transcoding.Further, according to the video format of the default video flowing to be spliced, to the captured in real-timeVideo flowing and the video flowing of the real-time play carry out transcoding.According to the video parameter of the default video flowing to be spliced, to thisThe video flowing of captured in real-time and the video flowing of the real-time play carry out transcoding.
By the video stream splicing of the video flowing of the captured in real-time after transcoding and the real-time play in same video flowing,Confirm that the same video flowing is video flowing to be uploaded.By regarding for the video flowing of the captured in real-time after transcoding and the real-time playFrequency stream is spliced in same video flowing according to default layout, plays corresponding video flowing in the regional of video clipContent;Or the video flowing by the video flowing of the captured in real-time after transcoding with the real-time play splices according to default transparencyTo in same video flowing, the content of each video flowing is carried out into overlap in video clip and is shown.
The video flowing to be uploaded is uploaded to into default direct broadcast server.
In addition, the video flowing to be uploaded can be also played in real time.
Technical scheme in the present embodiment will can be carried out according to the normal video parameter information of default video flowing to be splicedMulti-path video stream after transcoding, is spliced in same real-time video flowing, will multi-path video stream video pictures with pre-If mode play in same video pictures, it is achieved thereby that the broadcasting content of real time contrast's multi-path video stream technology effectReally.
In one embodiment, as shown in Fig. 2 step S12 comprises the steps S21-S22:
In the step s 21, the video format of the video flowing of the video flowing and the real-time play of the captured in real-time is analyzed,The video format includes any one of stream media protocol, video encapsulation form and video compression format or many persons;
In step S22, the video parameter of the video flowing of the video flowing and the real-time play of the captured in real-time is analyzed,The video parameter includes any one of video resolution, video frame rate and video stream bit rate or many persons.
In one embodiment, analyze the video parameter of the video flowing of the captured in real-time and the video flowing of the real-time playInformation, the parameter information include any one of video format and video parameter or many persons, and wherein video format is related to the realityWhen the various agreements that adopted of the video flowing that shoots and the real-time play, the video parameter is related to the video flowing of the captured in real-timeWith the viewing quality of the real-time play.Further, the video format includes stream media protocol, video encapsulation form and video pressureAny one of contracting form or many persons;The video parameter includes arbitrary in video resolution, video frame rate and video stream bit ratePerson or many persons.
In one embodiment, as shown in figure 3, step S13 comprises the steps S31-S32:
In step S31, according to the video format of the default video flowing to be spliced, the video to the captured in real-timeThe video flowing of stream and the real-time play carries out transcoding;
In step s 32, according to the video parameter of the default video flowing to be spliced, the video to the captured in real-timeThe video flowing of stream and the real-time play carries out transcoding.
In one embodiment, due to the captured in real-time video flowing and the real-time play video flowing itself Streaming MediaAny one of agreement, video encapsulation form and video compression format or many persons do not meet the video of default video flowing to be splicedForm, so needing to the video flowing of the captured in real-time with the video flowing of the real-time play according to default video flowing to be splicedVideo format carries out transcoding.Due to resolution, the video of the video flowing itself of the video flowing and the real-time play of the captured in real-timeThe numerical value of any one of frame number and video stream bit rate or many persons is excessive or too small, so needing the video flowing to the captured in real-timeTranscoding is carried out according to the video parameter of default video flowing to be spliced with the video flowing of the real-time play.
In one embodiment, as shown in figure 4, step S14 comprises the steps S41-S42:
In step S41, by transcoding after the video flowing of the captured in real-time and the video flowing of the real-time play according toDefault layout is spliced in same video flowing, plays the content of corresponding video flowing in the regional of video clip;OrPerson
In step S42, by transcoding after the video flowing of the captured in real-time and the video flowing of the real-time play according toDefault transparency is spliced in same video flowing, the content of each video flowing is carried out overlap in video clip and is shown.
In one embodiment, in the present embodiment with the video flowing of captured in real-time all the way and the video of real-time play all the wayAs a example by stream, when the technical scheme in this book embodiment may apply to regarding for the video flowing and m roads real-time play of n roads captured in real-timeFrequently.The technical scheme one of video-splicing:By the video flowing of the video flowing of the captured in real-time and the real-time play according to default clothOffice is spliced in same video flowing, wherein default layout includes left-right layout, top-bottom layout and oblique upper tiltedly lower layout etc.,Default layout in the present embodiment also includes that other can form the layout type of notable contrast effect.The technology of video-splicingScheme two:The transparency of the video flowing of the captured in real-time is set to into x%, the transparency of the video flowing of the real-time play is arrangedFor y%, by transparency for the captured in real-time of x% video flowing and transparency for the real-time play of y% video flowing sameOverlap is carried out in one video clip to show.Confirm that the above-mentioned same video flowing is video flowing to be uploaded.
In one embodiment, as shown in figure 5, also comprising the steps S51:
In step s 51, the video flowing to be uploaded is played in real time.
In one embodiment, voice data and video data after the decompression of the video flowing to be uploaded are obtained, then it is rightVoice data and video data after decompression this synchronize after, so that it may directly broadcast by the player of the net cast of terminalPut the voice data and video data.
In one embodiment, Fig. 6 is a kind of net cast of the multiple video strems according to an exemplary embodimentDevice block diagram.As Fig. 6 shows, the device is used for terminal, including acquisition module 61, analysis module 62, transcoding module 63, confirmation module64 and upper transmission module 65.
The acquisition module 61, for obtaining the video flowing of the video flowing and real-time play of captured in real-time;
The analysis module 62, for analyzing the video of the video flowing of the video flowing and the real-time play of the captured in real-timeParameter information, the Video parameter information include any one of video format and video parameter or many persons;
The transcoding module 63, for the normal video parameter information according to default video flowing to be spliced, to described real-timeThe video flowing of the video flowing of shooting and the real-time play carries out transcoding;
The confirmation module 64, for the video flowing of video flowing and the real-time play of the captured in real-time after by transcodingIt is spliced in same video flowing, confirms that the same video flowing is video flowing to be uploaded;
Transmission module 65 on this, for the video flowing to be uploaded is uploaded to default direct broadcast server.
As shown in fig. 7, the analysis module 62 includes the first analysis submodule 71 and the second analysis submodule 72.
The first analysis submodule 71, for analyzing the video flowing of the video flowing and the real-time play of the captured in real-timeVideo format, the video format include any one of stream media protocol, video encapsulation form and video compression format orMany persons;
The second analysis submodule 72, for analyzing the video flowing of the video flowing and the real-time play of the captured in real-timeVideo parameter, the video parameter includes any one of video resolution, video frame rate and video stream bit rate or many persons.
As shown in figure 8, the transcoding module 63 includes the first transcoding submodule 81 and the second transcoding submodule 82.
The first transcoding submodule 81, for the video format according to the default video flowing to be spliced, to the realityWhen the video flowing that shoots and the video flowing of the real-time play carry out transcoding;
The second transcoding submodule 82, for the video parameter according to the default video flowing to be spliced, to the realityWhen the video flowing that shoots and the video flowing of the real-time play carry out transcoding.
As shown in figure 9, the confirmation module 64 includes the first splicing submodule 91 and the second splicing submodule 92.
The first splicing submodule 91, for the video flowing and the real-time play of the captured in real-time after by transcodingVideo flowing is spliced in same video flowing according to default layout, plays corresponding video flowing in the regional of video clipContent;
The second splicing submodule 92, for the video flowing and the real-time play of the captured in real-time after by transcodingVideo flowing is spliced in same video flowing according to default transparency, and the content of each video flowing is carried out in video clipOverlap and show.
As shown in Figure 10, also including playing module 101.
The playing module 101, for playing the video flowing to be uploaded in real time.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer programProduct.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardwareApply the form of example.And, the present invention can be using the computer for wherein including computer usable program code at one or moreThe shape of the computer program implemented in usable storage medium (including but not limited to disk memory and optical memory etc.)Formula.
The present invention be with reference to method according to embodiments of the present invention, equipment (system), and computer program flow processFigure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagramThe combination of journey and/or square frame and flow chart and/or flow process and/or square frame in block diagram.These computer programs can be providedThe processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produceA raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devicesThe device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring toMake the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram orThe function of specifying in multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing devices so that in meterSeries of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer orThe instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram oneThe step of function of specifying in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present inventionGod and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologiesWithin, then the present invention is also intended to comprising these changes and modification.