CN105681683A - Video and picture mixed playing method and device - Google Patents

Video and picture mixed playing method and device Download PDF

Info

Publication number
CN105681683A
CN105681683A CN201610101285.7A CN201610101285A CN105681683A CN 105681683 A CN105681683 A CN 105681683A CN 201610101285 A CN201610101285 A CN 201610101285A CN 105681683 A CN105681683 A CN 105681683A
Authority
CN
China
Prior art keywords
video
reproduction time
sub
pictures
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610101285.7A
Other languages
Chinese (zh)
Inventor
包立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610101285.7A priority Critical patent/CN105681683A/en
Publication of CN105681683A publication Critical patent/CN105681683A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the invention provides a method and a device for playing a video and a picture in a mixed mode. The specific implementation mode of the method comprises the following steps: obtaining at least one sub video and at least one picture to be played; determining the starting playing time and the ending playing time of each sub-video and each picture in the mixed playing process according to the determined playing time length of the at least one sub-video, the playing time length corresponding to the at least one picture input by the user and the playing sequence of each sub-video and each picture input by the user; and starting a rendering thread, and playing each sub-video and each picture within the starting playing time and the ending playing time of each sub-video and each picture according to the starting playing time and the ending playing time of each sub-video and each picture. The embodiment can realize the mixed playing of the video and the picture in one playing process.

Description

