CN108156485A - Method, apparatus, storage medium and the terminal device of streaming media transcoding - Google Patents
Method, apparatus, storage medium and the terminal device of streaming media transcoding Download PDFInfo
- Publication number
- CN108156485A CN108156485A CN201711405470.6A CN201711405470A CN108156485A CN 108156485 A CN108156485 A CN 108156485A CN 201711405470 A CN201711405470 A CN 201711405470A CN 108156485 A CN108156485 A CN 108156485A
- Authority
- CN
- China
- Prior art keywords
- transcoding
- matchmaker
- processing
- state
- template
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 235000013399 edible fruits Nutrition 0.000 claims description 4
- 108010001267 Protein Subunits Proteins 0.000 claims description 3
- 238000004590 computer program Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
- H04N21/2662—Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440236—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention proposes a kind of streaming media transcoding method, apparatus, storage medium and terminal device, wherein, the method includes:Receive transcoding matchmaker money;Wherein, the transcoding matchmaker money includes Streaming Media and template group mark, and the template group identifies corresponding template group and includes at least one template;The template is used to record transcoding parameter;The transcoding parameter that template in corresponding template group is identified according to the template group carries out transcoding processing to the Streaming Media;According to transcoding processing as a result, recording the transcoding state of the transcoding matchmaker money;The transcoding state is used to indicate the subsequent operation for providing and performing according to the transcoding matchmaker after transcoding.Using the present invention, simplify user's upload operation, the transcoding management that transcoding matchmaker is facilitated to provide.
Description
Technical field
The present invention relates to multimedia technology field more particularly to a kind of method, apparatus of streaming media transcoding, storage medium and
Terminal device.
Background technology
Streaming medium content manufacturer is when will issue a Streaming Media on platform, since Streaming Media needs to put down in difference
It being played on platform, then Streaming Media will be processed into the pattern of suitable various different platforms, wherein, Streaming Media includes video, sound
Frequency or audio and video etc..Streaming Media processing for one style demand is completed by a transcoding.Usually, a stream
Media need to be turned into more parts.This relates to multiple parameters configuration and the structure of management and Streaming Media.
The files in stream media of the prior art can be chosen and turn according to the program request demand of different business scene before transcoding
A variety of transcoding parameters such as code mask custom resolution, code check, container.The one group of parameter so chosen is called a transcoding mould
Plate.And then the transcoding template and files in stream media are submitted into transcoding backstage and carry out transcoding.Transcoding backstage is according to transcoding template
Parameter streaming media files carry out transcoding, to obtain the result that each transcoding has been handled.
Said program has the following problems:
1st, Streaming Media manufacturer needs to upload transcoding one by one, i.e., repeatedly uploads template and Streaming Media, troublesome in poeration;
2nd, manufacturer is needed voluntarily to count when transcoding managerial confusion, transcoding result feed back to streaming medium content manufacturer.
Invention content
The embodiment of the present invention provides a kind of method, apparatus of streaming media transcoding, storage medium and terminal device, at least to solve
One of Yi Shang technical problem certainly of the prior art.
In a first aspect, an embodiment of the present invention provides a kind of method of streaming media transcoding, including:
Receive transcoding matchmaker money;Wherein, the transcoding matchmaker money includes Streaming Media and template group mark, the template group mark pair
The template group answered includes at least one template and the template for recording transcoding parameter;
The transcoding parameter that template in corresponding template group is identified according to the template group carries out at transcoding the Streaming Media
Reason;And
According to the transcoding handle as a result, record the transcoding state that the transcoding matchmaker provides, wherein, the transcoding state is used
The subsequent operation performed is provided according to the transcoding matchmaker after transcoding in instruction.
With reference to first aspect, the present invention is in the first embodiment of first aspect, the method for the streaming media transcoding
It further includes:Record transcoding processing as a result, and
It is described according to the transcoding handle as a result, record the transcoding state that the transcoding matchmaker provides, including:
When judging the result of the transcoding processing for failure, the transcoding state for recording the transcoding matchmaker money is failure;With
And
When the result for judging transcoding processing is success, inquire the transcoding matchmaker money recorded transcoding state and
The handling result of transcoding processing, and the transcoding according to query result more new record are performed according to other templates in the template group
The transcoding state of matchmaker's money.
The first embodiment with reference to first aspect, the present invention are described in second of embodiment of first aspect
When judging the result of the transcoding processing for failure, the transcoding state for setting the transcoding matchmaker money is failure, including:
When judging the result of the transcoding processing for failure, one is added to the corresponding failure record of transcoding processing;
Judge whether the failure record is more than failure threshold value;
If it is not, handling corresponding transcoding parameter according to the transcoding re-starts the Streaming Media transcoding processing;And
If so, the transcoding state for recording the transcoding matchmaker money is failure.
The first embodiment with reference to first aspect, the present invention are described in the third embodiment of first aspect
It inquires the transcoding state of the transcoding matchmaker money recorded and the place of transcoding processing is performed according to other templates in the template group
Reason as a result, and according to query result more new record transcoding matchmaker provide transcoding state, including:
Inquire the transcoding state of the transcoding matchmaker money;
No record is recorded as when the transcoding state for inquiring transcoding matchmaker money or when in transcoding, inquires the transcoding
The result of other transcodings processing of matchmaker's money;
It is to have record and when being successfully when inquiring the record of other transcodings processing of transcoding matchmaker money, described in record
The transcoding state of transcoding matchmaker money is successfully;And
No record and is recorded as when there are what transcoding was handled in other transcodings processing for inquire transcoding matchmaker money
When being recorded as successfully of transcoding processing of record, the transcoding state for recording the transcoding matchmaker money is in transcoding.
Second of embodiment with reference to first aspect, the present invention are described in the 4th kind of embodiment of first aspect
The method of streaming media transcoding further includes:When recording the transcoding state of the transcoding matchmaker money as failure, suspend the transcoding matchmaker money
Other transcodings processing.
With reference to first aspect or any embodiment of first aspect, the present invention is in the 5th kind of embodiment party of first aspect
In formula, the reception transcoding matchmaker money, including:
The newly-built request of the template group is responded, the template-setup page of the template group is shown in display interface;
The transcoding parameter of the template after the adjustment of the template group is received by the template-setup page;
According to the transcoding parameter of the template after the adjustment received, update and the corresponding template group of template group mark;
Receive the Streaming Media;And
It is identified according to the Streaming Media and the template group, generation transcoding matchmaker's money.
Second aspect, the embodiment of the present invention provide a kind of device of streaming media transcoding, including:
Matchmaker provides receiving module, for receiving transcoding matchmaker money;Wherein, the transcoding matchmaker money includes Streaming Media and template group mark
Know, the template group identifies corresponding template group and includes at least one template and the template for recording transcoding parameter;
Transcoded processing module, for identifying the transcoding parameter of template in corresponding template group according to the template group to described
Streaming Media carries out transcoding processing;
Transcoding state recording module, for according to the transcoding handle as a result, recording the transcoding shape that the transcoding matchmaker provides
State, wherein, the transcoding state is used to indicate the subsequent operation for providing and performing according to the transcoding matchmaker after transcoding.
With reference to second aspect, the present invention further includes in the first embodiment of second aspect:Handling result records mould
Block, for record transcoding processing as a result, and
The transcoding state recording module includes:
First recording unit, for when judging the result of the transcoding processing for failure, recording the transcoding matchmaker money
Transcoding state is failure;And
Second recording unit, for when judging the result of the transcoding processing for success, inquiring described turn recorded
The transcoding state of code matchmaker's money and the handling result that transcoding processing is performed according to other templates in the template group, and tied according to inquiry
The transcoding state that transcoding matchmaker described in fruit more new record provides.
With reference to the first embodiment of second aspect, the present invention is described in second of embodiment of second aspect
First recording unit includes:
Add a subelement, for when judging the result of the transcoding processing for failure, handling the transcoding corresponding
Failure record adds one;
Judgment sub-unit, for judging whether the failure record is more than failure threshold value;
Transcoding subelement, for when the failure record is more than the failure threshold value, being handled and being corresponded to according to the transcoding
Transcoding parameter the Streaming Media is re-started transcoding processing;And
Failure record subelement, the transcoding state for recording the transcoding matchmaker money are failure.
With reference to the first embodiment of second aspect, the present invention is in the third embodiment of first aspect, and described the
Two recording units include:
Status inquiry subelement, for inquiring the transcoding state of the transcoding matchmaker money;
Result queries subelement, for being recorded as no record when the transcoding state that inquire transcoding matchmaker money or turning
When in code, the result of other transcodings processing of the transcoding matchmaker money is inquired;
Success records subelement, for being to have record when the record for other transcodings processing for inquiring the transcoding matchmaker money
And when being successfully, the transcoding state for recording the transcoding matchmaker money is successfully;And
Subelement is recorded in transcoding, for when in other transcodings processing for inquire transcoding matchmaker money there are transcoding at
When being recorded as successfully of the transcoding for being recorded as no record and having recorded processing of reason, the transcoding state for recording the transcoding matchmaker money are
In transcoding.
The function by hardware can also be performed corresponding software and be realized by hardware realization.The hardware or
Software includes the one or more and corresponding module of above-mentioned function.
In a possible design, the structure of the device of streaming media transcoding includes processor and memory, described to deposit
Reservoir supports the device of offline Streaming Media download to perform the method that offline Streaming Media is downloaded in above-mentioned first aspect for storing
Program, the processor are configurable for performing the program stored in the memory.The device of the streaming media transcoding is also
It can include communication interface, for device and other equipment or the communication of streaming media transcoding.
The third aspect, an embodiment of the present invention provides a kind of computer readable storage medium, for stored stream media transcoding
Device used in computer software instructions, including for perform the method for streaming media transcoding in above-mentioned first aspect for stream matchmaker
Program involved by the device of body transcoding.
Any one technical solution in above-mentioned technical proposal has the following advantages that or advantageous effect:
The embodiment of the present invention provides technical solution, passes through the transcoding matchmaker of template group of the reception comprising Streaming Media and multiple template
Money, the combination of the template group formed with multiple template and a Streaming Media are uploaded, and user is facilitated once to upload can be rear
It is continuous that transcoding processing performs the Streaming Media based on the transcoding parameter that each template is recorded, to realize the transcoding of corresponding multiple template
Multiple transcodings processing of parameter evidence, simplifies user's upload operation.And after the transcoding processing of a corresponding template has performed, phase
It records the transcoding state of the transcoding matchmaker money belonging to transcoding processing with answering, user can be facilitated to check transcoding situation and be convenient for
The execution of the subsequent operation of instruction.
Above-mentioned general introduction is merely to illustrate that the purpose of book, it is not intended to be limited in any way.Except foregoing description
Schematical aspect, except embodiment and feature, by reference to attached drawing and the following detailed description, the present invention is further
Aspect, embodiment and feature will be what is be readily apparent that.
Description of the drawings
In the accompanying drawings, unless specified otherwise herein, otherwise represent the same or similar through the identical reference numeral of multiple attached drawings
Component or element.What these attached drawings were not necessarily to scale.It should be understood that these attached drawings are depicted only according to the present invention
Some disclosed embodiments, and should not serve to limit the scope of the present invention.
Fig. 1 is the flow diagram of the method for the streaming media transcoding that first embodiment of the invention provides;
Fig. 2 is the schematic diagram for the template-setup page that first embodiment of the invention provides;
Fig. 3 is the flow diagram of the one embodiment for the transcoding state recording process that first embodiment of the invention provides;
Fig. 4 is the structure diagram of the device for the streaming media transcoding that second embodiment of the invention provides;
Fig. 5 is the structure diagram for the terminal device that third embodiment of the invention provides.
Specific embodiment
Hereinafter, certain exemplary embodiments are simply just described.As one skilled in the art will recognize that
Like that, without departing from the spirit or scope of the present invention, described embodiment can be changed by various different modes.
Therefore, attached drawing and description are considered essentially illustrative rather than restrictive.
The embodiment of the present invention is directed to that one property of user upload template and Streaming Media can be facilitated to realize at multiple transcodings
Reason and the solution that management transcoding state can be facilitated.Divide the expansion description that embodiment carries out technical solution below.
Implement one
Referring to Fig. 1, the embodiment of the present invention one provides a kind of method of streaming media transcoding, including step S10 to step
S30, it is specific as follows:
S10 receives transcoding matchmaker money;Wherein, the transcoding matchmaker money includes Streaming Media and template group mark, the template group mark
Know corresponding templates group and include at least one template;The template is used to record transcoding parameter.
In embodiments of the present invention, for transcoding matchmaker money before generation, Streaming Media manufacturer can be by creating template group
Request, shows the template-setup page as shown in Figure 2 in interface, and program request of the Streaming Media manufacturer based on different business scenarios needs
It asks, the resolution ratio of the corresponding transcoding processing (i.e. transcoding task) of one template of self-defined setting, video in the template-setup page
A variety of transcoding parameters such as code check, container.It is as follows that generating process is provided the following specifically describes specific transcoding matchmaker:
First, the newly-built request of the template group is responded, the template-setup page of the template group is shown in display circle
In face.Preferably, when user input one acquiescence template group group name when, will the acquiescence template group template-setup page
Face is shown in the page, if user does not need to be adjusted, can directly acquire turn of the template of the template group of the acquiescence
Code parameter.The template-setup page can be as shown in Figure 2.
Then, contents production quotient selects the transcoding parameter after adjustment in the template-setup page, then can pass through institute
State the transcoding parameter for the template that the template-setup page is received after the adjustment of the template group;Wherein, the transcoding parameter at least wraps
Include resolution ratio, video code rate, coding specification, container, content-encrypt strategy optional parameters according to type.The resolution ratio include but
It is not limited to built-in resolution ratio and custom resolution;Target bit rate of the video code rate for video, at least 32kbps, if with
Family does not select specific video code rate then to give tacit consent to and represents 32kbps;The coding specification includes but not limited to following three types:
Baseline, main and high;The container includes but not limited to for MP4, HLS, A-HLS, FLA;The content-encrypt strategy
Including but not limited to basic forms, playerbinding forms, token forms, wherein, token forms are only limitted to selection HLS
It can be just chosen during container.
After contents production end is completed in the setting of the template-setup page, click and complete setting, and then, backstage root
According to the transcoding parameter of the template after the adjustment received by the template-setup page, the template group is updated;It is updated
Template group is the current template group that can be used,
In addition, content generation quotient can adjust template parameter when upload Streaming Media, can also before this or it
After upload Streaming Media, from the background can be according to the Streaming Media be received and the current template group that can be used be combined binding, i.e.,
Transcoding matchmaker money is packaged into, completes the generation of transcoding matchmaker money.
S20, the transcoding parameter that template in corresponding template group is identified according to the template group turn the Streaming Media
Code processing.
In embodiments of the present invention, a transcoding task is built based on each template, is joined with the transcoding that the template is recorded
The characteristic attribute that the Streaming Media that number is handled and successfully obtained as streaming media execution transcoding has.In embodiments of the present invention,
The multiple transcoding tasks that can be performed in parallel under the transcoding matchmaker money can also perform multiple under the transcoding matchmaker money one by one
Transcoding task.
S30, according to the transcoding handle as a result, record the transcoding state that the transcoding matchmaker provides, wherein, the transcoding shape
State is used to indicate the subsequent operation for providing and performing according to the transcoding matchmaker after transcoding.
In the embodiment of the present invention, the result of the corresponding transcoding processing of each transcoding task includes at least successfully and fails this
The two, and transcoding matchmaker money transcoding state include at least successfully, unsuccessfully and transcoding in this three.The transcoding of the transcoding matchmaker money
State can feed back update in display interface, and contents production quotient is facilitated to understand the state of transcoding.
In embodiments of the present invention, inquire for convenience the processing of each transcoding the result is that how, can also record every
The result of one transcoding processing, it is preferable that be recorded in the result that each transcoding is handled and the corresponding transcoding of transcoding processing
Matchmaker is provided in associated record sheet.
As shown in figure 3, the transcoding state recording process of step S30 can be as follows:
S31 when judging the result of the transcoding processing for failure, records the transcoding state of the transcoding matchmaker money to lose
It loses;
For step S31, the embodiment of the present invention includes following two embodiments:
The first embodiment:Once the transcoding processing for receiving return the result is that when failing, then the transcoding is recorded
The transcoding state of matchmaker's money is failure.
Second of embodiment can be:
When judging the result of the transcoding processing for failure, one is added to the corresponding failure record of transcoding processing;
Judge whether the failure record is more than failure threshold value;
If it is not, handling corresponding transcoding parameter according to the transcoding re-starts the Streaming Media transcoding processing;
If so, the transcoding state for recording the transcoding matchmaker money is failure.
By second of embodiment, it can block when the result of the transcoding of return processing is failure and carry the failure result
Real-time registration, do not update the transcoding state of transcoding matchmaker money, but based on identical transcoding parameter to former Streaming Media again
Transcoding processing is initiated, if the transcoding failure in failure threshold value, the transcoding state for recording the transcoding matchmaker money is failure.So
It can shield since transcoding backstage is unstable and transcoding is caused to fail.
Preferably, the transcoding matchmaker money can also be suspended when recording the transcoding state of the transcoding matchmaker money as failure
The processing of other transcodings being carrying out, can so reduce the waste of transcoding resource.
S32 when judging the result of the transcoding processing for success, inquires the transcoding shape of transcoding matchmaker money recorded
State and the handling result that transcoding processing is performed according to other templates in the template group, and according to query result more new record
The transcoding state of transcoding matchmaker money.
For step S32, the embodiment of the present invention includes following two embodiments:
The first embodiment:When the result that a transcoding of return is handled is successfully, transcoding processing is directly inquired
The record of other all transcodings processing of corresponding transcoding matchmaker money, if it is having a record and equal that described its, which changes all transcodings processing,
For when being recorded as successfully, the transcoding state that transcoding matchmaker described in more new record provides is successfully.
Second of embodiment:
Inquire the transcoding state of the transcoding matchmaker money;
No record is recorded as when the transcoding state for inquiring transcoding matchmaker money or when in transcoding, inquires the transcoding
The result of other transcodings processing of matchmaker's money;
It is to have record and when being successfully when inquiring the record of other transcodings processing of transcoding matchmaker money, described in record
The transcoding state of transcoding matchmaker money is successfully;
No record and is recorded as when there are what transcoding was handled in other transcodings processing for inquire transcoding matchmaker money
When being recorded as successfully of transcoding processing of record, the transcoding state for recording the transcoding matchmaker money is in transcoding.
By second of embodiment, can the transcoding state of transcoding matchmaker money correspondingly be recorded according to situation about inquiring
For in transcoding or successful state.
The method of streaming media transcoding provided in an embodiment of the present invention passes through template of the reception comprising Streaming Media and multiple template
The transcoding matchmaker money of group, the combination of the template group formed with multiple template and a Streaming Media uploaded, facilitate user it is primary on
Pass subsequently to perform the Streaming Media transcoding processing based on the transcoding parameter that each template is recorded, to realize that correspondence is multiple
Multiple transcodings processing of the transcoding parameter evidence of template, simplifies user's upload operation.And the transcoding processing when a corresponding template
After having performed, the transcoding state of the transcoding matchmaker money belonging to transcoding processing is correspondingly recorded, user can be facilitated to check transcoding feelings
Condition and the execution of subsequent operation convenient for instruction.
Embodiment two
Referring to Fig. 3, the embodiment of the present invention provides a kind of device of streaming media transcoding, which can realize above-mentioned implementation one
Whole flows of the method for the streaming media transcoding of offer, specifically include:
Matchmaker provides receiving module 10, for receiving transcoding matchmaker money;Wherein, the transcoding matchmaker money includes Streaming Media and template group mark
Know, the template group identifies corresponding template group and includes at least one template;The template is used to record transcoding parameter;
Transcoded processing module 20, for identifying the transcoding parameter of template in corresponding template group according to the template group to institute
It states Streaming Media and carries out transcoding processing;
Transcoding state recording module 30, for according to the transcoding handle as a result, recording the transcoding that the transcoding matchmaker provides
State;The transcoding state is used to indicate the subsequent operation for providing and performing according to the transcoding matchmaker after transcoding.
With reference to second aspect, the present invention further includes in the first embodiment of second aspect:Handling result records mould
Block, for record transcoding processing as a result, and
The transcoding state recording module 30 includes:
First recording unit, for when judging the result of the transcoding processing for failure, recording the transcoding matchmaker money
Transcoding state is failure;And
Second recording unit, for when judging the result of the transcoding processing for success, inquiring described turn recorded
The transcoding state of code matchmaker's money and the handling result that transcoding processing is performed according to other templates in the template group, and tied according to inquiry
The transcoding state that transcoding matchmaker described in fruit more new record provides.
With reference to the first embodiment of second aspect, the present invention is described in second of embodiment of second aspect
First recording unit includes:
Add a subelement, for when judging the result of the transcoding processing for failure, handling the transcoding corresponding
Failure record adds one;
Judgment sub-unit, for judging whether the failure record is more than failure threshold value;
Transcoding subelement, for when the failure record is more than the failure threshold value, being handled and being corresponded to according to the transcoding
Transcoding parameter the Streaming Media is re-started transcoding processing;And
Failure record subelement, the transcoding state for recording the transcoding matchmaker money are failure.
With reference to the first embodiment of second aspect, the present invention is in the third embodiment of first aspect, and described the
Two recording units include:
Status inquiry subelement, for inquiring the transcoding state of the transcoding matchmaker money;
Result queries subelement, for being recorded as no record when the transcoding state that inquire transcoding matchmaker money or turning
When in code, the result of other transcodings processing of the transcoding matchmaker money is inquired;
Success records subelement, for being to have record when the record for other transcodings processing for inquiring the transcoding matchmaker money
And when being successfully, the transcoding state for recording the transcoding matchmaker money is successfully;And
Subelement is recorded in transcoding, for when in other transcodings processing for inquire transcoding matchmaker money there are transcoding at
When being recorded as successfully of the transcoding for being recorded as no record and having recorded processing of reason, the transcoding state for recording the transcoding matchmaker money are
In transcoding.
With reference to second of embodiment of second aspect, the present invention is described in the 4th kind of embodiment of second aspect
Device further includes:When recording the transcoding state of the transcoding matchmaker money as failure, suspend at other transcodings that the transcoding matchmaker provides
Reason.
With reference to first aspect or any embodiment of first aspect, the present invention is in the 5th kind of embodiment party of first aspect
In formula, the matchmaker provides receiving module and specifically includes:
Page template display unit, for responding the newly-built request of the template group, by the template-setup page of the template group
Face is shown in display interface;
Transcoding parameter receiving unit, for receiving the template after the adjustment of the template group by the template-setup page
Transcoding parameter;
Template group updating unit for the transcoding parameter according to the template after the adjustment received, updates the template group;
Streaming Media receiving unit, for receiving the Streaming Media;And
Transcoding matchmaker provides generation unit, for according to the Streaming Media and the updated template group, generation transcoding matchmaker's money.
The function by hardware can also be performed corresponding software and be realized by hardware realization.The hardware or
Software includes the one or more and corresponding module of above-mentioned function.
Embodiment three
The embodiment of the present invention three provides a kind of terminal device, as shown in figure 5, the equipment includes:Memory 21 and processor
22,21 memory of memory contains the computer program that can be run on processor 22.Processor 22 performs the computer program
The method of streaming media transcoding in Shi Shixian above-described embodiments.The quantity of memory 21 and processor 22 can be one or more
It is a.
The equipment further includes:
Communication interface 23, for the communication between memory 21 and processor 22.
Memory 21 may include high-speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile
Memory), a for example, at least magnetic disk storage.
If memory 21, processor 22 and the independent realization of communication interface 23, memory 21, processor 22 and communication connect
Mouth 23 can be connected with each other by bus and complete mutual communication.The bus can be industry standard architecture
(ISA, Industry Standard Architecture) bus, external equipment interconnection (PCI, Peripheral
Component) bus or extended industry-standard architecture (EISA, Extended Industry Standard
Component) bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, Fig. 5
In only represented with a thick line, it is not intended that an only bus or a type of bus.
Optionally, in specific implementation, if memory 21, processor 22 and communication interface 23 are integrated in chip piece
On, then memory 21, processor 22 and communication interface 23 can complete mutual communication by internal interface.
In the description of this specification, reference term " one embodiment ", " example ", " is specifically shown " some embodiments "
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment of the present invention or example.Moreover, particular features, structures, materials, or characteristics described
It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this
The technical staff in field can be by the different embodiments or examples described in this specification and the spy of different embodiments or examples
Sign is combined.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic." first " is defined as a result, the feature of " second " can be expressed or hidden
Include at least one this feature containing ground.In the description of the present invention, " multiple " are meant that two or more, unless otherwise
It is clearly specific to limit.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include
Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement specific logical function or process
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, to perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) it uses or combines these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
It puts.
Computer-readable medium described in the embodiment of the present invention can be that computer-readable signal media or computer can
Storage medium either the two is read arbitrarily to combine.The more specific example of computer readable storage medium is at least (non-poor
Property list to the greatest extent) including following:Electrical connection section (electronic device) with one or more wiring, portable computer diskette box (magnetic
Device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash
Memory), fiber device and portable read-only memory (CDROM).In addition, computer readable storage medium even can be with
It is the paper or other suitable media that can print described program on it, because can be for example by being carried out to paper or other media
Optical scanner is then handled described electronically to obtain into edlin, interpretation or when necessary with other suitable methods
Program is then stored in computer storage.
In embodiments of the present invention, computer-readable signal media can be included in a base band or as a carrier wave part
The data-signal of propagation, wherein carrying computer-readable program code.The data-signal of this propagation may be used a variety of
Form, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media is also
Can be any computer-readable medium other than computer readable storage medium, which can send, pass
Either transmission is broadcast for instruction execution system, input method or device use or program in connection.Computer can
Reading the program code included on medium can be transmitted with any appropriate medium, including but not limited to:Wirelessly, electric wire, optical cable, penetrate
Frequently (Radio Frequency, RF) etc. or above-mentioned any appropriate combination.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art
Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function
Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, the program when being executed, one or a combination set of the step of including embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also
That each unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and is independent product sale or in use, can also be stored in a computer
In readable storage medium storing program for executing.The storage medium can be read-only memory, disk or CD etc..
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in its various change or replacement,
These should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the guarantor of the claim
It protects subject to range.
Claims (12)
- A kind of 1. method of streaming media transcoding, which is characterized in that including:Receive transcoding matchmaker money;Wherein, the transcoding matchmaker money includes Streaming Media and template group mark, and the template group mark is corresponding Template group includes at least one template and the template for recording transcoding parameter;The transcoding parameter that template in corresponding template group is identified according to the template group carries out transcoding processing to the Streaming Media;With AndAccording to the transcoding handle as a result, record the transcoding state that the transcoding matchmaker provides, wherein, the transcoding state is for referring to Show the subsequent operation for providing and performing according to the transcoding matchmaker after transcoding.
- 2. the method for streaming media transcoding as described in claim 1, which is characterized in that further include:Record the transcoding processing As a result, andIt is described according to the transcoding handle as a result, record the transcoding state that the transcoding matchmaker provides, including:When judging the result of the transcoding processing for failure, the transcoding state for recording the transcoding matchmaker money is failure;AndWhen the result for judging transcoding processing is success, inquire the transcoding matchmaker money recorded transcoding state and according to Other templates perform the handling result of transcoding processing in the template group, and transcoding matchmaker provides according to query result more new record Transcoding state.
- 3. the method for streaming media transcoding as claimed in claim 2, which is characterized in that described when the knot for judging the transcoding processing When fruit is failure, the transcoding state for setting the transcoding matchmaker money is failure, including:When judging the result of the transcoding processing for failure, one is added to the corresponding failure record of transcoding processing;Judge whether the failure record is more than failure threshold value;If it is not, handling corresponding transcoding parameter according to the transcoding re-starts the Streaming Media transcoding processing;AndIf so, the transcoding state for recording the transcoding matchmaker money is failure.
- 4. the method for streaming media transcoding as claimed in claim 2, which is characterized in that described to inquire the transcoding matchmaker recorded The transcoding state of money and the handling result that transcoding processing is performed according to other templates in the template group, and according to query result more The transcoding state that transcoding matchmaker described in new record provides, including:Inquire the transcoding state of the transcoding matchmaker money;No record is recorded as when the transcoding state for inquiring transcoding matchmaker money or when in transcoding, inquires the transcoding matchmaker money Other transcodings processing result;It is to have record and when being successfully when inquiring the record of other transcodings processing of transcoding matchmaker money, records the transcoding The transcoding state of matchmaker's money is successfully;AndIt to be recorded as no record when there are what transcoding was handled in other transcodings processing for inquire transcoding matchmaker money and has recorded When being recorded as successfully of transcoding processing, the transcoding state for recording transcoding matchmaker money is in transcoding.
- 5. the method for streaming media transcoding as claimed in claim 3, which is characterized in that the method further includes:When described in record When the transcoding state of transcoding matchmaker money is failure, suspend other transcodings processing of the transcoding matchmaker money.
- 6. the method for the streaming media transcoding as described in claim 1 to 5 is any, which is characterized in that the reception transcoding matchmaker money, tool Body includes:The newly-built request of the template group is responded, the template-setup page of the template group is shown in display interface;The transcoding parameter of the template after the adjustment of the template group is received by the template-setup page;According to the transcoding parameter of the template after the adjustment received, update and the corresponding template group of template group mark;Receive the Streaming Media;AndIt is identified according to the Streaming Media and the template group, generation transcoding matchmaker's money.
- 7. a kind of device of streaming media transcoding, which is characterized in that including:Matchmaker provides receiving module, for receiving transcoding matchmaker money;Wherein, the transcoding matchmaker money includes Streaming Media and template group mark, institute It states the corresponding template group of template group mark and includes at least one template and the template for recording transcoding parameter;Transcoded processing module, for identifying the transcoding parameter of template in corresponding template group according to the template group to the stream matchmaker Body carries out transcoding processing;AndTranscoding state recording module, for according to the transcoding handle as a result, record the transcoding state that the transcoding matchmaker provides, In, the transcoding state is used to indicate the subsequent operation for providing and performing according to the transcoding matchmaker after transcoding.
- 8. the device of streaming media transcoding as claimed in claim 7, which is characterized in that further include:Handling result logging modle is used In record transcoding processing as a result, andThe transcoding state recording module includes:First recording unit, for when judging the result of the transcoding processing for failure, recording the transcoding of the transcoding matchmaker money State is failure;AndSecond recording unit, for when judging the result of the transcoding processing for success, inquiring the transcoding matchmaker recorded Other templates perform the handling result of transcoding processing in the transcoding state and the template group of money, and are updated and remembered according to query result Record the transcoding state of the transcoding matchmaker money.
- 9. the device of streaming media transcoding as claimed in claim 8, which is characterized in that first recording unit includes:Add a subelement, for when judging the result of the transcoding processing for failure, corresponding failure to be handled to the transcoding Record plus one;Judgment sub-unit, for judging whether the failure record is more than failure threshold value;Transcoding subelement, for when the failure record is more than the failure threshold value, corresponding turn to be handled according to the transcoding Code parameter re-starts the Streaming Media transcoding processing;AndFailure record subelement, the transcoding state for recording the transcoding matchmaker money are failure.
- 10. the device of streaming media transcoding as claimed in claim 8, which is characterized in that second recording unit includes:Status inquiry subelement, for inquiring the transcoding state of the transcoding matchmaker money;Result queries subelement, for being recorded as no record or in transcoding when the transcoding state for inquiring the transcoding matchmaker money When, inquire the result that other transcodings of the transcoding matchmaker money are handled;Success records subelement, for being to have record and be when the record for other transcodings processing for inquiring the transcoding matchmaker money During success, the transcoding state for recording the transcoding matchmaker money is successfully;AndSubelement is recorded in transcoding, for working as what is handled in other transcodings processing for inquiring the transcoding matchmaker money there are transcoding When being recorded as successfully of transcoding processing for being recorded as no record and having recorded, the transcoding state for recording the transcoding matchmaker money are to turn In code.
- 11. a kind of terminal device for realizing streaming media transcoding, which is characterized in that the terminal device includes:One or more processors;Storage device, for storing one or more programs;When one or more of programs are performed by one or more of processors so that one or more of processors The method for realizing the streaming media transcoding as described in any in claim 1-6.
- 12. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the program is held by processor The method that the streaming media transcoding as described in any in claim 1-6 is realized during row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711405470.6A CN108156485B (en) | 2017-12-22 | 2017-12-22 | Method, apparatus, storage medium and the terminal device of streaming media transcoding |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711405470.6A CN108156485B (en) | 2017-12-22 | 2017-12-22 | Method, apparatus, storage medium and the terminal device of streaming media transcoding |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108156485A true CN108156485A (en) | 2018-06-12 |
CN108156485B CN108156485B (en) | 2019-03-12 |
Family
ID=62465292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711405470.6A Active CN108156485B (en) | 2017-12-22 | 2017-12-22 | Method, apparatus, storage medium and the terminal device of streaming media transcoding |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108156485B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110879749A (en) * | 2018-09-06 | 2020-03-13 | 阿里巴巴集团控股有限公司 | Scheduling method and scheduling device for real-time transcoding task |
CN111541918A (en) * | 2020-05-09 | 2020-08-14 | 山东汇贸电子口岸有限公司 | System and method for centralized management of video transcoding state |
CN113938681A (en) * | 2021-09-26 | 2022-01-14 | 浪潮云信息技术股份公司 | System and method for controlling video code rate in multiple modes |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004023807A1 (en) * | 2002-09-03 | 2004-03-18 | Maxvu, Inc. | Methods and equipment configured for facilitating digital file transcoding functionality |
CN101977218A (en) * | 2010-10-20 | 2011-02-16 | 深圳市融创天下科技发展有限公司 | Internet playing file transcoding method and system |
CN102123279A (en) * | 2010-12-28 | 2011-07-13 | 乐视网信息技术(北京)股份有限公司 | Distributed real-time transcoding method and system |
CN102143358A (en) * | 2010-01-29 | 2011-08-03 | 新奥特(北京)视频技术有限公司 | Transcoding system with cluster management function |
CN102638705A (en) * | 2011-12-09 | 2012-08-15 | 中兴通讯股份有限公司 | Transcode parameter templating method and transcoding system of CMS (content management system) |
-
2017
- 2017-12-22 CN CN201711405470.6A patent/CN108156485B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004023807A1 (en) * | 2002-09-03 | 2004-03-18 | Maxvu, Inc. | Methods and equipment configured for facilitating digital file transcoding functionality |
CN102143358A (en) * | 2010-01-29 | 2011-08-03 | 新奥特(北京)视频技术有限公司 | Transcoding system with cluster management function |
CN101977218A (en) * | 2010-10-20 | 2011-02-16 | 深圳市融创天下科技发展有限公司 | Internet playing file transcoding method and system |
CN102123279A (en) * | 2010-12-28 | 2011-07-13 | 乐视网信息技术(北京)股份有限公司 | Distributed real-time transcoding method and system |
CN102638705A (en) * | 2011-12-09 | 2012-08-15 | 中兴通讯股份有限公司 | Transcode parameter templating method and transcoding system of CMS (content management system) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110879749A (en) * | 2018-09-06 | 2020-03-13 | 阿里巴巴集团控股有限公司 | Scheduling method and scheduling device for real-time transcoding task |
CN110879749B (en) * | 2018-09-06 | 2023-04-07 | 阿里巴巴集团控股有限公司 | Scheduling method and scheduling device for real-time transcoding task |
CN111541918A (en) * | 2020-05-09 | 2020-08-14 | 山东汇贸电子口岸有限公司 | System and method for centralized management of video transcoding state |
CN113938681A (en) * | 2021-09-26 | 2022-01-14 | 浪潮云信息技术股份公司 | System and method for controlling video code rate in multiple modes |
Also Published As
Publication number | Publication date |
---|---|
CN108156485B (en) | 2019-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105228050B (en) | The method of adjustment and device of earphone sound quality in terminal | |
CN108156485A (en) | Method, apparatus, storage medium and the terminal device of streaming media transcoding | |
CN107682440A (en) | The method for upgrading software of smart machine, device and system | |
CN109299446A (en) | Report-generating method and device | |
CN110673964A (en) | Audio playing control method and device of vehicle-mounted system | |
CN110351378A (en) | A kind of control method and system of internet of things equipment | |
CN110650255A (en) | Method and device for editing color ring back tone, color ring back tone editing unit and storage medium | |
CN107302671A (en) | Material splicing processing method and device, electronic equipment and storage medium | |
CN107220063B (en) | Dynamic wallpaper generation method and device | |
CN106973304A (en) | Nonlinear editing method based on high in the clouds, apparatus and system | |
CN111324378B (en) | Configuration method, device and equipment for video monitoring application software | |
CN107247537A (en) | The processing method and relevant device of a kind of image information | |
CN108279882A (en) | Skeleton generating method, device, equipment and computer-readable medium | |
CN103838578A (en) | Data processing method, data processing device and electronic equipment | |
CN106446283A (en) | Page style generating method and device | |
CN107590682B (en) | Advertisement putting method, server, hotspot device and system | |
CN108471361A (en) | A kind of version upgrading method and device | |
CN112862396B (en) | Distribution range setting method, distribution range setting device, electronic equipment and readable storage medium | |
CN109714195B (en) | Equipment control method and device, electronic equipment and Internet of things system | |
CN106331787A (en) | Channel updating method and device | |
CN111857473A (en) | Audio playing method and device and electronic equipment | |
CN111858018B (en) | Cgroup configuration method and device, computer equipment and storage medium | |
CN106484772B (en) | Footmark treating method and apparatus | |
CN111123883B (en) | Dual-drive unmanned vehicle simulation method, device, equipment and computer readable medium | |
CN111083567A (en) | Live client home page configuration system, storage medium, electronic device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |