[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107333175A - The method and mobile terminal of a kind of Video processing - Google Patents

The method and mobile terminal of a kind of Video processing Download PDF

Info

Publication number
CN107333175A
CN107333175A CN201710674534.6A CN201710674534A CN107333175A CN 107333175 A CN107333175 A CN 107333175A CN 201710674534 A CN201710674534 A CN 201710674534A CN 107333175 A CN107333175 A CN 107333175A
Authority
CN
China
Prior art keywords
frame
video
picture frame
picture
unit
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
CN201710674534.6A
Other languages
Chinese (zh)
Other versions
CN107333175B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710674534.6A priority Critical patent/CN107333175B/en
Publication of CN107333175A publication Critical patent/CN107333175A/en
Application granted granted Critical
Publication of CN107333175B publication Critical patent/CN107333175B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses a kind of method of Video processing, including:Read the video file that will be played;The video file is cut into N number of video-frequency band according to predetermined time period, wherein, the N is the integer more than or equal to 1;N number of video-frequency band is synthesized into N number of picture frame;Play N number of picture frame.The embodiment of the invention also discloses a kind of mobile terminal and computer-readable recording medium.Video file can be divided into using the embodiment of the present invention by N number of video-frequency band, then N number of video-frequency band is synthesized into N number of picture frame, so that, memory usage can be reduced in the case where ensureing to play video fluency, Consumer's Experience is lifted.

Description

The method and mobile terminal of a kind of Video processing
Technical field
The present embodiments relate to the method and mobile terminal of field of video processing, more particularly to a kind of Video processing.
Background technology
With the development of information technology, the integrated function of mobile terminal is also more and more, and every kind of function is all more and more completeer It is kind, mobile terminal can for making a phone call, surf the Net, see video, take pictures etc..The integrated function of mobile terminal is more, backstage journey Sort run can bring very big burden to CPU.For example, when video is played, fluency when in order to ensure to use is needed High frame per second (generally more than 60 frames/second) is wanted, CPU can bear larger pressure, meanwhile, how also occupies a large amount of internal memories It is urgently to be resolved hurrily to solve to play the problem of video tape is come.
The content of the invention
The embodiments of the invention provide a kind of method of Video processing and mobile terminal, it can ensure to play video fluency In the case of, reduce memory usage, lift Consumer's Experience.
First aspect of the embodiment of the present invention provides a kind of method of Video processing, including step:
Read the video file that will be played;
The video file is cut into N number of video-frequency band according to predetermined time period, wherein, the N is more than or equal to 1 Integer;
N number of video-frequency band is synthesized into N number of picture frame;
Play N number of picture frame.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, including:
Reading unit, for reading the video file that will be played;
Unit is cut off, N number of regard is cut into according to predetermined time period for the video file that reads the reading unit Frequency range, wherein, the N is the integer more than or equal to 1;
Synthesis unit, for cuing off the N number of picture frame of N number of video-frequency band synthesis that unit cutting is obtained by described;
Broadcast unit, for playing N number of picture frame.
The third aspect of the embodiment of the present invention also provides a kind of mobile terminal, including:
Memory, for store program codes;And
Processor, the program code stored for calling in memory performs following method:What reading will be played regards Frequency file;The video file is cut into N number of video-frequency band according to predetermined time period, wherein, the N is more than or equal to 1 Integer;N number of video-frequency band is synthesized into N number of picture frame;Play N number of picture frame.
Fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable recording medium In have program stored therein code, described program code is used for after being called for processor, performs following method:Read what will be played Video file;The video file is cut into N number of video-frequency band according to predetermined time period, wherein, the N be more than or equal to 1 integer;N number of video-frequency band is synthesized into N number of picture frame;Play N number of picture frame.
Implement the embodiment of the present invention, have the advantages that:
The embodiment of the present invention reads the video file that will be played;The video file is cut according to predetermined time period Into N number of video-frequency band, wherein, the N is the integer more than or equal to 1;N number of video-frequency band is synthesized into N number of picture frame;Play institute State N number of picture frame.Video file can be divided into using the embodiment of the present invention by N number of video-frequency band, then N number of video-frequency band is synthesized N number of Picture frame, so that, memory usage can be reduced in the case where ensureing to play video fluency, Consumer's Experience is lifted.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to required in embodiment, description The accompanying drawing used is briefly described, it should be apparent that, drawings in the following description are only some realities of the embodiment of the present invention Example is applied, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the first embodiment of the method for Video processing provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of the second embodiment of the method for Video processing provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of the 3rd embodiment of the method for Video processing provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet of the fourth embodiment of the method for Video processing provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic flow sheet of 5th embodiment of the method for Video processing provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of the first embodiment of mobile terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of the second embodiment of mobile terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of the 3rd embodiment of mobile terminal provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of the fourth embodiment of mobile terminal provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation of the 5th embodiment of mobile terminal provided in an embodiment of the present invention;
Figure 11 is a kind of structural representation of the sixth embodiment of mobile terminal provided in an embodiment of the present invention;
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the embodiment of the present invention, rather than whole implementation Example.Based on the embodiment in the embodiment of the present invention, those of ordinary skill in the art institute under the premise of creative work is not made The every other embodiment obtained, belongs to the scope of protection of the embodiment of the present invention.
In realization, in the embodiment of the present invention, mobile terminal can include but is not limited to:Notebook computer, mobile phone, flat board electricity Brain, intelligent wearable device etc..The system of mobile terminal refers to the operating system of mobile terminal, can include but is not limited to: Android system, Saipan system, Windows systems, IOS (Mobile operating system of Apple Inc.'s exploitation) system etc..Need Illustrate, Android mobile terminal refers to the mobile terminal of android system, Saipan mobile terminal refers to the movement of Saipan system Terminal, etc..Above-mentioned mobile terminal is only citing, and non exhaustive, including but not limited to above-mentioned mobile terminal.
The method and mobile terminal of a kind of Video processing provided in an embodiment of the present invention are retouched with reference to Fig. 1 to Figure 11 State.
Referring to Fig. 1, Fig. 1 is a kind of flow of the first embodiment of the method for Video processing provided in an embodiment of the present invention Schematic diagram.The method of Video processing described in the present embodiment, including step:
The video file that S101, reading will be played.
Wherein, the video file that will be played can be read in mobile terminal.Wherein, the video file of mobile terminal can be:It is general Intervisibility frequency file, high-definition video file, Blu-ray video file or 3D video files.
S102, the video file according to predetermined time period cut into N number of video-frequency band, wherein, the N to be more than or Integer equal to 1.
Wherein, video file according to predetermined time period can be cut into N number of video-frequency band by mobile terminal, and N is is more than or waited In 1 integer.Further, predetermined time period may include but be not limited only to:5s, 10s, 30s, 1 minute, 5 minutes, 10 points Clock, 20 minutes etc., predetermined time period can also be that first paragraph video length is that m1 time spans, second segment video length are m2 Time span, the 3rd section of video length are m3 time spans ..., and m1, m2, m3 ... can be with unequal.Mobile terminal can be by video text Part is a time span according to every 30s, and video file is cut into N number of video-frequency band.
S103, the N number of video-frequency band synthesized into N number of picture frame.
Wherein, mobile terminal can synthesize N number of video-frequency band N number of picture frame, and such as 1 frame of video includes 100 two field pictures, can be by 100 two field pictures synthesize 1 picture frame.
S104, broadcasting N number of picture frame.
Wherein, mobile terminal can play out the N number of picture frame obtained after synthesis.
The embodiment of the present invention reads the video file that will be played;The video file is cut according to predetermined time period Into N number of video-frequency band, wherein, the N is the integer more than or equal to 1;N number of video-frequency band is synthesized into N number of picture frame;Play institute State N number of picture frame.Video file can be divided into using the embodiment of the present invention by N number of video-frequency band, then N number of video-frequency band is synthesized N number of Picture frame, so that, memory usage can be reduced in the case where ensureing to play video fluency, Consumer's Experience is lifted.
Referring to Fig. 2, Fig. 2 is a kind of flow of the second embodiment of the method for Video processing provided in an embodiment of the present invention Schematic diagram.As a kind of possible embodiment, the method for the Video processing described in the present embodiment is described in Fig. 1 The specific refinement of step S103 in embodiment, including step:
S201, any video-frequency band i obtained in N number of video-frequency band M picture frame.
Wherein, the M picture frame of any video-frequency band i in the N number of video-frequency band of acquisition for mobile terminal.Further, usual feelings Under condition, video is all made up of image one by one, thus, video can be changed into image, mobile terminal can obtain N number of regard The picture frame of each video-frequency band in frequency range, such as one video-frequency band is 24 frames/second, then the length of video-frequency band is 5 minutes, then obtains 120 picture frames of the video-frequency band got.
S202, the static content and dynamic content extracted in the M picture frame.
Wherein, mobile terminal can extract the static content and dynamic content in M frame of video.Further, M picture frame Between interval time difference it is very of short duration, thus, the scenery in image in M picture frame can be largely identical.For example, will take the photograph Camera adjustment is taken pictures in an angle in a direction, continuously in several seconds, the most contents of the scene of image frame It can keep constant.Relative to the static content in M two field pictures, then what is changed is exactly dynamic content.
S203, the static content in the M picture frame is placed in a two field picture, to obtain still image frame.
Wherein, the static content in M picture frame can be placed in a two field picture by mobile terminal, to obtain still image Frame.Mobile terminal can be compared to the image content in M picture frame, if the content not changed in M picture frame, be made For static content, it is placed into a two field picture, just can so obtains still image.
S204, the dynamic content in the M picture frame according to predetermined manner is overlapped processing, to obtain Dynamic Graph As frame.
Wherein, the dynamic content in M picture frame according to predetermined manner can be overlapped processing by mobile terminal, you can To dynamic image frame.
S205, the still image frame and the dynamic image frame synthesized into a two field picture.
Wherein, still image frame and dynamic image frame can be synthesized a two field picture by mobile terminal.Further, mobile terminal The image of dynamic image frame can be inserted into quiet according to dynamic image frame in M two field pictures relative to the position in still image frame In state picture frame.
The embodiment of the present invention obtains the M picture frame of any video-frequency band i in N number of video-frequency band;Extract the M figure As the static content and dynamic content in frame;Static content in the M picture frame is placed in a two field picture, to obtain Still image frame;Dynamic content in the M picture frame is overlapped processing according to predetermined manner, to obtain dynamic image Frame;The still image frame and the dynamic image frame are synthesized into a two field picture.Any regard can extract using the embodiment of the present invention Static content and dynamic content in frequency range, a two field picture is synthesized by static content, and dynamic content is superimposed as piece image, then will Static content and dynamic content are processed into a picture frame, so that, it can reduce interior in the case where ensureing to play video fluency Occupancy is deposited, Consumer's Experience is lifted.
Referring to Fig. 3, Fig. 3 is a kind of flow of the 3rd embodiment of the method for Video processing provided in an embodiment of the present invention Schematic diagram.As a kind of possible embodiment, the method for the Video processing described in the present embodiment is described in Fig. 2 The specific refinement of step S202 in embodiment, including step:
Frame-to-frame differences between S301, any two field pictures in M picture frame is determined in the dynamic in M picture frame The region of appearance.
Wherein, the frame-to-frame differences between any two field pictures that mobile terminal can be in M picture frame determines M picture frame In dynamic content region.Further, for example, in the case where M is 5, mobile terminal can determine that dynamic in 5 picture frames The region of state content, can extract R, G, B component respectively by the 1st two field picture and the 2nd two field picture, by R component in the 1st two field picture and R component in 2 two field pictures carries out asking signed magnitude arithmetic(al) in correspondence position, by the G in G components and the 2nd two field picture in the 1st two field picture Component carries out asking signed magnitude arithmetic(al) in correspondence position, by the B component in B component and the 2nd two field picture in the 1st two field picture in correspondence position Put progress and ask signed magnitude arithmetic(al), as long as there can be 1 to be more than 10 the absolute value of R, G, the difference of B component, just by this pixel The pixel of dynamic content is defined as, the pixel of multiple dynamic contents combines the region for being defined as dynamic content.
S302, the region beyond the dynamic content in the M picture frame is defined as static content.
Wherein, the region beyond the dynamic content in M picture frame can be defined as static content by mobile terminal.Enter one Step, static content and dynamic content are all relative.
Frame-to-frame differences between any two field pictures of the embodiment of the present invention in M picture frame is determined in M picture frame Dynamic content region;Region beyond dynamic content in the M picture frame is defined as static content.Using this hair Bright embodiment may separate out static content and dynamic content in video-frequency band.
Referring to Fig. 4, Fig. 4 is a kind of flow of the fourth embodiment of the method for Video processing provided in an embodiment of the present invention Schematic diagram.As a kind of possible embodiment, the method for the Video processing described in the present embodiment is described in Fig. 2 The specific refinement of step S204 in embodiment, including step:
S401, to the M picture frame carry out sampling processing, to obtain the X two field pictures in M picture frame.
Wherein, mobile terminal can carry out sampling processing to M picture frame, to obtain the X two field pictures in M picture frame.Enter One step, uses processing can be for:Mobile terminal is to, every 2 frame abstract image frames, such as M is the situation of 8 frames in M picture frame Under, can be drawn into for the 1st frame, the 3rd frame, the 5th frame, the 7th frame;Or, the 2nd frame, the 4th frame, the 6th frame, the 8th frame.
As a kind of possible embodiment, mobile terminal can be by any X two field pictures in M two field pictures.As M is 8 frames In the case of, can be drawn into for the 1st frame, the 3rd frame, the 8th frame.
S402, the static content deleted in the X two field pictures.
Wherein, mobile terminal can delete the static content in X two field pictures, then what is obtained is in dynamic in X two field pictures Hold, in the case that such as M is 8 frames, can be drawn into for the 1st frame, the 3rd frame, the 5th frame, the 7th frame, then the 1st two field picture is deleted static Content, then obtain the dynamic content in the 1st two field picture.
S403, by the X two field pictures dynamic content carry out transparency processing, the transparency coefficient of the X two field pictures A1, a2 ..., ax are respectively set to, wherein, a1+a2+ ...+ax=1.
Wherein, the dynamic content in X two field pictures can be carried out transparency processing, the transparency system of X two field pictures by mobile terminal Number is respectively set to a1, a2 ..., ax, wherein, a1+a2+ ...+ax=1.So, it is assumed that in X two field pictures, the pixel value of location A Respectively:1st frame is m1, and the 2nd frame is m2 ..., and X frames are mx, then the calculation of the pixel in dynamic image frame can be:
By taking location A as an example, illustrate.The pixel value A=m1*a1+m2*a2+ ...+mX*ax of location A, other dynamics The calculation of the pixel calculation form location A of content.
S404, obtained X two field pictures after transparency processing are synthesized into a sub-picture, to obtain dynamic image frame.
Wherein, the X two field pictures that mobile terminal is obtained after can transparency be handled synthesize a sub-picture, to obtain dynamic image Frame.
The embodiment of the present invention carries out sampling processing to the M picture frame, to obtain the X two field pictures in M picture frame;Delete Except the static content in the X two field pictures;Dynamic content in the X two field pictures is subjected to transparency processing, the X two field pictures Transparency coefficient be respectively set to a1, a2 ..., ax, wherein, a1+a2+ ...+ax=1;It will be obtained after transparency processing X two field pictures synthesize a sub-picture, to obtain dynamic image frame.Can be by the dynamic content in video-frequency band using the embodiment of the present invention Synthesize a sub-picture.
Referring to Fig. 5, Fig. 5 is a kind of flow of the 5th embodiment of the method for Video processing provided in an embodiment of the present invention Schematic diagram.As a kind of possible embodiment, the method for the Video processing described in the present embodiment is described in Fig. 2 The specific refinement of step S205 in embodiment, including step:
S501, its relative position in the still image frame determined according to the coordinate position of the dynamic image frame.
Wherein, mobile terminal can determine its relative position in still image frame according to the coordinate position of dynamic image frame Put.
S502, according to the relative position dynamic image frame is added in still image frame.
Wherein, the dynamic image frame can be added in still image frame by mobile terminal according to relative position.
The embodiment of the present invention determines its phase in the still image frame according to the coordinate position of the dynamic image frame To position;The dynamic image frame is added in still image frame according to the relative position., can using the embodiment of the present invention The static content of video-frequency band and dynamic content are synthesized into a two field picture.
Referring to Fig. 6, Fig. 6 is a kind of structural representation of the first embodiment of mobile terminal provided in an embodiment of the present invention Figure.Mobile terminal described in the embodiment of the present invention, it is specific as follows:
Reading unit 601, for reading the video file that will be played.
Wherein, the video file that will be played can be read in reading unit 601.Wherein, the video file of mobile terminal can be: Ordinary video file, high-definition video file, Blu-ray video file or 3D video files.
Unit 602 is cut off, the video file for the reading unit 601 to be read is cut into according to predetermined time period N number of video-frequency band, wherein, the N is the integer more than or equal to 1.
Wherein, cut off unit 602 according to predetermined time period can cut into N number of video-frequency band by video file, N to be more than or Integer equal to 1.Further, predetermined time period may include but be not limited only to:5s, 10s, 30s, 1 minute, 5 minutes, 10 points Clock, 20 minutes etc., predetermined time period can also be that first paragraph video length is that m1 time spans, second segment video length are m2 Time span, the 3rd section of video length are m3 time spans ..., and m1, m2, m3 ... can be with unequal.Mobile terminal can be by video text Part is a time span according to every 30s, and video file is cut into N number of video-frequency band.
Synthesis unit 603, for the unit 602 that cuts off to be cut into the N number of picture frame of obtained N number of video-frequency band synthesis.
Wherein, synthesis unit 603 can synthesize N number of video-frequency band N number of picture frame, and such as 1 frame of video includes 100 two field pictures, 100 two field pictures can be synthesized to 1 picture frame.
Broadcast unit 604, for playing N number of picture frame that the synthesis unit 603 is synthesized.
Wherein, broadcast unit 604 can play out the N number of picture frame obtained after synthesis.
Reading unit of the embodiment of the present invention 601 reads the video file that will be played;Cut off unit 602 and read list by described The video file that member 601 is read cuts into N number of video-frequency band according to predetermined time period, wherein, the N is more than or equal to 1 Integer;Synthesis unit 603 cuts off the N number of picture frame of N number of video-frequency band synthesis that the cutting of unit 602 is obtained by described;Broadcast unit 604 Play N number of picture frame of the synthesis unit synthesis.Video file can be divided into using the embodiment of the present invention by N number of video-frequency band, N number of video-frequency band is synthesized into N number of picture frame again, so that, EMS memory occupation can be reduced in the case where ensureing to play video fluency Rate, lifts Consumer's Experience.
Referring to Fig. 7, Fig. 7 is a kind of structural representation of the second embodiment of mobile terminal provided in an embodiment of the present invention Figure.The synthesis unit 603 of mobile terminal described in the present embodiment includes:Acquiring unit 701, extraction unit 702, static state are interior Hold processing unit 703, dynamic content processing unit 704 and synthesis subelement 705, it is specific as follows:
Acquiring unit 701, the M picture frame for obtaining any video-frequency band i in N number of video-frequency band.
Wherein, acquiring unit 701 obtains the M picture frame of any video-frequency band i in N number of video-frequency band.Further, generally In the case of, video is all made up of image one by one, thus, video can be changed into image, mobile terminal can obtain N number of The picture frame of each video-frequency band in video-frequency band, such as one video-frequency band is 24 frames/second, then the length of video-frequency band is 5 minutes, then 120 picture frames of the video-frequency band got.
Extraction unit 702, for extracting the static content in the M picture frame that the acquiring unit 701 is got and moving State content.
Wherein, extraction unit 702 can extract the static content and dynamic content in M frame of video.Further, M figure Interval time difference between picture frame is very of short duration, thus, the scenery in image in M picture frame can be largely identical.For example, Video camera adjustment is taken pictures in an angle in a direction, continuously in several seconds, the major part of the scene of image frame Content can keep constant.Relative to the static content in M two field pictures, then what is changed is exactly dynamic content.
Static content processing unit 703, in the static state in M picture frame extracting the extraction unit 702 Appearance is placed in a two field picture, to obtain still image frame;
Wherein, the static content in M picture frame can be placed in a two field picture by static content processing unit 703, with Obtain still image frame.Mobile terminal can be compared to the image content in M picture frame, if not occurring in M picture frame The content of change, as static content, is placed into a two field picture, just can so obtain still image.
Dynamic content processing unit 704, in the dynamic in M picture frame extracting the extraction unit 702 Appearance is overlapped processing according to predetermined manner, to obtain dynamic image frame.
Wherein, the dynamic content in M picture frame can be overlapped by dynamic content processing unit 704 according to predetermined manner Processing, you can obtain dynamic image frame.
Subelement 705 is synthesized, for the still image frame obtained after the static content processing unit 703 is handled and institute State the dynamic image frame obtained after dynamic content processing unit 704 is handled and synthesize a two field picture.
Wherein, still image frame and dynamic image frame can be synthesized a two field picture by synthesis subelement 705.Further, move Dynamic terminal can insert the image of dynamic image frame according to dynamic image frame in M two field pictures relative to the position in still image frame Enter into still image frame.
Acquiring unit of the embodiment of the present invention 701 obtains the M picture frame of any video-frequency band i in N number of video-frequency band;Carry Unit 702 is taken to extract static content and dynamic content in the M picture frame that the acquiring unit 701 is got;Static content Static content in the M picture frame that processing unit 703 extracts the extraction unit 702 is placed in a two field picture, with Obtain still image frame;Dynamic content processing unit 704, in M picture frame extracting the extraction unit 702 Dynamic content is overlapped processing according to predetermined manner, to obtain dynamic image frame;Subelement 705 is synthesized, for will be described quiet The still image frame obtained after the processing of state content processing unit 703 and the dynamic content processing unit 704 are obtained after handling Dynamic image frame synthesize a two field picture.It can extract using the embodiment of the present invention in the static content and dynamic in any video-frequency band Hold, static content is synthesized into a two field picture, dynamic content is superimposed as piece image, then static content and dynamic content are processed into One picture frame, so that, memory usage can be reduced in the case where ensureing to play video fluency, Consumer's Experience is lifted.
Referring to Fig. 8, Fig. 8 is a kind of structural representation of the 3rd embodiment of mobile terminal provided in an embodiment of the present invention Figure.The extraction unit 702 of mobile terminal described in the present embodiment includes:First determining unit 801 and the second determining unit 802, it is specific as follows:
First determining unit 801, M are determined for the frame-to-frame differences between any two field pictures in M picture frame The region of dynamic content in picture frame.
Wherein, the frame-to-frame differences between any two field pictures that the first determining unit 801 can be in M picture frame determines M The region of dynamic content in individual picture frame.Further, for example, in the case where M is 5, mobile terminal can determine that 5 images The region of dynamic content in frame, can extract R, G, B component respectively by the 1st two field picture and the 2nd two field picture, by R in the 1st two field picture R component in component and the 2nd two field picture carries out asking signed magnitude arithmetic(al) in correspondence position, by G components and the 2nd frame in the 1st two field picture G components in image carry out asking signed magnitude arithmetic(al) in correspondence position, by the B in B component and the 2nd two field picture in the 1st two field picture points Amount carries out asking signed magnitude arithmetic(al) in correspondence position, as long as can have 1 to be more than 10 the absolute value of R, G, the difference of B component, just will This pixel is defined as the pixel of dynamic content, and the pixel of multiple dynamic contents, which is combined, is defined as dynamic content Region.
Second determining unit 802, for the dynamic that will be determined in the M picture frame by first determining unit 801 Region beyond content is defined as static content.
Wherein, the region beyond the dynamic content in M picture frame can be defined as in static state by the second determining unit 802 Hold.Further, static content and dynamic content are all relative.
Frame-to-frame differences between any two field pictures of the first determining unit of the embodiment of the present invention 801 in M picture frame Determine the region of the dynamic content in M picture frame;Second determining unit 802 will be true by described first in the M picture frame Region beyond the dynamic content that order member 801 is determined is defined as static content.Video may separate out using the embodiment of the present invention Static content and dynamic content in section.
Referring to Fig. 9, Fig. 9 is a kind of structural representation of the fourth embodiment of mobile terminal provided in an embodiment of the present invention Figure.The dynamic content processing unit 704 of mobile terminal described in the present embodiment includes:Sampling unit 901, deletion unit 902nd, processing unit 903 and superpositing unit 904, specific as follows:
Sampling unit 901, for carrying out sampling processing to the M picture frame, to obtain the X frame figures in M picture frame Picture.
Wherein, sampling unit 901 can carry out sampling processing to M picture frame, to obtain the X two field pictures in M picture frame. Further, use processing can be for:Mobile terminal is to, every 2 frame abstract image frames, such as M is the situation of 8 frames in M picture frame Under, can be drawn into for the 1st frame, the 3rd frame, the 5th frame, the 7th frame;Or, the 2nd frame, the 4th frame, the 6th frame, the 8th frame.
As a kind of possible embodiment, sampling unit 901 can be by any X two field pictures in M two field pictures.If M is 8 frames In the case of, can be drawn into for the 1st frame, the 3rd frame, the 8th frame.
Unit 902 is deleted, the static content in the X two field pictures obtained for deleting the sampling unit 901 to sample.
Wherein, the static content in X two field pictures can be deleted by deleting unit 902, then what is obtained is the dynamic in X two field pictures In the case that content, such as M are 8 frames, can be drawn into for the 1st frame, the 3rd frame, the 5th frame, the 7th frame, then the 1st two field picture is deleted quiet State content, then obtain the dynamic content in the 1st two field picture.
Dynamic content in processing unit 903, the X two field pictures obtained for the sampling unit to be sampled carries out transparency Processing, the transparency coefficient of the X two field pictures is respectively set to a1, a2 ..., ax, wherein, a1+a2+ ...+ax=1.
Wherein, the dynamic content in X two field pictures can be carried out transparency processing, the transparency of X two field pictures by processing unit 903 Coefficient is respectively set to a1, a2 ..., ax, wherein, a1+a2+ ...+ax=1.So, it is assumed that in X two field pictures, the pixel of location A Value is respectively:1st frame is m1, and the 2nd frame is m2 ..., and X frames are mx, then the calculation of the pixel in dynamic image frame can For:
By taking location A as an example, illustrate.The pixel value A=m1*a1+m2*a2+ ...+mX*ax of location A, other dynamics The calculation of the pixel calculation form location A of content.
Superpositing unit 904, for the X two field pictures obtained after processing unit transparency processing to be synthesized into a sub-picture, To obtain dynamic image frame.
Wherein, the X two field pictures that superpositing unit 904 is obtained after can transparency be handled synthesize a sub-picture, to obtain dynamic Picture frame.
901 pairs of sampling unit of the embodiment of the present invention M picture frame carries out sampling processing, to obtain in M picture frame X two field pictures;Deletion unit 902 deletes the static content in the X two field pictures that the sampling of sampling unit 901 is obtained;Processing is single Dynamic content in the X two field pictures that member 903 obtains the sampling unit 901 sampling carries out transparency processing, the X two field pictures Transparency coefficient be respectively set to a1, a2 ..., ax, wherein, a1+a2+ ...+ax=1;Superpositing unit 904 is single by the processing The X two field pictures that first transparency 903 is obtained after handling synthesize a sub-picture, to obtain dynamic image frame.Using the embodiment of the present invention Dynamic content in video-frequency band can be synthesized a sub-picture.
Referring to Fig. 10, Figure 10 is a kind of structural representation of the 5th embodiment of mobile terminal provided in an embodiment of the present invention Figure.The synthesis subelement 705 of mobile terminal described in the present embodiment includes:Position determination unit 1001 and adding device 1002, it is specific as follows:
Position determination unit 1001, for determining it in the still image according to the coordinate position of the dynamic image frame Relative position in frame.
Wherein, position determination unit 1001 can determine it in still image frame according to the coordinate position of dynamic image frame Relative position.
Adding device 1002, the relative position for being determined according to the position determination unit adds the dynamic image frame It is added in still image frame.
Wherein, the dynamic image frame can be added in still image frame by adding device 1002 according to relative position.
Position determination unit of the embodiment of the present invention 1001 determines it described according to the coordinate position of the dynamic image frame Relative position in still image frame;The relative position that adding device 1002 is determined according to the position determination unit 1001 is by institute Dynamic image frame is stated to be added in still image frame., can be by the static content of video-frequency band and dynamic using the embodiment of the present invention Hold one two field picture of synthesis.
Referring to Figure 11, Figure 11 is a kind of sixth embodiment structural representation of mobile terminal provided in an embodiment of the present invention. Mobile terminal described in the present embodiment includes:At least one input equipment 1000;At least one output equipment 2000;At least One processor 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 Connected with memory 4000 by bus 5000.
Wherein, above-mentioned input equipment 1000 can be contact panel, common PC, liquid crystal display, touch screen etc..
Above-mentioned memory 4000 can be high-speed RAM memory, or non-labile memory (non-volatile Memory), such as magnetic disk storage.Above-mentioned memory 4000 is used to store batch processing code, above-mentioned input equipment 1000, defeated Going out equipment 2000 and processor 3000 is used to call the program code stored in memory 4000, performs following operation:
Above-mentioned processor 3000, for reading the video file that will be played;
Above-mentioned processor 3000, also particularly useful for:
The video file is cut into N number of video-frequency band according to predetermined time period, wherein, the N is more than or equal to 1 Integer;
Above-mentioned processor 3000, also particularly useful for:
N number of video-frequency band is synthesized into N number of picture frame;
Above-mentioned processor 3000, also particularly useful for:
Play N number of picture frame.
In some feasible embodiments, above-mentioned processor 3000 also particularly useful for:
Obtain the M picture frame of any video-frequency band i in N number of video-frequency band;
Extract the static content and dynamic content in the M picture frame;
Static content in the M picture frame is placed in a two field picture, to obtain still image frame;
Dynamic content in the M picture frame is overlapped processing according to predetermined manner, to obtain dynamic image frame;
The still image frame and the dynamic image frame are synthesized into a two field picture.
In some feasible embodiments, above-mentioned processor 3000, also particularly useful for:
The frame-to-frame differences between any two field pictures in M picture frame determines the dynamic content in M picture frame Region;
Region beyond the dynamic content is defined as static content.
In some feasible embodiments, above-mentioned processor 3000, also particularly useful for:
Sampling processing is carried out to the M picture frame, to obtain the X two field pictures in M picture frame;
Delete the static content in the X two field pictures;
Dynamic content in the X two field pictures is subjected to transparency processing, the transparency coefficient of the X two field pictures is set respectively A1, a2 ..., ax are set to, wherein, a1+a2+ ...+ax=1;
The X two field pictures obtained after transparency processing are synthesized into a sub-picture, to obtain dynamic image frame.
In some feasible embodiments, above-mentioned processor 3000, also particularly useful for:
Its relative position in the still image frame is determined according to the coordinate position of the dynamic image frame;
The dynamic image frame is added in still image frame according to the relative position.
In the specific implementation, input equipment 1000, output equipment 2000 and processor described in the embodiment of the present invention Retouched in each embodiment of the method for Video processing described in 3000 executable Fig. 1~Fig. 5 provided in an embodiment of the present invention The implementation stated, also can perform the first embodiment of the mobile terminal described by Fig. 6~Figure 10 provided in an embodiment of the present invention The implementation of mobile terminal described in~the five embodiment, will not be repeated here.
Module or submodule in all embodiments of the embodiment of the present invention, can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application specific integrated circuit) realize.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer-readable recording medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, abbreviation RAM) etc..
Above disclosed is only preferred embodiment of the embodiment of the present invention, can not be limited certainly with this of the invention real The interest field of example, therefore the equivalent variations made according to claim of the embodiment of the present invention are applied, still belongs to the embodiment of the present invention and is contained The scope of lid.

