Summary of the invention
The purpose of the embodiment of the invention is to propose a kind of method at mobile Internet issue and on-demand media program; It is slow to be intended to solve the speed that has the media program issue of mobile Internet field now, and the media file behind transcoding server load weight, the transcoding takies the big technical problem of memory space.
For solving above technical problem, a kind of method at mobile Internet issue and on-demand media program that the embodiment of the invention proposes may further comprise the steps:
The sheet source file of uploading media program to be released is to the media file storehouse;
According to predetermined various output formats, make the description document of each corresponding output format of said media program;
Said description document is distributed to streaming media server;
Streaming media server is according to the description document of the corresponding media program of order request, and whether the media file of in the media file storehouse, searching behind the transcoding of corresponding form exists, if exist, then,
Streaming media server reads the contents of media files behind the transcoding and sends to the terminal use, finishes.
Further, said step " streaming media server is according to the description document of the corresponding media program of order request, and whether the media file of in the media file storehouse, searching behind the transcoding of corresponding form exists " also comprises step:
If the media file behind the transcoding does not exist, then
Streaming media server sends the transcoding request to the transcoding dispatch server;
Whether the transcoding dispatch server is checked has idle transcoding server, if do not have, then
The failure of transcoding dispatch server notification streams media server transcoding;
Streaming media server is notified the terminal use this order request failure, and processing finishes.
Further, said step " the transcoding dispatch server checks whether idle transcoding server is arranged " also comprises step:
If idle transcoding server is arranged, then
The transcoding dispatch server is distributed to idle transcoding server to the transcoding task;
Transcoding server carries out transcoding to the corresponding media program of said order request, and the media file behind the transcoding is write the media file storehouse in real time;
Streaming media server reads the media file behind the said transcoding in real time from the media file storehouse, and sends to the terminal use, finishes.
The purpose of the embodiment of the invention is to propose a kind of system at mobile Internet issue and on-demand media program,
Said system comprises: transmission module on description document generation module, description document distribution module, streaming media server, media file storehouse, transcoding dispatch server, transcoding server, the media program;
The description document generation module is used for making the description document of corresponding each output format of media program to be released according to predetermined output format;
The description document distribution module is used for description document is distributed to streaming media server;
Streaming media server; Be used for description document according to the corresponding media program of order request; Contents of media files after in the media file storehouse, reading transcoding also sends to the terminal use, or sends the transcoding request to the transcoding dispatch server, and the contents of media files behind the transcoding is sent to the terminal use;
The media file storehouse is used to store the media file behind the transcoding of media program sheet source file and various output formats before the transcoding;
The transcoding dispatch server is used to monitor the task loading condition of each transcoding server, and according to the transcoding request of streaming media server, distributes the transcoding task to give idle transcoding server;
Transcoding server: be used to receive the task assignment of transcoding dispatch server, the media program of order request be transcoded into required output format, and write the media file storehouse;
Transmission module on the media program is used for media program sheet source file to be released is uploaded to the media file storehouse.
Beneficial effect of the present invention
The embodiment of the invention when carrying out the media program issue to mobile Internet, need not to carry out transcoding through description document generation module and description document distribution module are set, and the description document that a publication medium program is corresponding can improve the speed of issue greatly.It is when this format media program of first user's program request, just to trigger that transcoding calculates, and carry out real-time transcoding, data in real time is pushed to the terminal, terminal use's fundamental sensation is less than the increase of time-delay.And have the content of user's program request just to carry out transcoding, the content that does not have user's program request is transcoding not, can alleviate the burden of transcoding server, and the computational resource of reasonable use transcoding server more also can be saved the memory space of the media file behind the transcoding.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated, for the ease of explanation, only show the part relevant with the embodiment of the invention.Should be appreciated that the specific embodiment that this place is described, only be used to explain the present invention, not in order to restriction the present invention.
The embodiment of the invention when carrying out the media program issue to mobile Internet, need not to carry out transcoding through description document generation module and description document distribution module are set, and the description document that a publication medium program is corresponding can improve the speed of issue greatly.It is when this format media program of first user's program request, just to trigger that transcoding calculates, and carry out real-time transcoding, data in real time is pushed to the terminal, terminal use's fundamental sensation is less than the increase of time-delay.And have the content of user's program request just to carry out transcoding, the content that does not have user's program request is transcoding not, can alleviate the burden of transcoding server, and the computational resource of reasonable use transcoding server more also can be saved the memory space of the media file behind the transcoding.
Fig. 1 is a kind of method flow diagram at mobile Internet publication medium program of the embodiment of the invention, said method comprising the steps of:
S101 uploads the sheet source file of media program to be released.
The sheet source file of said media program is generally made by content supplier, and the sheet source file of media program can upload to the media file storehouse.
S102 according to predetermined various output formats, makes the description document of corresponding each output format of said media program.
The store path of the sheet source file that said description document comprises the media program that it is corresponding in the media file storehouse, the transcoding parameter of output format, the information such as store path of output file (media program after being transcoding).Said transcoding parameter comprises parameters such as video frame rate, video resolution, video code rate, audio sample rate, audio code rate, Container Format.
S103 is distributed to streaming media server with said description document.
In the embodiment of the invention, media program need not to carry out transcoding in the mobile Internet issue, can improve the speed of issue greatly.
Fig. 2 is a kind of system construction drawing at mobile Internet publication medium program of the embodiment of the invention, and said system comprises: transmission module, description document generation module, description document distribution module on the media program.
Transmission module on the media program is used to upload the sheet source file of media program to be released.
The description document generation module is used for making the description document of corresponding each output format of said media program according to predetermined output format.
The store path of the sheet source file that said description document comprises the media program that it is corresponding in the media file storehouse, the transcoding parameter of output format, the information such as store path of output file (media file after being transcoding).Said transcoding parameter comprises parameters such as video frame rate, video resolution, video code rate, audio sample rate, audio code rate, Container Format.
The description document distribution module is used for said description document is distributed to streaming media server.
In the embodiment of the invention, media program need not to carry out transcoding in the mobile Internet issue, can improve the speed of issue greatly; It is when this format media program of first user's program request, just to trigger that transcoding calculates, and carry out real-time transcoding, data in real time is pushed to the terminal, terminal use's fundamental sensation is less than the increase of time-delay.And have the content of user's program request just to carry out transcoding, the content that does not have user's program request is transcoding not, can alleviate the burden of transcoding server, more reasonably utilizes the computational resource of transcoding server, also can save the memory space of the media file behind the transcoding.
Fig. 3 is a kind of method flow diagram at mobile Internet on-demand media program of the embodiment of the invention, said method comprising the steps of:
S301, streaming media server be according to the description document of the corresponding media program of order request, and whether the media file of in the media file storehouse, searching behind the transcoding of corresponding form exists, if do not exist, then gets into step S303; If exist, then get into step S302,
S302, streaming media server read the contents of media files behind the transcoding and send to the terminal use, finish.
S303, streaming media server send the transcoding request to the transcoding dispatch server;
Comprise the transcoding parameter of sheet source file store path, output format in the media file storehouse of the corresponding media program of order request, the information such as store path of output file (media file after being transcoding) in the said transcoding request; Said transcoding parameter comprises parameters such as video frame rate, video resolution, video code rate, audio sample rate, audio code rate, Container Format.
S304, transcoding dispatch server check whether idle transcoding server is arranged.If do not have, then change step S305; If have, then change step S307;
S305, the failure of transcoding dispatch server notification streams media server transcoding;
S306, streaming media server are notified the terminal use this order request failure, and processing finishes.
S307, transcoding dispatch server are distributed to idle transcoding server to the transcoding task;
S308, transcoding server carry out transcoding to the corresponding media program of said order request, and the media file behind the transcoding are write the media file storehouse in real time;
S309, streaming media server read the media file behind the said transcoding in real time from the media file storehouse, and send to the terminal use, and this Request Processing finishes.
In embodiments of the present invention, it is when this format media program of first user's program request, just to trigger that transcoding calculates, and carry out real-time transcoding, data in real time is pushed to the terminal, terminal use's fundamental sensation is less than the increase of time-delay.And have the content of user's program request just to carry out transcoding, the content that does not have user's program request is transcoding not, can alleviate the burden of transcoding server, and the computational resource of reasonable use transcoding server more also can be saved the memory space of the media file behind the transcoding.
Fig. 4 is a kind of system construction drawing at mobile Internet on-demand media program of the embodiment of the invention, and said system comprises: streaming media server, media file storehouse, transcoding dispatch server and transcoding server.
Streaming media server; Be used for description document according to the corresponding media program of order request; Contents of media files after in the media file storehouse, reading transcoding also sends to the terminal use, or sends the transcoding request to the transcoding dispatch server, and the contents of media files behind the transcoding is sent to the terminal use;
Said description document is stored in the streaming media server, and said description document comprises the store path of its corresponding media program sheet source file in the media file storehouse, the transcoding parameter of output format, the information such as store path of output file (media file after being transcoding).Said transcoding parameter comprises parameters such as video frame rate, video resolution, video code rate, audio sample rate, audio code rate, Container Format.
The media file storehouse is used to store the media file behind the transcoding of sheet source file and various output formats of the media program before the transcoding;
Transcoding dispatch server: be used to monitor the task loading condition of each transcoding server, and, distribute the transcoding task to give idle transcoding server according to the transcoding request of streaming media server.
Transcoding server: be used to receive the task assignment of transcoding dispatch server, the media program that order request is corresponding is transcoded into required output format, and writes the media file storehouse.
In embodiments of the present invention, it is when this format media program of first user's program request, just to trigger that transcoding calculates, and carry out real-time transcoding, data in real time is pushed to the terminal, terminal use's fundamental sensation is less than the increase of time-delay.And have the content of user's program request just to carry out transcoding, the content that does not have user's program request is transcoding not, can alleviate the burden of transcoding server, and the computational resource of reasonable use transcoding server more also can be saved the memory space of the media file behind the transcoding.
Fig. 5 is a kind of mobile Internet media program issue of the embodiment of the invention and order method flow chart, and said method comprises:
S501 uploads the sheet source file of media program to be released.
The sheet source file of said media program is generally made by content supplier, and the sheet source file of media program can upload to the media file storehouse.
S502 according to predetermined various output formats, makes the description document of corresponding each output format of said media program.
The store path of the sheet source file that said description document comprises the media program that it is corresponding in the media file storehouse, the transcoding parameter of output format, the information such as store path of output file (media program after being transcoding).Said transcoding parameter comprises parameters such as video frame rate, video resolution, video code rate, audio sample rate, audio code rate, Container Format.
S503 is distributed to streaming media server with said description document.
S504, streaming media server be according to the description document of the corresponding media program of order request, and whether the media file of in the media file storehouse, searching behind the transcoding of corresponding form exists, if do not exist, then gets into step S506; If exist, then get into step S505,
S505, streaming media server read the contents of media files behind the transcoding and send to the terminal use, finish.
S506, streaming media server send the transcoding request to the transcoding dispatch server;
Comprise the transcoding parameter of sheet source file store path, output format in the media file storehouse of the corresponding media program of order request, the information such as store path of output file (media file after being transcoding) in the said transcoding request; Said transcoding parameter comprises parameters such as video frame rate, video resolution, video code rate, audio sample rate, audio code rate, Container Format.
Whether S507, transcoding dispatch server are checked has idle transcoding server, if do not have, then changes step S, 508; If have, then change step S510;
S508, the failure of transcoding dispatch server notification streams media server transcoding;
S509, streaming media server are notified the terminal use this order request failure, and processing finishes.
S510, transcoding dispatch server are distributed to idle transcoding server to the transcoding task;
S511, transcoding server carry out transcoding to the corresponding media program of said order request, and the media file behind the transcoding are write the media file storehouse in real time;
S512, streaming media server read the media file behind the said transcoding in real time from the media file storehouse, and send to the terminal use, and this Request Processing finishes.
In the embodiment of the invention, media program need not to carry out transcoding in the mobile Internet issue, can improve the speed of issue greatly.It is when this format media program of first user's program request, just to trigger that transcoding calculates, and carry out real-time transcoding, data in real time is pushed to the terminal, terminal use's fundamental sensation is less than the increase of time-delay.And have the content of user's program request just to carry out transcoding, the content that does not have user's program request is transcoding not, can alleviate the burden of transcoding server, and the computational resource of reasonable use transcoding server more also can be saved the memory space of the media file behind the transcoding.
Fig. 6 is a kind of mobile Internet media program issue of the embodiment of the invention and VOD system structure chart, and said system comprises: transmission module on description document generation module, description document distribution module, streaming media server, media file storehouse, transcoding dispatch server, transcoding server, the media program.
The description document generation module is used for making the description document of corresponding each output format of media program to be released according to predetermined output format;
The store path of the sheet source file that said description document comprises the media program that it is corresponding in the media file storehouse, the transcoding parameter of output format, the information such as store path of output file (media file after being transcoding).Said transcoding parameter comprises parameters such as video frame rate, video resolution, video code rate, audio sample rate, audio code rate, Container Format.
The description document distribution module is used for description document is distributed to streaming media server;
Streaming media server; Be used for description document according to the corresponding media program of order request; Contents of media files after in the media file storehouse, reading transcoding also sends to the terminal use, or sends the transcoding request to the transcoding dispatch server, and the contents of media files behind the transcoding is sent to the terminal use;
The media file storehouse is used to store the media file behind the transcoding of sheet source file and various output formats of the media program before the transcoding;
Transcoding dispatch server: be used to monitor the task loading condition of each transcoding server, and, distribute the transcoding task to give idle transcoding server according to the transcoding request of streaming media server.
Transcoding server: be used to receive the task assignment of transcoding dispatch server, the media program of order request be transcoded into required output format, and write the media file storehouse.
Transmission module on the media program is used for the sheet source file of media program to be released is uploaded to the media file storehouse.
In the embodiment of the invention, media program need not to carry out transcoding in the mobile Internet issue, can improve the speed of issue greatly.It is when this format media program of first user's program request, just to trigger that transcoding calculates, and carry out real-time transcoding, data in real time is pushed to the terminal, terminal use's fundamental sensation is less than the increase of time-delay.And have the content of user's program request just to carry out transcoding, the content that does not have user's program request is transcoding not, can alleviate the burden of transcoding server, and the computational resource of reasonable use transcoding server more also can be saved the memory space of the media file behind the transcoding.
Those having ordinary skill in the art will appreciate that; All or part of step in realization the foregoing description method can be accomplished through the program command related hardware; Described program can be stored in the computer read/write memory medium, and described storage medium can be ROM, RAM, disk, CD etc.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.