CN109874061A - A kind of processing method of live video, device and electronic equipment - Google Patents

A kind of processing method of live video, device and electronic equipment Download PDF

Info

Publication number
CN109874061A
CN109874061A CN201910220270.6A CN201910220270A CN109874061A CN 109874061 A CN109874061 A CN 109874061A CN 201910220270 A CN201910220270 A CN 201910220270A CN 109874061 A CN109874061 A CN 109874061A
Authority
CN
China
Prior art keywords
video frame
video
default
slicing files
mark
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.)
Pending
Application number
CN201910220270.6A
Other languages
Chinese (zh)
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910220270.6A priority Critical patent/CN109874061A/en
Publication of CN109874061A publication Critical patent/CN109874061A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a kind of processing method of live video, device and electronic equipments.This method comprises: carrying out fragment processing according to preset video slicing strategy to the video frame got in preset duration, generating slicing files;By judging in slicing files, if there is the video frame comprising default mark;Determine whether to carry out the slicing files default processing, and if it exists, then carry out default processing to slicing files.Due in the embodiment of the present invention, when every slicing files for generating one comprising preset duration target live video frame, server is judged as that the slicing files are made whether carry out with default processing, if the determination result is YES, default processing then is carried out to the slicing files, it realizes in real time while include the video frame of live video, default processing is carried out to the video frame of the live video, so as to shorten live video from being indexed to the processing time that the whole process for the video that can carry out program request is processed on video playing platform.

Description

A kind of processing method of live video, device and electronic equipment
Technical field
The present invention relates to technical field of virtual reality, more particularly to a kind of processing method of live video, device and electricity Sub- equipment.
Background technique
The programme televised live of TV station during broadcasting, usually by the acceptance system real-time online of TV station will be straight The complete video for broadcasting program includes, and then, processing system carries out at packaging by the complete video of the programme televised live under line Reason, the video content for the live video included is processed into can be in the video content of video playing platform progress program request;Again will Live video treated video content is issued on video playing platform, so that the network user is by video playing platform, Any time section, the video content after can easily watching programme televised live to pack.Since the acceptance system of TV station is real When the programme televised live included online in comprising partial video content be not allow to issue in video website;Alternatively, in order to increase The viewing degree of video is included, editorial staff can increase part video content in the programme televised live included;It is therefore desirable to will The above-mentioned programme televised live to get off of including is handled, then in publication on video playing platform.
For example, some programme televised live that certain TV station plays includes ten seconds ad contents in TV station's live streaming, Since the businessman of the advertisement is the advertising expenditure in some programme televised live for pay TV station, without paying the live streaming section Advertising expenditure when mesh plays in website.So being needed when the acceptance system of TV station is after including the programme televised live Ten seconds ad contents in video content that TV station includes handle under line, i.e., by ten seconds in the video content Ad content is deleted, and then by the video distribution to video playing platform.
Currently, the live video of TV station needs when the program plays, first with live streaming acceptance system, live streaming is regarded Frequency is included, and is handled under then online, then will treated video content publication in associated video playing platform On.
Obviously, in the prior art, the programme televised live of TV station is needed by including on line, handling under line, then in Jiang Chu Live video after reason is published on video playing platform, and so as to cause live video, from being indexed to, to be processed into video playing flat The whole process of the video of program request, the problem of required time length can be carried out on platform.
Summary of the invention
The processing method for being designed to provide a kind of live video, device and the electronic equipment of the embodiment of the present invention, with contracting Short live video is processed on video playing platform the processing time of the whole process for the video that can carry out program request from being indexed to.
Specific technical solution is as follows:
In a first aspect, providing a kind of processing method of live video, which comprises
During target live video plays, the video frame of the target live video is obtained in real time;
According to preset video slicing strategy, the video frame of acquisition is generated into slicing files;
Judge in the slicing files with the presence or absence of the video frame comprising default mark;
If there is the video frame comprising the default mark in the slicing files, to the target in the slicing files Video frame carries out default processing, and the target video frame is the video frame comprising the default mark.
Optionally, described default when being identified as advertisement video addition mark, the target in the slicing files regards Frequency frame carries out the step of default processing, may include:
Obtain two successive video frames comprising advertisement video addition mark in the slicing files;
Default advertisement video frame is added between described two successive video frames.
Optionally, described default when being identified as advertising paster addition mark, the target in the slicing files regards Frequency frame carries out the step of default processing, may include:
Obtain the first video frame comprising advertising paster addition mark in the slicing files;
Default advertising paster is added in the predeterminable area comprising in first video frame, the predeterminable area is institute State the background area of the first video.
Optionally, described default when being identified as advertisement covering marking, the target video frame in the slicing files Default the step of handling is carried out, may include:
Obtain the second video frame in the slicing files comprising the advertisement covering marking;
Detect the target object in second video frame;
Default advertising paster is covered to the image-region where the target object.
Optionally, described according to preset video slicing strategy, the video frame of acquisition is generated to the step of slicing files Suddenly, may include:
According to preset decoder, the video frame got is decoded, generates the corresponding original of the video frame Beginning video frame;
According to preset encoder, the original video frame is encoded, generates the original video frame corresponding One encoded video frame;
According to preset mark generating algorithm, the corresponding mark of first encoded video frame is generated;
By corresponding first encoded video frame of the video frame got in preset duration and first encoded video frame pair The mark answered forms slicing files.
Second aspect, provides a kind of processing unit of live video, and described device includes:
Module is obtained, for obtaining the view of the target live video in real time during target live video plays Frequency frame;
Slicing files generation module, for the video frame of acquisition being generated and is divided according to preset video slicing strategy Piece file;
Judgment module, for judging in the slicing files with the presence or absence of the video frame comprising default mark;
Default processing module, if for there is the picture frame comprising the default mark in the slicing files, to institute It states the target video frame in slicing files and carries out default processing, the target video frame is the video comprising the default mark Frame.
Optionally, the default advertisement video that is identified as adds mark, and the default processing module may include:
First acquisition unit adds two identified continuously comprising the advertisement video for obtaining in the slicing files Video frame;
First adding unit, for adding default advertisement video frame between described two successive video frames.
Optionally, the default advertising paster that is identified as adds mark, and the default processing module may include:
Second acquisition unit obtains the first video frame comprising advertising paster addition mark in the slicing files;
Second adding unit adds default advertising paster, institute in the predeterminable area comprising in first video frame State the background area that predeterminable area is first video.
Optionally, described preset is identified as advertisement covering marking, and the default processing module may include:
Third acquiring unit, for obtaining the second video frame in the slicing files comprising the advertisement covering marking;
Detection unit, for detecting the target object in second video frame;
Third adding unit, for default advertising paster to be covered to the image-region where the target object.
Optionally, the slicing files generation module, comprising:
Original video frame generation unit generates the video frame pair for the video frame got to be decoded The original video frame answered;
First encoded video frame generation unit, for being encoded to the original video frame according to preset encoder, Generate corresponding first encoded video frame of the original video frame;
Identification generation unit, for it is corresponding to generate first encoded video frame according to preset mark generating algorithm Mark;
Slicing files generation unit, corresponding first encoded video frame of video frame for will be got in preset duration and The corresponding mark of first encoded video frame, forms slicing files.
The third aspect provides a kind of electronic equipment, including processor, communication interface, memory and communication bus, In, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes following methods step:
During target live video plays, the video frame of the target live video is obtained in real time;
According to preset video slicing strategy, the video frame of acquisition is generated into slicing files;
Judge in the slicing files with the presence or absence of the video frame comprising default mark;
If there is the video frame comprising the default mark in the slicing files, the target in the slicing files is regarded Frequency frame carries out default processing, and the target video frame is the video frame comprising the default mark.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium Computer program is stored in storage media, the computer program realizes the place of any of the above-described live video when being executed by processor Manage method and step.
A kind of processing method of live video, device provided by the embodiment of the present invention and electronic equipment.It is broadcast live in target During video playing, the video frame of the target live video is obtained in real time;According to preset video slicing strategy, will obtain The video frame obtained generates slicing files;Judge in the slicing files with the presence or absence of the video frame comprising default mark;If There is the video frame comprising the default mark in the slicing files, the target video frame in the slicing files is carried out pre- If processing, the target video frame is the video frame comprising the default mark.Due in the embodiment of the present invention, to the target During live video is included in real time, while default processing is carried out to the live video, shorten live video from Be indexed to the processing time that the whole process for the video that can carry out program request is processed on video playing platform.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of schematic diagram of a scenario of live video processing system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the processing method of live video provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the processing unit of live video provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.
The entire of the video that can carry out program request is processed on video playing platform in order to shorten live video from being indexed to The processing time of process, the embodiment of the invention provides a kind of processing method of live video, device and electronic equipments, below It is described in detail respectively.
Fig. 1 is a kind of schematic diagram of a scenario of live video processing system provided in an embodiment of the present invention, as shown in Figure 1, should System includes that picture pick-up device 10, satellite signal receiver 20 and live video include server 30 and live video processing server 40。
Wherein, picture pick-up device 10 is for carrying out implementation shooting to the live video of TV station.And pass through satellite for the camera shooting The video frame for the live video that equipment is got is sent to satellite signal receiver.Satellite signal receiver 20 is for receiving camera shooting The each video frame for the live video that equipment is sent, and each video frame of the live video received is sent to have and is broadcast live Video includes the server of function.Live video includes server 30 for will be in the preset duration for the live video that received Video frame carries out fragment processing, generates slicing files.Live video processing server 40 is used to live video including server The slicing files of generation carry out default processing, the live video that live video includes the TV station that server is included are converted into The video of program request can be carried out on corresponding video playing platform.Certainly, live video includes server 30 and live streaming view The function that frequency processing server 40 executes respectively can be completed at one or in a kind of server, and the embodiment of the present invention is not limited to This.
In conjunction with above-described embodiment, the embodiment of the invention also provides a kind of processing method of live video, this method can be with Applied to server, referring to fig. 2, Fig. 2 is a kind of flow diagram of the processing method of the live video of the embodiment of the present invention, should Method may include steps of:
S201 obtains the video frame of target live video during target live video plays in real time.
In an implementation, the picture pick-up device of TV station carries out captured in real-time to live video, and will acquire by satellite The video frame of each live video is sent to satellite signal receiver.At the same time, satellite signal receiver is straight by what is received The each video frame for broadcasting video is sent to while having the function of that live video is included and the server of live video processing function;Clothes When business device often receives a video frame, which can be stored, and so on.Until server receive it is default When the video frame of the live video in duration, server executes step S202, i.e., according to preset video slicing strategy, to default The video frame got in duration carries out fragment processing, generates slicing files.
The video frame of acquisition is generated slicing files according to preset video slicing strategy by S202.
The format of the video frame of the target live video got in step s 201 generally, due to server does not meet clothes The format of storage frame in business device, therefore, when the video frame of the target live video in the preset duration that server is got When, need the video frame to the target live video to handle, to be converted into meeting the video of storage format in the server Frame.
In an implementation, server is according to preset video slicing strategy, in the preset duration got in step S201 The video frame of each target live video handled;Then, view is broadcast live in each target in treated preset duration The video frame of frequency generates a slicing files;Due to that may include thousands of a video frames in each live video, The number of the slicing files generated in the embodiment of the present invention is also at least 1, and for the ease of the execution of subsequent step, server exists When one slicing files of every generation, one file identification can be set for the slicing files accordingly, for example, reference number of a document, File name etc., the application is not specifically limited.
Further, technical staff it is corresponding can to find the mark by checking the marks of slicing files in the server Slicing files;Alternatively, by the corresponding video pictures of starting video frame checked in each slicing files, real-time tracing service The specific location for the target live video that device is included;It is, of course, also possible to which the starting video frame in each slicing files is corresponding Video pictures, the referred to as corresponding screenshot of the slicing files.
In the embodiment of the present invention, a kind of optional mode for generating slicing files is provided, may include steps of:
Step 1: according to preset decoder, being decoded the video frame got, and it is corresponding original to generate video frame Video frame.
In an implementation, server is according to the decoding algorithm in preset decoder, for example, the decodings such as H264, MPEG2 are calculated Method is decoded the video frame got.Wherein, common decoding algorithm is MPEG2 algorithm.When server receive it is default After the video frame of the target live video of duration, preset decoder is called, and by multiple video frames in the preset duration, It is input to the default decoder one by one.The result of decoder output is the corresponding original video of each video frame of live video Frame.That is, the video frame of the target live video and the target are broadcast live for the video frame of the same target live video The corresponding original video frame of the video frame of video is all one-to-one.
Step 2: according to preset encoder, encoding original video frame, generates original video frame corresponding first Encoded video frame.
In an implementation, server is according to the encryption algorithm in preset encoder, for example, Huffman encoding algorithm, H264 With the encryption algorithms such as H265, original video frame is encoded.The preset encoder of server calls, and will be from above-mentioned steps one In to each video frame decoding of live video, obtained original video frame is input to the encoder one by one, encoder output It as a result is corresponding first encoded video frame of each original video frame.
In embodiments of the present invention, for the video frame of the same target live video, the video of the target live video The corresponding original video frame of frame the first encoded video frame corresponding with the original video frame is all one-to-one;Therefore, step The corresponding mark of the first encoded video frame generated in three, it is also possible to uniquely identify the video of the target live video The corresponding original video frame of frame.
Step 3: according to preset mark generating algorithm, the corresponding mark of the first encoded video frame is generated.
In an implementation, server is handled the first encoded video frame according to preset mark generating algorithm, obtains The corresponding mark of one encoded video frame.Wherein, preset mark generating algorithm can be any corresponding for generating video frame The algorithm of mark is not specifically limited in the application.
Wherein, the corresponding mark of the first encoded video frame can be continuous character, for example, 1,2,3,4, it is also possible to not Continuous number, for example, 1,3,5,7;Certainly, the first encoded video frame is corresponding identifies the letter being also possible in character, example Such as, a, b, c, d etc., as long as can be used for the mark of different videos, the embodiment of the present invention can be used, and do not do have here Body limits.
Step 4: by corresponding first encoded video frame of the video frame got in preset duration and the first encoded video frame Corresponding mark forms slicing files.
Optionally, in the embodiment of the present invention, preset duration be can be set according to actual needs, for example be set as 2 seconds, here It is not specifically limited.
Using the embodiment of the present invention, the video frame of target live video is included in real time, whenever server is got When target live video frame in preset duration, just the video frame of the live video of the preset duration is carried out at preset fragment Reason generates a slicing files, and executes subsequent processing to the slicing files, realizes the video frame for including live video in real time While, default processing is carried out to the video frame of the live video, is processed into video from being indexed to so as to shorten live video The processing time of the whole process of the video of program request can be carried out on playing platform.
S203 judges in slicing files with the presence or absence of the video frame comprising default mark.
In order to distinguish each video frame in target live video, in the embodiment of the present invention, target is included in above-mentioned steps During live video, each video frame respectively in the live video distributes a mark accordingly.Wherein, mark can To include identification number and identity type, mark can be advertisement video addition mark, advertising paster addition mark and advertisement covering Mark.
In an implementation, target live video can not directly be issued on video playing platform, i.e., target live video needs Default processing is carried out, then, then target live video is issued on video playing platform by treated.Therefore, for each The target live video of pending default processing, technical staff can preset one default processing information in the server;Wherein, It may include the pre- bidding of the video frame of the live video handled in target live video in the default processing information Know;In step S202 after one slicing files of every generation, server according to the default mark in default processing information, with point The corresponding mark of each first encoded video frame in piece file is compared, if in the slicing files, there are some first The corresponding mark of encoded video frame mark identical with the default mark in default processing information, then illustrate in the slicing files, Video frame comprising default mark, executes step S204;If in the slicing files, there is no some the first encoded video frames Mark identical mark with default mark, then illustrate in the slicing files, the video frame not comprising default mark, then server pair The slicing files are without processing.
S204, if there is the video frame comprising default mark in slicing files, to the target video frame in slicing files Carry out default processing.
Wherein, target video frame can be the video frame comprising default mark.
In general, may include multiple functional modules with specific function in server, for example, the video frame of live video Include module, coding module, decoder module and processing module etc.;Wherein, the modules in server are to be processed to the module Video frame have different call formats, for example, the processing module in server, can only be handled original video frame; Therefore, it after the processing module in server receives the slicing files of above-mentioned pending processing, needs to the slicing files In each first encoded video frame be decoded, generate the corresponding original view of each first encoded video frame in the slicing files Then frequency frame is carrying out default processing to the original video frame.
In an implementation, after step S203 determines to have the video frame comprising default mark in above-mentioned slicing files, The first encoded video frame of each of the above-mentioned slicing files of pending default processing determined is decoded by server;Again According to what is recorded in default processing information, for the processing information that the target live video is pending, determined in step S203 The slicing files in preset mark the position of the first encoded video frame start to carry out default processing.
It the following is in the embodiment of the present invention, (be referred to as several for the different identity types for including in default mark The different default mark of kind), several pairs of slicing files provided carry out the mode of default processing.
Mode one, when it is default be identified as advertisement video addition mark when, comprising wide in the available slicing files of server Accuse two successive video frames of video addition mark;Default advertisement video frame is added between two successive video frames.
In general, if presetting when the identity type for presetting mark is advertisement video addition mark and being identified as two continuous views The corresponding mark of frequency frame.
In an implementation, server can incite somebody to action after the slicing files for the video frame for determining to have comprising default mark The identification number of the corresponding mark of each of two identification numbers in default mark and slicing files video frame is compared, And determine video frame identical with the identification number of above-mentioned default mark.Then, straight in the corresponding video frame of two identification numbers Connect the default advertisement video frame of addition.
For example, it presets in processing information comprising default advertisement video frame to be added and default be identified as identification number and be 11,12 and identity type be advertisement video addition mark, it is assumed that default advertisement video frame to be added has 10.According to above-mentioned step Suddenly, server generates first slicing files, number a, wherein the 1st view in slicing files a comprising certain live video First encoded video frame of frequency frame is to the first encoded video frame of the 50th video frame and its first compiling for above-mentioned 50 picture frames The corresponding mark of code video frame, wherein the identification number of above-mentioned each video frame is respectively as follows: 1,2,3 ..., and 48,49,50.Server The identification number of each of default identification number 11,12 and slicing files a video frame is compared, when comparing slicing files When identification number 11,12 in a, determine that then server is to each first in slicing files comprising default mark in slicing files a Encoded video frame is decoded, and generates the corresponding original video frame of each first encoded video frame, and pre- by be added 10 If advertisement video, it is added to original video frame that the identification number after above-mentioned decoding, obtained in slicing files is 11 and identification number is Between 12 original video frame.
Mode two, when it is default be identified as advertising paster addition mark when, comprising wide in the available slicing files of server Accuse the first video frame of patch addition mark;Default advertising paster is being added comprising the predeterminable area in the first video frame.
Wherein, predeterminable area is the background area of the first video.
In an implementation, server can incite somebody to action after the slicing files for the video frame for determining to have comprising default mark The identification number of the corresponding mark of each of identification number in default mark and slicing files video frame is compared, and true Video frame identical with the identification number of above-mentioned default mark is made, is called the first video frame in embodiments of the present invention.Then, Default advertising paster is added in the background area of first video frame, i.e., is not influencing first in the target live video frame In the case of the normal play of video frame, this is preset into advertising paster and is covered in the background area of first video frame.
For example, presetting includes default advertising paster to be added in processing information and the default identification number that is identified as is 20 And identity type is advertising paster addition mark.Server can be by by the identification number of video frame all in slicing files a It is compared with the default identification number 20 in default processing information, determines that the identification number in the slicing files is 20 corresponding views Frequency frame.According to the identification number of each video frame recorded in the configuration information of target live video and its corresponding background area, Determine that identification number is the background area of 20 video frame.Then, the default advertising paster in default processing information is added Into the background area of the video frame.
In embodiments of the present invention, since default advertising paster has been added to a certain video frame in target live video In background area, to ensure that when not influencing user and normally watching target live video, while it can see default Advertising paster.
Mode three, when it is default be identified as advertisement covering marking when, covered comprising advertisement in the available slicing files of server Cover the second video frame of mark;Detect the target object in second video frame;By default bumper advertisements coverage goal object institute Image-region.
Wherein, target object can be the bumper advertisements or video frame of the target live video Crude Oil.
In an implementation, server will be preset after the slicing files for the video frame for determining to have comprising default mark The identification number that mark is preset in processing information is compared with the identification number of all video frames in the slicing files.Then, Determine that video frame corresponding with the identical identification number of identification number of default mark (is referred to as the second view in the slicing files Frequency frame).By the identification number of each video frame in the target live video of the configuration information record of target live video and its right The target object answered, determines the target object in second video frame, and by the default advertising paster in default processing information The image-region being covered on where the target object.
For example, presetting includes default advertising paster to be added in processing information and the default identification number that is identified as is 50 And identity type is advertisement covering marking.Server can be by by the identification number of video frame all in slicing files a and in advance If the default identification number 50 in processing information is compared, determine that the identification number in the slicing files is 50 corresponding videos Frame.According to the identification number and its corresponding target object of each video frame recorded in the configuration information of target live video, really Make the target object for the video frame that identification number is 50.Wherein, the corresponding target object of the second video frame which is 50 Both can be advertising paster (being referred to as original advertising paster), or video frame.Then, server is by default place Default advertising paster in reason information is covered on the image-region where the video frame that the identification number is 50.
In embodiments of the present invention, since default advertising paster has been covered on a certain video frame institute in target live video Image-region in, thus realize by target live video video frame or original advertising paster replace with default advertisement The purpose of patch.
Optionally, server can carry out above-mentioned one or more default places to the slicing files in target live video Reason, for example, server can first preset the corresponding first coding view of mark 11 and 12 in the slicing files a of target live video After the original video frame of frequency frame, default advertisement video frame is first added.And then mark 50 is preset in slicing files a and is corresponded to The first encoded video frame the corresponding background area of original video frame in add default advertising paster.
Similarly, server can also carry out one or many same default places to slicing files a in target live video Reason.For example, server can preset 11,33 corresponding first encoded videos of mark in the slicing files a of target live video Default advertising paster is added in the corresponding background area of the original video frame of frame respectively.
Using the embodiment of the present invention, the video frame of target live video is included in real time, whenever server is got When target live video frame in preset duration, just the live video video frame of the preset duration is carried out at preset fragment Reason generates a slicing files, and executes subsequent processing to the slicing files, realizes the video frame for including live video in real time While, default processing is carried out to the video frame of the live video, is processed into video from being indexed to so as to shorten live video The processing time of the whole process of the video of program request can be carried out on playing platform.
It is clearer in order to describe, below by a specific embodiment to a kind of live streaming view provided in an embodiment of the present invention The processing method of frequency is described in detail.
Assuming that preset duration is 2 seconds, default to be identified as 20, presetting in processing information includes default advertisement video to be added Frame and default it is identified as that identification number is 11,12 and identity type is advertisement video addition mark, it is assumed that default advertisement view to be added Frequency frame has 10.
The first step, certain programme televised live A one frame of every broadcasting, server in TV station are received by satellite signal receiving sending and receiving The video frame of the programme televised live A sent, timing first video frame of the target live video A received since server, directly When by 2 seconds, the video frame of receive 50 target live videos is decoded by server respectively, determines 50 targets The original video frame of the video frame of live video generates the video frame of 50 target live videos further according to preset encoder Corresponding first encoded video frame of original video frame, and a view is respectively set for above-mentioned 50 the first encoded video frames simultaneously Frequency frame identification, respectively 1 to 50;By 50 first encoded video frames and this corresponding mark of 50 the first encoded video frames Know, forms slicing files a.
Second step, server preset the corresponding mark of the first encoded video frame of each of slicing files a with preset Mark 11,12 is compared, and is determined in slicing files a comprising 11,12 corresponding first encoded video frames of default mark.
50 the first encoded video frames in slicing files a are decoded by third step, server, are obtained each first and are compiled The corresponding original video frame of code video frame.
4th step, server add the to be added 10 default advertisement video frame to be added in default processing information Be identified as in slicing files a after to decoding 11 the first encoded video frame correspond to original video frame after, and decoding after Slicing files a in be identified as 12 the first encoded video frame correspond to original video frame before.
It is every when generating one and including the slicing files of preset duration target live video frame due in the embodiment of the present invention, Server is judged as the slicing files and is made whether to carry out default processing.If the determination result is YES, then the slicing files are carried out Default processing realizes while include the video frame of live video in real time, carries out default place to the video frame of the live video Reason, so as to shorten live video from being indexed to the whole process for being packaged on video playing platform the video that can carry out program request The processing time.
Based on the same technical idea, embodiment of the method shown in Fig. 2 is corresponded to, the embodiment of the invention also provides one kind The packing device of live video, as shown in figure 3, the device includes:
Module 301 is obtained, for obtaining the video of target live video in real time during target live video plays Frame;
Slicing files generation module 302, for according to video slicing strategy is preset, the video frame of acquisition to be generated fragment text Part;
Judgment module 303, for judging in slicing files with the presence or absence of the video frame comprising default mark;
Default processing module 304, if for there is the video frame comprising default mark in slicing files, in slicing files Target video frame carry out default processing, target video frame is the video frame comprising the default mark.
In embodiments of the present invention, it is default be identified as advertisement video addition mark when, above-mentioned default processing module can be with Include:
First acquisition unit, for obtaining two successive video frames comprising advertisement video addition mark in slicing files;
First adding unit, for adding default advertisement video frame between two successive video frames.
In embodiments of the present invention, it presets and is identified as advertising paster addition mark, above-mentioned default processing module can wrap It includes:
Second acquisition unit obtains the first video frame comprising advertising paster addition mark in slicing files;
Second adding unit is adding default advertising paster, preset areas comprising the predeterminable area in first video frame Domain is the background area of first video.
In embodiments of the present invention, it presets and is identified as advertisement covering marking, above-mentioned default processing module may include:
Third acquiring unit, for obtaining the second video frame in slicing files comprising advertisement covering marking;
Detection unit, for detecting the target object in the second video frame;
Third adding unit, for by the image-region where default advertising paster coverage goal object.
In embodiments of the present invention, above-mentioned slicing files generation module may include:
Original video frame generation unit, the video frame for will acquire are decoded, and it is corresponding original to generate video frame Video frame;
First encoded video frame generation unit is generated for being encoded to original video frame according to preset encoder Corresponding first encoded video frame of original video frame;
Identification generation unit, for generating the corresponding mark of the first encoded video frame according to preset mark generating algorithm;
Slicing files generation unit, corresponding first encoded video frame of video frame for will be got in preset duration and The corresponding mark of first encoded video frame forms slicing files.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 4, include processor 401, communication interface 402, Memory 403 and communication bus 404, wherein processor 401, communication interface 402, memory 403 are complete by communication bus 404 At mutual communication,
Memory 403, for storing computer program;
Processor 401 when for executing the program stored on memory 403, realizes provided in an embodiment of the present invention one The packing method of kind live video, may include steps of:
During target live video plays, the video frame of target live video is obtained in real time;
According to preset video slicing strategy, the video frame of acquisition is generated into slicing files;
Judge in slicing files with the presence or absence of the video frame comprising default mark;
If there is the video frame comprising default mark in slicing files, the target video frame in slicing files is carried out pre- If processing, target video frame is the video frame comprising default mark.
Specific implementation and relevant explanation content about each step of this method may refer to above-mentioned method shown in FIG. 1 Embodiment, this will not be repeated here.
In addition, processor 401 executes the processing side of the program stored on memory 403 and a kind of live video realized Other implementations of method, it is identical as implementation mentioned by preceding method embodiment part, it also repeats no more here.
The communication bus that the processing method of above-mentioned live video 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 electronic equipment 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 another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes any institute in above-described embodiment The processing method for the live video stated.
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 processing of any live video in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment and computer readable storage medium embodiment, since it is substantially similar to the method embodiment, so description It is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (11)

1. a kind of processing method of live video, which is characterized in that the described method includes:
During target live video plays, the video frame of the target live video is obtained in real time;
According to preset video slicing strategy, the video frame of acquisition is generated into slicing files;
Judge in the slicing files with the presence or absence of the video frame comprising default mark;
If there is the video frame comprising the default mark in the slicing files, to the target video in the slicing files Frame carries out default processing, and the target video frame is the video frame comprising the default mark.
2. the method according to claim 1, wherein it is described it is default be identified as advertisement video addition mark when, The target video frame in the slicing files carries out the step of default processing, comprising:
Obtain two successive video frames comprising advertisement video addition mark in the slicing files;
Default advertisement video frame is added between described two successive video frames.
3. the method according to claim 1, wherein it is described it is default be identified as advertising paster addition mark when, The target video frame in the slicing files carries out the step of default processing, comprising:
Obtain the first video frame comprising advertising paster addition mark in the slicing files;
Default advertising paster is added in the predeterminable area comprising in first video frame, and the predeterminable area is described the The background area of one video.
4. the method according to claim 1, wherein it is described it is default be identified as advertisement covering marking when, it is described The step of default processing is carried out to the target video frame in the slicing files, comprising:
Obtain the second video frame in the slicing files comprising the advertisement covering marking;
Detect the target object in second video frame;
Default advertising paster is covered to the image-region where the target object.
5. the method according to claim 1, wherein described according to preset video slicing strategy, by acquisition The video frame generates the step of slicing files, comprising:
According to preset decoder, the video frame got is decoded, generates the corresponding original view of the video frame Frequency frame;
According to preset encoder, the original video frame is encoded, the original video frame corresponding first is generated and compiles Code video frame;
According to preset mark generating algorithm, the corresponding mark of first encoded video frame is generated;
Corresponding first encoded video frame of the video frame got in preset duration and first encoded video frame is corresponding Mark forms slicing files.
6. a kind of processing unit of live video, which is characterized in that described device includes:
Module is obtained, for obtaining the video frame of the target live video in real time during target live video plays;
Slicing files generation module, for according to preset video slicing strategy, the video frame of acquisition to be generated fragment text Part;
Judgment module, for judging in the slicing files with the presence or absence of the video frame comprising default mark;
Default processing module, if for there is the picture frame comprising the default mark in the slicing files, to described point Target video frame in piece file carries out default processing, and the target video frame is the video frame comprising the default mark.
7. device according to claim 6, which is characterized in that the default advertisement video that is identified as adds mark, described Default processing module, comprising:
First acquisition unit, for obtaining two continuous videos comprising advertisement video addition mark in the slicing files Frame;
First adding unit, for adding default advertisement video frame between described two successive video frames.
8. device according to claim 6, which is characterized in that the default advertising paster that is identified as adds mark, described Default processing module, comprising:
Second acquisition unit obtains the first video frame comprising advertising paster addition mark in the slicing files;
Second adding unit adds default advertising paster in the predeterminable area comprising in first video frame, described pre- If region is the background area of first video.
9. device according to claim 6, which is characterized in that described preset is identified as advertisement covering marking, described default Processing module, comprising:
Third acquiring unit, for obtaining the second video frame in the slicing files comprising the advertisement covering marking;
Detection unit, for detecting the target object in second video frame;
Third adding unit, for default advertising paster to be covered to the image-region where the target object.
10. device according to claim 6, which is characterized in that the slicing files generation module, comprising:
It is corresponding to generate the video frame for the video frame got to be decoded for original video frame generation unit Original video frame;
First encoded video frame generation unit is generated for being encoded to the original video frame according to preset encoder Corresponding first encoded video frame of the original video frame;
Identification generation unit, for generating the corresponding mark of first encoded video frame according to preset mark generating algorithm;
Slicing files generation unit, corresponding first encoded video frame of video frame for will be got in preset duration and described The corresponding mark of first encoded video frame forms slicing files.
11. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-5.
CN201910220270.6A 2019-03-22 2019-03-22 A kind of processing method of live video, device and electronic equipment Pending CN109874061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910220270.6A CN109874061A (en) 2019-03-22 2019-03-22 A kind of processing method of live video, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910220270.6A CN109874061A (en) 2019-03-22 2019-03-22 A kind of processing method of live video, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN109874061A true CN109874061A (en) 2019-06-11