Claims (12)

1. a kind of method of Video processing, it is characterised in that including:
Read the video file that will be played;
The video file is cut into N number of video-frequency band according to predetermined time period, wherein, the N is whole more than or equal to 1 Number;
N number of video-frequency band is synthesized into N number of picture frame;
Play N number of picture frame.
2. the method as described in claim 1, it is characterised in that described to include the N number of picture frame of N number of video-frequency band synthesis:
Obtain the M picture frame of any video-frequency band i in N number of video-frequency band;
Extract the static content and dynamic content in the M picture frame;
Static content in the M picture frame is placed in a two field picture, to obtain still image frame;
Dynamic content in the M picture frame is overlapped processing according to predetermined manner, to obtain dynamic image frame;
The still image frame and the dynamic image frame are synthesized into a two field picture.
3. method as claimed in claim 2, it is characterised in that static content in the extraction M picture frame and dynamic State content, including:
The frame-to-frame differences between any two field pictures in M picture frame determines the region of the dynamic content in M picture frame;
Region beyond dynamic content in the M picture frame is defined as static content.
4. the method as described in any one of claim 1 or 2, it is characterised in that in the dynamic by the M picture frame Appearance is overlapped processing according to predetermined manner, is included with obtaining dynamic image frame:
Sampling processing is carried out to the M picture frame, to obtain the X two field pictures in the M picture frame;
Delete the static content in the X two field pictures;
Dynamic content in the X two field pictures is subjected to transparency processing, the transparency coefficient of the X two field pictures is respectively set to A1, a2 ..., ax, wherein, a1+a2+ ...+ax=1;
The X two field pictures obtained after transparency processing are synthesized into a sub-picture, to obtain dynamic image frame.
5. the method as described in any one of claim 1 or 2, it is characterised in that described by the still image frame and described dynamic State picture frame, which synthesizes a two field picture, to be included:
Its relative position in the still image frame is determined according to the coordinate position of the dynamic image frame;
The dynamic image frame is added in still image frame according to the relative position.
6. a kind of mobile terminal, it is characterised in that including:
Reading unit, for reading the video file that will be played;
Unit is cut off, N number of video-frequency band is cut into according to predetermined time period for the video file that reads the reading unit, Wherein, the N is the integer more than or equal to 1;
Synthesis unit, for cuing off the N number of picture frame of N number of video-frequency band synthesis that unit cutting is obtained by described;
Broadcast unit, N number of picture frame for playing the synthesis unit synthesis.
7. mobile terminal as claimed in claim 6, it is characterised in that the synthesis unit includes:
Acquiring unit, the M picture frame for obtaining any video-frequency band i in N number of video-frequency band;
Extraction unit, for extracting static content and dynamic content in the M picture frame that the acquiring unit is got;
Static content processing unit, one is placed on for the static content in M picture frame extracting the extraction unit In two field picture, to obtain still image frame;
Dynamic content processing unit, for the dynamic content in M picture frame extracting the extraction unit according to default Mode is overlapped processing, to obtain dynamic image frame;
Subelement is synthesized, for the still image frame and the Dynamic Graph that will be obtained after the processing of the static content processing unit As frame synthesizes a two field picture.
8. mobile terminal as claimed in claim 7, it is characterised in that the extraction unit includes:
First determining unit, is determined in M picture frame for the frame-to-frame differences between any two field pictures in M picture frame Dynamic content region;
Second determining unit, for beyond the dynamic content that will be determined in the M picture frame by first determining unit Region is defined as static content.
9. the mobile terminal as described in any one of claim 6 or 7, it is characterised in that the dynamic content processing unit includes:
Sampling unit, for carrying out sampling processing to the M picture frame, to obtain the X two field pictures in M picture frame;
Unit is deleted, for deleting the static content in the X two field pictures that the sampling unit sampling is obtained;
Dynamic content in processing unit, the X two field pictures obtained for the sampling unit to be sampled carries out transparency processing, institute The transparency coefficient for stating X two field pictures is respectively set to a1, a2 ..., ax, wherein, a1+a2+ ...+ax=1;
Superpositing unit, for the X two field pictures obtained after processing unit transparency processing to be synthesized into a sub-picture, to be moved State picture frame.
10. the mobile terminal as described in any one of claim 6 or 7, it is characterised in that the synthesis subelement includes:
Position determination unit, for determining its phase in the still image frame according to the coordinate position of the dynamic image frame To position;
Adding device, static state is added to for the relative position that is determined according to the position determination unit by the dynamic image frame In picture frame.
11. a kind of mobile terminal, it is characterised in that including:
Memory, for store program codes;And
Processor, the program code stored for calling in memory is performed at the video as described in claim any one of 1-5 The method of reason.
12. a kind of computer-readable recording medium, it is characterised in that had program stored therein generation in the computer-readable recording medium Code, described program code is used for after being called for processor, performs the side of the Video processing as described in claim any one of 1-5 Method.
CN201710674534.6A 2015-04-15 2015-04-15 A kind of method and mobile terminal of video processing Expired - Fee Related CN107333175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710674534.6A CN107333175B (en) 2015-04-15 2015-04-15 A kind of method and mobile terminal of video processing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510178529.7A CN104811797B (en) 2015-04-15 2015-04-15 The method and mobile terminal of a kind of Video processing
CN201710674534.6A CN107333175B (en) 2015-04-15 2015-04-15 A kind of method and mobile terminal of video processing

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510178529.7A Division CN104811797B (en) 2015-04-15 2015-04-15 The method and mobile terminal of a kind of Video processing

