Video method for uploading, device, electronic equipment and storage medium

文档序号:1775642 发布日期:2019-12-03 浏览:17次 中文

阅读说明:本技术 视频上传方法、装置、电子设备及存储介质 (Video method for uploading, device, electronic equipment and storage medium ) 是由 闻兴 郑云飞 于冰 王晓楠 陈敏 黄跃 陈宇聪 黄晓政 赵明菲 郭磊 黄博 张 于 2019-09-11 设计创作,主要内容包括:本公开关于一种视频上传方法、装置、电子设备及存储介质。所述视频上传方法应用于客户端,包括:获取待上传视频;确定待上传视频的编码复杂度;将编码复杂度和预设阈值进行比较,确定编码复杂度与预设阈值之间的差异;根据差异,从预设的多个编码参数集中,获取与该差异对应的编码参数集中的目标编码参数;按照目标编码参数,对待上传视频进行编码,并将编码后的待上传视频上传至服务器。由于本公开实施例先针对待上传视频计算了编码复杂度,再将计算出的编码复杂度与预设阈值进行比较,因此可以根据比较结果判断当前的编码参数是否与待上传视频相匹配,并进一步选取合适的编码参数,从而实现了根据上传环境来调整视频的编码参数。(The disclosure is about a kind of video method for uploading, device, electronic equipment and storage medium.The video method for uploading is applied to client, comprising: obtains video to be uploaded;Determine the encoder complexity of video to be uploaded;Encoder complexity and preset threshold are compared, determine the difference between encoder complexity and preset threshold;It according to difference, is concentrated from preset multiple coding parameters, obtains the target code parameter that coding parameter corresponding with the difference is concentrated;It according to target code parameter, treats uploaded videos and is encoded, and the video to be uploaded after coding is uploaded to server.Encoder complexity is calculated since the embodiment of the present disclosure is first directed to video to be uploaded, calculated encoder complexity is compared with preset threshold again, therefore it can judge whether current coding parameter matches with video to be uploaded according to comparison result, and suitable coding parameter is further chosen, the coding parameter of video is adjusted to realize according to environment is uploaded.)

1. a kind of video method for uploading, which is characterized in that be applied to client, comprising:

Obtain video to be uploaded;

Determine the encoder complexity of the video to be uploaded;

The encoder complexity and preset threshold are compared, determined between the encoder complexity and the preset threshold Difference;

It according to the difference, is concentrated from preset multiple coding parameters, obtains what coding parameter corresponding with the difference was concentrated Target code parameter;

It according to the target code parameter, treats uploaded videos and is encoded, and the video to be uploaded after coding is uploaded to clothes Business device.

2. video method for uploading according to claim 1, which is characterized in that the step of acquisition video to be uploaded, packet It includes: obtaining the hardware encoding data of video to be uploaded;

Before the step of encoder complexity of the determination video to be uploaded, further includes:

The hardware encoding data of the video to be uploaded are decoded, the original video data of video to be uploaded is obtained;

The step of encoder complexity of the determination video to be uploaded, comprising:

Determine encoder complexity when encoding to the original video data of the video to be uploaded.

3. video method for uploading according to claim 1, which is characterized in that the coding of the determination video to be uploaded The step of complexity, comprising:

Obtain the initial code parameter of the video to be uploaded;The initial code parameter is preparatory according to history coding parameter It is arranged;

According to the initial code parameter, uploaded videos are treated respectively and carry out inter prediction encoding and intraframe predictive coding;

Based on inter prediction encoding result and intraframe predictive coding as a result, calculating the encoder complexity of the video to be uploaded.

4. video method for uploading according to claim 3, described to be based on inter prediction encoding result and intraframe predictive coding As a result, the step of calculating the encoder complexity of the video to be uploaded, comprising:

Based on inter prediction encoding as a result, calculating the inter prediction encoding complexity of the video to be uploaded;

Based on intraframe predictive coding as a result, calculating the intraframe predictive coding complexity of the video to be uploaded;

According to the second of the first weight of preset inter prediction encoding complexity and preset intraframe predictive coding complexity Weight, inter prediction encoding complexity and intraframe predictive coding complexity weighted sum to the video to be uploaded obtain institute State the encoder complexity value of video to be uploaded.

5. video method for uploading according to claim 4, which is characterized in that described by the encoder complexity and default threshold The step of value is compared, and determines the difference between the encoder complexity and the preset threshold, comprising:

Calculate the difference between the encoder complexity value and preset threshold;

It is described to be concentrated according to the difference from preset multiple coding parameters, acquisition coding parameter collection corresponding with the difference In target code parameter the step of, comprising:

It obtains each coding parameter collection and presets corresponding difference section;

By the corresponding coding parameter collection in the difference section comprising the difference, it is determined as target code parameter set;

Each coding parameter in the target code parameter set is obtained, as target code parameter.

6. a kind of video uploads device, which is characterized in that be applied to client, comprising:

Video acquisition unit is configured as executing acquisition video to be uploaded;

Determination unit is configured as executing the encoder complexity for determining the video to be uploaded;

Comparing unit is configured as execution and is compared the encoder complexity and preset threshold, determines that the coding is complicated Difference between degree and the preset threshold;

Parameter acquiring unit is configured as executing being concentrated from preset multiple coding parameters according to the difference, obtain with it is described The target code parameter that the corresponding coding parameter of difference is concentrated;

Uploading unit is configured as executing treating uploaded videos according to the target code parameter and being encoded, and will be after coding Video to be uploaded be uploaded to server.

7. video according to claim 6 uploads device, which is characterized in that

The video acquisition unit is specifically configured to execute the hardware encoding data for obtaining video to be uploaded;

The video uploads device further include:

Decoding unit, before being configured as executing the encoder complexity that the determination unit determines the video to be uploaded, to institute The hardware encoding data for stating video to be uploaded are decoded, and obtain the original video data of video to be uploaded;

The determination unit, is specifically configured to execute and determines when encoding to the original video data of the video to be uploaded Encoder complexity.

8. video according to claim 6 uploads device, which is characterized in that the determination unit, comprising:

Module is obtained, is configured as executing the initial code parameter for obtaining the video to be uploaded;The initial code parameter is It is pre-set according to history coding parameter;

Predictive coding module is configured as executing according to the initial code parameter, and it is pre- to treat uploaded videos progress interframe respectively Survey coding and intraframe predictive coding;

Computing module is configured as executing based on inter prediction encoding result and intraframe predictive coding as a result, calculating described to upper Pass the encoder complexity of video.

9. a kind of client characterized by comprising

Processor;

For storing the memory of the processor-executable instruction;

Wherein, the processor is configured to executing described instruction, to realize the view as described in any one of claims 1 to 5 Frequency method for uploading.

10. a kind of storage medium, when the instruction in the storage medium is executed by the processor of client, enable client Enough video method for uploading executed as described in any one of claims 1 to 5.

Technical field

This disclosure relates to technical field of video processing more particularly to a kind of video method for uploading, device, electronic equipment and deposit Storage media.

Background technique

In recent years, With the fast development of internet, with short-sighted frequency UGC (User Generated Content, Yong Husheng At content) based on website or APP it is rapidly growing, more and more users become the creator of Web content.

In general, user is in the upload that the process of UGC platform sharing video frequency includes video, transcoding and issues.But due to view Frequency file is larger, and client can first encode video before uploaded videos.In the related technology, volume when client encodes Code parameter is configured according to historical experience.For motion intense, texture is complicated, the frequent complicated video of scene switching, if The coding parameter of configuration is larger to the compression ratio of video, then video code rate can be made too low, reduce video quality;And for movement Gently, the simple video that texture is smooth, scene stillness is single, if the coding parameter of configuration is smaller to the compression ratio of video, Video code rate can be made excessively high, cause coding redundancy, reduce the success rate that video uploads.

As it can be seen that client cannot adjust the coding parameter of video according to environment is uploaded in above-mentioned video method for uploading.

Summary of the invention

The disclosure provides a kind of video method for uploading, device, electronic equipment and storage medium, at least to solve the relevant technologies The problem of middle client cannot be according to coding parameter of the environment to adjust video be uploaded.The technical solution of the disclosure is as follows:

According to the first aspect of the embodiments of the present disclosure, a kind of video method for uploading is provided, client is applied to, comprising:

Obtain video to be uploaded;

Determine the encoder complexity of the video to be uploaded;

The encoder complexity and preset threshold are compared, determine the encoder complexity and the preset threshold it Between difference;

According to the difference, is concentrated from preset multiple coding parameters, obtain coding parameter collection corresponding with the difference In target code parameter;

It according to the target code parameter, treats uploaded videos and is encoded, and the video to be uploaded after coding is uploaded To server.