The mixing player method of a kind of video and picture and device
Technical field
The present invention relates to video technical field, in particular to mixing player method and the device of a kind of video and picture.
Background technology
Universal along with the electronics such as digital camera, mobile terminal, people can obtain a large amount of picture and video at any time, and likes by these pictures or video playback out enjoying demand to meet the higher vision of people. Some users like picture making becomes the form of lantern slide play, and the user also having directly takes multistage video, and is edited by these videos, and such as splicing, segmentation etc., play after editor again. But, new youth are more and more higher to the requirement of video display process, and the video playback liking pursuing more personalized is experienced.
In prior art, it is possible to a series of pictures that user selects is made into video after editing and processing and plays, or a series of videos of user's selection are play after editor. But, these methods all can not play video and picture in a playing process simultaneously, and Consumer's Experience is poor.
Summary of the invention
The object of the embodiment of the present invention there are provided mixing player method and the device of a kind of video and picture, it is possible to the mixing realizing video and picture in a playing process is play.
In order to achieve the above object, the present invention discloses the mixing player method of a kind of video and picture, is applied to the electronics with display screen, and described method comprises:
Obtain at least one sub-video to be played and at least one pictures;
The reproduction time length that reproduction time length according at least one sub-video described in determining, described at least one pictures of user's input are corresponding, and the playing sequence of each sub-video of user's input and every pictures, it is determined that the initial reproduction time of each sub-video and every pictures and termination reproduction time in mixing playing process;
Start and play up thread, according to the initial reproduction time of each sub-video and every pictures with terminate reproduction time, at the initial reproduction time of each sub-video and every pictures with terminate playing each sub-video and every pictures in reproduction time.
Preferably, the described initial reproduction time according to each sub-video and termination reproduction time, in the initial reproduction time and termination reproduction time of each sub-video, play each sub-video comprise:
When recognizing the first initial reproduction time that current time is the first sub-video, described first sub-video is decoded, obtain the frame of video that described first sub-video is corresponding;
Terminate playing, in reproduction time, the frame of video that described first sub-video is corresponding at the first initial reproduction time and first that described first sub-video is corresponding.
Preferably, the initial reproduction time of the every pictures of described basis and termination reproduction time, in the initial reproduction time and termination reproduction time of every pictures, play every pictures comprise:
When recognizing current time and be the 2nd initial reproduction time corresponding to the first picture, in the 2nd initial reproduction time corresponding to described first picture and the 2nd termination reproduction time, described first picture is shown; Or
When recognizing current time and be the 2nd initial reproduction time corresponding to the first picture, reproduction time length according to described first picture, and the frame per second preset, it is determined that the quantity of the frame of video of described first picture, generates the frame of video comprising described first picture that described quantity is corresponding; Terminate playing, in reproduction time, the frame of video that described first picture is corresponding at the 2nd initial reproduction time and the 2nd that described first picture is corresponding.
Preferably, the described initial reproduction time at each sub-video and every pictures and terminate playing each sub-video in reproduction time and every pictures comprises:
Obtain rendering effect instruction, according to the rendering effect instruction obtained, it is determined that carry out the identification information of the frame of video played up;
Identification information according to the described frame of video carrying out playing up, plays up process to the frame of video of described identification information;
In the reproduction time that described frame of video is corresponding, play the described frame of video after playing up.
Preferably, described method also comprises:
Receive information addition instruction, wherein said information audio-frequency information and/or caption information, described information addition instruction carries the 3rd initial reproduction time and the 3rd termination reproduction time of described information;
When recognizing the 3rd initial reproduction time that current time is described information, in the 3rd initial reproduction time and the 3rd termination reproduction time of described information, play described information.
Preferably, described method also comprises:
The reproduction time length of the described at least one pictures according to user's input, and the frame per second preset, generate each the 2nd sub-video that every pictures is corresponding;
Each sub-video inputted according to user and the playing sequence of every pictures, mix the first sub-video described in each and the 2nd sub-video described in each, generate mixing video.
Preferably, described determine that the reproduction time length of at least one sub-video described comprises:
The playing duration of at least one sub-video described is defined as mixing the reproduction time length of at least one sub-video described in playing process; Or
Fourth beginning reproduction time and the 4th of at least one sub-video according to user's input terminates reproduction time, it is determined that the reproduction time length of at least one sub-video described in mixing playing process.
Preferably, play up thread described in comprise Opengl and play up thread and Direct3D plays up thread.
In order to achieve the above object, the invention also discloses the mixing of a kind of video and picture and play device, be applied to the electronics with display screen, described device comprises:
Obtain module, for obtaining at least one sub-video to be played and at least one pictures;
Determination module, for the reproduction time length that described at least one pictures of the reproduction time length according at least one sub-video described in determining, user's input is corresponding, and the playing sequence of each sub-video of user's input and every pictures, it is determined that the initial reproduction time of each sub-video and every pictures and termination reproduction time in mixing playing process;
Playing module, plays up thread for starting, according to the initial reproduction time of each sub-video and every pictures with terminate reproduction time, at the initial reproduction time of each sub-video and every pictures with terminate playing each sub-video and every pictures in reproduction time.
Preferably, described playing module comprises:
Decoder module, for when recognizing the first initial reproduction time that current time is the first sub-video, being decoded by described first sub-video, obtains the frame of video that described first sub-video is corresponding;
Video playback module, for, in the first initial reproduction time corresponding at described first sub-video and the first termination reproduction time, playing the frame of video that described first sub-video is corresponding.
Preferably, described playing module specifically for:
When recognizing current time and be the 2nd initial reproduction time corresponding to the first picture, in the 2nd initial reproduction time corresponding to described first picture and the 2nd termination reproduction time, described first picture is shown; Or
When recognizing current time and be the 2nd initial reproduction time corresponding to the first picture, reproduction time length according to described first picture, and the frame per second preset, it is determined that the quantity of the frame of video of described first picture, generates the frame of video comprising described first picture that described quantity is corresponding; Terminate playing, in reproduction time, the frame of video that described first picture is corresponding at the 2nd initial reproduction time and the 2nd that described first picture is corresponding.
Preferably, described playing module comprises:
Instruction obtains module, for obtaining rendering effect instruction, according to the rendering effect instruction obtained, it is determined that carry out the identification information of the frame of video played up;
Play up processing module, for carrying out the identification information of frame of video played up described in basis, the frame of video of described identification information is played up process;
Play up playing module, for, in the reproduction time corresponding in described frame of video, playing the described frame of video after playing up.
Preferably, described device also comprises interpolation information module, specifically for:
Receive information addition instruction, wherein said information audio-frequency information and/or caption information, described information addition instruction carries the 3rd initial reproduction time and the 3rd termination reproduction time of described information;
When recognizing the 3rd initial reproduction time that current time is described information, in the 3rd initial reproduction time and the 3rd termination reproduction time of described information, play described information.
Preferably, described device also comprises mixing video generation module, specifically for:
The reproduction time length of the described at least one pictures according to user's input, and the frame per second preset, generate each the 2nd sub-video that every pictures is corresponding; Each sub-video inputted according to user and the playing sequence of every pictures, mix the first sub-video described in each and the 2nd sub-video described in each, generate mixing video.
Preferably, described determination module specifically for:
The playing duration of at least one sub-video described is defined as mixing the reproduction time length of at least one sub-video described in playing process; Or
Fourth beginning reproduction time and the 4th of at least one sub-video according to user's input terminates reproduction time, it is determined that the reproduction time length of at least one sub-video described in mixing playing process.
As seen from the above technical solution, the embodiment of the present invention is according to the initial reproduction time of each sub-video and every pictures in the mixing playing process determined and terminates reproduction time, start and play up thread, each sub-video and every pictures is play within the corresponding time of each sub-video and every pictures, the mixing that can realize video and picture in a playing process is play, and owing to not needing to adopt player, therefore playing process speed is faster, efficiency is higher.
Certainly, arbitrary product or the method for implementing the present invention might not need to reach above-described all advantages simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, it is briefly described to the accompanying drawing used required in embodiment or description of the prior art below. It is appreciated that the accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the mixing player method of a kind of video that Fig. 1 provides for the embodiment of the present invention and picture;
The schematic flow sheet of the mixing player method of another kind of video that Fig. 2 provides for the embodiment of the present invention and picture;
The schematic flow sheet of the mixing player method of another kind of video that Fig. 3 provides for the embodiment of the present invention and picture;
The structural representation of device is play in the mixing of a kind of video that Fig. 4 provides for the embodiment of the present invention and picture.
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 description. Obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments. Based on the embodiment in the present invention, other embodiments all that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belong to the scope of protection of the invention.
Embodiments provide mixing player method and the device of a kind of video and picture, it is possible to the mixing realizing video and picture in a playing process is play, and owing to not needing to adopt player, therefore playing process speed is faster, efficiency is higher.
Below by specific embodiment, the present invention is described in detail.
The schematic flow sheet of the mixing player method of a kind of video that Fig. 1 provides for the embodiment of the present invention and picture, is applied to the electronics with display screen, and it comprises the steps:
Step S101: obtain at least one sub-video to be played and at least one pictures.
Wherein, sub-video and picture are all that the selection operation by user obtains. When receiving mixing play instruction, it is possible to provide the information of " please select video to be played and picture " to user, prompting user carries out next step selection operation. Selection according to user operates, and can be obtained up to a few sub-video and at least one pictures from media storehouse. Media storehouse is preserved video, picture, audio file, subtitle file etc.
Certainly, after receiving mixing play instruction, it is also possible to prompting user's capture video and photo, operate according to the shooting of user, obtain at least one sub-video and at least one pictures.
Step S102: the reproduction time length corresponding according to described at least one pictures of the reproduction time length of at least one sub-video described in determining, user's input, and the playing sequence of each sub-video of user's input and every pictures, it is determined that the initial reproduction time of each sub-video and every pictures and termination reproduction time in mixing playing process.
Assuming, the sub-video obtained in step S101 comprises V1And V2, the picture of acquisition comprises P1And P2, V1And V2Reproduction time length be respectively 2 minutes and 3 minutes.Assuming, the order of the sub-video and picture that obtain user's input is: P1, V1, V2, P2; And the reproduction time length obtaining every pictures of user's input is: P1It is 30 seconds, P2It it is 30 seconds. Initial reproduction time and the termination reproduction time that can determine to mix each sub-video and every pictures in playing process according to step S102 are as follows respectively:
P1: initial reproduction time is the 0th second, and terminating reproduction time is the 30th second;
V1: initial reproduction time is the 30th second, terminate reproduction time be the 2nd point 30 seconds;
V2: initial reproduction time be the 2nd point 30 seconds, terminate reproduction time be the 5th point 30 seconds;
P2: initial reproduction time be the 5th point 30 seconds, terminate reproduction time be the 6th point.
Step S103: start and play up thread, according to the initial reproduction time of each sub-video and every pictures with terminate reproduction time, at the initial reproduction time of each sub-video and every pictures with terminate playing each sub-video and every pictures in reproduction time.
Specifically, play to realize the mixing to video and picture better, in the present embodiment, play up thread and open graphic library Opengl (OpenGraphicsLibrary) can be adopted to play up thread and Direct3D plays up thread.
Such as, the sub-video V played up in thread broadcasting step S102 is being started1、V2With picture P1、P2Time, when reproduction time is the 0th second~the 30th second, playing pictures P1; When reproduction time is the 30th second~the 2nd point and 30 seconds, play sub-video V1; When reproduction time is the 2nd point and 30 seconds~the 5th point and 30 seconds, play sub-video V2; When reproduction time is the 5th point of the 30 seconds~the 6th timesharing, playing pictures P2
As shown in the above, the embodiment of the present invention is according to the initial reproduction time of each sub-video and every pictures in the mixing playing process determined and terminates reproduction time, start and play up thread, each sub-video and every pictures is play within the corresponding time of each sub-video and every pictures, the mixing that can realize video and picture in a playing process is play, and owing to not needing to adopt player, it is not necessary to picture is carried out decoding process, therefore playing process speed is faster, efficiency is higher.
In another embodiment of the present invention, step S102 in embodiment of the method shown in Fig. 1, at least one sub-video to be played, in order to improve Consumer's Experience, determining that this sub-video is when the reproduction time length mixed in playing process, it is possible to comprise following two kinds of modes:
Mode 1: the reproduction time length that the playing duration of at least one sub-video described is defined as mixing at least one sub-video described in playing process.
Mode 2: fourth beginning reproduction time and the 4th of at least one sub-video according to user's input terminates reproduction time, it is determined that the reproduction time length of at least one sub-video described in mixing playing process.
In actual applications, multiple mode can be had when determining the reproduction time length of at least one sub-video described, such as, can for the playing duration of at least one sub-video obtained, prompting user carries out certain and chooses the reproduction time length operating and determining this sub-video in mixing playing process, can not also carry out choosing operation, directly the playing duration of this sub-video is defined as the reproduction time length of this sub-video in mixing playing process. After obtaining at least one sub-video to be played, user can be pointed out for this sub-video, the playing progress bar of this sub-video is clicked an input initial reproduction time and a termination reproduction time, naturally it is also possible to prompting user adopts other modes input initial reproduction time and terminate reproduction time.
In another embodiment of the present invention, the step S103 in the embodiment of the method shown in Fig. 1, in order to play each sub-video in the initial reproduction time and termination reproduction time of each sub-video more easily, step S103 can comprise:
Step 1: when recognizing the first initial reproduction time that current time is the first sub-video, decodes described first sub-video, obtains the frame of video that described first sub-video is corresponding.
When the playing duration of described first sub-video is this first sub-video when the reproduction time length mixed in playing process, this first sub-video is decoded, and the frame of video that decoding obtains is defined as frame of video corresponding to described first sub-video.
When the playing duration of described first sub-video is greater than this first sub-video when the reproduction time length mixed in playing process, the first sub-video cutting information is sent to user, first sub-video described in prompting user's cutting, comprises the reproduction time length of described first sub-video in mixing playing process in wherein said cutting information. According to the cutting result received, it is determined that the video section that described first sub-video is to be played in mixing playing process. The video section that this is to be played is decoded, obtains the frame of video that described first sub-video is corresponding. Like this, it is possible to according to the operation of user, the first sub-video is carried out corresponding cutting, to obtain the video section that user needs, it is to increase Consumer's Experience.
Being decoded by described video, obtain corresponding frame of video and belong to prior art, its detailed process repeats no more herein.
Step 2: terminate playing, in reproduction time, the frame of video that described first sub-video is corresponding at the first initial reproduction time and first that described first sub-video is corresponding.
In another embodiment of the present invention, step S103 in embodiment of the method shown in Fig. 1, in order to reach different effect, at the initial reproduction time of every pictures with terminate playing in reproduction time the process of every pictures, it is possible to comprise following two kinds of modes:
Mode 1: when recognizing current time and be the 2nd initial reproduction time corresponding to the first picture, in the 2nd initial reproduction time corresponding to described first picture and the 2nd termination reproduction time, shows described first picture.
Mode 2: when recognizing current time and be the 2nd initial reproduction time corresponding to the first picture, reproduction time length according to described first picture, and the frame per second preset, it is determined that the quantity of the frame of video of described first picture, generates the frame of video comprising described first picture that described quantity is corresponding; Terminate playing, in reproduction time, the frame of video that described first picture is corresponding at the 2nd initial reproduction time and the 2nd that described first picture is corresponding.
In the present embodiment, the frame per second preset can be 24 frames/second. Certainly, the value of frame per second can be larger, it is also possible to smaller, it is also possible to is determined by the frame per second of the first sub-video got.
Reproduction time length according to the first picture and default frame per second, it is determined that the quantity of the frame of video of described first picture, the frame of video comprising described first picture generating described quantity corresponding belongs to prior art, and its detailed process repeats no more herein.
As shown in the above, in the present embodiment, not needing when employing mode 1 playing pictures to generate frame of video corresponding to picture, therefore efficiency can be higher. When the mode 2 of employing, generate frame of video during playing pictures accordingly, therefore the frame of video generated can also be played up process, so that Consumer's Experience is better in the process of playing pictures.
Further, process better effects if in order to make mixing play, it is also possible to add cut scene, filter effect or picture background etc. in mixing playing process, make playing process have multiple rendering effect, it is to increase Consumer's Experience. Therefore, in another embodiment of the present invention, step S103 in the embodiment of the method shown in Fig. 1, initial reproduction time at each sub-video and every pictures plays each sub-video and every pictures with terminating in reproduction time, can carrying out according to the schematic flow sheet shown in Fig. 2, detailed process comprises the steps:
Step S201: obtain rendering effect instruction, according to the rendering effect instruction obtained, it is determined that carry out the identification information of the frame of video played up.
Described rendering effect instruction is that the input operation according to user obtains. In actual applications, it is provided that to the button that the multiple rendering effect of user is corresponding, such as add filter, add background, add the buttons such as cut scene, select for user. After the corresponding selection obtaining user's input operates, also being pointed out user to carry out next step operation further, such as, after obtaining user and clicking " interpolation background " button, it is possible to eject selection window, prompting user selects the background to be added; After obtaining user and clicking " interpolation cut scene " button, it is possible to prompting user selects at least two from described at least one sub-video to be played and/or at least one picture.
When adding cut scene, filter effect or picture background in mixing playing process, it is possible to add between any sub-video and picture, it is also possible to add in any sub-video and/or picture. Assume that the rendering effect instruction obtained is at sub-video V1With sub-video V2Between add certain cut scene. Assume, sub-video V1Corresponding frame of video has 200 frames, sub-video V2Corresponding frame of video has 500 frames, all frame of video is numbered, then sub-video V1Corresponding frame of video is the 1st~200th frame, sub-video V2Corresponding frame of video is the 201st~700th frame, then can determine to need the identification information carrying out the frame of video of rendering effect process to be namely numbered 150th~250 frames.
Step S202: according to the identification information of the described frame of video carrying out playing up, the frame of video of described identification information is played up process.
Identification information according to the frame of video determined, plays up process to corresponding frame of video and belongs to prior art, and its detailed process repeats no more herein.
Step S203: in the reproduction time that described frame of video is corresponding, plays the described frame of video after playing up.
In actual applications, when obtaining the rendering effect instruction of user, and after determining to need the identification information of the frame of video of interpolation rendering effect, play up thread Opengl or Direct3D and can play the frame of video after playing up in render video frame limit, limit, play such that it is able to more efficiently realize mixing.
Further, before mixing is play, user may add the requirement such as music or captions by promising playing process. In another embodiment of the present invention, therefore, the embodiment of the method shown in Fig. 1 can also be added audio-frequency information and caption information for playing process, to improve Consumer's Experience. The method adding audio-frequency information and caption information for playing process can carry out according to the schematic flow sheet shown in Fig. 3, and detailed process comprises the steps:
Step S301: receive information addition instruction, wherein said information audio-frequency information and/or caption information, carries the 3rd initial reproduction time and the 3rd termination reproduction time of described information in described information addition instruction.
Described information addition instruction is that the operation according to user obtains. After detecting that the information interpolation of user operates, such as, after the button that user clicks " interpolation music " or " interpolation captions " being detected, it is possible to eject selection window, prompting user selects corresponding audio file or subtitle file. Certainly can also there be other concrete modes to determine audio-frequency information or caption information. After determining audio-frequency information or caption information, prompting user inputs the three initial reproduction time of described information in described mixing playing process and the 3rd termination reproduction time.
When the information to be added is caption information, it is possible to described caption information is added in frame of video corresponding between described 3rd initial reproduction time and the 3rd termination reproduction time.
When described information is audio-frequency information, it is possible to long when first determining this audio-frequency information to be played according to the 3rd initial reproduction time of user's input and the 3rd termination reproduction time; Judge described to be played time length whether be greater than total playing duration of described audio-frequency information; If not, then described audio-frequency information is added in described mixing playing process from described 3rd initial reproduction time, otherwise, it is determined that audio-frequency information to be played, is added to described audio-frequency information to be played in described mixing playing process from described 3rd initial reproduction time.
When determining audio-frequency information to be played, it is possible to comprise the following two kinds mode:
Mode 1: send audio-frequency information cutting information to user, wherein said cutting information comprises described to be played time long, according to the cutting result received, it is determined that described audio-frequency information to be played.
When assuming to be played, length is 95 seconds, total playing duration of the audio-frequency information added is 320 seconds, then can point out to user " audio frequency that can add at present the longest is 95 seconds; ask the audio frequency that cutting to be added ", or " please the audio frequency to be added being carried out cutting; make its playing duration be no more than 95 seconds ", the audio-frequency information that add is carried out cutting by prompting user.
Cutting result according to user's input, from playing duration being the corresponding position in the audio-frequency information of 320 seconds, cutting goes out the audio-frequency information to be played of length when being no more than 95 seconds.
Mode 2: according to described to be played time long, it is determined that described audio-frequency information to be played, the playing duration of wherein said audio-frequency information to be played be not more than described to be played time long.
When assuming to be played, length is 95 seconds, total playing duration of the audio-frequency information added is 320 seconds, in this audio-frequency information, can count from its initial play time, audio-frequency unit to the optional position of length when being no more than 95 seconds, it is determined that be audio-frequency information to be played, it is also possible to count from any play position of this audio-frequency information, audio-frequency unit to the optional position of length when being no more than 95 seconds, it is determined that be audio-frequency information to be played.
Step S302: when recognizing the 3rd initial reproduction time that current time is described information, plays described information in the 3rd initial reproduction time and the 3rd termination reproduction time of described information.
In another embodiment of the present invention, in the embodiment of the method shown in Fig. 1, in order to improve Consumer's Experience, it is also possible to generate mixing video, it is convenient to user and stores or share. The process generating mixing video can comprise the steps:
Step 1: according to the reproduction time length of described at least one pictures of user's input, and the frame per second preset, generate each the 2nd sub-video that every pictures is corresponding.
After obtaining at least one pictures to be played, for every pictures, prompting user inputs the reproduction time length of every pictures, according to this reproduction time length, generates each two sub-video corresponding with every pictures. For every pictures, the process generating each the 2nd sub-video can have multiple mode to realize, such as, can first determine predetermined number frame of video in the reproduction time length of this picture, each frame of video correspondingly includes the picture information of this picture, then according to reproduction time length generation the 2nd sub-video of this predetermined number frame of video and picture; The quantity of frame of video in the reproduction time length of this picture can also be determined according to certain rule, then generate the 2nd sub-video according to the quantity of this frame of video and the reproduction time length of picture.
Step 2: according to the playing sequence of each sub-video of user's input and every pictures, mixes the first sub-video described in each and the 2nd sub-video described in each, generates mixing video.
Being mixed in a certain order by least two videos, generate mixing video and belong to prior art, its detailed process repeats no more herein.
The structural representation of device is play in the mixing of a kind of video that Fig. 4 provides for the embodiment of the present invention and picture, corresponding with embodiment of the method shown in Fig. 1, is applied to the electronics with display screen, and described device comprises:
Obtain module 401, for obtaining at least one sub-video to be played and at least one pictures;
Determination module 402, for the reproduction time length that described at least one pictures of the reproduction time length according at least one sub-video described in determining, user's input is corresponding, and the playing sequence of each sub-video of user's input and every pictures, it is determined that the initial reproduction time of each sub-video and every pictures and termination reproduction time in mixing playing process;
Playing module 403, thread is played up for starting, initial reproduction time according to each sub-video and every pictures and terminate reproduction time, at the initial reproduction time of each sub-video and every pictures with terminate playing each sub-video and every pictures in reproduction time.
In another embodiment of the present invention, the determination module 402 in the device embodiment shown in Fig. 4 specifically may be used for:
The playing duration of at least one sub-video described is defined as mixing the reproduction time length of at least one sub-video described in playing process; Or
Fourth beginning reproduction time and the 4th of at least one sub-video according to user's input terminates reproduction time, it is determined that the reproduction time length of at least one sub-video described in mixing playing process.
In another embodiment of the present invention, the playing module 403 in the device embodiment shown in Fig. 4 can comprise:
Decoder module (not shown), for when recognizing the first initial reproduction time that current time is the first sub-video, being decoded by described first sub-video, obtains the frame of video that described first sub-video is corresponding;
Video playback module (not shown), for, in the first initial reproduction time corresponding at described first sub-video and the first termination reproduction time, playing the frame of video that described first sub-video is corresponding.
In another embodiment of the present invention, the playing module 403 in the device embodiment shown in Fig. 4 specifically may be used for:
When recognizing current time and be the 2nd initial reproduction time corresponding to the first picture, in the 2nd initial reproduction time corresponding to described first picture and the 2nd termination reproduction time, described first picture is shown; Or
When recognizing current time and be the 2nd initial reproduction time corresponding to the first picture, reproduction time length according to described first picture, and the frame per second preset, it is determined that the quantity of the frame of video of described first picture, generates the frame of video comprising described first picture that described quantity is corresponding; Terminate playing, in reproduction time, the frame of video that described first picture is corresponding at the 2nd initial reproduction time and the 2nd that described first picture is corresponding.
In another embodiment of the present invention, the playing module 403 in the device embodiment shown in Fig. 4 can comprise:
Instruction obtains module (not shown), for obtaining rendering effect instruction, according to the rendering effect instruction obtained, it is determined that carry out the identification information of the frame of video played up;
Play up processing module (not shown), for carrying out the identification information of frame of video played up described in basis, the frame of video of described identification information is played up process;
Play up playing module (not shown), for, in the reproduction time corresponding in described frame of video, playing the described frame of video after playing up.
In another embodiment of the present invention, the device embodiment shown in Fig. 4 can also comprise add information module (not shown), this module specifically for:
Receive information addition instruction, wherein said information audio-frequency information and/or caption information, described information addition instruction carries the 3rd initial reproduction time and the 3rd termination reproduction time of described information; When recognizing the 3rd initial reproduction time that current time is described information, in the 3rd initial reproduction time and the 3rd termination reproduction time of described information, play described information.
In another embodiment of the present invention, the device embodiment shown in Fig. 4 can also comprise mixing video generation module (not shown), specifically for:
The reproduction time length of the described at least one pictures according to user's input, and the frame per second preset, generate each the 2nd sub-video that every pictures is corresponding; Each sub-video inputted according to user and the playing sequence of every pictures, mix the first sub-video described in each and the 2nd sub-video described in each, generate mixing video.
Owing to said apparatus embodiment is that the mixing player method embodiment based on corresponding video and picture obtains, having identical technique effect with the method, therefore the technique effect of device embodiment does not repeat them here.
For device embodiment, owing to it is substantially similar to embodiment of the method, so describing fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, herein, the such as relational terms of first and second grades and so on is only used for separating an entity or operation with another entity or operational zone, and not necessarily requires or imply to there is any this kind of actual relation or sequentially between these entities or operation. And, term " comprises ", " comprising " or any other variant are intended to contain comprising of nonexcludability, so that comprise the process of a series of key element, method, article or equipment not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise the key element intrinsic for this kind of process, method, article or equipment. When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that, all or part of step in above-mentioned enforcement mode can be completed by the hardware that programmed instruction is relevant, and described program can be stored in computer read/write memory medium. Here alleged storage media, refers to ROM/RAM, magnetic disc, CD etc.
The foregoing is only the better embodiment of the present invention, it is not intended to limit protection scope of the present invention. All make within the spirit and principles in the present invention any amendment, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. the mixing player method of a video and picture, it is characterised in that, it is applied to the electronics with display screen, described method comprises:
Obtain at least one sub-video to be played and at least one pictures;
The reproduction time length that reproduction time length according at least one sub-video described in determining, described at least one pictures of user's input are corresponding, and the playing sequence of each sub-video of user's input and every pictures, it is determined that the initial reproduction time of each sub-video and every pictures and termination reproduction time in mixing playing process;
Start and play up thread, according to the initial reproduction time of each sub-video and every pictures with terminate reproduction time, at the initial reproduction time of each sub-video and every pictures with terminate playing each sub-video and every pictures in reproduction time.
2. method according to claim 1, it is characterised in that, the described initial reproduction time according to each sub-video and termination reproduction time, in the initial reproduction time and termination reproduction time of each sub-video, play each sub-video comprise:
When recognizing the first initial reproduction time that current time is the first sub-video, described first sub-video is decoded, obtain the frame of video that described first sub-video is corresponding;
Terminate playing, in reproduction time, the frame of video that described first sub-video is corresponding at the first initial reproduction time and first that described first sub-video is corresponding.
3. method according to claim 1, it is characterised in that, the initial reproduction time of the every pictures of described basis and termination reproduction time, in the initial reproduction time and termination reproduction time of every pictures, play every pictures comprise:
When recognizing current time and be the 2nd initial reproduction time corresponding to the first picture, in the 2nd initial reproduction time corresponding to described first picture and the 2nd termination reproduction time, described first picture is shown; Or
When recognizing current time and be the 2nd initial reproduction time corresponding to the first picture, reproduction time length according to described first picture, and the frame per second preset, it is determined that the quantity of the frame of video of described first picture, generates the frame of video comprising described first picture that described quantity is corresponding; Terminate playing, in reproduction time, the frame of video that described first picture is corresponding at the 2nd initial reproduction time and the 2nd that described first picture is corresponding.
4. according to the method in claim 2 or 3, it is characterised in that, the described initial reproduction time at each sub-video and every pictures and terminate playing each sub-video in reproduction time and every pictures comprises:
Obtain rendering effect instruction, according to the rendering effect instruction obtained, it is determined that carry out the identification information of the frame of video played up;
Identification information according to the described frame of video carrying out playing up, plays up process to the frame of video of described identification information;
In the reproduction time that described frame of video is corresponding, play the described frame of video after playing up.
5. method according to claim 1, it is characterised in that, described method also comprises:
Receive information addition instruction, wherein said information audio-frequency information and/or caption information, described information addition instruction carries the 3rd initial reproduction time and the 3rd termination reproduction time of described information;
When recognizing the 3rd initial reproduction time that current time is described information, in the 3rd initial reproduction time and the 3rd termination reproduction time of described information, play described information.
6. according to the method in claim 2 or 3, it is characterised in that, described method also comprises:
The reproduction time length of the described at least one pictures according to user's input, and the frame per second preset, generate each the 2nd sub-video that every pictures is corresponding;
Each sub-video inputted according to user and the playing sequence of every pictures, mix the first sub-video described in each and the 2nd sub-video described in each, generate mixing video.
7. method according to claim 1, it is characterised in that, described determine that the reproduction time length of at least one sub-video described comprises:
The playing duration of at least one sub-video described is defined as mixing the reproduction time length of at least one sub-video described in playing process; Or
Fourth beginning reproduction time and the 4th of at least one sub-video according to user's input terminates reproduction time, it is determined that the reproduction time length of at least one sub-video described in mixing playing process.
8. method according to claim 1, it is characterised in that, described in play up thread and comprise Opengl and play up thread and Direct3D plays up thread.
9. device is play in the mixing of a video and picture, it is characterised in that, it is applied to the electronics with display screen, described device comprises:
Obtain module, for obtaining at least one sub-video to be played and at least one pictures;
Determination module, for the reproduction time length that described at least one pictures of the reproduction time length according at least one sub-video described in determining, user's input is corresponding, and the playing sequence of each sub-video of user's input and every pictures, it is determined that the initial reproduction time of each sub-video and every pictures and termination reproduction time in mixing playing process;
Playing module, plays up thread for starting, according to the initial reproduction time of each sub-video and every pictures with terminate reproduction time, at the initial reproduction time of each sub-video and every pictures with terminate playing each sub-video and every pictures in reproduction time.
10. device according to claim 9, it is characterised in that, described playing module comprises:
Decoder module, for when recognizing the first initial reproduction time that current time is the first sub-video, being decoded by described first sub-video, obtains the frame of video that described first sub-video is corresponding;
Video playback module, for, in the first initial reproduction time corresponding at described first sub-video and the first termination reproduction time, playing the frame of video that described first sub-video is corresponding.
CN201610101285.7A 2016-02-24 2016-02-24 Video and picture mixed playing method and device Pending CN105681683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610101285.7A CN105681683A (en) 2016-02-24 2016-02-24 Video and picture mixed playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610101285.7A CN105681683A (en) 2016-02-24 2016-02-24 Video and picture mixed playing method and device