Publications (2)

Publication Number Publication Date
CN107333175A true CN107333175A (en) 2017-11-07
CN107333175B CN107333175B (en) 2019-06-25

Family

ID=53696210

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710674534.6A Expired - Fee Related CN107333175B (en) 2015-04-15 2015-04-15 A kind of method and mobile terminal of video processing
CN201510178529.7A Active CN104811797B (en) 2015-04-15 2015-04-15 The method and mobile terminal of a kind of Video processing

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510178529.7A Active CN104811797B (en) 2015-04-15 2015-04-15 The method and mobile terminal of a kind of Video processing

Country Status (1)

Country Link
CN (2) CN107333175B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559631A (en) * 2015-09-30 2017-04-05 小米科技有限责任公司 Method for processing video frequency and device
CN106911960B (en) * 2017-03-01 2019-11-15 广州阿里巴巴文学信息技术有限公司 Method of video image processing, device and electric terminal
CN109672776B (en) 2017-10-16 2021-07-09 华为技术有限公司 Method and terminal for displaying dynamic image
CN108282612B (en) * 2018-01-12 2021-11-19 广州市百果园信息技术有限公司 Video processing method, computer storage medium and terminal
CN109003282B (en) * 2018-07-27 2022-04-29 京东方科技集团股份有限公司 Image processing method and device and computer storage medium
CN114363697B (en) * 2022-01-06 2024-04-26 上海哔哩哔哩科技有限公司 Video file generation and playing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070195993A1 (en) * 2006-02-22 2007-08-23 Chao-Ho Chen Method for video object segmentation
CN101489147A (en) * 2009-01-16 2009-07-22 西安电子科技大学 Width/height ratio conversion method based on interested region
CN102724492A (en) * 2012-06-28 2012-10-10 广东威创视讯科技股份有限公司 Method and system for transmitting and playing video images
CN102819846A (en) * 2012-06-13 2012-12-12 广东威创视讯科技股份有限公司 Method and system for playing high-definition video

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2008255228B8 (en) * 2008-12-10 2012-02-16 Canon Kabushiki Kaisha Method of selecting a frame from motion video
US8643746B2 (en) * 2011-05-18 2014-02-04 Intellectual Ventures Fund 83 Llc Video summary including a particular person
CN102231820B (en) * 2011-06-14 2014-08-06 广州嘉崎智能科技有限公司 Monitoring image processing method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070195993A1 (en) * 2006-02-22 2007-08-23 Chao-Ho Chen Method for video object segmentation
CN101489147A (en) * 2009-01-16 2009-07-22 西安电子科技大学 Width/height ratio conversion method based on interested region
CN102819846A (en) * 2012-06-13 2012-12-12 广东威创视讯科技股份有限公司 Method and system for playing high-definition video
CN102724492A (en) * 2012-06-28 2012-10-10 广东威创视讯科技股份有限公司 Method and system for transmitting and playing video images