Optionally, the step of acquisition video to be uploaded, comprising: obtain the hardware encoding data of video to be uploaded;

Before the step of encoder complexity of the determination video to be uploaded, further includes:

The hardware encoding data of the video to be uploaded are decoded, the original video data of video to be uploaded is obtained;

The step of encoder complexity of the determination video to be uploaded, comprising:

Determine encoder complexity when encoding to the original video data of the video to be uploaded.

Optionally, the initial code parameter of the video to be uploaded is obtained;The initial code parameter, is compiled according to history Code parameter is pre-set;

According to the initial code parameter, uploaded videos are treated respectively and carry out inter prediction encoding and intraframe predictive coding;

Based on inter prediction encoding result and intraframe predictive coding as a result, the coding for calculating the video to be uploaded is complicated Degree.

Optionally, described to be based on inter prediction encoding result and intraframe predictive coding as a result, calculating the video to be uploaded Encoder complexity the step of, comprising:

Based on inter prediction encoding as a result, calculating the inter prediction encoding complexity of the video to be uploaded;

Based on intraframe predictive coding as a result, calculating the intraframe predictive coding complexity of the video to be uploaded;

According to the first weight of preset inter prediction encoding complexity and preset intraframe predictive coding complexity Second weight, inter prediction encoding complexity and intraframe predictive coding complexity weighted sum to the video to be uploaded, is obtained Obtain the encoder complexity value of the video to be uploaded.

Optionally, described to be compared the encoder complexity and preset threshold, determine the encoder complexity and institute The step of stating the difference between preset threshold, comprising:

Calculate the difference between the encoder complexity value and preset threshold;

It is described to be concentrated according to the difference from preset multiple coding parameters, obtain coding ginseng corresponding with the difference The step of target code parameter in manifold, comprising:

It obtains each coding parameter collection and presets corresponding difference section;

By the corresponding coding parameter collection in the difference section comprising the difference, it is determined as target code parameter set;

Each coding parameter in the target code parameter set is obtained, as target code parameter.

According to the second aspect of an embodiment of the present disclosure, a kind of video upload device is provided, client is applied to, comprising:

Video acquisition unit is configured as executing acquisition video to be uploaded;

Determination unit is configured as executing the encoder complexity for determining the video to be uploaded;

Comparing unit is configured as execution and is compared the encoder complexity and preset threshold, determines the coding Difference between complexity and the preset threshold;

Parameter acquiring unit is configured as executing being concentrated from preset multiple coding parameters according to the difference, obtain with The target code parameter that the corresponding coding parameter of the difference is concentrated;

Uploading unit is configured as executing treating uploaded videos according to the target code parameter and being encoded, and will compile Video to be uploaded after code is uploaded to server.

Optionally, the video acquisition unit is specifically configured to execute the hardware encoding data for obtaining video to be uploaded;

The video uploads device further include:

Decoding unit, before being configured as executing the encoder complexity that the determination unit determines the video to be uploaded, The hardware encoding data of the video to be uploaded are decoded, the original video data of video to be uploaded is obtained;

The determination unit is specifically configured to execution determination and compiles to the original video data of the video to be uploaded Encoder complexity when code.

Optionally, the determination unit, comprising:

Module is obtained, is configured as executing the initial code parameter for obtaining the video to be uploaded;The initial code ginseng Number, is pre-set according to history coding parameter;

Predictive coding module is configured as executing according to the initial code parameter, treats uploaded videos respectively and carries out frame Between predictive coding and intraframe predictive coding;

Computing module is configured as executing based on inter prediction encoding result and intraframe predictive coding as a result, described in calculating The encoder complexity of video to be uploaded.

Optionally, the computing module, comprising:

First computational submodule is configured as executing based on inter prediction encoding as a result, calculating the video to be uploaded Inter prediction encoding complexity;

Second computational submodule is configured as executing based on intraframe predictive coding as a result, calculating the video to be uploaded Intraframe predictive coding complexity;

Third computational submodule is configured as executing the first weight according to preset inter prediction encoding complexity, with And the second weight of preset intraframe predictive coding complexity, to the inter prediction encoding complexity and frame of the video to be uploaded Intraprediction encoding complexity weighted sum obtains the encoder complexity value of the video to be uploaded.

Optionally, the comparing unit, be specifically configured to execute calculate the encoder complexity value and preset threshold it Between difference;