Family

ID=66920957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910220270.6A Pending CN109874061A (en) 2019-03-22 2019-03-22 A kind of processing method of live video, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109874061A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541939A (en) * 2020-04-30 2020-08-14 北京奇艺世纪科技有限公司 Video splitting method and device, electronic equipment and storage medium
CN112101075A (en) * 2019-06-18 2020-12-18 腾讯科技(深圳)有限公司 Information implantation area identification method and device, storage medium and electronic equipment
CN113630618A (en) * 2021-08-06 2021-11-09 上海哔哩哔哩科技有限公司 Video processing method, device and system
CN116033225A (en) * 2023-03-16 2023-04-28 深圳市微浦技术有限公司 Digital signal processing method, device, equipment and storage medium based on set top box

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184248A (en) * 2006-12-30 2008-05-21 腾讯科技(深圳)有限公司 Method and device for generating video content with advertisement
CN103096136A (en) * 2011-10-28 2013-05-08 索尼爱立信移动通讯有限公司 Video ordering method and video displaying method and server and video display device
CN104363483A (en) * 2014-12-01 2015-02-18 北京奇艺世纪科技有限公司 Advertisement pushing method and device based on video picture
CN105338368A (en) * 2015-11-02 2016-02-17 腾讯科技(北京)有限公司 Method, device and system for converting live stream of video into on-demand data
CN105791887A (en) * 2014-12-23 2016-07-20 腾讯科技(北京)有限公司 Information processing method, client and server
CN106210837A (en) * 2016-06-30 2016-12-07 中国联合网络通信集团有限公司 Multimedia coding method and system, method for recording, operational approach, media server
CN106454391A (en) * 2016-10-31 2017-02-22 腾讯科技(深圳)有限公司 Method, apparatus and terminal of converting live to on-demand
CN107155127A (en) * 2016-03-02 2017-09-12 谷歌公司 The instruction of protuberance is provided in video content item

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184248A (en) * 2006-12-30 2008-05-21 腾讯科技(深圳)有限公司 Method and device for generating video content with advertisement
CN103096136A (en) * 2011-10-28 2013-05-08 索尼爱立信移动通讯有限公司 Video ordering method and video displaying method and server and video display device
CN104363483A (en) * 2014-12-01 2015-02-18 北京奇艺世纪科技有限公司 Advertisement pushing method and device based on video picture
CN105791887A (en) * 2014-12-23 2016-07-20 腾讯科技(北京)有限公司 Information processing method, client and server
CN105338368A (en) * 2015-11-02 2016-02-17 腾讯科技(北京)有限公司 Method, device and system for converting live stream of video into on-demand data
CN107155127A (en) * 2016-03-02 2017-09-12 谷歌公司 The instruction of protuberance is provided in video content item
CN106210837A (en) * 2016-06-30 2016-12-07 中国联合网络通信集团有限公司 Multimedia coding method and system, method for recording, operational approach, media server
CN106454391A (en) * 2016-10-31 2017-02-22 腾讯科技(深圳)有限公司 Method, apparatus and terminal of converting live to on-demand

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112101075A (en) * 2019-06-18 2020-12-18 腾讯科技(深圳)有限公司 Information implantation area identification method and device, storage medium and electronic equipment
CN112101075B (en) * 2019-06-18 2022-03-25 腾讯科技(深圳)有限公司 Information implantation area identification method and device, storage medium and electronic equipment
CN111541939A (en) * 2020-04-30 2020-08-14 北京奇艺世纪科技有限公司 Video splitting method and device, electronic equipment and storage medium
CN113630618A (en) * 2021-08-06 2021-11-09 上海哔哩哔哩科技有限公司 Video processing method, device and system
CN116033225A (en) * 2023-03-16 2023-04-28 深圳市微浦技术有限公司 Digital signal processing method, device, equipment and storage medium based on set top box