Publications (1)

Publication Number Publication Date
CN105681683A true CN105681683A (en) 2016-06-15

Family

ID=56305939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610101285.7A Pending CN105681683A (en) 2016-02-24 2016-02-24 Video and picture mixed playing method and device

Country Status (1)

Country Link
CN (1) CN105681683A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406898A (en) * 2016-09-28 2017-02-15 北京金山安全软件有限公司 Banner display method and device and electronic equipment
CN106851385A (en) * 2017-02-20 2017-06-13 北京金山安全软件有限公司 Video recording method and device and electronic equipment
CN107257502A (en) * 2017-07-27 2017-10-17 四川长虹电器股份有限公司 A kind of terminal dynamic picture video mix resources circulation player method
CN108540824A (en) * 2018-05-15 2018-09-14 北京奇虎科技有限公司 A kind of Video Rendering method and apparatus
CN108632541A (en) * 2017-03-20 2018-10-09 杭州海康威视数字技术股份有限公司 A kind of more video clip merging methods and device
CN109977248A (en) * 2019-04-03 2019-07-05 海南世嘉亮科技有限公司 A kind of mixed video file generated and stroke recommended method, device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1270362A (en) * 1999-04-08 2000-10-18 英业达股份有限公司 Method and device for mixed replay of multiple media
US20050166232A1 (en) * 1999-04-21 2005-07-28 Lamkin Allan B... Presentation of media content from multiple media sources
CN101873370A (en) * 2009-04-23 2010-10-27 北大方正集团有限公司 Playing treatment method and device of electronic magazine
CN102665129A (en) * 2012-04-27 2012-09-12 北京人民广播电台 Played content-customizing method and played content-customizing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1270362A (en) * 1999-04-08 2000-10-18 英业达股份有限公司 Method and device for mixed replay of multiple media
US20050166232A1 (en) * 1999-04-21 2005-07-28 Lamkin Allan B... Presentation of media content from multiple media sources
CN101873370A (en) * 2009-04-23 2010-10-27 北大方正集团有限公司 Playing treatment method and device of electronic magazine
CN102665129A (en) * 2012-04-27 2012-09-12 北京人民广播电台 Played content-customizing method and played content-customizing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
凤舞科技: "《中文版PhotoshopCC入门与提高》", 31 January 2015 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406898A (en) * 2016-09-28 2017-02-15 北京金山安全软件有限公司 Banner display method and device and electronic equipment
CN106851385A (en) * 2017-02-20 2017-06-13 北京金山安全软件有限公司 Video recording method and device and electronic equipment
CN106851385B (en) * 2017-02-20 2019-12-27 北京乐我无限科技有限责任公司 Video recording method and device and electronic equipment
CN108632541A (en) * 2017-03-20 2018-10-09 杭州海康威视数字技术股份有限公司 A kind of more video clip merging methods and device
CN107257502A (en) * 2017-07-27 2017-10-17 四川长虹电器股份有限公司 A kind of terminal dynamic picture video mix resources circulation player method
CN108540824A (en) * 2018-05-15 2018-09-14 北京奇虎科技有限公司 A kind of Video Rendering method and apparatus
CN108540824B (en) * 2018-05-15 2021-01-19 北京奇虎科技有限公司 Video rendering method and device
CN109977248A (en) * 2019-04-03 2019-07-05 海南世嘉亮科技有限公司 A kind of mixed video file generated and stroke recommended method, device

Similar Documents

Publication Publication Date Title
CN105681683A (en) Video and picture mixed playing method and device
EP2271089B1 (en) Apparatus and method for simultaneously utilizing audio visual data
CN101878643B (en) Electronic device and reproduction method
CN106257930B (en) Generate the dynamic time version of content
US7739584B2 (en) Electronic messaging synchronized to media presentation
US8620143B2 (en) Image processing apparatus, method, and program, and program storage medium
CN104602126B (en) A kind of information processing method and electronic equipment
CN102256095A (en) Electronic apparatus, video processing method, and program
TWI571868B (en) Method and apparatus for sequencing content
CN103856812B (en) A kind of video broadcasting method and device
CN102769801B (en) Display apparatus for providing enhanced electronic program guide and method of controlling the same
EP2228989A1 (en) Display forming device, display forming method, program, and content download system
CN101540861A (en) Playing method, system and mobile terminal of video file
CN1756077A (en) Remote control apparatus and TV broadcast receiving apparatus
CN104869467A (en) Information output method and system for media playing, and apparatuses
CN102300126A (en) Movie recommendation system and movie recommendation method
KR20070079194A (en) Video playback apparatus and method of controlling the same
CN106488253A (en) Live video interactive data processing method and processing device
US10021433B1 (en) Video-production system with social-media features
CN105791938A (en) Multimedia file splicing method and apparatus
CN103813215A (en) Information collection method and electronic device
JP2013135354A (en) Information processing apparatus, information processing method, and program
CN103533256A (en) Method and device for processing subtitle and subtitle display system
EP2040475A2 (en) Environment information providing method, video apparatus and video system using the same
CN104093090A (en) Video processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160615

RJ01 Rejection of invention patent application after publication