The parameter acquiring unit, comprising:

Section obtains module, is configured as executing each preset corresponding difference section of coding parameter collection of acquisition;

Coding parameter collection determining module is configured as executing the corresponding coding parameter in difference section comprising the difference Collection, is determined as target code parameter set;

Coding parameter obtains module, is configured as executing each coding parameter obtained in the target code parameter set, As target code parameter.

According to the third aspect of an embodiment of the present disclosure, a kind of client is provided, comprising:

Processor;

For storing the memory of the processor-executable instruction;

Wherein, the processor is configured to executing described instruction, to realize any video of above-mentioned first aspect Method for uploading.

According to a fourth aspect of embodiments of the present disclosure, a kind of storage medium is provided, when the instruction in the storage medium by When the processor of client executes, enable a client to execute any video method for uploading of above-mentioned first aspect.

According to a fifth aspect of the embodiments of the present disclosure, a kind of computer program product is provided, when the computer program produces When product are executed by the processor of client, enable a client to execute any video upload side of above-mentioned first aspect Method.

The technical scheme provided by this disclosed embodiment is at least brought following the utility model has the advantages that by obtaining video to be uploaded; Determine the encoder complexity of the video to be uploaded;The encoder complexity and preset threshold are compared, determine the volume Difference between code complexity and the preset threshold;According to the difference, concentrated from preset multiple coding parameters, obtain with The target code parameter that the corresponding coding parameter of the difference is concentrated;According to the target code parameter, treat uploaded videos into Row coding, and the video to be uploaded after coding is uploaded to server.Since the embodiment of the present disclosure is first directed to video meter to be uploaded Encoder complexity has been calculated, then calculated encoder complexity has been compared with preset threshold, therefore can be according to comparison result Judge whether current coding parameter matches with video to be uploaded, and further choose suitable coding parameter, to realize The coding parameter of video is adjusted according to environment is uploaded.

It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.

Detailed description of the invention

The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.

Fig. 1 is a kind of flow chart of video method for uploading shown according to an exemplary embodiment.

Fig. 2 a is a kind of another flow chart of video method for uploading shown according to an exemplary embodiment.

Fig. 2 b is the flow chart that encoder complexity value is calculated in Fig. 2 a illustrated embodiment.

Fig. 3 is the block diagram that a kind of video shown according to an exemplary embodiment uploads device.

Fig. 4 is a kind of block diagram of client shown according to an exemplary embodiment.

Fig. 5 is a kind of block diagram of equipment uploaded for video shown according to an exemplary embodiment.

Fig. 6 is the block diagram of another equipment uploaded for video shown according to an exemplary embodiment.

Specific embodiment

In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs The technical solution opened in embodiment is clearly and completely described.

It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiment of the disclosure described herein can in addition to illustrating herein or Sequence other than those of description is implemented.Embodiment described in following exemplary embodiment does not represent and disclosure phase Consistent all embodiments.On the contrary, they are only and as detailed in the attached claim, the disclosure some aspects The example of consistent device and method.

Fig. 1 is a kind of flow chart of video method for uploading shown according to an exemplary embodiment.As shown in Figure 1, described Video method for uploading is applied to client, comprising the following steps:

In step s101, video to be uploaded is obtained.

In this step, video to be uploaded can be imported from local photograph album, can also be after obtaining shooting permission, by user Shooting obtains;The format of video to be uploaded can be AVI, MP4 or RMVB.

In step s 102, the encoder complexity of video to be uploaded is determined.

Specifically, can use predictive encoding of video algorithm, the encoder complexity of video to be uploaded is calculated.

In step s 103, encoder complexity and preset threshold are compared, determine encoder complexity and preset threshold Between difference.

In step S104, according to difference, is concentrated from preset multiple coding parameters, obtain coding corresponding with the difference Target code parameter in parameter set.

In step s105, according to target code parameter, uploaded videos is treated and are encoded, and will be to be uploaded after coding Video is uploaded to server.

As it can be seen that calculate encoder complexity since the embodiment of the present disclosure is first directed to video to be uploaded, then by calculated volume Code complexity be compared with preset threshold, can be judged according to comparison result current coding parameter whether with video to be uploaded Match, and further choose suitable coding parameter, adjusts coding parameter to realize according to different upload environment.

Fig. 2 a is a kind of another flow chart of video method for uploading shown according to an exemplary embodiment.Such as Fig. 2 a institute Show, the video method for uploading is applied to client, comprising the following steps:

In step s 201, video to be uploaded is obtained.

It is understood that capture apparatus can carry out hardware encoding to it in the shooting process of video to be uploaded.Cause This, in this step, the hardware encoding data of available video to be uploaded.

In step S202, the initial code parameter of video to be uploaded is obtained.

In a kind of possible embodiment, initial code parameter is preset according to history coding parameter.

In step S203, uploaded videos are treated according to initial code parameter and carry out predictive coding.

In step S204, based on predictive coding as a result, calculating the encoder complexity value of video to be uploaded.

In step S203~S204, the hardware encoding data that can first treat uploaded videos are decoded, and are obtained to upper Pass the original video data of video;Then, according to initial code parameter, the original video data for treating uploaded videos respectively is carried out Intraframe predictive coding and inter prediction encoding, based on predictive coding as a result, calculating the encoder complexity value of video to be uploaded.

Specifically, b, encoder complexity value can be calculated using following steps and be obtained referring to fig. 2:

In step S2041, the intraframe predictive coding based on original video data is as a result, calculate in the frame of video to be uploaded Predictive coding complexity;

In step S2042, the inter prediction encoding based on original video data is as a result, calculate the interframe of video to be uploaded Predictive coding complexity;

In step S2043, according to pre- in the first weight of preset inter prediction encoding complexity and preset frame The second weight of encoder complexity is surveyed, the inter prediction encoding complexity and intraframe predictive coding complexity for treating uploaded videos add Power summation, obtains the encoder complexity value of video to be uploaded.

In a kind of possible embodiment, the first weight and the second weight are particularly shown scene according to video to be uploaded To be arranged.For example, user is watching if video to be uploaded is issued to the screens such as mobile phone, tablet computer lesser terminal device When it is insensitive for image detail, therefore can be improved that the specific gravity of inter prediction encoding complexity, to reduce intraframe predictive coding complicated The specific gravity of degree;Conversely, if user is to the quick of image detail when video to be uploaded needs to be shown in the biggish LED screen of screen Sensitivity is higher, then can reduce the specific gravity of inter prediction encoding complexity, improve the specific gravity of intraframe predictive coding complexity.

Certainly, the first weight and the second weight can also be directly arranged based on experience value.

Difference in step S205, between calculation code complexity value and preset threshold.

Here, threshold value can be previously according between the video code rate to be uploaded after video quality, upload success rate and coding Statistical data be arranged.

Illustratively, if the inter prediction encoding complexity and intraframe predictive coding complexity of video to be uploaded are respectively 2 With 5, preset first weight and the second weight are respectively 0.6 and 0.4, preset threshold 2.5, then the coding of video to be uploaded Complexity value is 2 × 0.6+5 × 0.4=3.2, and the difference between encoder complexity value and preset threshold is 0.7.

In step S206, obtains each coding parameter collection and preset corresponding difference section.

Specifically, it includes the multiple codings ginseng encoded for treating uploaded videos that each coding parameter, which is concentrated, Number, frame structure, coding gear, CU (CodingUnit, coding unit), TU (Transform Unit, converting unit) and PU (Prediction Unit, predicting unit) etc..

In step S207, by the corresponding coding parameter collection in the difference section comprising the difference, it is determined as target code ginseng Manifold.

In the present embodiment, each coding parameter collection can be corresponding with a preset difference section.As shown in table 1, it compiles Code parameter set 1, coding parameter collection 2 ... coding parameter collection M respectively with difference section [0,0.5), [0.5,1) ... [and a, b) it is right It answers.When the difference between the encoder complexity value and preset threshold for calculating acquisition falls into a certain difference section in following table, with The corresponding coding parameter collection in the difference section is exactly target code parameter set.

For example, it is 0.7 that step S205, which calculates the difference obtained, reference table 1,0.7 ∈ of difference [0.5,1), therefore, coding ginseng Manifold 2 can be targeted coding parameter collection.

Table 1

Coding parameter set identifier Difference section
1 [0,0.5)
2 [0.5,1)
…… ……
M [a, b)

In step S208, each coding parameter in target code parameter set is obtained, as target code parameter.

It in step S209, according to target code parameter, treats uploaded videos and is encoded, and will be to be uploaded after coding Video is uploaded to server.