Also Published As

Publication number Publication date
CN104811797A (en) 2015-07-29
CN107333175B (en) 2019-06-25
CN104811797B (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN104811797B (en) The method and mobile terminal of a kind of Video processing
US11218739B2 (en) Live video broadcast method, live broadcast device and storage medium
JP6120169B2 (en) Image editing device
US8717385B2 (en) Image display control apparatus
US11875023B2 (en) Method and apparatus for operating user interface, electronic device, and storage medium
WO2016078298A1 (en) Screenshot image output method and device, and storage medium
CN104135611A (en) Method and device for photographing with split-screen function
US10484639B2 (en) Image generation method and device
CN110070496B (en) Method and device for generating image special effect and hardware device
CN106775561B (en) Question intercepting method and device and intelligent equipment
CN112565890B (en) Video clipping method and device, storage medium and electronic equipment
EP3822757A1 (en) Method and apparatus for setting background of ui control
EP3200459A1 (en) Encoding method, decoding method, apparatus and electronic device
CN109788212A (en) A kind of processing method of segmenting video, device, terminal and storage medium
US20160012851A1 (en) Image processing device, image processing method, and program
US12019669B2 (en) Method, apparatus, device, readable storage medium and product for media content processing
US9641768B2 (en) Filter realization method and apparatus of camera application
CN110633380B (en) Control method and device for picture processing interface, electronic equipment and readable medium
CN110248115B (en) Image processing method, device and storage medium
CN104252696A (en) Thumbnail acquisition method and device
JP2023538825A (en) Methods, devices, equipment and storage media for picture to video conversion
CN111221444A (en) Split screen special effect processing method and device, electronic equipment and storage medium
CN111275800B (en) Animation generation method and device, electronic equipment and computer readable storage medium
CN111741341A (en) Shared screen processing apparatus and shared screen processing method
CN104899915A (en) Picture processing method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190625

CF01 Termination of patent right due to non-payment of annual fee