Similar Documents

Publication Publication Date Title
CN109874061A (en) A kind of processing method of live video, device and electronic equipment
US8833640B2 (en) Utilizing matrix codes during installation of components of a distribution system
US9832517B2 (en) Seamless playback of media content using digital watermarking
CN103702171B (en) Method for downloading video stream and electronic equipment
CN109729390B (en) IPTV program monitoring method, device and system
CN107566786A (en) A kind of method, apparatus and terminal device for obtaining monitor video
EP2135376A2 (en) Digital rights management and audience measurement systems and methods
US9762965B2 (en) Methods and apparatus to measure exposure to streaming media
JP4777351B2 (en) Apparatus and method for diagnosing and processing conditions related to cable card in open cable system, open cable host apparatus, and open cable receiving apparatus
CN106603503B (en) The treating method and apparatus of live data
US8973080B2 (en) Method and apparatus for generating plurality of applications, and method and apparatus for processing application suitable for broadcasting receiving apparatus
EP2652957A2 (en) System and method for conveying session information for use in forensic watermarking
CN103763480A (en) Method and equipment for obtaining video dubbing
CN102164308A (en) Information processing apparatus, information processing method, and program
CN104284125A (en) Multimedia shooting processing method, device and system
CN112804574A (en) Multimedia content transmission and playing method and device
CN109698932B (en) Data transmission method, camera and electronic equipment
CN106506561B (en) A kind of flow-medium transmission method and device
JP2007124069A (en) Program advertisement resource transmission method of broadcast program transmission apparatus
KR101082985B1 (en) Apparatus for testing two-way application service
CN109005449A (en) Preventing recording by theft method, apparatus, storage medium and processor
CN113473247B (en) Video playing request processing method, device and system and electronic equipment
CN114462817A (en) Verification method, verification device, electronic equipment and storage medium
US20040133839A1 (en) Systems and methods for performing quality assurance on interactive television and software application data delivered via a network
CN112449209B (en) Video storage method and device, cloud server and computer readable storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190611

RJ01 Rejection of invention patent application after publication