In the present embodiment, after video to be uploaded is uploaded to server, server can detecte whether receive user's Watching request contains the type of the user in the watching request, such as: ordinary user or advanced level user;Server according to The type at family pushes to CDN server after treating uploaded videos transcoding, so that user client pulls the view from CDN server Frequently.For example, video code conversion to be uploaded can be by server when sending the type of user of watching request is ordinary user X.264 format;When sending the type of user of watching request is advanced level user, then can be by video code conversion to be uploaded X.265 format.Compared with X.264 format, X.265 not only image quality is apparent for the video of format, and file size also can reduce about 50%, improve the user experience of advanced level user.

Fig. 3 is the block diagram that a kind of video shown according to an exemplary embodiment uploads device.Referring to Fig. 3, the device packet Include video acquisition unit 310, determination unit 320, comparing unit 330, parameter acquiring unit 340 and uploading unit 350.

The video acquisition unit 310 is configured as executing acquisition video to be uploaded;

The determination unit 320 is configured as executing the encoder complexity for determining the video to be uploaded;

The comparing unit 330 is configured as execution and is compared the encoder complexity and preset threshold, described in determination Difference between encoder complexity and the preset threshold;

The parameter acquiring unit 340 is configured as executing according to the difference, concentrate from preset multiple coding parameters, Obtain the target code parameter that coding parameter corresponding with the difference is concentrated;

The uploading unit 350 is configured as executing treating uploaded videos according to the target code parameter and being encoded, And the video to be uploaded after coding is uploaded to server.

The technical scheme provided by this disclosed embodiment is at least brought following the utility model has the advantages that by obtaining video to be uploaded; Determine the encoder complexity of the video to be uploaded;The encoder complexity and preset threshold are compared, determine the volume Difference between code complexity and the preset threshold;According to the difference, concentrated from preset multiple coding parameters, obtain with The target code parameter that the corresponding coding parameter of the difference is concentrated;According to the target code parameter, treat uploaded videos into Row coding, and the video to be uploaded after coding is uploaded to server.Since the embodiment of the present disclosure is first directed to video meter to be uploaded Encoder complexity has been calculated, then calculated encoder complexity has been compared with preset threshold, therefore can be according to comparison result Judge whether current coding parameter matches with video to be uploaded, and further choose suitable coding parameter, to adapt to Different videos uploads environment.

In a kind of possible embodiment, it is to be uploaded to be specifically configured to execution acquisition for the video acquisition unit 310 The hardware encoding data of video;

The video uploads device further include:

Decoding unit, be configured as executing the determination unit 320 determine the video to be uploaded encoder complexity it Before, the hardware encoding data of the video to be uploaded are decoded, the original video data of video to be uploaded is obtained;

The determination unit 320, be specifically configured to execute determine to the original video data of the video to be uploaded into Encoder complexity when row coding.

In a kind of possible embodiment, the determination unit 320, comprising:

Module is obtained, is configured as executing the initial code parameter for obtaining the video to be uploaded;The initial code ginseng Number, is pre-set according to history coding parameter;

Predictive coding module is configured as executing according to the initial code parameter, treats uploaded videos respectively and carries out frame Between predictive coding and intraframe predictive coding;

Computing module is configured as executing based on inter prediction encoding result and intraframe predictive coding as a result, described in calculating The encoder complexity of video to be uploaded.

In a kind of possible embodiment, the computing module, comprising:

First computational submodule is configured as executing based on inter prediction encoding as a result, calculating the video to be uploaded Inter prediction encoding complexity;

Second computational submodule is configured as executing based on intraframe predictive coding as a result, calculating the video to be uploaded Intraframe predictive coding complexity;

Third computational submodule is configured as executing the first weight according to preset inter prediction encoding complexity, with And the second weight of preset intraframe predictive coding complexity, to the inter prediction encoding complexity and frame of the video to be uploaded Intraprediction encoding complexity weighted sum obtains the encoder complexity value of the video to be uploaded.

In a kind of possible embodiment, the comparing unit 330 is specifically configured to execute the calculating coding again Difference between miscellaneous angle value and preset threshold;

The parameter acquiring unit 340, comprising:

Section obtains module, is configured as executing each preset corresponding difference section of coding parameter collection of acquisition;

Coding parameter collection determining module is configured as executing the corresponding coding parameter in difference section comprising the difference Collection, is determined as target code parameter set;

Coding parameter obtains module, is configured as executing each coding parameter obtained in the target code parameter set, As target code parameter.

