Embodiment
Further specify the technical scheme of the embodiment of the invention below in conjunction with the drawings and specific embodiments.
Fig. 1 is the schematic flow sheet of multimachine bit stream media playing method embodiment one of the present invention.As shown in Figure 1, multimachine bit stream media playing method embodiment one provided by the invention may further comprise the steps:
Step 101 is obtained the Streaming Media compressed bit stream of the different seats in the plane of multichannel simultaneously; The Streaming Media compressed bit stream of different seats in the plane, every road comprises the subcode stream of the different code checks of multichannel.
The corresponding Streaming Media that the seat in the plane obtains of every road Streaming Media compressed bit stream, the subcode stream of the different code checks of the multichannel that comprises in the Streaming Media compressed bit stream of every road, be that same Streaming Media (can be audio/video flow) is carried out the video resolution multichannel subcode stream different with code check that compressed encoding obtains, wherein, the video resolution of code stream is high more, and then this code stream corresponding code rate is just high more.
Step 102 according to broadcast switching request, selects a way code stream to send as code stream to be broadcast from the subcode stream of the different code checks of multichannel of the Streaming Media compressed bit stream of different seats in the plane, every road.
In the multichannel subcode stream from the Streaming Media compressed bit stream of every road, a way code stream of selecting code check to meet broadcast switching request sends as code stream to be broadcast, this is waited the Streaming Media picture of broadcasting the code stream correspondence plays back, promptly the Streaming Media picture of all Streaming Media compressed bit stream correspondences plays back simultaneously, the code check of the subcode stream of key frame correspondence is higher, and the code check of the subcode stream that other non-key frame (promptly browsing picture) is corresponding is lower; The height of wherein waiting to broadcast the code stream code check mainly decides by the size of the network bandwidth with to the requirement of video definition, when the network bandwidth is big, under the prerequisite that does not influence broadcasting speed, each code check of waiting to broadcast code stream can be all than higher, to reach the higher definition of Streaming Media picture, when the network bandwidth hour, each code check of waiting to broadcast code stream can be all relatively low, to guarantee the broadcast of each Streaming Media picture smoothness.
The multimachine bit stream media playing method that the embodiment of the invention provides, the stream media code stream boil down to that each seat in the plane is obtained comprises the Streaming Media compressed bit stream of the subcode stream of the different code checks of multichannel, and select corresponding Streaming Media compressed bit stream as treating the broadcasting flow-medium code stream according to broadcast switching request, make the user can see the Streaming Media picture that a plurality of seats in the plane obtain simultaneously, and therefrom freely select key frame according to demand.
Fig. 2 is the schematic flow sheet of multimachine bit stream media playing method embodiment two of the present invention.As shown in Figure 2, multimachine bit stream media playing method embodiment two provided by the invention may further comprise the steps:
Step 201 is obtained the Streaming Media compressed bit stream of the different seats in the plane of multichannel simultaneously; The Streaming Media compressed bit stream of different seats in the plane, every road comprises the subcode stream of the different code checks of multichannel.
In the streaming media playing scene, there are a plurality of video cameras (being the multimachine position) that are positioned at different azimuth that the scene of playing is taken, obtain the stream media code stream of the different seats in the plane of multichannel thus, every road stream media code stream in the stream media code stream of the different seats in the plane of this multichannel is carried out compressed encoding, obtain comprising the Streaming Media compressed bit stream of the subcode stream of the different code checks of multichannel.
The corresponding Streaming Media that the seat in the plane obtains of every road Streaming Media compressed bit stream, every road Streaming Media compressed bit stream is numbered, the subcode stream of the different code checks of the multichannel that comprises in the Streaming Media compressed bit stream of every road, be that same Streaming Media is carried out the video resolution multichannel subcode stream different with code check that compressed encoding obtains, wherein, according to the numbering of the Streaming Media compressed bit stream under every way code stream and the code check of this subcode stream, can generate the unique characterising parameter of every way code stream.
Provide a plurality of Streaming Media pictures to play on terminal in the embodiment of the invention, wherein, resolution is the highest, picture is maximum, and the picture of normally watching as the user is a key frame; Other picture of non-key frame is for browsing picture, and the resolution of browsing picture is lower, picture is less, can only browse for the user.When the user browses a plurality of Streaming Media picture at the same time, can freely select a Streaming Media picture as key frame,, just send broadcast switching request, carry out the switching of key frame broadcast when Streaming Media picture of selection during as key frame according to hobby.In addition, before the user selects key frame, the Streaming Media picture of playing can be a key frame and other a plurality of pictures of browsing by the automatic appointment of system, the Streaming Media picture of playing also can be to have only a plurality ofly to browse picture and do not have key frame, after the user selects key frame, can also carry out repeatedly the selection of key frame by sending broadcast switching request.
Concrete, according to the content difference that comprises, broadcast switching request can be divided into two kinds.A kind of situation is: broadcast switching request comprises that key frame waits to broadcast the code stream characterising parameter and browse picture and wait to broadcast the code stream characterising parameter; Another kind of situation is: broadcast switching request comprises that key frame waits to broadcast the code stream characterising parameter, browses picture and wait to broadcast the code stream characterising parameter and play parameter switching time.Wherein, key frame is waited to broadcast in the code stream characterising parameter and is specifically as follows: as the sign of waiting to broadcast code stream that key frame is play, promptly this waits to broadcast the numbering of the affiliated Streaming Media compressed bit stream of code stream, and this waits to broadcast the code check of code stream; Browsing picture waits to broadcast in the code stream characterising parameter and be specifically as follows: as browsing the sign of waiting to broadcast code stream that picture is play, promptly this waits to broadcast the numbering of the Streaming Media compressed bit stream under the code stream, and this waits to broadcast the code check of code stream.
When broadcast switching request comprises that key frame waits to broadcast the code stream characterising parameter and when browsing picture and waiting to broadcast the code stream characterising parameter, after thestep 201 of present embodiment, further comprising the steps of:
Step 202, wait to broadcast code stream characterising parameter (promptly waiting to broadcast the numbering of the Streaming Media compressed bit stream under the code stream and the code check that this key frame waits to broadcast code stream) according to the key frame of broadcast switching request according to this key frame, the subcode stream of the different code checks of the multichannel of road Streaming Media compressed bit stream under key frame waits to broadcast code stream, select to wait to broadcast the consistent subcode stream of the code check described in the code stream characterising parameter as key frame code stream to be broadcast with key frame.
Step 203, the key frame that forwardingstep 202 obtains code stream to be broadcast.
Step 204, the key frame that thestep 203 that receives is sent is waited to broadcast code stream and is play as key frame.
The key frame that receives code stream to be broadcast is resolved, obtain corresponding audio-video code stream, and play as key frame.
Step 202 ', the picture of browsing according to broadcast switching request waits to broadcast code stream characterising parameter (promptly browse according to this picture waits to broadcast the numbering of the Streaming Media compressed bit stream under the code stream and this browses the code check that picture waits to broadcast code stream), in the subcode stream of the different code checks of multichannel the road Streaming Media compressed bit stream under browsing picture, select and browse picture and wait to broadcast the consistent subcode stream of the code check described in the code stream characterising parameter as browsing picture code stream to be broadcast.
Step 203 ', forwarding step 202 ' obtains browses picture code stream to be broadcast.
Step 204 ', extract receive step 203 ' sends browses picture and waits to broadcast video code flow in the code stream, and this video code flow is play as browsing picture.
When receive browse picture and wait to broadcast code stream after, the video code flow that can only extract is wherein play, and does not process for wherein audio code stream.When many pictures are play, do not have audio frequency in order to guarantee normal streaming media playing and to watch, browse can have only video in the picture, promptly the user can only hear key frame corresponding audio information.Certainly, other implementation can be arranged also, for example,, play the picture corresponding audio information that the user selects according to user's selection.
Wherein,step 202 and step 202 ' there is not sequencing, carry out simultaneously.
The multimachine bit stream media playing method that the embodiment of the invention provides, can be applied in TV or the network direct broadcasting system, the stream media code stream boil down to that each seat in the plane is obtained comprises the Streaming Media compressed bit stream of the subcode stream of the different code checks of multichannel, and according to broadcast switching request information, select corresponding Streaming Media compressed bit stream as treating the broadcasting flow-medium code stream, make the user can see the Streaming Media picture that a plurality of seats in the plane obtain simultaneously, and by sending broadcast switching request information, realize the key frame in a plurality of Streaming Media pictures and browse switching between the picture, realized that thus the user can freely select the Streaming Media picture of multimachine bit stream media play.
Fig. 3 is the schematic flow sheet of multimachine bit stream media playing method embodiment three of the present invention.As shown in Figure 3, multimachine bit stream media playing method embodiment three provided by the invention is with the difference of the foregoing description two, in the present embodiment, broadcast switching request comprises that key frame waits to broadcast the code stream characterising parameter, browses picture and wait to broadcast the code stream characterising parameter and play switching time during parameter.
Step 301 is obtained the Streaming Media compressed bit stream of the different seats in the plane of multichannel simultaneously; The Streaming Media compressed bit stream of different seats in the plane, every road comprises the subcode stream of the different code checks of multichannel.
Step 302, wait to broadcast the code stream characterising parameter according to the key frame of broadcast switching request, the subcode stream of the different code checks of the multichannel of road Streaming Media compressed bit stream under key frame waits to broadcast code stream, select to wait to broadcast the consistent subcode stream of the code check described in the code stream characterising parameter as key frame code stream to be broadcast with key frame.
Step 303, according to broadcast parameter switching time of broadcast switching request, the key frame that obtains fromstep 302 is waited to broadcast the index of code stream and is searched the position that begins to play, and the position that begins to play from finding sends this key frame code stream to be broadcast then.
Wherein, play when switching time, parameter was switched broadcasting pictures for request moment corresponding in the in progress Streaming Media; From the index of waiting to broadcast code stream, find the position that begins to play by playing the switching time parameter, guaranteed broadcasting pictures in time continuity before and after switching.
Step 304, the key frame that thestep 303 that receives is sent is waited to broadcast code stream and is play as key frame.
Step 302 ', the picture of browsing according to broadcast switching request waits to broadcast the code stream characterising parameter, wait to broadcast the subcode stream of the different code checks of multichannel of road Streaming Media compressed bit stream under the code stream from browsing picture, select and browse picture and wait to broadcast the consistent subcode stream of the code check described in the code stream characterising parameter as browsing picture code stream to be broadcast.
Step 303 ', according to broadcast parameter switching time of broadcast switching request, from step 302 ' obtains browses picture and waits to broadcast the index of code stream and search the position that begins to play, and the position that begins to play from finding sends this and browses picture code stream to be broadcast then.
Step 304 ', extract receive step 303 ' sends browses picture and waits to broadcast video code flow in the code stream, and this video code flow is play as browsing picture.
Wherein,step 302 and step 302 ' there is not sequencing, carry out simultaneously.
Same or analogous part repeats no more among the embodiment of the invention and the above-mentioned multimachine bit stream media playing method embodiment two, sees also the description among the multimachine bit stream media playing method embodiment two.The multimachine bit stream media playing method that the embodiment of the invention provides, except beneficial effect with multimachine bit stream media playing method embodiment two, can also be applied in the time shifting broadcasting system, owing in broadcast switching request, increased broadcast parameter switching time, guaranteed image switching continuity in time in the time shifting broadcasting system.
Fig. 4 is the schematic flow sheet of multimachine bit stream media transmitting method embodiment one of the present invention.As shown in Figure 4, multimachine bit stream media transmitting method embodiment one provided by the invention may further comprise the steps:
Step 401, the stream media code stream of the different seats in the plane of reception multichannel.
In the streaming media playing scene, the a plurality of video cameras that are positioned at different azimuth are taken the scene of playing simultaneously, obtain the stream media code stream of the different seats in the plane of multichannel, each video camera sends the stream media code stream that gets access to, and the Streaming Media encoder receives the stream media code stream of the different seats in the plane of this multichannel.
Step 402 comprises the every road stream media code stream boil down to that receives the Streaming Media compressed bit stream of the different code check subcode streams of multichannel.
Every road stream media code stream that the Streaming Media encoder will receive carries out compressed encoding, makes stream media code stream corresponding generation in every road comprise the Streaming Media compressed bit stream of the subcode stream of the different code checks of multichannel.
Step 403 sends the Streaming Media compressed bit stream that comprises the different code check subcode streams of multichannel.
The Streaming Media encoder sends to multimachine bit stream media playing apparatus with the Streaming Media compressed bit stream that comprises the different code check subcode streams of multichannel that step 402 generates, for multimachine bit stream media playing apparatus to the multichannel subcode stream in the Streaming Media compressed bit stream of every road select one select after, play all selecteed subcode streams simultaneously.
The multimachine bit stream media transmitting method that the embodiment of the invention provides, the stream media code stream boil down to that the multimachine position is obtained comprises the Streaming Media compressed bit stream of the different code check subcode streams of multichannel, and all subcode streams are sent to multimachine bit stream media playing apparatus, for of the selection of multimachine bit stream media playing apparatus to playing stream media stream, the Streaming Media picture that provides a plurality of seats in the plane to obtain for the user.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Fig. 5 is the structural representation of multimachine bit stream media play system embodiment one of the present invention.As shown in Figure 5, multimachine bit stream media play system embodiment one provided by the invention can comprise: multimachine bit streammedia transmission device 51 and multimachine bit streammedia playing apparatus 53.
Multimachine bit streammedia transmission device 51 comprises:receiver module 511 is used to receive the stream media code stream of the different seats in the plane of multichannel; StreamingMedia coding module 513, the stream media code stream boil down to that is used for different seats in the plane, every road that will receive comprises the Streaming Media compressed bit stream of the different code check subcode streams of multichannel; Sendingmodule 515 is used to send the Streaming Media compressed bit stream that this comprises the different code check subcode streams of multichannel.
Multimachine bit streammedia playing apparatus 53 comprises: StreamingMedia acquisition module 531, be used for obtaining simultaneously the Streaming Media compressed bit stream of the different seats in the plane of multichannel, and the Streaming Media compressed bit stream of different seats in the plane, every road comprises the subcode stream of the different code checks of multichannel; Wait to broadcast andselect module 533, be used for, from the subcode stream of the different code checks of multichannel of the Streaming Media compressed bit stream of different seats in the plane, every road, select a way code stream to send as code stream to be broadcast according to broadcast switching request.
The multimachine bit stream media play system that the embodiment of the invention provides, the stream media code stream boil down to that each seat in the plane is obtained comprises the Streaming Media compressed bit stream of the subcode stream of the different code checks of multichannel, and select a subcode stream conduct in the Streaming Media compressed bit stream of every road to treat the broadcasting flow-medium code stream, make the user can see the Streaming Media picture that a plurality of seats in the plane obtain simultaneously.
Fig. 6 is the structural representation of multimachine bit stream media play system embodiment two of the present invention.As shown in Figure 6, multimachine bit stream media play system embodiment two provided by the invention is on the basis of system embodiment one of the present invention, treating to broadcast selectsmodule 533 to carry out concrete description, and the multimachine bit streammedia playing apparatus 53 in the present embodiment also comprises keyframe playing module 535 and browses picture playingmodule 537.
In the present embodiment, wait to broadcast andselect module 533 further can comprise:
First waits to broadcastrequest analysis unit 5331, is used to resolve the broadcast switching request that receives;
The first key frame selectedcell 5333, be used for waiting to broadcast the code stream characterising parameter according to the key frame of broadcast switching request, from the subcode stream of the different code checks of multichannel of the Streaming Media compressed bit stream of one tunnel different seats in the plane of key frame correspondence, select to wait to broadcast the consistent subcode stream of the code check described in the code stream characterising parameter as key frame code stream to be broadcast with key frame;
The first keyframe transmitting element 5335 is used to send the key frame code stream to be broadcast that the first key frame selectedcell 5333 is selected;
First browses picture and selectingunit 5337, be used for waiting to broadcast the code stream characterising parameter according to the picture of browsing of broadcast switching request, from the subcode stream of the different code checks of multichannel of the Streaming Media compressed bit stream of the different seats in the plane of multichannel of browsing the picture correspondence, select and browse picture and wait to broadcast the consistent subcode stream of the code check described in the code stream characterising parameter as browsing picture code stream to be broadcast;
First browsespicture transmitting element 5339, be used to send first browse that picture and selectingunit 5337 selects browse picture code stream to be broadcast.
In the present embodiment, the key frame that the first keyframe transmitting element 5335 that keyframe playing module 535 is used for receiving sends is waited to broadcast code stream and is play as key frame; Browsepicture playing module 537 be used for extracting receive first browse the video code flow that picture waits to broadcast code stream of browsing thatpicture transmitting element 5339 sends, this video code flow is play as browsing picture.
Introduce system embodiment of the present invention below and carry out the flow process of multimachine bit stream media play.
Different azimuth at the scene of playing is provided with a plurality of video cameras (being the multimachine position), and the Streaming Media picture of the stream media code stream correspondence that each video camera obtains comprises different image contents or different picture angle; Multimachine bit stream media transmission device receives the stream media code stream that is positioned at the different seats in the plane of multichannel that all multi-faceted video cameras send over, and all stream media code streams are carried out compressed encoding is the Streaming Media compressed bit stream that comprises the different code check subcode streams of multichannel; Wherein the Streaming Media coding module in the multimachine bit stream media transmission device can be corresponding one by one with a plurality of video cameras, and when the compressed capability of Streaming Media coding module is strong, also can Streaming Media coding module of a plurality of video cameras correspondences; With the numbering (promptly generating the numbering of the video camera of this road code stream) of the Streaming Media compressed bit stream under each subcode stream and the code check of subcode stream, as the sign of this subcode stream;
Multimachine bit stream media playing apparatus obtains the multi-way stream media compression code stream that above-mentioned multimachine bit stream media transmission device produces, and selects a way code stream to play from the Streaming Media compressed bit stream of every road;
The user can see the Streaming Media picture that each video camera photographs, and according to personal like or demand, sends broadcast switching request, selects the stream media code stream that shows as key frame from a plurality of Streaming Media pictures;
After multimachine bit stream media playing apparatus receives broadcast switching request, according in this broadcast switching request to the descriptor of the subcode stream of key frame correspondence, find the subcode stream that meets request, and this subcode stream play as key frame; Simultaneously, multimachine bit stream media playing apparatus according in this broadcast switching request to the descriptor of the subcode stream of browsing the picture correspondence, find the subcode stream that meets request, and extract the video code flow of this subcode stream, this video code flow is play as browsing picture; Wherein in front and back that key frame switches, the broadcast state of some Streaming Media picture is that constant (being some Streaming Media picture all plays as browsing picture in the front and back that key frame switches, and code check is constant), at this moment, just need not in the playing request information to comprise the descriptor of switching front and back about these Streaming Media pictures, promptly need not these Streaming Media pictures are switched.
The multimachine bit stream media play system that the embodiment of the invention provides, can be applied in TV or the network direct broadcasting system, the stream media code stream boil down to that each seat in the plane is obtained comprises the Streaming Media compressed bit stream of the subcode stream of the different code checks of multichannel, and according to broadcast switching request information, select corresponding Streaming Media compressed bit stream as treating the broadcasting flow-medium code stream, make the user can see the Streaming Media picture that a plurality of seats in the plane obtain simultaneously, and by sending broadcast switching request information, realize the key frame in a plurality of Streaming Media pictures and browse switching between the picture, realized that thus the user can freely select the Streaming Media picture of multimachine bit stream media play.
Fig. 7 is the structural representation of multimachine bit stream media play system embodiment three of the present invention.As shown in Figure 7, multimachine bit stream media play system embodiment three provided by the invention is with the difference of system embodiment two of the present invention, multimachine bit stream media playing apparatus 53 ' comprises Streaming Media acquisition module 531 ' and waits to broadcast selection module 533 ' in the present embodiment, wherein Streaming Media acquisition module 531 ' is identical with StreamingMedia acquisition module 531, waits to broadcast and selects module 533 ' to comprise:
Second waits to broadcast request analysis unit 5331 ', is used to resolve the broadcast switching request that receives;
The second key frame selected cell 5333 ', be used for waiting to broadcast the code stream characterising parameter according to the key frame of broadcast switching request, from the subcode stream of the different code checks of multichannel of the Streaming Media compressed bit stream of one tunnel different seats in the plane of key frame correspondence, select to wait to broadcast the consistent subcode stream of the code check described in the code stream characterising parameter as key frame code stream to be broadcast with key frame;
The second key frame transmitting element 5335 ', be used for broadcast parameter switching time according to broadcast switching request, the key frame of selecting since the second key frame selected cell 5333 ' is waited to broadcast in the index of code stream and is searched the position of playing, the position that begins to play from finding sends this key frame code stream to be broadcast then;
Second browses picture and selecting unit 5337 ', be used for waiting to broadcast the code stream characterising parameter according to the picture of browsing of broadcast switching request, from the subcode stream of the different code checks of multichannel of the Streaming Media compressed bit stream of the described different seats in the plane of multichannel of browsing the picture correspondence, select and browse picture and wait to broadcast the consistent subcode stream of the code check described in the code stream characterising parameter as browsing picture code stream to be broadcast;
Second browses picture transmitting element 5339 ', be used for broadcast parameter switching time according to broadcast switching request, wait to broadcast in the index of code stream and search the position of playing since second picture of browsing of browsing that picture and selecting unit 5337 ' selects, the position that begins to play from finding sends this and browses picture code stream to be broadcast then.
Same or analogous part repeats no more among the embodiment of the invention and the above-mentioned multimachine bit stream media play system embodiment two, sees also the description among the multimachine bit stream media play system embodiment two.The multimachine bit stream media play system that the embodiment of the invention provides, except beneficial effect with multimachine bit stream media play system embodiment two, can also be applied in the time shifting broadcasting system, owing in broadcast switching request, increased broadcast parameter switching time, guaranteed image switching continuity in time in the time shifting broadcasting system.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.