Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail:
Embodiment one, the method that a kind of program provides, and flow chart comprises as shown in Figure 1:
A1, network equipment receives the program request that user side equipment sends;
When specific embodiment, can comprise before the steps A 1:
The user side equipment access network, application server AS is carried out authentication to user side equipment, and specifies the address of electronic program guide (EPG) server;
User side equipment is visited this EPG server according to the address of described EPG server, and obtains programme information from this EPG server;
User side equipment sends program request according to the programme information that obtains from the EPG server to network equipment.
Described programme information comprises: information such as the summary of programme content or duration; Described network equipment comprises media device; Described user side equipment comprises equipment such as television set, set-top box.
A2 obtains program stream according to described program request from program source;
In the specific implementation, can comprise before the steps A 2:
Network equipment can be checked the program request of user side equipment for example check whether the program of request can obtain, and checks perhaps whether the current disposal ability of network side can provide this program, if check by carrying out A2.
A3 obtains program format information;
In real time concrete, network equipment can obtain program format information from the information of its reception; Also can from the local information of preserving of network equipment, obtain program format information, the program format information that the user side equipment that this program format information provides when registering for user side equipment is supported.
A4 carries out format conversion according to the program format information of obtaining to described program stream;
Described format conversion comprises: to program stream encode, format conversion such as resolution, frame frequency or captions, be understandable that the conversion that program stream is carried out concrete form does not constitute the restriction to the embodiment of the invention.
Network equipment carries out format conversion to the program stream that obtains in the present embodiment, and user side equipment receives that need not to carry out format conversion behind the program stream can carry out the broadcast of program.
A5 sends to user side equipment with the program stream after the conversion.
In an embodiment of the present invention, the characteristics that the relative user side equipment of side apparatus quantity Network Based is few, favorable expandability, hardware capabilities strong, software is easy to upgrade expansion, the upgrade of network side apparatus also carries out format conversion by network equipment to program stream, thus user side equipment need not to carry out format conversion can be to the program stream normal play that receives.
When the program stream format of obtaining from program source is that user side equipment can not be supported, need not existing user side equipment is carried out large-scale upgrading, promptly can realize the program format conversion by network equipment, reduced the cost of network upgrade greatly.
Embodiment two, the method that a kind of program provides, and flow chart comprises as shown in Figure 2:
S1, network equipment receives the program request that user side equipment sends, and comprises program format information in the described program request;
The program format information that comprises in the described program request can be the program format information that user side equipment is supported; Or the user is by the program format information that is desirable to provide of user side equipment setting.
For example the program request of the user side equipment transmission of network equipment reception is:
C->S:SETUP?rtsp://example.com/foo/bar/baz.rm?RTSP/1.0
CSeq:302
Transport:RTP/AVP;unicast;client_port=4588-4589
Video-Format:height=720;length=576;fps=30
By an extended message Video-Format, network equipment can be known the resolution and the frame frequency of user side equipment request from the program request that receives.
S2 obtains program stream according to described program request from program source;
S3 obtains program format information from described program request;
S4 carries out format conversion according to described program format information to described program stream;
Described format conversion comprises: to program stream encode, format conversion such as resolution, frame frequency or captions, be understandable that the conversion that program stream is carried out concrete form does not constitute the restriction to the embodiment of the invention.
Be understandable that, may further include before the described step S4:
Whether the program format of judging described user side equipment request is identical with the program stream format of obtaining from program source, if inequality, and execution in step S4 then.
S5 sends to described user side equipment with the program stream after the conversion.
In the present embodiment, comprise the program format information of request in the program request that user side equipment sends, network equipment carries out format conversion according to the format information of user side equipment request to program stream.Even the program stream format of obtaining from program source and the program format of user side equipment request are inconsistent, need not user side equipment is carried out the mass upgrade transformation, user side equipment can be to the program stream normal play that receives.
Embodiment three, the method that a kind of program provides, and flow chart comprises as shown in Figure 3:
T1, network equipment receives the program request that user side equipment sends;
T2 obtains program stream according to described program request from program source;
T3 obtains the program format information that described user side equipment is supported;
User side equipment is meeting carrying capacity information when registration, comprises the program format information that user side equipment is supported in the ability information of carrying, and network equipment is preserved described program format information.
In an embodiment of the present invention, network equipment can obtain the program format information that user side equipment is supported from the information of this locality preservation.
Described program format comprises: the coded format of program, resolution, frame frequency or subtitling format.
T4 carries out format conversion according to the program format information of user side equipment support to described program stream;
T5 sends to described user with the program stream after the conversion.
Embodiment three comprises with embodiment two differences: the program format information that network equipment obtains is to obtain from the information that preserve this locality, need not user side equipment informing network side apparatus, so user side equipment need not to make any change.
Embodiment four, the method that a kind of program provides, and flow chart comprises as shown in Figure 4:
B1, network equipment receives the program request that user side equipment sends;
B2 obtains program stream according to described program request from program source;
B3 sends to user side equipment with the described program stream that obtains;
B4 receives the program format modification request that user side equipment sends, and described program format is revised request and comprised program format information;
After user side equipment is received program stream, if user side equipment is not supported the program stream format received, the program format information inconsistency of program stream format of perhaps receiving and user preset, then send program format to network equipment and revise request, described program format is revised request and is comprised program format information.
Describe for example below:
1, frame frequency is revised in the user side equipment request
The frame frequency of supposing program stream is per second 60 frames, and the display frame frequency of user side equipment is per second 30 frames, then user side equipment in the following manner the informing network side apparatus frame frequency of program stream is carried out transmission again after the conversion.Message format is exemplified below:
C->S:SET_PARAMETER?rtsp://example.com/fizzle/foo?RTSP/1.0
CSeq:421
Content-length:19
Content-type:text/parameters
Framerate:fps=30
By an extended message Framerate, the frame frequency form that the program request that user side equipment sends to network equipment comprises the request modification is per second 30 frames.
2, subtitling format is revised in the user side equipment request
After user side equipment was received the program stream that network equipment sends, if the character set of the captions of not supporting program stream and being adopted, then user side equipment sent the character set of the captions that can support to network equipment.Message format is exemplified below:
C->S:SET_PARAMETER?rtsp://example.com/fizzle/foo?RTSP/1.0
CSeq:421
Content-length:25
Content-type:text/parameters
Subtitle:format=bitmap
By an extended message Subtitle, the subtitling format that the program request that user side equipment sends to network equipment comprises the request modification is a bit diagram.
B5 obtains program format information from program format modification request;
Described program format comprises: coded format, resolution, frame frequency or subtitling format.
B6 revises the program format information of the request modification that comprises in the request program stream that obtains from program source is carried out format conversion according to described program format;
Corresponding to the situation of the conversion of the user side equipment request among above-mentioned steps B4 program stream frame frequency, network equipment can be done following conversion process:
Network equipment extracts the video data through compressed encoding in the program stream, at first the coded video bitstream stream that extracts is analyzed, if organizing, the figure of encoding code stream comprises the B frame in the GOP series, and the frame frequency after the B frame directly abandoned can satisfy the requirement that reduces frame frequency, because abandoning the B frame does not influence decoding, network equipment sends to user side equipment after the B frame in the original video encoding code stream is filtered; If do not comprise the B frame in the GOP series of encoding code stream or the B number of frames is less, then need the I frame in the video coding code stream and P frame decoded and revert to original image, the encoding code stream that extracts pairing image recompile of suitable P frame and original I frame again sends to user side equipment together, and the output of user side equipment direct decoding is exactly the image that frame frequency is lowered like this.
Corresponding to the situation that the captions conversion is carried out in user side equipment request among the above-mentioned steps B4, network equipment can be done following conversion process:
Network equipment extracts the caption stream in the program stream, character conversion is become bit diagram Bitmap and encodes, and the bit diagram behind the coding and audio stream, video flowing is multiplexed into together send again; Perhaps to the coded video bitstream stream acquisition original image of decoding, caption information is embedded into sends again after encoding again in the original image.
Carry out the description of frame frequency and subtitling format conversion at above network equipment, it will be appreciated by those skilled in the art that described conversion can also have multiple mode to realize, concrete mapping mode is not construed as limiting the invention.
B7 sends to user side equipment with the program stream after the format conversion.
Described frame frequency and subtitling format conversion for example though implement four, those skilled in the art describes the embodiment that can know format conversion such as comprising coded format conversion, conversion of resolution for example according to these.
Embodiment four comprises with the difference of embodiment two, embodiment three: network equipment does not carry out format conversion to it earlier after obtaining program stream, but program stream is sent to user side equipment, if user side equipment is not supported the program stream format received, program stream format of perhaps receiving and user are by the program format information inconsistency that is desirable to provide of user side equipment setting, then send program format to network equipment and revise request, described program format is revised request and is comprised the program format information that request is revised.
Though the defined IPTV framework of each normal structure is some difference a little, but network equipment generally includes media device, media device comprises the program stream processing of program format conversion, and program stream is distributed, and illustrates below by embodiment five.
Embodiment five, a kind of media device 500, and the logical construction schematic diagram comprises as shown in Figure 5: receiving element 510, program acquisition unit 520, program format information acquisition unit 530, format conversion control unit 540 and program transmitting element 550.
Receiving element 510 receives the program request that user side equipment sends;
Program acquisition unit 520 obtains program stream and offers format conversion control unit 540 from program source according to the program request that described receiving element 510 receives;
Program format information acquisition unit 530 is obtained program format information and is offered format conversion control unit 540;
Format conversion control unit 540 carries out format conversion according to program format information to the program stream that program acquisition unit 520 obtains from program source, and notifies the program stream after program transmitting element 540 will be changed to send to user side equipment;
Program transmitting element 550 sends to user side equipment with program stream.
Program format information acquisition unit 530 can be obtained program format information by following three kinds of modes, comprising:
1, comprises program format information in the program request that receiving element 510 receives; Program format information acquisition unit 530 is obtained program format information from the program request of receiving element 510.
2, receiving element 510 receives the program format modification request that user side equipment sends, and program format is revised the program format information that comprises the request modification in the request; Program format information acquisition unit 530 is obtained program format information from the program modification request that receiving element 510 receives.
The program format information that the user side equipment that provides when 3, program format information acquisition unit 530 is obtained the user side equipment registration is supported.
In the present embodiment, 540 pairs of program streams that obtain from program source of format conversion control unit carry out format conversion and include but not limited to following format conversion: coded format conversion, conversion of resolution, frame-rate conversion or subtitling format conversion.
Embodiment six, a kind of user side equipment 600, and the logical construction schematic diagram comprises as shown in Figure 6:
Program request transmitting element 610 sends program request to media device, and described program request comprises the program format of request;
Program stream after the program format information that comprises in the program stream that program receiving element 620, receiving media equipment send, the described program stream program request that to be media device send according to described program request transmitting element 610 is changed.
Embodiment seven, a kind of user side equipment 700, and the logical construction schematic diagram comprises as shown in Figure 7:
Program request transmitting element 710 sends program request to media device;
Program receiving element 720, the program stream that receiving media equipment sends, described program stream are that media device obtains from program source according to the program request that described program request transmitting element 710 sends;
Program format judging unit 730 judges that form that whether program stream format that program receiving element 720 receives is supported with user side equipment or default form are consistent, as inconsistent notice program form modifying request transmitting unit;
Program format is revised request transmitting unit 740, asks to the modification of media device transmission program format according to the notice of program format judging unit 730, and described program format is revised and comprised the program format information of asking modification in the request.
Description by the embodiment of the invention as can be known, the characteristics that the relative user side equipment of side apparatus quantity Network Based is few, favorable expandability, hardware capabilities strong, software is easy to upgrade expansion, the upgrade of network side apparatus also carries out format conversion by network equipment to program stream, thus user side equipment need not to carry out format conversion can be to the program stream normal play that receives.When the program stream format of obtaining from program source is that user side equipment can not be supported, need not existing user side equipment is carried out large-scale upgrading, promptly can realize the program format conversion by network equipment, reduced the cost of network upgrade greatly.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
More than the method that program provided by the present invention provided by embodiment and media device and user side equipment be described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.