About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.

The disclosure additionally provides a kind of client, as shown in figure 4, including processor 401, communication interface 402, memory 403 and communication bus 404, wherein processor 401, communication interface 402, memory 403 are completed mutually by communication bus 404 Between communication,

Memory 403, for storing computer program;

Processor 401 when for executing the program stored on memory 403, realizes following steps:

Obtain video to be uploaded;

Determine the encoder complexity of the video to be uploaded;

The encoder complexity and preset threshold are compared, determine the encoder complexity and the preset threshold it Between difference;

According to the difference, is concentrated from preset multiple coding parameters, obtain coding parameter collection corresponding with the difference In target code parameter;

It according to the target code parameter, treats uploaded videos and is encoded, and the video to be uploaded after coding is uploaded To server.

The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.

Communication interface is for the communication between above-mentioned client and other equipment.

Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.

Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.

In the another embodiment that the disclosure provides, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with computer program in storage medium, the computer program realizes that any of the above-described video uploads when being executed by processor Method the step of.

In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes the method that any video uploads in above-described embodiment.

Fig. 5 is a kind of block diagram of equipment 500 uploaded for video shown according to an exemplary embodiment.For example, setting Standby 500 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..

Referring to Fig. 5, equipment 500 may include following one or more components: processing component 502, memory 504, power supply Component 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514, and Communication component 516.

Processing component 502 usually control equipment 500 integrated operation, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 502 may include that one or more processors 520 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 502 may include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 may include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.

Memory 504 is configured as storing various types of data to support the operation in equipment 500.These data are shown Example includes the instruction of any application or method for operating in equipment 500, contact data, and telephone book data disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.

Power supply module 506 provides electric power for the various assemblies of equipment 500.Power supply module 506 may include power management system System, one or more power supplys and other with for equipment 500 generate, manage, and distribute the associated component of electric power.

Multimedia component 508 includes the screen of one output interface of offer between the equipment 500 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When equipment 500 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.

Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when equipment 500 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set Part 516 is sent.In some embodiments, audio component 510 further includes a loudspeaker, is used for output audio signal.

I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.

Sensor module 514 includes one or more sensors, and the state for providing various aspects for equipment 500 is commented Estimate.For example, sensor module 514 can detecte the state that opens/closes of equipment 500, and the relative positioning of component, for example, it is described Component is the display and keypad of equipment 500, and sensor module 514 can be with 500 1 components of detection device 500 or equipment Position change, the existence or non-existence that user contacts with equipment 500,500 orientation of equipment or acceleration/deceleration and equipment 500 Temperature change.Sensor module 514 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 514 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.

Communication component 516 is configured to facilitate the communication of wired or wireless way between equipment 500 and other equipment.Equipment 500 can access the wireless network based on communication standard, such as WiFi, carrier network (such as 2G, 3G, 4G or 5G) or them Combination.In one exemplary embodiment, communication component 516 is received via broadcast channel from the wide of external broadcasting management system Broadcast signal or broadcast related information.In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) Module, to promote short range communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) can be based in NFC module Technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.

In the exemplary embodiment, equipment 500 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing any of the above-described video upload Method.

In the exemplary embodiment, a kind of storage medium including instruction, the memory for example including instruction are additionally provided 504, above-metioned instruction can be executed by the processor 520 of equipment 500 to complete the above method.Optionally, storage medium can be with right and wrong Provisional computer readable storage medium, for example, the non-transitorycomputer readable storage medium can be ROM, deposit at random Access to memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..

Fig. 6 is a kind of block diagram of equipment 600 uploaded for video shown according to an exemplary embodiment.For example, setting Standby 600 may be provided as a client.Referring to Fig. 6, equipment 600 includes processing component 622, further comprises one or more A processor, and the memory resource as representated by memory 632, can be by the finger of the execution of processing component 622 for storing It enables, such as application program.The application program stored in memory 632 may include it is one or more each correspond to The module of one group of instruction.In addition, processing component 622 is configured as executing instruction, to execute the method that any of the above-described video uploads.

Equipment 600 can also include that a power supply module 626 is configured as executing the power management of equipment 600, and one has Line or radio network interface 650 are configured as equipment 600 being connected to network and input and output (I/O) interface 658.If Standby 600 can operate based on the operating system for being stored in memory 632, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM.

Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.

It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:自动搜台方法、电视机设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类