CN104811797A - Video processing method and mobile terminal - Google Patents

Video processing method and mobile terminal Download PDF

Info

Publication number
CN104811797A
CN104811797A CN201510178529.7A CN201510178529A CN104811797A CN 104811797 A CN104811797 A CN 104811797A CN 201510178529 A CN201510178529 A CN 201510178529A CN 104811797 A CN104811797 A CN 104811797A
Authority
CN
China
Prior art keywords
picture frame
video
picture
unit
frame
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
CN201510178529.7A
Other languages
Chinese (zh)
Other versions
CN104811797B (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
Priority to CN201510178529.7A priority patent/CN104811797B/en
Publication of CN104811797A publication Critical patent/CN104811797A/en
Application granted granted Critical
Publication of CN104811797B publication Critical patent/CN104811797B/en
Active 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 video processing method. The method comprises the following steps: reading a video file to be played; cutting the video file into N video sections according to a preset time length, wherein N is an integer which is greater than or equal to 1; combining the N video sections into N image frames; playing the N image frames. The embodiment of the invention also discloses a mobile terminal. By using the embodiment of the invention, the video file is cut into N video sections, and then the N video sections are combined into N image frames, so that the memory occupancy rate can be reduced and the user experience can be improved under the condition that video play smoothness is guaranteed.

Description

A kind of method of Video processing and mobile terminal
Technical field
The embodiment of the present invention relates to field of video processing, particularly relates to a kind of method and mobile terminal of Video processing.
Background technology
Along with the development of information technology, the integrated function of mobile terminal also gets more and more, and often kind of function is all more and more perfect, and mobile terminal can be used for making a phone call, surfs the Net, sees video, take pictures etc.The integrated function of mobile terminal is more, and background program operation can bring very large burden to CPU.Such as, when displaying video, in order to ensure fluency when using, need high frame per second (generally more than 60 frames/second), CPU can bear larger pressure, simultaneously, also occupies a large amount of internal memory, it is urgently to be resolved hurrily for how solving the problem that displaying video brings.
Summary of the invention
Embodiments provide a kind of method and mobile terminal of Video processing, when ensureing displaying video fluency, memory usage can be reduced, promoting Consumer's Experience.
Embodiment of the present invention first aspect provides a kind of method of Video processing, comprises step:
Read the video file being about to play;
Described video file is cut into N number of video-frequency band according to predetermined time period, wherein, described N be more than or equal to 1 integer;
Described N number of video-frequency band is synthesized N number of picture frame;
Play described N number of picture frame.
Embodiment of the present invention second aspect provides a kind of mobile terminal, comprising:
Reading unit, for reading the video file being about to play;
Cut off unit, cut into N number of video-frequency band for the video file read by described reading unit according to predetermined time period, wherein, described N be more than or equal to 1 integer;
Synthesis unit, for cuing off N number of video-frequency band that unit cutting obtains synthesize N number of picture frame by described;
Broadcast unit, for playing described N number of picture frame.
Implement the embodiment of the present invention, there is following beneficial effect:
The embodiment of the present invention reads the video file being about to play; Described video file is cut into N number of video-frequency band according to predetermined time period, wherein, described N be more than or equal to 1 integer; Described N number of video-frequency band is synthesized N number of picture frame; Play described N number of picture frame.Adopt the embodiment of the present invention video file can be divided into N number of video-frequency band, more N number of video-frequency band is synthesized N number of picture frame, thus, when ensureing displaying video fluency, memory usage can be reduced, promoting Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment, description below, apparently, accompanying drawing in the following describes is only some embodiments of the embodiment of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the first embodiment of the method for a kind of Video processing that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the second embodiment of the method for a kind of Video processing that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the 3rd embodiment of the method for a kind of Video processing that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the 4th embodiment of the method for a kind of Video processing that Fig. 4 provides for the embodiment of the present invention;
The schematic flow sheet of the 5th embodiment of the method for a kind of Video processing that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the first embodiment of a kind of mobile terminal that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the second embodiment of a kind of mobile terminal that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the 3rd embodiment of a kind of mobile terminal that Fig. 8 provides for the embodiment of the present invention;
The structural representation of the 4th embodiment of a kind of mobile terminal that Fig. 9 provides for the embodiment of the present invention;
The structural representation of the 5th embodiment of a kind of mobile terminal that Figure 10 provides for the embodiment of the present invention;
The structural representation of the 6th embodiment of a kind of mobile terminal that Figure 11 provides for the embodiment of the present invention;
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only embodiment of the present invention part embodiment, instead of whole embodiments.Based on the embodiment in the embodiment of the present invention, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of embodiment of the present invention protection.
In realization, in the embodiment of the present invention, mobile terminal can include but not limited to: notebook computer, mobile phone, panel computer, intelligent wearable device etc.The system of mobile terminal refers to the operating system of mobile terminal, can include but not limited to: android system, Saipan system, Windows system, IOS (Mobile operating system of Apple's exploitation) system etc.It should be noted that, Android mobile terminal refers to the mobile terminal of android system, and Saipan mobile terminal refers to the mobile terminal of Saipan system, etc.Above-mentioned mobile terminal is only citing, and non exhaustive, including but not limited to above-mentioned mobile terminal.
Composition graphs 1 to Figure 11 is described the method for a kind of Video processing that the embodiment of the present invention provides and mobile terminal.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the first embodiment of the method for a kind of Video processing that the embodiment of the present invention provides.The method of the Video processing described in the present embodiment, comprises step:
S101, reading are by the video file play.
Wherein, mobile terminal can read the video file being about to play.Wherein, the video file of mobile terminal can be: ordinary video file, high-definition video file, Blu-ray video file or 3D video file.
S102, described video file is cut into N number of video-frequency band according to predetermined time period, wherein, described N be more than or equal to 1 integer.
Wherein, video file can be cut into N number of video-frequency band according to predetermined time period by mobile terminal, N be more than or equal to 1 integer.Further, predetermined time period can include but are not limited to: 5s, 10s, 30s, 1 minute, 5 minutes, 10 minutes, 20 minutes etc., predetermined time period also can be that first paragraph video length is m1 time span, second segment video length is m2 time span, the 3rd section of video length is m3 time span ..., m1, m2, m3 ... can be unequal.Video file can be a time span according to every 30s by mobile terminal, and video file is cut into N number of video-frequency band.
S103, described N number of video-frequency band is synthesized N number of picture frame.
Wherein, N number of video-frequency band can be synthesized N number of picture frame by mobile terminal, as 1 frame of video comprises 100 two field pictures, 100 two field pictures can be synthesized 1 picture frame.
S104, play described N number of picture frame.
Wherein, the N number of picture frame obtained after synthesis can be play by mobile terminal.
The embodiment of the present invention reads the video file being about to play; Described video file is cut into N number of video-frequency band according to predetermined time period, wherein, described N be more than or equal to 1 integer; Described N number of video-frequency band is synthesized N number of picture frame; Play described N number of picture frame.Adopt the embodiment of the present invention video file can be divided into N number of video-frequency band, more N number of video-frequency band is synthesized N number of picture frame, thus, when ensureing displaying video fluency, memory usage can be reduced, promoting Consumer's Experience.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the second embodiment of the method for a kind of Video processing that the embodiment of the present invention provides.As a kind of possible execution mode, the concrete refinement of the step S103 in the method for the Video processing described in the present embodiment embodiment described in Fig. 1, comprises step:
M the picture frame of S201, the arbitrary video-frequency band i obtained in described N number of video-frequency band.
Wherein, M the picture frame of the arbitrary video-frequency band i in the N number of video-frequency band of acquisition for mobile terminal.Further, under normal circumstances, video is all made up of image one by one, thus, video can be changed into image, mobile terminal can obtain the picture frame of each video-frequency band in N number of video-frequency band, if a 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.
S202, extract static content in a described M picture frame and dynamic content.
Wherein, mobile terminal can extract static content in M frame of video and dynamic content.Further, the interval time difference between M picture frame is very of short duration, and thus, the scenery in the image in M picture frame can be most of identical.Such as, video camera adjustment taken pictures in a direction an angle, in continuous print several seconds, the most contents of the scene of image frame can remain unchanged.Relative to the static content in M two field picture, then what change is exactly dynamic content.
S203, the static content in a described M picture frame is placed in a two field picture, to obtain static map picture frame.
Wherein, the static content in M picture frame can be placed in a two field picture, to obtain static map picture frame by mobile terminal.Mobile terminal can compare the image content in M picture frame, if the content do not changed in M picture frame, as static content, is placed in a two field picture, so just can obtains still image.
S204, the dynamic content in a described M picture frame is carried out overlap-add procedure according to predetermined manner, to obtain Dynamic Graph picture frame.
Wherein, the dynamic content in M picture frame can be carried out overlap-add procedure according to predetermined manner by mobile terminal, can obtain Dynamic Graph picture frame.
S205, described static map picture frame and described Dynamic Graph picture frame are synthesized a two field picture.
Wherein, static map picture frame and Dynamic Graph picture frame can be synthesized a two field picture by mobile terminal.Further, the image of Dynamic Graph picture frame according to Dynamic Graph picture frame in M two field picture relative to the position in static map picture frame, can be inserted in static map picture frame by mobile terminal.
The embodiment of the present invention obtains M the picture frame of the arbitrary video-frequency band i in described N number of video-frequency band; Extract the static content in a described M picture frame and dynamic content; Static content in a described M picture frame is placed in a two field picture, to obtain static map picture frame; Dynamic content in a described M picture frame is carried out overlap-add procedure according to predetermined manner, to obtain Dynamic Graph picture frame; Described static map picture frame and described Dynamic Graph picture frame are synthesized a two field picture.Adopt the embodiment of the present invention can extract static content in arbitrary video-frequency band and dynamic content, static content is synthesized a two field picture, dynamic content is superimposed as piece image, again static content and dynamic content are processed into a picture frame, thus, when ensureing displaying video fluency, memory usage can be reduced, promoting Consumer's Experience.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of the 3rd embodiment of the method for a kind of Video processing that the embodiment of the present invention provides.As a kind of possible execution mode, the concrete refinement of the step S202 in the method for the Video processing described in the present embodiment embodiment described in Fig. 2, comprises step:
S301, determine the region of the dynamic content in M picture frame according to the frame-to-frame differences between arbitrary two two field pictures in M picture frame.
Wherein, mobile terminal can determine the region of the dynamic content in M picture frame according to the frame-to-frame differences between arbitrary two two field pictures in M picture frame.Further, such as, when M is 5, mobile terminal can determine the region of the dynamic content in 5 picture frames, 1st two field picture and the 2nd two field picture can be extracted R respectively, G, B component, R component in R component in 1st two field picture and the 2nd two field picture is carried out asking signed magnitude arithmetic(al) at correspondence position, G component in G component in 1st two field picture and the 2nd two field picture is carried out asking signed magnitude arithmetic(al) at correspondence position, B component in B component in 1st two field picture and the 2nd two field picture is carried out asking signed magnitude arithmetic(al) at correspondence position, can by R, G, as long as the absolute value of the difference of B component has 1 to be greater than 10, just this pixel is defined as the pixel of dynamic content, the pixel of multiple dynamic content combines the region being defined as dynamic content.
S302, the region beyond the dynamic content in a described 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.Further, static content and dynamic content are all relative.
The embodiment of the present invention determines the region of the dynamic content in M picture frame according to the frame-to-frame differences between arbitrary two two field pictures in M picture frame; Region beyond dynamic content in a described M picture frame is defined as static content.Adopt the embodiment of the present invention separable go out static content in video-frequency band and dynamic content.
Refer to Fig. 4, Fig. 4 is the schematic flow sheet of the 4th embodiment of the method for a kind of Video processing that the embodiment of the present invention provides.As a kind of possible execution mode, the concrete refinement of the step S204 in the method for the Video processing described in the present embodiment embodiment described in Fig. 2, comprises step:
S401, sampling processing is carried out to a described M picture frame, to obtain the X two field picture in M picture frame.
Wherein, mobile terminal can carry out sampling processing to M picture frame, to obtain the X two field picture in M picture frame.Further, adopt process can be: mobile terminal in M picture frame every 2 frame abstract image frames, as M be 8 frame when, what can be drawn into is 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 execution mode, mobile terminal can by any X two field picture in M two field picture.As M be 8 frame when, what can be drawn into is the 1st frame, the 3rd frame, the 8th frame.
S402, the static content deleted in described X two field picture.
Wherein, mobile terminal can delete the static content in X two field picture, then what obtain is dynamic content in X two field picture, as M be 8 frame when, what can be drawn into is the 1st frame, the 3rd frame, the 5th frame, 7th frame, so the 1st two field picture deletes static content, then obtain the dynamic content in the 1st two field picture.
S403, the dynamic content in described X two field picture is carried out transparency process, the transparency coefficient of described X two field picture is set to a1, a2 respectively ..., ax, wherein, a1+a2+ ... + ax=1.
Wherein, the dynamic content in X two field picture can be carried out transparency process by mobile terminal, and the transparency coefficient of X two field picture is set to a1 respectively, a2 ..., ax, wherein, a1+a2+ ... + ax=1.So, suppose that, in X two field picture, the pixel value of A position is respectively: the 1st frame is m1, the 2nd frame is m2 ..., X frame is mx, then the account form of the pixel in Dynamic Graph picture frame can be:
For A position, be described.The pixel value A=m1*a1+m2*a2+ of A position ... + mX*ax, the account form of the pixel account form form A position of other dynamic content.
S404, the X two field picture obtained after described transparency process is synthesized a sub-picture, to obtain Dynamic Graph picture frame.
Wherein, the X two field picture obtained after transparency process can be synthesized a sub-picture by mobile terminal, to obtain Dynamic Graph picture frame.
The embodiment of the present invention carries out sampling processing to a described M picture frame, to obtain the X two field picture in M picture frame; Delete the static content in described X two field picture; Dynamic content in described X two field picture is carried out transparency process, and the transparency coefficient of described X two field picture is set to a1, a2 respectively ..., ax, wherein, a1+a2+ ... + ax=1; The X two field picture obtained after described transparency process is synthesized a sub-picture, to obtain Dynamic Graph picture frame.Adopt the embodiment of the present invention dynamic content in video-frequency band can be synthesized a sub-picture.
Refer to Fig. 5, Fig. 5 is the schematic flow sheet of the 5th embodiment of the method for a kind of Video processing that the embodiment of the present invention provides.As a kind of possible execution mode, the concrete refinement of the step S205 in the method for the Video processing described in the present embodiment embodiment described in Fig. 2, comprises step:
S501, determine its relative position in described static map picture frame according to the coordinate position of described Dynamic Graph picture frame.
Wherein, mobile terminal can determine its relative position in static map picture frame according to the coordinate position of Dynamic Graph picture frame.
S502, according to described relative position, described Dynamic Graph picture frame to be added in static map picture frame.
Wherein, described Dynamic Graph picture frame can add in static map picture frame according to relative position by mobile terminal.
The embodiment of the present invention determines its relative position in described static map picture frame according to the coordinate position of described Dynamic Graph picture frame; According to described relative position, described Dynamic Graph picture frame is added in static map picture frame.Adopt the embodiment of the present invention, the static content of video-frequency band and dynamic content can be synthesized a two field picture.
Refer to Fig. 6, Fig. 6 is the structural representation of the first embodiment of a kind of mobile terminal that the embodiment of the present invention provides.Mobile terminal described in the embodiment of the present invention, specific as follows:
Reading unit 601, for reading the video file being about to play.
Wherein, reading unit 601 can read the video file being about to play.Wherein, the video file of mobile terminal can be: ordinary video file, high-definition video file, Blu-ray video file or 3D video file.
Cut off unit 602, cut into N number of video-frequency band for the video file read by described reading unit 601 according to predetermined time period, wherein, described N be more than or equal to 1 integer.
Wherein, cut off unit 602 and video file can be cut into N number of video-frequency band according to predetermined time period, N be more than or equal to 1 integer.Further, predetermined time period can include but are not limited to: 5s, 10s, 30s, 1 minute, 5 minutes, 10 minutes, 20 minutes etc., predetermined time period also can be that first paragraph video length is m1 time span, second segment video length is m2 time span, the 3rd section of video length is m3 time span ..., m1, m2, m3 ... can be unequal.Video file can be a time span according to every 30s by mobile terminal, and video file is cut into N number of video-frequency band.
Synthesis unit 603, for cuing off N number of video-frequency band that unit 602 cutting obtains synthesize N number of picture frame by described.
Wherein, N number of video-frequency band can be synthesized N number of picture frame by synthesis unit 603, as 1 frame of video comprises 100 two field pictures, 100 two field pictures can be synthesized 1 picture frame.
Broadcast unit 604, for playing N number of picture frame of described synthesis unit 603 synthesis.
Wherein, the N number of picture frame obtained after synthesis can be play by broadcast unit 604.
Embodiment of the present invention reading unit 601 reads the video file being about to play; Cut off unit 602 and the video file that described reading unit 601 reads cut into N number of video-frequency band according to predetermined time period, wherein, described N be more than or equal to 1 integer; Synthesis unit 603 cuts off N number of video-frequency band that unit 602 cutting obtains synthesize N number of picture frame by described; Broadcast unit 604 plays N number of picture frame of described synthesis unit synthesis.Adopt the embodiment of the present invention video file can be divided into N number of video-frequency band, more N number of video-frequency band is synthesized N number of picture frame, thus, when ensureing displaying video fluency, memory usage can be reduced, promoting Consumer's Experience.
Refer to Fig. 7, Fig. 7 is the structural representation of the second embodiment of a kind of mobile terminal that the embodiment of the present invention provides.The synthesis unit 603 of the mobile terminal described in the present embodiment comprises: acquiring unit 701, extraction unit 702, static content processing unit 703, dynamic content processing unit 704 and synthon unit 705, specific as follows:
Acquiring unit 701, for obtaining M the picture frame of the arbitrary video-frequency band i in described N number of video-frequency band.
Wherein, acquiring unit 701 obtains M the picture frame of the arbitrary video-frequency band i in N number of video-frequency band.Further, under normal circumstances, video is all made up of image one by one, thus, video can be changed into image, mobile terminal can obtain the picture frame of each video-frequency band in N number of video-frequency band, if a 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 static content in M picture frame that described acquiring unit 701 gets and dynamic content.
Wherein, extraction unit 702 can extract static content in M frame of video and dynamic content.Further, the interval time difference between M picture frame is very of short duration, and thus, the scenery in the image in M picture frame can be most of identical.Such as, video camera adjustment taken pictures in a direction an angle, in continuous print several seconds, the most contents of the scene of image frame can remain unchanged.Relative to the static content in M two field picture, then what change is exactly dynamic content.
Static content processing unit 703, is placed in a two field picture, to obtain static map picture frame for the static content in M picture frame being extracted by described extraction unit 702;
Wherein, the static content in M picture frame can be placed in a two field picture, to obtain static map picture frame by static content processing unit 703.Mobile terminal can compare the image content in M picture frame, if the content do not changed in M picture frame, as static content, is placed in a two field picture, so just can obtains still image.
Dynamic content processing unit 704, carries out overlap-add procedure according to predetermined manner, to obtain Dynamic Graph picture frame for the dynamic content in M picture frame being extracted by described extraction unit 702.
Wherein, the dynamic content in M picture frame can be carried out overlap-add procedure according to predetermined manner by dynamic content processing unit 704, can obtain Dynamic Graph picture frame.
Synthon unit 705, the Dynamic Graph picture frame obtained after processing for the static map picture frame that obtains after being processed by described static content processing unit 703 and described dynamic content processing unit 704 synthesizes a two field picture.
Wherein, static map picture frame and Dynamic Graph picture frame can be synthesized a two field picture by synthon unit 705.Further, the image of Dynamic Graph picture frame according to Dynamic Graph picture frame in M two field picture relative to the position in static map picture frame, can be inserted in static map picture frame by mobile terminal.
Embodiment of the present invention acquiring unit 701 obtains M the picture frame of the arbitrary video-frequency band i in described N number of video-frequency band; Extraction unit 702 extracts static content in M the picture frame that described acquiring unit 701 gets and dynamic content; Static content in M the picture frame that described extraction unit 702 extracts by static content processing unit 703 is placed in a two field picture, to obtain static map picture frame; Dynamic content processing unit 704, carries out overlap-add procedure according to predetermined manner, to obtain Dynamic Graph picture frame for the dynamic content in M picture frame being extracted by described extraction unit 702; Synthon unit 705, synthesizes a two field picture for the Dynamic Graph picture frame obtained after the static map picture frame obtained after the process of described static content processing unit 703 and described dynamic content processing unit 704 being processed.Adopt the embodiment of the present invention can extract static content in arbitrary video-frequency band and dynamic content, static content is synthesized a two field picture, dynamic content is superimposed as piece image, again static content and dynamic content are processed into a picture frame, thus, when ensureing displaying video fluency, memory usage can be reduced, promoting Consumer's Experience.
Refer to Fig. 8, Fig. 8 is the structural representation of the 3rd embodiment of a kind of mobile terminal that the embodiment of the present invention provides.The extraction unit 702 of the mobile terminal described in the present embodiment comprises: the first determining unit 801 and the second determining unit 802, specific as follows:
First determining unit 801, for determining the region of the dynamic content in M picture frame according to the frame-to-frame differences between any two two field pictures in M picture frame.
Wherein, the first determining unit 801 can determine the region of the dynamic content in M picture frame according to the frame-to-frame differences between arbitrary two two field pictures in M picture frame.Further, such as, when M is 5, mobile terminal can determine the region of the dynamic content in 5 picture frames, 1st two field picture and the 2nd two field picture can be extracted R respectively, G, B component, R component in R component in 1st two field picture and the 2nd two field picture is carried out asking signed magnitude arithmetic(al) at correspondence position, G component in G component in 1st two field picture and the 2nd two field picture is carried out asking signed magnitude arithmetic(al) at correspondence position, B component in B component in 1st two field picture and the 2nd two field picture is carried out asking signed magnitude arithmetic(al) at correspondence position, can by R, G, as long as the absolute value of the difference of B component has 1 to be greater than 10, just this pixel is defined as the pixel of dynamic content, the pixel of multiple dynamic content combines the region being defined as dynamic content.
Second determining unit 802, for being defined as static content by the region beyond the dynamic content determined by described first determining unit 801 in a described M picture frame.
Wherein, the region beyond the dynamic content in M picture frame can be defined as static content by the second determining unit 802.Further, static content and dynamic content are all relative.
The embodiment of the present invention first determining unit 801 determines the region of the dynamic content in M picture frame according to the frame-to-frame differences between any two two field pictures in M picture frame; Region beyond the dynamic content determined by described first determining unit 801 in a described M picture frame is defined as static content by the second determining unit 802.Adopt the embodiment of the present invention separable go out static content in video-frequency band and dynamic content.
Refer to Fig. 9, Fig. 9 is the structural representation of the 4th embodiment of a kind of mobile terminal that the embodiment of the present invention provides.The dynamic content processing unit 704 of the mobile terminal described in the present embodiment comprises: sampling unit 901, delete cells 902, processing unit 903 and superpositing unit 904, specific as follows:
Sampling unit 901, for carrying out sampling processing to a described M picture frame, to obtain the X two field picture in M picture frame.
Wherein, sampling unit 901 can carry out sampling processing to M picture frame, to obtain the X two field picture in M picture frame.Further, adopt process can be: mobile terminal in M picture frame every 2 frame abstract image frames, as M be 8 frame when, what can be drawn into is 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 execution mode, sampling unit 901 can by any X two field picture in M two field picture.As M be 8 frame when, what can be drawn into is the 1st frame, the 3rd frame, the 8th frame.
Delete cells 902, for deleting the static content that described sampling unit 901 is sampled in the X two field picture that obtains.
Wherein, delete cells 902 can delete the static content in X two field picture, what then obtain is dynamic content in X two field picture, as M be 8 frame when, what can be drawn into is the 1st frame, the 3rd frame, 5th frame, 7th frame, so the 1st two field picture deletes static content, then obtain the dynamic content in the 1st two field picture.
Processing unit 903, the dynamic content in the X two field picture obtained for being sampled by described sampling unit carries out transparency process, and the transparency coefficient of described X two field picture is set to a1, a2 respectively ..., ax, wherein, a1+a2+ ... + ax=1.
Wherein, the dynamic content in X two field picture can be carried out transparency process by processing unit 903, and the transparency coefficient of X two field picture is set to a1 respectively, a2 ..., ax, wherein, a1+a2+ ... + ax=1.So, suppose that, in X two field picture, the pixel value of A position is respectively: the 1st frame is m1, the 2nd frame is m2 ..., X frame is mx, then the account form of the pixel in Dynamic Graph picture frame can be:
For A position, be described.The pixel value A=m1*a1+m2*a2+ of A position ... + mX*ax, the account form of the pixel account form form A position of other dynamic content.
Superpositing unit 904, for the X two field picture obtained after the process of described processing unit transparency is synthesized a sub-picture, to obtain Dynamic Graph picture frame.
Wherein, the X two field picture obtained after transparency process can be synthesized a sub-picture by superpositing unit 904, to obtain Dynamic Graph picture frame.
Embodiment of the present invention sampling unit 901 carries out sampling processing to a described M picture frame, to obtain the X two field picture in M picture frame; Delete cells 902 deletes the static content that described sampling unit 901 is sampled in the X two field picture that obtains; The dynamic content that described sampling unit 901 is sampled in the X two field picture that obtains by processing unit 903 carries out transparency process, and the transparency coefficient of described X two field picture is set to a1, a2 respectively ..., ax, wherein, a1+a2+ ... + ax=1; The X two field picture that superpositing unit 904 obtains after described processing unit transparency 903 being processed synthesizes a sub-picture, to obtain Dynamic Graph picture frame.Adopt the embodiment of the present invention dynamic content in video-frequency band can be synthesized a sub-picture.
Refer to Figure 10, Figure 10 is the structural representation of the 5th embodiment of a kind of mobile terminal that the embodiment of the present invention provides.The synthon unit 705 of the mobile terminal described in the present embodiment comprises: position determination unit 1001 and adding device 1002, specific as follows:
Position determination unit 1001, for determining its relative position in described static map picture frame according to the coordinate position of described Dynamic Graph picture frame.
Wherein, position determination unit 1001 can determine its relative position in static map picture frame according to the coordinate position of Dynamic Graph picture frame.
Adding device 1002, adds to described Dynamic Graph picture frame in static map picture frame for the relative position determined according to described position determination unit.
Wherein, described Dynamic Graph picture frame can add in static map picture frame according to relative position by adding device 1002.
Embodiment of the present invention position determination unit 1001 determines its relative position in described static map picture frame according to the coordinate position of described Dynamic Graph picture frame; Described Dynamic Graph picture frame adds in static map picture frame by the relative position that adding device 1002 is determined according to described position determination unit 1001.Adopt the embodiment of the present invention, the static content of video-frequency band and dynamic content can be synthesized a two field picture.
See the 6th example structure schematic diagram of a kind of mobile terminal that Figure 11, Figure 11 provide for the embodiment of the present invention.Mobile terminal described in the present embodiment comprises: 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 are connected by bus 5000 with memory 4000.
Wherein, above-mentioned input equipment 1000 can be contact panel, common PC, liquid crystal display screen, touch screen etc.
Above-mentioned memory 4000 can be high-speed RAM memory, also can be non-labile memory (non-volatile memory), such as magnetic disc store.Above-mentioned memory 4000 is for storing batch processing code, and above-mentioned input equipment 1000, output equipment 2000 and processor 3000, for calling the program code stored in memory 4000, perform and operate as follows:
Above-mentioned processor 3000, for reading the video file being about to play;
Above-mentioned processor 3000, also specifically for:
Described video file is cut into N number of video-frequency band according to predetermined time period, wherein, described N be more than or equal to 1 integer;
Above-mentioned processor 3000, also specifically for:
Described N number of video-frequency band is synthesized N number of picture frame;
Above-mentioned processor 3000, also specifically for:
Play described N number of picture frame.
In the execution mode that some are feasible, above-mentioned processor 3000 also specifically for:
Obtain M the picture frame of the arbitrary video-frequency band i in described N number of video-frequency band;
Extract the static content in a described M picture frame and dynamic content;
Static content in a described M picture frame is placed in a two field picture, to obtain static map picture frame;
Dynamic content in a described M picture frame is carried out overlap-add procedure according to predetermined manner, to obtain Dynamic Graph picture frame;
Described static map picture frame and described Dynamic Graph picture frame are synthesized a two field picture.
In the execution mode that some are feasible, above-mentioned processor 3000, also specifically for:
The region of the dynamic content in M picture frame is determined according to the frame-to-frame differences between arbitrary two two field pictures in M picture frame;
Region beyond described dynamic content is defined as static content.
In the execution mode that some are feasible, above-mentioned processor 3000, also specifically for:
Sampling processing is carried out to a described M picture frame, to obtain the X two field picture in M picture frame;
Delete the static content in described X two field picture;
Dynamic content in described X two field picture is carried out transparency process, and the transparency coefficient of described X two field picture is set to a1, a2 respectively ..., ax, wherein, a1+a2+ ... + ax=1;
The X two field picture obtained after described transparency process is synthesized a sub-picture, to obtain Dynamic Graph picture frame.
In the execution mode that some are feasible, above-mentioned processor 3000, also specifically for:
Its relative position in described static map picture frame is determined according to the coordinate position of described Dynamic Graph picture frame;
According to described relative position, described Dynamic Graph picture frame is added in static map picture frame.
In specific implementation, input equipment 1000 described in the embodiment of the present invention, output equipment 2000 and processor 3000 can perform the implementation described in each embodiment of the method for the Video processing described in Fig. 1 ~ Fig. 5 that the embodiment of the present invention provides, also can perform the implementation of the mobile terminal described in the first embodiment ~ the 5th embodiment of the mobile terminal described by Fig. 6 ~ Figure 10 that the embodiment of the present invention provides, not repeat them here.
Module in all embodiments of the embodiment of the present invention or submodule, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application SpecificIntegrated Circuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention device can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer and can spend and get in storage medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory is called for short RAM) etc.
Above disclosedly be only embodiment of the present invention preferred embodiment, certainly can not limit the interest field of the embodiment of the present invention with this, therefore according to the equivalent variations that embodiment of the present invention claim is done, still belong to the scope that the embodiment of the present invention contains.

Claims (10)

1. a method for Video processing, is characterized in that, comprising:
Read the video file being about to play;
Described video file is cut into N number of video-frequency band according to predetermined time period, wherein, described N be more than or equal to 1 integer;
Described N number of video-frequency band is synthesized N number of picture frame;
Play described N number of picture frame.
2. the method for claim 1, is characterized in that, describedly described N number of video-frequency band is synthesized N number of picture frame comprises:
Obtain M the picture frame of the arbitrary video-frequency band i in described N number of video-frequency band;
Extract the static content in a described M picture frame and dynamic content;
Static content in a described M picture frame is placed in a two field picture, to obtain static map picture frame;
Dynamic content in a described M picture frame is carried out overlap-add procedure according to predetermined manner, to obtain Dynamic Graph picture frame;
Described static map picture frame and described Dynamic Graph picture frame are synthesized a two field picture.
3. method as claimed in claim 2, it is characterized in that, the static content in the described M of a described extraction picture frame and dynamic content, comprising:
The region of the dynamic content in M picture frame is determined according to the frame-to-frame differences between any two two field pictures in M picture frame;
Region beyond dynamic content in a described M picture frame is defined as static content.
4. the method as described in any one of claim 1 or 2, is characterized in that, described dynamic content in a described M picture frame is carried out overlap-add procedure according to predetermined manner, comprises to obtain Dynamic Graph picture frame:
Sampling processing is carried out to a described M picture frame, to obtain the X two field picture in a described M picture frame;
Delete the static content in described X two field picture;
Dynamic content in described X two field picture is carried out transparency process, and the transparency coefficient of described X two field picture is set to a1, a2 respectively ..., ax, wherein, a1+a2+ ... + ax=1;
The X two field picture obtained after described transparency process is synthesized a sub-picture, to obtain Dynamic Graph picture frame.
5. the method as described in any one of claim 1 or 2, is characterized in that, describedly described static map picture frame and described Dynamic Graph picture frame are synthesized a two field picture comprises:
Its relative position in described static map picture frame is determined according to the coordinate position of described Dynamic Graph picture frame;
According to described relative position, described Dynamic Graph picture frame is added in static map picture frame.
6. a mobile terminal, is characterized in that, comprising:
Reading unit, for reading the video file being about to play;
Cut off unit, cut into N number of video-frequency band for the video file read by described reading unit according to predetermined time period, wherein, described N be more than or equal to 1 integer;
Synthesis unit, for cuing off N number of video-frequency band that unit cutting obtains synthesize N number of picture frame by described;
Broadcast unit, for playing N number of picture frame of described synthesis unit synthesis.
7. mobile terminal as claimed in claim 6, it is characterized in that, described synthesis unit comprises:
Acquiring unit, for obtaining M the picture frame of the arbitrary video-frequency band i in described N number of video-frequency band;
Extraction unit, for extracting static content in M picture frame that described acquiring unit gets and dynamic content;
Static content processing unit, is placed in a two field picture, to obtain static map picture frame for the static content in M picture frame being extracted by described extraction unit;
Dynamic content processing unit, carries out overlap-add procedure according to predetermined manner, to obtain Dynamic Graph picture frame for the dynamic content in M picture frame being extracted by described extraction unit;
Synthon unit, for synthesizing a two field picture by the static map picture frame obtained after the process of described static content processing unit and described Dynamic Graph picture frame.
8. mobile terminal as claimed in claim 7, it is characterized in that, described extraction unit comprises:
First determining unit, for determining the region of the dynamic content in M picture frame according to the frame-to-frame differences between any two two field pictures in M picture frame;
Second determining unit, for being defined as static content by the region beyond the dynamic content determined by described first determining unit in a described M picture frame.
9. the mobile terminal as described in any one of claim 6 or 7, is characterized in that, described dynamic content processing unit comprises:
Sampling unit, for carrying out sampling processing to a described M picture frame, to obtain the X two field picture in M picture frame;
Delete cells, for deleting the static content that described sampling unit is sampled in the X two field picture that obtains;
Processing unit, the dynamic content in the X two field picture obtained for being sampled by described sampling unit carries out transparency process, and the transparency coefficient of described X two field picture is set to a1, a2 respectively ..., ax, wherein, a1+a2+ ... + ax=1;
Superpositing unit, for the X two field picture obtained after the process of described processing unit transparency is synthesized a sub-picture, to obtain Dynamic Graph picture frame.
10. the mobile terminal as described in any one of claim 6 or 7, is characterized in that, described synthon unit comprises:
Position determination unit, for determining its relative position in described static map picture frame according to the coordinate position of described Dynamic Graph picture frame;
Adding device, adds to described Dynamic Graph picture frame in static map picture frame for the relative position determined according to described position determination unit.
CN201510178529.7A 2015-04-15 2015-04-15 The method and mobile terminal of a kind of Video processing Active CN104811797B (en)

Priority Applications (2)

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
CN201510178529.7A CN104811797B (en) 2015-04-15 2015-04-15 The method and mobile terminal of a kind of Video processing

Applications Claiming Priority (1)

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

Related Child Applications (1)

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

Publications (2)

Publication Number Publication Date
CN104811797A true CN104811797A (en) 2015-07-29
CN104811797B CN104811797B (en) 2017-09-29

Family

ID=53696210

Family Applications (2)

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
CN201710674534.6A Expired - Fee Related CN107333175B (en) 2015-04-15 2015-04-15 A kind of method and mobile terminal of video processing

Family Applications After (1)

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

Country Status (1)

Country Link
CN (2) CN104811797B (en)

Cited By (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
CN106911960A (en) * 2017-03-01 2017-06-30 广州阿里巴巴文学信息技术有限公司 Method of video image processing, device and electric terminal
CN108282612A (en) * 2018-01-12 2018-07-13 广州市百果园信息技术有限公司 Method for processing video frequency and computer storage media, terminal
CN109003282A (en) * 2018-07-27 2018-12-14 京东方科技集团股份有限公司 A kind of method, apparatus and computer storage medium of image procossing
WO2019076274A1 (en) * 2017-10-16 2019-04-25 华为技术有限公司 Method and terminal for displaying dynamic image
CN114363697A (en) * 2022-01-06 2022-04-15 上海哔哩哔哩科技有限公司 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
US20100146392A1 (en) * 2008-12-10 2010-06-10 Canon Kabushiki Kaisha Method of selecting a frame from motion video
CN102231820A (en) * 2011-06-14 2011-11-02 广州嘉崎智能科技有限公司 Monitoring image processing method, device and system
CN102724492A (en) * 2012-06-28 2012-10-10 广东威创视讯科技股份有限公司 Method and system for transmitting and playing video images
CN103535023A (en) * 2011-05-18 2014-01-22 高智83基金会有限责任公司 Video summary including a particular person

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7865015B2 (en) * 2006-02-22 2011-01-04 Huper Laboratories Co. Ltd. Method for video object segmentation
CN101489147B (en) * 2009-01-16 2010-12-01 西安电子科技大学 Width/height ratio conversion method based on interested region
CN102819846B (en) * 2012-06-13 2015-01-21 广东威创视讯科技股份有限公司 Method and system for playing high-definition video

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100146392A1 (en) * 2008-12-10 2010-06-10 Canon Kabushiki Kaisha Method of selecting a frame from motion video
CN103535023A (en) * 2011-05-18 2014-01-22 高智83基金会有限责任公司 Video summary including a particular person
CN102231820A (en) * 2011-06-14 2011-11-02 广州嘉崎智能科技有限公司 Monitoring image processing method, device and system
CN102724492A (en) * 2012-06-28 2012-10-10 广东威创视讯科技股份有限公司 Method and system for transmitting and playing video images

Cited By (12)

* 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
CN106911960A (en) * 2017-03-01 2017-06-30 广州阿里巴巴文学信息技术有限公司 Method of video image processing, device and electric terminal
CN106911960B (en) * 2017-03-01 2019-11-15 广州阿里巴巴文学信息技术有限公司 Method of video image processing, device and electric terminal
WO2019076274A1 (en) * 2017-10-16 2019-04-25 华为技术有限公司 Method and terminal for displaying dynamic image
US11431951B2 (en) 2017-10-16 2022-08-30 Huawei Technologies Co., Ltd. Method for displaying dynamic image and terminal
US11968482B2 (en) 2017-10-16 2024-04-23 Huawei Technologies Co., Ltd. Method for displaying dynamic image and terminal
CN108282612A (en) * 2018-01-12 2018-07-13 广州市百果园信息技术有限公司 Method for processing video frequency and computer storage media, terminal
CN108282612B (en) * 2018-01-12 2021-11-19 广州市百果园信息技术有限公司 Video processing method, computer storage medium and terminal
CN109003282A (en) * 2018-07-27 2018-12-14 京东方科技集团股份有限公司 A kind of method, apparatus and computer storage medium of image procossing
CN109003282B (en) * 2018-07-27 2022-04-29 京东方科技集团股份有限公司 Image processing method and device and computer storage medium
CN114363697A (en) * 2022-01-06 2022-04-15 上海哔哩哔哩科技有限公司 Video file generation and playing method and device
CN114363697B (en) * 2022-01-06 2024-04-26 上海哔哩哔哩科技有限公司 Video file generation and playing method and device

Also Published As

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

Similar Documents

Publication Publication Date Title
CN104811797A (en) Video processing method and mobile terminal
US11218739B2 (en) Live video broadcast method, live broadcast device and storage medium
CN110427094B (en) Display method, display device, electronic equipment and computer readable medium
US8717385B2 (en) Image display control apparatus
WO2016078298A1 (en) Screenshot image output method and device, and storage medium
CN109547838A (en) The processing method and processing device of video window
CN106569700B (en) Screenshot method and screenshot device
WO2016095342A1 (en) Screenshot method and device for mobile terminal, and storage medium
CN109167890B (en) Sound and picture synchronization method and device and display equipment
CN104615375A (en) Method and device for image scaling and broadcast content switching of handheld electronic equipment
US20110175988A1 (en) 3d video graphics overlay
CN103297855A (en) Application display method and terminal
KR20230049691A (en) Video processing method, terminal and storage medium
CN109788212A (en) A kind of processing method of segmenting video, device, terminal and storage medium
CN104469212A (en) Spliced display wall OSD display method and system
CN112887794A (en) Video editing method and device
CN106980503B (en) Page processing method, device and equipment
WO2024174971A1 (en) Video processing method and apparatus, and device and storage medium
JP6666974B2 (en) Image processing apparatus, image processing method, and program
CN114445600A (en) Method, device and equipment for displaying special effect prop and storage medium
CN111225293B (en) Video data processing method and device and computer storage medium
CN106131628A (en) A kind of method of video image processing and device
CN111221444A (en) Split screen special effect processing method and device, electronic equipment and storage medium
CN104918073A (en) Image display method and terminal
CN104837005A (en) Method and device for switch playing of 3D video and 2D video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate 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
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.