CN104243999A - Video coding method and platform side server - Google Patents

Video coding method and platform side server Download PDF

Info

Publication number
CN104243999A
CN104243999A CN201310231390.9A CN201310231390A CN104243999A CN 104243999 A CN104243999 A CN 104243999A CN 201310231390 A CN201310231390 A CN 201310231390A CN 104243999 A CN104243999 A CN 104243999A
Authority
CN
China
Prior art keywords
macro block
reserved
display information
video image
code stream
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
Application number
CN201310231390.9A
Other languages
Chinese (zh)
Other versions
CN104243999B (en
Inventor
田卉
黄晓伟
张俭
袁潮
杨蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201310231390.9A priority Critical patent/CN104243999B/en
Publication of CN104243999A publication Critical patent/CN104243999A/en
Application granted granted Critical
Publication of CN104243999B publication Critical patent/CN104243999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a video coding method and a platform side server. The method includes the steps that a reserved macro block where display information can be inserted is reserved in each video image frame, and the video image is coded to generate an original video image code stream; different display information is superposed on the reserved macro block to generate multiple insertion macro blocks, and the insertion macro blocks are respectively coded to generate multiple coding code streams with different display information; reserved macro block code streams in the original video image code stream are replaced with the coding code streams to generate multiple new video image code streams with different display information. According to the video coding method and the platform side server, it is avoided that N times of coding is integrally performed on an original video file, the calculation amount, for original video coding, of the platform side server is reduced, and calculation loads and pressure of the platform side server are reduced.

Description

A kind of method for video coding and platform side server
Technical field
The present invention relates to technical field of video coding in the communications field, particularly, relate to a kind of method for video coding and platform side server.
Background technology
Along with the universal of video traffic and the quickening of the integration of three networks, video is ubiquitous, and video is present in each field of every profession and trade, and as media companies, government and enterprises, education, medium-sized and small enterprises, video market development potentiality is huge.
The B2B business model of To enterprises client is just becoming the new trend of video industry development, each field enterprise such as government and enterprises client, educational institution, medium-sized and small enterprises etc. need in limited resources situation very fast to video processing with issue, leading operator by Video service platform for corporate client provides the B2B of video trustship to serve.
Video adds logo(logo, mark, trade mark, icon, and logotype writes a Chinese character in simplified form) be basic video process requirements, same popular video has the demand of adding N number of logo towards N number of corporate client, namely generate the video of the different logo of N number of band.As numerous middle and small scale video website, for seizing user, needing fast logo to be added fast to hot broadcast play and reaching the standard grade; As numerous English training website, need fast logo to be added to the English course of hot topic and reach the standard grade and give lessons.Visible have very large user and the market demand to quick to the interpolation that video carries out different logo.
In the prior art, video adds the common mode of logo is insert icon re-encoding after decoding or insert icon in client decoding.These two class methods all have some shortcomings:
1, the calculating of decoding re-encoding requires very high to the computational resource of system, and the treatable number of videos of system is limited, and equipment investment is also very large.
2, figure calibration method is inserted in client decoding, needs to carry out client adaptation, as carried out adaptation to the terminal type such as pc, mobile phone to operating system, screen size etc.
3, figure calibration method is inserted in client decoding, makes the former video transmitted to ensure video copy.
Video add logo can after platform side server adds logo coding transmission, if but same popular video has N number of demand adding logo, usual method is that coding transmits for N time again, and the coding computation burden of such platform side server is very heavy, under limited resources, server stress is large, and the processing time is long.
Summary of the invention
The present invention needs to insert different display information to same video in prior art and generate multiple video in order to overcome thus cause the defect that coding pressure is larger, according to an aspect of the present invention, proposes a kind of method for video coding.
According to the method for video coding of the embodiment of the present invention, comprising:
By reserving the reserved macro block that can insert display information in every frame video image, video image being encoded, generating raw video image code stream;
Different display information superposition is generated multiple insertion macro block to reserved macro block, insertion macro block is encoded respectively, generate multiple encoding code stream with difference display information; ;
Encoding code stream is replaced the reserved macro block code stream in raw video image code stream, generate multiple new video image code stream with difference display information.
The present invention needs to insert different display information to same video in prior art and generate multiple video in order to overcome thus cause the defect that coding pressure is larger, according to another aspect of the present invention, proposes a kind of platform side server.
According to the platform side server of the embodiment of the present invention, comprising:
Reserved coding module, for by reserving the reserved macro block that can insert display information in every frame video image, encodes to video image, generates raw video image code stream;
Generate coding module, for different display information superposition is generated multiple insertion macro block to reserved macro block, insertion macro block is encoded respectively, generate multiple encoding code stream with difference display information;
Replacing generation module, for encoding code stream being replaced the reserved macro block code stream in raw video image code stream, generating multiple new video image code stream with difference display information.
Method for video coding of the present invention and platform side server, when needing the demand of adding N number of different logo to same video, coding is divided out by former video and logo, encode separately once by former video, and reserve the macroblock area that can cover logo, be added to logo reserved macroblock area independent coding, then logo encoding block is replaced macro block reserved in former video and generate new video code flow and export; Avoid and N coding is all carried out to former video file entirety, to former video file coding once, decrease the amount of calculation of platform side server to former Video coding, alleviate computational load and the pressure of platform side server, save the input of device resource, the logo information that the multiple new video stream finally generated are subsidiary different, ensure that the video copy of each enterprise gateway server; Efficiently solve the problem of client adaptation, various terminal is having video capable of being watched content all, does not need the adaptation of carrying out operating system and screen size, gives and uses the user of client to bring more convenience.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of method for video coding embodiment one of the present invention;
Fig. 2 is the schematic flow sheet of method for video coding embodiment two of the present invention;
Fig. 3 is the structural representation of the former frame of video of the present invention not with logo;
Fig. 4 is the structural representation of the video code flow of former frame of video in Fig. 3;
Fig. 5 is the structural representation of the video code flow composition one video code flow in Fig. 4;
Fig. 6 is the structural representation that the present invention superposes the macroblock area of logo;
Fig. 7 is the structural representation that logo macro block of the present invention is encoded separately;
Fig. 8 is the structural representation that logo macro block of the present invention replaces the I macro block in former video;
Fig. 9 is the structural representation of platform side server of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail, but is to be understood that protection scope of the present invention not by the restriction of embodiment.
The present invention proposes a kind of method for video coding, need to same video the demand inserting N number of display information (as logo), former video and display unpack coding, namely former video is encoded once separately, and reserves the macroblock area that can cover display information.Display information superposition generated to the macroblock area reserved and insert macro block, N number of insertion macro block can be encoded in parallelization, then the insertion macro block completing coding is replaced macro block code stream output reserved in former video, generates the video code flow of the different display information of N number of band.
As shown in Figure 1, be the schematic flow sheet of method for video coding embodiment one of the present invention, comprise:
Step 102: by reserving the reserved macro block that can insert display information in every frame video image, encode to video image, generates raw video image code stream;
Step 104: different display information superposition is generated multiple insertion macro block to reserved macro block, is encoded respectively by insertion macro block, generates multiple encoding code stream with difference display information;
Step 106: encoding code stream is replaced the reserved macro block code stream in raw video image code stream, generates multiple new video image code stream with difference display information.
The method for video coding of the present embodiment, the reserved macro block that can insert display information will be reserved in every frame video image, the reserved macro block that different display information (as video logo) is added to generates encoding code stream, the reserved macro block code stream in raw video image is replaced by this encoding code stream, avoid and former video file entirety is all repeatedly encoded, to former video file coding once, decrease the amount of calculation of platform side server to former Video coding, alleviate computational load and the pressure of platform side server.
As shown in Figure 2, the present invention discloses the flow process of method for video coding for display information for logo information, comprising:
Step 1, platform side server is encoded to the former video not with logo.
As in Figure 3-5, encode to two field picture every in former video, the corresponding code stream of every two field picture, comprising:
A, the region of getting logo to be added are I macro block, ensure that I macroblock area size can cover (being namely more than or equal to) logo region;
B, when setting Video coding, to or not I macro block during subsequent frame index, can other macro blocks of index, thus realize between other macro blocks of every frame of video and I macro block without coupling.
Above condition makes other regions in every frame of video code stream not affect I macro block code stream, and only need compile logo macro block, other regions do not need recompile, logo macro block substitute I macro block code stream part.Above condition makes N number of logo encoding block without coupling simultaneously, parallelization can encode, generates N number of logo macro block code stream.
Step 2, certain enterprise gateway server adds logoi(i-th logo to platform side server request).
Step 3, logoi and the superposition of corresponding I macro block are generated logoi macro block by platform side server.
Particularly, as shown in Figure 6, the I macro block of the every two field picture in video is proceeded as follows:
A, the neighbor pixel composition new region block may will used when I macro block and this macroblock coding.
B, by the new region block of every frame superposition logoi, formed band logo macroblock area (i.e. logo macro block).
Step 4, platform side server is encoded separately to logoi macro block, and the N number of logo macroblock sequence frame wherein produced by N number of logo demand can carry out parallelization coded treatment, carries out coded treatment, as shown in Figure 7 by N number of logo macroblock sequence frame simultaneously.
N number of logo for N number of enterprise gateway server adds demand, does not need the coding carrying out N former video.To former Video coding once, owing to ensure that during former Video coding that the not indexed logo of the making macro block of I macro block can be encoded separately, all frames of N number of logo macroblock sequence can parallelization coded treatment, the fast N number of logo macroblock coding code stream of generation thus for platform side server.
Step 5, logo macro block is replaced the I macro block in former frame of video by platform side server, generates new video code flow, as shown in Figure 8.
N number of logo macroblock coding code stream replaces I macro block code stream in former video, generates N number of video code flow with different logo information fast.
Step 6, new video code stream is sent to enterprise gateway server by platform side server.
Step 7, new video code stream is sent to client by enterprise gateway server.
Step 8, client is decoded, and receives the video file being with different logo.
In above-mentioned steps 1-8, when N number of enterprise gateway server adds different video logo to video platform server request to same video, former video and logo are divided out coding by platform side server, first former video is encoded separately once, secondly the reserved I macro block that is added to by N number of logo generates logo macro block, again N number of logo macro block is carried out parallelization coding, in the last reserved I macro block code stream be substituted into by logo encoding code stream again in former video, export the video code flow of the different logo information of N number of band.
Method for video coding of the present invention, when needing the demand of adding N number of different logo to same video, coding is divided out by former video and logo, encode separately once by former video, and reserve the macroblock area that can cover logo, be added to logo reserved macroblock area independent coding, then logo encoding block is replaced macro block reserved in former video and generate new video code flow and export; Avoid and N coding is all carried out to former video file entirety, to former video file coding once, decrease the amount of calculation of platform side server to former Video coding, alleviate computational load and the pressure of platform side server, save the input of device resource, the logo information that the multiple new video stream finally generated are subsidiary different, ensure that the video copy of each enterprise gateway server; Efficiently solve the problem of client adaptation, various terminal is having video capable of being watched content all, does not need the adaptation of carrying out operating system and screen size, gives and uses the user of client to bring more convenience.
As shown in Figure 9, be the structural representation of platform side server of the present invention, embodiment comprises:
Reserved coding module 1, for by reserving the reserved macro block that can insert display information in every frame video image, encodes to video image, generates raw video image code stream;
Generate coding module 2, for different display information superposition is generated multiple insertion macro block to reserved macro block, insertion macro block is encoded respectively, generate multiple encoding code stream with difference display information;
Replacing generation module 3, for encoding code stream being replaced the reserved macro block code stream in raw video image code stream, generating multiple new video image code stream with difference display information.
Wherein, display information is logo information.
Wherein, reserved coding module 1, specifically for ensureing that the area size of reserved macro block can cover the affiliated area of display information.
Wherein, reserved coding module 1, index other macro block except reserving macro block during the subsequent frame index of video image being encoded specifically for setting.
Wherein, generate coding module 2, specifically for by reserved macro block and reserved macroblock coding neighbor pixel composition new region block used, will show information superposition to new region block generation insertion macro block.
Platform side server of the present invention, when needing the demand of adding N number of different logo to same video, coding is divided out by former video and logo, encode separately once by former video, and reserve the macroblock area that can cover logo, be added to logo reserved macroblock area independent coding, then logo encoding block is replaced macro block reserved in former video and generate new video code flow and export; Avoid and N coding is all carried out to former video file entirety, to former video file coding once, decrease the amount of calculation of platform side server to former Video coding, alleviate computational load and the pressure of platform side server, save the input of device resource, the logo information that the multiple new video stream finally generated are subsidiary different, ensure that the video copy of each enterprise gateway server; Efficiently solve the problem of client adaptation, various terminal is having video capable of being watched content all, does not need the adaptation of carrying out operating system and screen size, gives and uses the user of client to bring more convenience.
The present invention can have multiple multi-form embodiment; above for Fig. 1-Fig. 9 by reference to the accompanying drawings to technical scheme of the present invention explanation for example; this does not also mean that the instantiation that the present invention applies can only be confined in specific flow process or example structure; those of ordinary skill in the art should understand; specific embodiments provided above is some examples in multiple its preferred usage, and the execution mode of any embodiment the claims in the present invention all should within technical solution of the present invention scope required for protection.
Last it is noted that the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although with reference to previous embodiment to invention has been detailed description, for a person skilled in the art, it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method for video coding, is characterized in that, comprising:
By reserving the reserved macro block that can insert display information in every frame video image, described video image being encoded, generating raw video image code stream;
Different display information superposition is generated multiple insertion macro block to described reserved macro block, described insertion macro block is encoded respectively, generate multiple encoding code stream with difference display information;
Described encoding code stream is replaced the reserved macro block code stream in described raw video image code stream, generate multiple new video image code stream with difference display information.
2. method according to claim 1, is characterized in that, described display information is logo information.
3. method according to claim 1 and 2, is characterized in that, describedly the step reserving the reserved macro block that can insert display information in every frame video image is specifically comprised:
Determine that the area size of described reserved macro block can cover the affiliated area of described display information.
4. method according to claim 3, is characterized in that, describedly comprises the step that video image is encoded:
Index other macro block except described reserved macro block when setting the subsequent frame index that described video image is encoded.
5. method according to claim 4, is characterized in that, describedly the step that different display information superposition generates multiple insertion macro block to described reserved macro block is comprised:
By described reserved macro block and reserved macroblock coding neighbor pixel composition new region block used, described display information superposition is generated insertion macro block to described new region block.
6. a platform side server, is characterized in that, comprising:
Reserved coding module, for by reserving the reserved macro block that can insert display information in every frame video image, encodes to video image, generates raw video image code stream;
Generate coding module, for different display information superposition is generated multiple insertion macro block to described reserved macro block, described insertion macro block is encoded respectively, generate multiple encoding code stream with difference display information;
Replacing generation module, for described encoding code stream being replaced the reserved macro block code stream in described raw video image code stream, generating multiple new video image code stream with difference display information.
7. server according to claim 6, is characterized in that, described display information is logo information.
8. the server according to claim 6 or 7, is characterized in that, described reserved coding module, specifically for determining that the area size of described reserved macro block can cover the affiliated area of described display information.
9. server according to claim 8, is characterized in that, described reserved coding module, index other macro block except described reserved macro block during the subsequent frame index of encoding to described video image specifically for setting.
10. server according to claim 9, it is characterized in that, described generation coding module, specifically for by described reserved macro block and described reserved macroblock coding neighbor pixel composition new region block used, generates insertion macro block by described display information superposition to described new region block.
CN201310231390.9A 2013-06-09 2013-06-09 A kind of method for video coding and platform side server Active CN104243999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310231390.9A CN104243999B (en) 2013-06-09 2013-06-09 A kind of method for video coding and platform side server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310231390.9A CN104243999B (en) 2013-06-09 2013-06-09 A kind of method for video coding and platform side server

Publications (2)

Publication Number Publication Date
CN104243999A true CN104243999A (en) 2014-12-24
CN104243999B CN104243999B (en) 2018-02-23

Family

ID=52231216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310231390.9A Active CN104243999B (en) 2013-06-09 2013-06-09 A kind of method for video coding and platform side server

Country Status (1)

Country Link
CN (1) CN104243999B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341622A (en) * 2015-07-06 2017-01-18 阿里巴巴集团控股有限公司 Multi-channel video stream coding method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090180702A1 (en) * 2005-07-06 2009-07-16 Philippe Bordes Method and Device for Coding a Video Content Comprising a Sequence Of Pictures and a Logo
CN101895766A (en) * 2010-08-13 2010-11-24 北京算通科技发展股份有限公司 Local processing algorithm for compression domain with station caption subtitle inserted into video stream under MPEG-2/H.264 standard
CN102694985A (en) * 2011-03-22 2012-09-26 杭州普维光电技术有限公司 Information superposition method, information extraction method, apparatus and system of video images
CN102833583A (en) * 2012-07-27 2012-12-19 北京视博云科技有限公司 Processing method and processing device of video image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090180702A1 (en) * 2005-07-06 2009-07-16 Philippe Bordes Method and Device for Coding a Video Content Comprising a Sequence Of Pictures and a Logo
CN101895766A (en) * 2010-08-13 2010-11-24 北京算通科技发展股份有限公司 Local processing algorithm for compression domain with station caption subtitle inserted into video stream under MPEG-2/H.264 standard
CN102694985A (en) * 2011-03-22 2012-09-26 杭州普维光电技术有限公司 Information superposition method, information extraction method, apparatus and system of video images
CN102833583A (en) * 2012-07-27 2012-12-19 北京视博云科技有限公司 Processing method and processing device of video image

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341622A (en) * 2015-07-06 2017-01-18 阿里巴巴集团控股有限公司 Multi-channel video stream coding method and device
WO2017005096A3 (en) * 2015-07-06 2017-02-23 阿里巴巴集团控股有限公司 Method and device for encoding multiple video streams

Also Published As

Publication number Publication date
CN104243999B (en) 2018-02-23

Similar Documents

Publication Publication Date Title
JP7086587B2 (en) Method and device for reconstructing image data from decoded image data
TW201838411A (en) Image file processing method, apparatus and system, and storage medium
JP6993988B2 (en) A method of encoding an input video comprising a luma component and two chroma components, wherein the method comprises reforming the input video based on a reforming function.
CN110072119B (en) Content-aware video self-adaptive transmission method based on deep learning network
US9609338B2 (en) Layered video encoding and decoding
CN105262825A (en) SPICE cloud desktop transporting and displaying method and system on the basis of H.265 algorithm
CN107454412A (en) A kind of processing method of video image, apparatus and system
CN112308754B (en) Multi-decoding-end parallel extraction method for high-capacity robust watermark application
CN110024409A (en) The key frame of video flowing with multiple receivers weakens
CN105187845A (en) Video data decoding device and method
CN103402091A (en) Cloud desktop image classifying and encoding method
CN101014129A (en) Video data compression method
CN103702138A (en) Method and system for self-adaptive appointed transcoding
CN106791850A (en) Method for video coding and device
Zhu et al. HTML5 based media player for real-time video surveillance
JP5489183B2 (en) Method and apparatus for providing rich media service
CN105144726A (en) Custom data indicating nominal range of samples of media content
CN102761543A (en) Method and device for realizing SIP (session initiation protocol) universal encoding and decoding
CN107229516B (en) Data processing method and device
CN104956671A (en) Video frame reconstruction
CN106231319A (en) A kind of method alignd frame by frame based on software and hardware combining
CN110769241B (en) Video frame processing method and device, user side and storage medium
CN104243999A (en) Video coding method and platform side server
TW201138476A (en) Joint scalar embedded graphics coding for color images
CN103260067A (en) Method for processing image data and condition receiving module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant