CN105049959A - Multimedia file playing method and device - Google Patents

Multimedia file playing method and device Download PDF

Info

Publication number
CN105049959A
CN105049959A CN201510400143.6A CN201510400143A CN105049959A CN 105049959 A CN105049959 A CN 105049959A CN 201510400143 A CN201510400143 A CN 201510400143A CN 105049959 A CN105049959 A CN 105049959A
Authority
CN
China
Prior art keywords
special efficacy
multimedia file
dynamic special
target image
image
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
CN201510400143.6A
Other languages
Chinese (zh)
Other versions
CN105049959B (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510400143.6A priority Critical patent/CN105049959B/en
Publication of CN105049959A publication Critical patent/CN105049959A/en
Application granted granted Critical
Publication of CN105049959B publication Critical patent/CN105049959B/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/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a multimedia file playing method and device and belongs to the Internet technical field. The method includes the following steps that: when a multimedia playing instruction is received, an image acquisition request is sent to a server, wherein the image acquisition request carries a multimedia file identifier, and the server returns at least one target image matched with a multimedia file based on the multimedia file identifier; and when the at least one target image sent by the server is received, the multimedia file is played based on the at least one target image and the target dynamic special effect template of the multimedia file. According to the method of the invention, the playing process of the multimedia file, the at least one target image and the target dynamic special effect template are combined together, and therefore, the problem of monotony and baldness which is caused by a situation that only some static elements are displayed can be solved, and displayed content can be enriched, and the playing effect of the multimedia file can be enhanced.

Description

Method for broadcasting multimedia file and device
Technical field
The present invention relates to Internet technical field, particularly a kind of method for broadcasting multimedia file and device.
Background technology
Along with the development of Internet technology, there is increasing multimedia application, these multimedia application can be arranged on the such as mobile terminal such as mobile phone, panel computer, and mobile terminal can by multimedia files such as these multimedia application displaying video, audio frequency.
At present, when mobile terminal is by multimedia application play multimedia file, in order to enrich displaying contents, this mobile terminal can load some such as static elements such as image, word, shows this static elements in the playing process of multimedia file.Such as, when mobile terminal is by multimedia application played songs, this mobile terminal can load singer's picture, to show this singer's picture in songs playing process.
When mobile terminal is by the process of multimedia application play multimedia file, if only show some static elements, can seem more dull and uninteresting.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method for broadcasting multimedia file and device.Described technical scheme is as follows:
On the one hand, provide a kind of method for broadcasting multimedia file, described method comprises:
When receiving multimedia instruction, image acquisition request is sent to server, carry multimedia file identification in described image acquisition request, make described server based on described multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file;
When receive described server send described at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of described at least one open one's eyes wide logo image and described multimedia file, play described multimedia file.
On the other hand, provide a kind of multimedia file playing device, described device comprises:
Sending module, for when receiving multimedia instruction, sending image acquisition request to server, in described image acquisition request, carrying multimedia file identification, make described server based on described multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file;
Playing module, for when receive described server send described at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of described at least one open one's eyes wide logo image and described multimedia file, play described multimedia file.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: in embodiments of the present invention, when this mobile terminal is by receiving multimedia instruction, image acquisition request is sent to server, make server based on this multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file, when this mobile terminal receive server send at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and multimedia file, play this multimedia file, with in the process of play multimedia file, this at least one logo image of opening one's eyes wide is combined with target dynamic special efficacy template, thus avoid and only show some static elements and seem dull and uninteresting problem, also enriched displaying contents simultaneously, enhance the result of broadcast of this multimedia file.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, 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, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of method for broadcasting multimedia file flow chart that the embodiment of the present invention provides;
Fig. 2 is the another kind of method for broadcasting multimedia file flow chart that the embodiment of the present invention provides;
Fig. 3 is a kind of effect schematic diagram of filling target image that the embodiment of the present invention provides;
Fig. 4 is the effect schematic diagram that another kind that the embodiment of the present invention provides is filled target image;
Fig. 5 is a kind of multimedia file playing device structural representation that the embodiment of the present invention provides;
Fig. 6 is the another kind of multimedia file playing device structural representation that the embodiment of the present invention provides;
Fig. 7 is a kind of playing module structural representation that the embodiment of the present invention provides;
Fig. 8 is a kind of acquiring unit structural representation that the embodiment of the present invention provides;
Fig. 9 is the another kind of acquiring unit structural representation that the embodiment of the present invention provides;
Figure 10 is the another kind of playing module structural representation that the embodiment of the present invention provides;
Figure 11 is the one second determining unit structural representation that the embodiment of the present invention provides;
Figure 12 is the one second filler cells structural representation that the embodiment of the present invention provides;
Figure 13 is the another kind second filler cells structural representation that the embodiment of the present invention provides;
Figure 14 is a kind of multimedia file playing device structural representation that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Fig. 1 is the flow chart of a kind of method for broadcasting multimedia file that the embodiment of the present invention provides.See Fig. 1, the method comprises:
Step 101: when receiving multimedia instruction, image acquisition request is sent to server, carry multimedia file identification in this image acquisition request, make this server based on this multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file.
Step 102: when receive that server sends this at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and this multimedia file, play this multimedia file.
In embodiments of the present invention, when this mobile terminal receives multimedia instruction, image acquisition request is sent to server, make server based on this multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file, when this mobile terminal receive server send at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and multimedia file, play this multimedia file, with in the process of play multimedia file, this at least one logo image of opening one's eyes wide is combined with target dynamic special efficacy template, thus avoid and only show some static elements and seem dull and uninteresting problem, also enriched displaying contents simultaneously, enhance the result of broadcast of this multimedia file.
Alternatively, based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and this multimedia file, before playing this multimedia file, also comprise:
Determine the current residing attitude of mobile terminal;
When the current residing attitude of this mobile terminal is lateral attitude, whether the perpendicular screen switch detecting this mobile terminal is locked;
When the perpendicular screen switch of this mobile terminal is locked and when receiving the horizontal screen play instruction of multimedia, the screen state of this mobile terminal is set to horizontal screen state.
Alternatively, based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and this multimedia file, play this multimedia file, comprising:
Obtain the target dynamic special efficacy template of this multimedia file;
This at least one logo image of opening one's eyes wide is filled in this target dynamic special efficacy template, obtains dynamic special efficacy video;
In the process playing this multimedia file, play this dynamic special efficacy video.
Alternatively, obtain the target dynamic special efficacy template of this multimedia file, comprising:
Based on this multimedia file identification, from the first dynamic special efficacy ATL, search corresponding fixing dynamic special efficacy template, in this first dynamic special efficacy ATL, store fixing dynamic special efficacy template corresponding to multiple multimedia file identification;
If found, then the fixing dynamic special efficacy template of searching is defined as the target dynamic special efficacy template of this multimedia file;
If do not found, then from the second dynamic special efficacy ATL stored, select a public dynamic special efficacy template, in this second dynamic special efficacy ATL, store multiple public dynamic special efficacy template;
The public dynamic special efficacy template selected is defined as the target dynamic special efficacy template of this multimedia file.
Alternatively, from the second dynamic special efficacy ATL stored, before selecting a public dynamic special efficacy template, also comprise:
Obtain public special efficacy video library, this public special efficacy video library comprises multiple public special efficacy video;
Based on the plurality of public special efficacy video, generate at least one dynamic special efficacy template;
By this, at least one dynamic special efficacy template is stored in this second dynamic special efficacy ATL.
Alternatively, this at least one logo image of opening one's eyes wide is filled in this target dynamic special efficacy template, before obtaining dynamic special efficacy video, also comprises:
Determine the screen size of this mobile terminal and the picture size of this at least one logo image of opening one's eyes wide;
For this at least one logo image of often opening one's eyes wide of opening one's eyes wide in logo image, when the picture size of this target image is greater than this screen size, determine the central area of this target image;
Based on this central area, cutting is carried out to this target image, make the picture size after cutting equal this screen size;
When the picture size of this target image is less than this screen size, this target image is filled, make the picture size after filling equal this screen size.
Alternatively, determine the central area of this target image, comprising:
Face datection is carried out to this target image;
If Face datection success, be then defined as the central area of this target image by the human face region recognized;
If Face datection failure, then carry out marking area identification to this target image;
The marking area recognized is defined as the central area of this target image.
Alternatively, this target image is filled, makes the picture size after filling equal this screen size, comprising:
Obtain the blank map picture of this target image;
The picture size of this blank map picture is adjusted, makes the picture size after adjustment equal this screen size;
Virtualization process is carried out to the blank map picture after adjustment;
Blank map picture after virtualization process is set to the background of this target image.
Alternatively, this target image is filled, makes the picture size after filling equal this screen size, comprising:
Based on this screen size and this picture size, calculate the first width and the second width, this first width is the width this target image length direction carrying out mend limit, and this second width is the width this target image Width carrying out mend limit;
Based on this first width and this second width, benefit limit is carried out to this target image, makes the picture size behind benefit limit equal this screen size.
Above-mentioned all alternatives, all can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them for the embodiment of the present invention.
Fig. 2 is the flow chart of a kind of method for broadcasting multimedia file that the embodiment of the present invention provides.See Fig. 2, the method comprises:
Step 201: when mobile terminal receives multimedia instruction, sends image acquisition request to server, carries multimedia file identification in this image acquisition request.
In embodiments of the present invention, when this mobile terminal receives multimedia instruction, in order to enrich displaying contents, this mobile terminal can load some images mated with multimedia file, therefore, this mobile terminal can send image acquisition request to server, to obtain the image mated with this multimedia file.
It should be noted that, this multimedia instruction is for playing this multimedia file, and this multimedia instruction can be triggered by user, this user can be triggered by assigned operation, this assigned operation can be clicking operation, slide, rock operation, voice operating etc., and disclosure embodiment is not specifically limited this.
In addition, this multimedia file identification is used for this multimedia file of unique identification, and this multimedia file identification can be title, the broadcasting network address of this multimedia file, the keyword etc. of this multimedia file of this multimedia file, disclosure embodiment is not specifically limited this.Such as, when this multimedia file is song, this multimedia file identification can be title, the lyrics keyword of this song, the singer name etc. of this song of this song.
Step 202: when server receives this image acquisition request, based on this multimedia file identification, sends to this mobile terminal by least one logo image of opening one's eyes wide of mating with multimedia file.
When server receives this image acquisition request, the multimedia file identification that server carries based on this image acquisition request, from dynamic video database, search the dynamic video that this multimedia file is corresponding, corresponding relation in this dynamic video data storehouse between storing multimedia mark and dynamic video, if found, then based on the dynamic video searched, obtain at least one logo image of opening one's eyes wide of mating with this multimedia file, if do not found, then from multi-media image storehouse, obtain at least one logo image of opening one's eyes wide of mating with this multimedia file, the image that there is incidence relation with multiple multimedia file is stored in this multi-media image storehouse, and based on this multimedia file identification, at least one logo image of opening one's eyes wide of mating with multimedia file is sent to this mobile terminal.
Wherein, server is based on the dynamic video searched, the operation obtaining at least one logo image of opening one's eyes wide of mating with this multimedia file can be: from the dynamic video searched, extract multiple images, when the number of multiple images extracted is less than or equal to assign thresholds, these multiple images are defined as at least one logo image of opening one's eyes wide of mating with this multimedia file, when the number of these multiple images is greater than this assign thresholds, at least one image is selected from these multiple images, the number of at least one logo image of opening one's eyes wide of selection is made to equal this assign thresholds, and at least one the image selected is defined as at least one logo image of opening one's eyes wide of mating with this multimedia file.
It should be noted that, this assign thresholds can be arranged in advance, and this assign thresholds is greater than 1, and such as, this assign thresholds can be 5,7,10 etc., and the embodiment of the present invention is not specifically limited this.
Such as, this multimedia file is song, this multimedia file identification is ID4, this assign thresholds is 5, when server receives this image acquisition request, server is based on this multimedia file identification ID4, from the corresponding relation between multimedia file identification as shown in table 1 below and dynamic video, obtaining corresponding dynamic video is video 4, this video 4 can be the MV (MusicVideo of this song, music video), thus server is from the video 4 obtained, extract multiple images, and the number of these multiple images is 8, because the number 8 of these multiple images is greater than assign thresholds 5, therefore, server selects 5 images from these multiple images, and these 5 images are defined as at least one logo image of opening one's eyes wide of mating with this song.
Table 1
Multimedia file identification Dynamic video
ID1 Video 1
ID2 Video 2
ID3 Video 3
ID4 Video 4
…… ……
It should be noted that, in embodiments of the present invention, be only described for the corresponding relation between the multimedia file identification shown in above-mentioned table 1 and dynamic video, above-mentioned table 1 does not form restriction to the embodiment of the present invention.
In addition, server is based on multimedia file identification, from multi-media image storehouse, the operation obtaining at least one logo image of opening one's eyes wide of mating with this multimedia file can be: from multi-media image storehouse, obtain multiple images that there is incidence relation with this multimedia file, when the number of these multiple images is less than or equal to assign thresholds, these multiple images are defined as at least one logo image of opening one's eyes wide of mating with this multimedia file, when the number of these multiple images is greater than this assign thresholds, at least one image is selected from these multiple images, the number of at least one image of selection is made to equal this assign thresholds, and at least one the image selected is defined as at least one logo image of opening one's eyes wide of mating with this multimedia file.
Such as, server is based on multimedia file identification ID4, from multi-media image storehouse, obtain multiple images that there is incidence relation with this song, these multiple images can be the special edition figure of this song, also can be the image etc. of this song artist, if, the number of these multiple images is 10, now, when the number of these multiple images is greater than this assign thresholds 5, therefore, from these 10 images, select 5 images, and 5 images selected are defined as at least one logo image of opening one's eyes wide of mating with this multimedia file.
Alternatively, when server extracts multiple images from the dynamic video searched, or, from multi-media image storehouse, when there are multiple images of incidence relation in acquisition and this multimedia file, this server based on Face datection, preferentially can obtain character image, and the character image of acquisition is defined as at least one logo image of opening one's eyes wide.
Step 203: when this mobile terminal receive server send at least one open one's eyes wide logo image time, obtain the target dynamic special efficacy template of this multimedia file.
In order in the process playing this multimedia file, increase some dynamic element, the snowflake such as descended slowly and lightly, dazzle light etc., and these dynamic element can be included in dynamic special efficacy template usually, therefore, when this mobile terminal receive server send at least one open one's eyes wide logo image time, this mobile terminal can obtain the target dynamic template of this multimedia file, and the operation obtaining the target dynamic template of this multimedia file can be: this mobile terminal is based on this multimedia file identification, from the first dynamic special efficacy ATL, search corresponding fixing dynamic special efficacy template, fixing dynamic special efficacy template corresponding to multiple multimedia file identification is stored in first dynamic special efficacy ATL, if found, then the fixing dynamic special efficacy template of searching is defined as the target dynamic special efficacy template of this multimedia file, if do not found, then from the second dynamic special efficacy ATL stored, select a public dynamic special efficacy template, store multiple public dynamic special efficacy template in this second dynamic special efficacy ATL, the plurality of public dynamic special efficacy template can be used for all multimedia files to use, the public dynamic special efficacy template selected is defined as the target dynamic special efficacy template of this multimedia file.
Owing to storing fixing dynamic special efficacy template corresponding to multiple multimedia file identification in the first dynamic special efficacy ATL, that is to say, can storing multimedia identify and the corresponding relation fixed between dynamic special efficacy template in first dynamic special efficacy ATL, therefore, when this mobile terminal is based on this multimedia file identification, from the first dynamic special efficacy ATL, when searching corresponding fixing dynamic special efficacy template, this mobile terminal is based on this multimedia file identification, from the corresponding relation between this multimedia file identification and fixing dynamic special efficacy template, search corresponding fixing dynamic special efficacy template.
Such as, when this multimedia file identification is ID4, in the process of played songs, in order to increase some dynamic elements, this mobile terminal can based on this multimedia file identification ID4, from the corresponding relation between multimedia file identification as shown in table 2 below and fixing dynamic special efficacy template, search corresponding fixing dynamic special efficacy template, if do not found, now, this mobile terminal can from second as described in Table 3 dynamically special efficacy ATL, the public dynamic special efficacy template of Stochastic choice one, if the public dynamic special efficacy template selected is template 1, then template 1 is defined as the target dynamic special efficacy template of this multimedia file.
Table 2
Table 3
Second dynamic special efficacy ATL
Template 1
Template 2
……
It should be noted that, in embodiments of the present invention, only be described for the multimedia file identification shown in above-mentioned table 2 and the corresponding relation between fixing dynamic special efficacy template and the second dynamic special efficacy ATL shown in table 3, above-mentioned table 2 and table 3 do not form restriction to the embodiment of the present invention.
Further, do not find the scene of corresponding fixing dynamic special efficacy template from the first dynamic special efficacy ATL at this mobile terminal under, when this mobile terminal selects a public dynamic special efficacy template from the second dynamic special efficacy ATL, and after the public dynamic special efficacy template selected is defined as the target dynamic special efficacy template of this multimedia file, during for the ease of again playing this multimedia file, can directly from the first dynamic special efficacy ATL, obtain target dynamic special efficacy template, and without the need to selecting from the second dynamic special efficacy ATL again, to improve the efficiency obtaining target dynamic template, the public dynamic special efficacy template of this multimedia file identification and selection can be stored in the first dynamic special efficacy ATL by this mobile terminal, that is to say, the public dynamic special efficacy template of this multimedia file identification and selection can be stored in the corresponding relation between multimedia file identification and fixing dynamic special efficacy template by this mobile terminal, to upgrade this first dynamic special efficacy ATL.
Such as, this mobile terminal can using the template 1 selected from public dynamic special efficacy template as fixed form 3, and this multimedia file identification ID4 and fixed form 3 are stored in the first dynamic special efficacy ATL, that is to say, this multimedia file identification ID4 and fixed form 3 can be stored in the corresponding relation between multimedia file identification as shown in table 4 below and fixing dynamic special efficacy template by this mobile terminal, to upgrade the dynamic special efficacy ATL of first shown in above-mentioned table 2.
Table 4
It should be noted that, this first dynamic special efficacy ATL, the second dynamic special efficacy ATL can be arranged in advance, and fixing dynamic special efficacy template in this first dynamic special efficacy ATL can one or more multimedia file identification corresponding, the embodiment of the present invention is not specifically limited this.
Further, when this mobile terminal is from the second dynamic special efficacy ATL stored, before selecting a public dynamic special efficacy template, this mobile terminal can obtain public special efficacy video library, this public special efficacy video library comprises multiple public special efficacy video, the multiple public special efficacy video that this mobile terminal comprises based on this public special efficacy video library, generates at least one dynamic special efficacy template, and at least one dynamic special efficacy template is stored in public dynamic special efficacy ATL by this.
Wherein, when the public special efficacy video library of this acquisition for mobile terminal, this mobile terminal not only can obtain public special efficacy video library from this locality, can also obtain public special efficacy video library from server.And when this mobile terminal obtains public special efficacy video library from server, this mobile terminal can send the request of special efficacy video acquisition to server, when server receives the request of special efficacy video acquisition, server can obtain public special efficacy video library, and this public special efficacy video library is sent to this mobile terminal.
It should be noted that, the multiple public special efficacy video that this mobile terminal comprises based on this public special efficacy video library, when generating at least one dynamic special efficacy template, the public special efficacy video generating each dynamic special efficacy template can be one, also can be multiple, the embodiment of the present invention be not specifically limited this.In addition, when the multiple public special efficacy video that mobile terminal comprises based on this public special efficacy video library, generate at least one dynamic special efficacy template constantly, the plurality of public special efficacy video can be combined by different filters by this mobile terminal, obtain at least one dynamic special efficacy template, wherein, can with reference to correlation technique by the method that the plurality of public special efficacy video carries out combining by different filters, the embodiment of the present invention does not elaborate at this.
Step 204: this at least one logo image of opening one's eyes wide is filled in this target dynamic special efficacy template by this mobile terminal, obtains dynamic special efficacy video, and in the process playing this multimedia file, play this dynamic special efficacy video.
In order in the process playing this multimedia file, some static elements obtained and some dynamic element are combined, play together with this multimedia file, to enrich displaying contents and to improve result of broadcast, this at least one logo image of opening one's eyes wide can be filled in this target dynamic special efficacy template by this mobile terminal, obtain dynamic special efficacy video, and in this multimedia file process of broadcasting, play this dynamic special efficacy video.
In order to the whole screen enabling this dynamic special efficacy video fill this mobile terminal, and avoid at least one logo image distortion of opening one's eyes wide in this dynamic special efficacy video, to improve visual effect, therefore, before this at least one logo image of opening one's eyes wide is filled into this target dynamic special efficacy template, this mobile terminal can determine the picture size of screen size and this at least one logo image of opening one's eyes wide; For this at least one logo image of often opening one's eyes wide of opening one's eyes wide in logo image, when the picture size of this target image is greater than screen size, this mobile terminal determines the central area of this target image, and based on this central area, cutting is carried out to this target image, makes the picture size after cutting equal screen size; When the picture size of this target image is less than screen size, this mobile terminal is filled this target image, makes the picture size after filling equal screen size.
Wherein, this mobile terminal determines that the operation of the central area of this target image can be: carry out Face datection to this target image, if Face datection success, then the human face region recognized is defined as the central area of this target image, if Face datection failure, then marking area identification is carried out to this target image, the marking area recognized is defined as the central area of this target image.
It should be noted that, this central area refers in the multiple regions be divided into by this target image, can show the region of this target image content or can cause the region of user interest.Due to obtain this at least one open one's eyes wide logo image time, preferential acquisition be character image, therefore, in embodiments of the present invention, preferentially Face datection is carried out to this at least one logo image of opening one's eyes wide, determine the central area of this target image, if Face datection failure, this mobile terminal can carry out marking area identification by this target image, this marking area recognized is defined as the central area of this target image, thus improve the determination efficiency of central area, and improve the determination accuracy rate of central area.
In addition, when marking area identification is carried out to this target image, the pixel value of the pixel that this mobile terminal not only can be comprised by this target image carries out marking area identification to this target image, marking area identification can also be carried out to this target image by the method for contour detecting, certainly, in actual applications, additive method can also be used to carry out marking area identification to this target image, and the embodiment of the present invention is not specifically limited this.
And when the pixel value of the pixel that this mobile terminal is comprised by this target image carries out marking area identification to this target image, target image can be divided into multiple region by this mobile terminal, for each region in the plurality of region, obtain the pixel value of the pixel that this region comprises, from the pixel value obtained, select the pixel value being more than or equal to first threshold, calculate the mean value of the pixel value selected, obtain the first mean value, and from the pixel value obtained, select the pixel value being less than or equal to Second Threshold, calculate the mean value of the pixel value selected, obtain the second mean value.Calculate the difference between the first mean value and the second mean value, obtain pixel value difference.Now, the plurality of region is a corresponding pixel value difference respectively, based on the pixel value difference that the plurality of region is corresponding, the region selecting pixel value difference maximum from the plurality of region, the region of selection is defined as the central area of this target image.
It should be noted that, this first threshold and Second Threshold can be arranged in advance, and first threshold is greater than Second Threshold, and such as, this first threshold can be 190,200 etc., and this Second Threshold can be 50,60 etc., and the embodiment of the present invention is not specifically limited this.
In addition, in the central area process determining this target image, carry out Face datection to this target image, obtaining the pixel value of the pixel that this target image comprises and carry out the concrete operations of contour detecting to this marking area can the correlation technique of reference picture process, the embodiment of the present invention does not elaborate at this.
Wherein, this mobile terminal can be filled this target image by two kinds of modes, makes the picture size after filling equal screen size, as described below.
The blank map picture of first kind of way, this this target image of acquisition for mobile terminal, the picture size of this blank map picture is adjusted, the picture size after adjustment is made to equal screen size, virtualization process is carried out to the blank map picture after adjustment, the blank map picture after virtualization process is set to the background of this target image.
Such as, the blank map picture of this this target image of acquisition for mobile terminal is this target image itself, the picture size of this blank map picture is adjusted, the picture size after adjustment is made to equal screen size, as shown in Figure 3, virtualization process is carried out to the blank map picture after adjustment, the blank map picture after virtualization process is set to the background of this target image.
It should be noted that, the blank map picture of this target image can this target image itself, and also can be other images of this acquisition for mobile terminal, the embodiment of the present invention be not specifically limited this.
When this blank map picture is target image itself, using the blank map picture after adjustment as the background of this target image, the harmony between this target image and background can be ensured, increase the aesthetic feeling of target image in playing process, save memory space simultaneously.
When the blank map picture of this target image is other images of this acquisition for mobile terminal, need the color of these other images to coordinate mutually with target image, increase the aesthetic feeling of target image in playing process, the content of display can be enriched simultaneously.
The second way, this mobile terminal are based on the picture size of screen size and this target image, calculate the first width and the second width, first width is the width this target image length direction carrying out mend limit, second width is the width this target image Width carrying out mend limit, based on the first width and the second width, benefit limit is carried out to this target image, makes the picture size behind benefit limit equal screen size.
Because picture size and screen size generally represent by the mode that lateral length is multiplied with longitudinal length, therefore, the picture size of this mobile terminal based target image and screen size, when calculating the first width and the second width, the lateral length of screen size can be deducted the lateral length of target image by this mobile terminal, obtain the first width, the longitudinal length of this screen size is deducted the longitudinal length of this target image, obtain the second width.
Such as, screen size is 320 × 480, and target image size is 240 × 420, that is to say, the lateral length of screen is 320mm, the longitudinal length of screen is 480mm, and the lateral length of target image is 240mm, and the longitudinal length of target image is 420mm, the lateral length 320mm of screen size is deducted the lateral length 240mm of target image, obtaining the first width is 80mm, the longitudinal length 480mm of screen size is deducted the longitudinal length 420mm of this target image, and obtaining the second width is 60mm.
Mend limit to be used for revising this target image, that is to say, a part of image-region is added to this target image.Therefore, based on the first width and the second width, benefit limit is carried out to this target image, comprising: the image-region adding the first width on the length direction of this target image, the Width of this target image adds the image-region of the second width.Preferably, when the length direction of this target image adds the image-region of the first width, the image-region of the first width half can be added respectively in the both sides on the length direction of this target image.When the Width of this target image adds the image-region of the second width, also can add the image-region of the second width half respectively in the both sides on the Width of this target image.
Such as, the screen state of this mobile terminal is horizontal screen state, first width is 80mm, second width is 60mm, when carrying out benefit limit to this target image, as shown in Figure 4, target image is placed on the center of this mobile terminal screen, both sides on the length direction of this target image add the image-region of 40mm width respectively, and the both sides on the Width of this target image add the image-region of 30mm width respectively, the image-region that the region representation as Fig. 3 bend place adds.
Further, because this mobile terminal is in the process playing this multimedia file, not only can be in perpendicular screen state, also horizontal screen state can be in, no matter this mobile terminal is in perpendicular screen state or horizontal screen state, the method that this mobile terminal can be provided by the embodiment of the present invention, enrich displaying contents and improve result of broadcast, and in above-mentioned steps 203, this mobile terminal according to current screen state, can be suitable for the process of current screen state to this at least one logo image of opening one's eyes wide.But, when this mobile terminal is in horizontal screen state, it is larger that the display interface of this mobile terminal compares perpendicular screen state, the visual effect playing this multimedia file obviously can be better than visual effect during perpendicular screen state, therefore, this mobile terminal is based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and this multimedia file, before playing this multimedia file, the current residing attitude of mobile terminal can also be determined, when the current residing attitude of this mobile terminal is lateral attitude, whether the perpendicular screen switch detecting this mobile terminal is locked, when the perpendicular screen switch of this mobile terminal is locked and when receiving the horizontal screen play instruction of multimedia, the screen state of this mobile terminal is set to horizontal screen state.
Alternatively, when the perpendicular screen switch of this mobile terminal is locked, in order in the process playing this multimedia file, do not need to exit this broadcast interface, just the screen state of this mobile terminal can be set to horizontal screen state, this mobile terminal can show an information, and the screen state of this mobile terminal is set to horizontal screen state for pointing out user by this information.Afterwards, this user can based on this information, the horizontal screen play instruction of triggered multimedia.And when this mobile terminal perpendicular screen switch is not locked, now, can determine that the screen state of this mobile terminal has been horizontal screen state, and without the need to showing this information, to avoid causing interference to user.
It should be noted that, this multimedia horizontal screen play instruction is used for when this mobile terminal is in perpendicular screen state, the screen state of this mobile terminal is set to horizontal screen state, and the horizontal screen play instruction of this multimedia is triggered by user, user can trigger by clicking designated button, this designated button can be the button arranged in advance, and such as, this button is also arranged in the above-mentioned information mentioned.
Wherein, in embodiments of the present invention, the player method of above-mentioned multimedia file can be applied to IOS, and can also be applied to Android operation system, the embodiment of the present invention is not specifically limited this.
In embodiments of the present invention, when this mobile terminal receives multimedia instruction, image acquisition request is sent to server, make server based on this multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file, when this mobile terminal receive server send at least one open one's eyes wide logo image time, obtain the target dynamic special efficacy template of this multimedia file, and be filled into this target dynamic special efficacy template after this at least one logo image of opening one's eyes wide being adjusted, obtain dynamic special efficacy video, with the whole screen enabling this dynamic special efficacy video fill this mobile terminal, and avoid at least one logo image distortion of opening one's eyes wide in this dynamic special efficacy video, to improve visual effect, afterwards, this dynamic special efficacy video is play together with this multimedia file, thus avoid and only show some static elements and seem dull and uninteresting problem, also enriched displaying contents simultaneously, enhance the result of broadcast of this multimedia file.
Fig. 5 is the structural representation of a kind of multimedia file playing device that the embodiment of the present invention provides.With reference to Fig. 5, this device comprises:
Sending module 501, for when receiving multimedia instruction, sending image acquisition request to server, in this image acquisition request, carrying multimedia file identification, make server based on this multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file;
Playing module 502, for when receive described server send described at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of described at least one open one's eyes wide logo image and described multimedia file, play described multimedia file.
Alternatively, with reference to Fig. 6, this device also comprises:
Determination module 503, for determining the current residing attitude of mobile terminal;
Detection module 504, for when the current residing attitude of described mobile terminal is lateral attitude, whether the perpendicular screen switch detecting described mobile terminal is locked;
Module 505 is set, for when the perpendicular screen switch of described mobile terminal locked and when receiving the horizontal screen play instruction of multimedia, the screen state of described mobile terminal is set to horizontal screen state.
Alternatively, with reference to Fig. 7, this playing module 502 comprises:
Acquiring unit 5021, for when receive this server send this at least one open one's eyes wide logo image time, obtain the target dynamic special efficacy template of this multimedia file;
First filler cells 5022, for this at least one logo image of opening one's eyes wide being filled in this target dynamic special efficacy template, obtains dynamic special efficacy video;
Broadcast unit 5023, in the process playing this multimedia file, plays this dynamic special efficacy video.
Alternatively, with reference to Fig. 8, this acquiring unit 5021 comprises:
Search subelement 50211, for based on this multimedia file identification, from the first dynamic special efficacy ATL, search corresponding fixing dynamic special efficacy template, in this first dynamic special efficacy ATL, store fixing dynamic special efficacy template corresponding to multiple multimedia file identification;
First determines subelement 50212, for when finding, the fixing dynamic special efficacy template of searching is defined as the target dynamic special efficacy template of this multimedia file;
Chooser unit 50213, for when not finding, from the second dynamic special efficacy ATL stored, selecting a public dynamic special efficacy template, storing multiple public dynamic special efficacy template in this second dynamic special efficacy ATL;
Second determines subelement 50214, for the public dynamic special efficacy template selected being defined as the target dynamic special efficacy template of this multimedia file.
Alternatively, with reference to Fig. 9, this acquiring unit 5021 also comprises:
First obtains subelement 50215, and for obtaining public special efficacy video library, this public special efficacy video library comprises multiple public special efficacy video;
Generate subelement 50216, for based on the plurality of public special efficacy video, generate at least one dynamic special efficacy template;
Storing sub-units 50217, for by this, at least one dynamic special efficacy template is stored in this second dynamic special efficacy ATL.
Alternatively, with reference to Figure 10, this playing module 502 also comprises:
First determining unit 5024, for the picture size of the screen size He this at least one logo image of opening one's eyes wide of determining this mobile terminal;
Second determining unit 5025, for for this at least one logo image of often opening one's eyes wide of opening one's eyes wide in logo image, when the picture size of this target image is greater than this screen size, determines the central area of this target image;
Cutting unit 5026, for based on this central area, carries out cutting to this target image, makes the picture size after cutting equal this screen size;
Second filler cells 5027, for when the picture size of this target image is less than this screen size, fills this target image, makes the picture size after filling equal this screen size.
Alternatively, with reference to Figure 11, this second determining unit 5025 comprises:
First recognin unit 50251, for when the picture size of this target image is greater than this screen size, carries out Face datection to this target image;
3rd determines subelement 50252, for when Face datection is successful, the human face region recognized is defined as the central area of this target image;
Second recognin unit 50253, for when Face datection is failed, carries out marking area identification to this target image;
4th determines subelement 50254, for the marking area recognized being defined as the central area of this target image.
Alternatively, with reference to Figure 12, this second filler cells 5027 comprises:
Second obtains subelement 50271, for when the picture size of this target image is less than this screen size, obtains the blank map picture of this target image;
Adjustment subelement 50272, for adjusting the picture size of this blank map picture, makes the picture size after adjustment equal this screen size;
Virtualization subelement 50273, for carrying out virtualization process to the blank map picture after adjustment;
Subelement 50274 is set, for the blank map picture after virtualization process being set to the background of this target image.
Alternatively, with reference to Figure 13, this second filler cells 5027 comprises:
Computation subunit 50275, for when the picture size of this target image is less than this screen size, based on this screen size and this picture size, calculate the first width and the second width, this first width is the width this target image length direction carrying out mend limit, and this second width is the width this target image Width carrying out mend limit;
Mend limit subelement 50276, for based on this first width and this second width, benefit limit is carried out to this target image, makes the picture size behind benefit limit equal this screen size.
In sum, in embodiments of the present invention, when this mobile terminal receives multimedia instruction, image acquisition request is sent to server, make server based on this multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file, when this mobile terminal receive server send at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and multimedia file, play this multimedia file, thus by the process of play multimedia file, add some static elements and dynamic special efficacy video, thus avoid and only show some static elements, the problem seeming dull and uninteresting, also enriched displaying contents simultaneously, enhance the result of broadcast of this multimedia file.
It should be noted that: the device that the multimedia file that above-described embodiment provides is play is when play multimedia file, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the device that the multimedia file that above-described embodiment provides is play and the embodiment of the method that multimedia file is play belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Please refer to Figure 14, it illustrates the block diagram of the device that one embodiment of the invention provides multimedia file to play, this multimedia file playing device can be terminal 1400, terminal 1400 can comprise communication unit 1410, include the memory 1420 of one or more computer-readable recording mediums, input unit 1430, display unit 1440, transducer 1450, voicefrequency circuit 1460, WIFI (WirelessFidelity, Wireless Fidelity) module 1470, include the processor 1480 that more than or processes core, and the parts such as power supply 1490.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Figure 14, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
Communication unit 1410 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, this communication unit 1410 can be RF (RadioFrequency, radio frequency) circuit, router, modulator-demodulator, etc. network communication equipment.Especially, when communication unit 1410 is RF circuit, after being received by the downlink information of base station, more than one or one processor 1480 is transferred to process; In addition, base station is sent to by relating to up data.Usually, RF circuit as communication unit includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA (LowNoiseAmplifier, low noise amplifier), duplexer etc.In addition, communication unit 1410 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, code division multiple access), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.Memory 1420 can be used for storing software program and module, and processor 1480 is stored in software program and the module of memory 1420 by running, thus performs the application of various function and data processing.Memory 1420 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 1400.In addition, memory 1420 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 1420 can also comprise Memory Controller, to provide the access of processor 1480 and input unit 1430 pairs of memories 1420.
Input unit 1430 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, action bars, optics or trace ball signal and inputs.Preferably, input unit 1430 can comprise Touch sensitive surface 1431 and other input equipments 1432.Touch sensitive surface 1431, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 1431 or near Touch sensitive surface 1431 such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, Touch sensitive surface 1431 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 1480, and the order that energy receiving processor 1480 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 1431.Except Touch sensitive surface 1431, input unit 1430 can also comprise other input equipments 1432.Preferably, other input equipments 1432 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 1440 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 1400 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 1440 can comprise display floater 1441, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display floater 1441.Further, Touch sensitive surface 1431 can cover display floater 1441, when Touch sensitive surface 1431 detects thereon or after neighbouring touch operation, send processor 1480 to determine the type of touch event, on display floater 1441, provide corresponding vision to export with preprocessor 1480 according to the type of touch event.Although in fig. 14, Touch sensitive surface 1431 and display floater 1441 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 1431 and display floater 1441 integrated and realize input and output function.
Terminal 1400 also can comprise at least one transducer 1450, such as optical sensor, motion sensor and other transducers.Optical sensor can comprise ambient light sensor and proximity transducer, wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater 1441, and proximity transducer when terminal 1400 moves in one's ear, can cut out display floater 1441 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for terminal 1400 also other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 1460, loud speaker 1461, microphone 1462 can provide the audio interface between user and terminal 1400.Voicefrequency circuit 1460 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker 1461, by loud speaker 1461 be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 1462, voice data is converted to after being received by voicefrequency circuit 1460, after again voice data output processor 1480 being processed, through communication unit 1410 to send to such as another terminal, or export voice data to memory 1420 to process further.Voicefrequency circuit 1460 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 1400.
In order to realize radio communication, this terminal can be configured with wireless communication unit 1470, this wireless communication unit 1470 can be WIFI module.WIFI belongs to short range wireless transmission technology, and by wireless communication unit 1470, terminal 1400 can help that user sends and receive e-mail, browsing page and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although there is shown wireless communication unit 1470, be understandable that, it does not belong to must forming of terminal 1400, can omit in the scope of essence not changing invention as required completely.
Processor 1480 is control centres of terminal 1400, utilize the various piece of various interface and the whole mobile phone of connection, software program in memory 1420 and/or module is stored in by running or performing, and call the data be stored in memory 1420, perform various function and the deal with data of terminal 1400, thus integral monitoring is carried out to mobile phone.Optionally, processor 1480 can comprise one or more process core; Preferably, processor 1480 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 1480.
Terminal 1400 also comprises the power supply 1490 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 1480 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 1460 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 1400 can also comprise camera, bluetooth module etc., does not repeat them here.
In the present embodiment, terminal also includes one or more than one program, this or more than one program are stored in memory, and be configured to be performed by more than one or one processor, described more than one or one program package, containing the instruction for carrying out the method for broadcasting multimedia file that the embodiment of the present invention provides, comprising:
When receiving multimedia instruction, sending image acquisition request to server, carrying multimedia file identification in this image acquisition request, make this server based on this multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file.
When receive that server sends this at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and this multimedia file, play this multimedia file.
Alternatively, based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and this multimedia file, before playing this multimedia file, also comprise:
Determine the current residing attitude of mobile terminal;
When the current residing attitude of this mobile terminal is lateral attitude, whether the perpendicular screen switch detecting this mobile terminal is locked;
When the perpendicular screen switch of this mobile terminal is locked and when receiving the horizontal screen play instruction of multimedia, the screen state of this mobile terminal is set to horizontal screen state.
Alternatively, based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and this multimedia file, play this multimedia file, comprising:
Obtain the target dynamic special efficacy template of this multimedia file;
This at least one logo image of opening one's eyes wide is filled in this target dynamic special efficacy template, obtains dynamic special efficacy video;
In the process playing this multimedia file, play this dynamic special efficacy video.
Alternatively, obtain the target dynamic special efficacy template of this multimedia file, comprising:
Based on this multimedia file identification, from the first dynamic special efficacy ATL, search corresponding fixing dynamic special efficacy template, in this first dynamic special efficacy ATL, store fixing dynamic special efficacy template corresponding to multiple multimedia file identification;
If found, then the fixing dynamic special efficacy template of searching is defined as the target dynamic special efficacy template of this multimedia file;
If do not found, then from the second dynamic special efficacy ATL stored, select a public dynamic special efficacy template, in this second dynamic special efficacy ATL, store multiple public dynamic special efficacy template;
The public dynamic special efficacy template selected is defined as the target dynamic special efficacy template of this multimedia file.
Alternatively, from the second dynamic special efficacy ATL stored, before selecting a public dynamic special efficacy template, also comprise:
Obtain public special efficacy video library, this public special efficacy video library comprises multiple public special efficacy video;
Based on the plurality of public special efficacy video, generate at least one dynamic special efficacy template;
By this, at least one dynamic special efficacy template is stored in this second dynamic special efficacy ATL.
Alternatively, this at least one logo image of opening one's eyes wide is filled in this target dynamic special efficacy template, before obtaining dynamic special efficacy video, also comprises:
Determine the screen size of this mobile terminal and the picture size of this at least one logo image of opening one's eyes wide;
For this at least one logo image of often opening one's eyes wide of opening one's eyes wide in logo image, when the picture size of this target image is greater than this screen size, determine the central area of this target image;
Based on this central area, cutting is carried out to this target image, make the picture size after cutting equal this screen size;
When the picture size of this target image is less than this screen size, this target image is filled, make the picture size after filling equal this screen size.
Alternatively, determine the central area of this target image, comprising:
Face datection is carried out to this target image;
If Face datection success, be then defined as the central area of this target image by the human face region recognized;
If Face datection failure, then carry out marking area identification to this target image;
The marking area recognized is defined as the central area of this target image.
Alternatively, this target image is filled, makes the picture size after filling equal this screen size, comprising:
Obtain the blank map picture of this target image;
The picture size of this blank map picture is adjusted, makes the picture size after adjustment equal this screen size;
Virtualization process is carried out to the blank map picture after adjustment;
Blank map picture after virtualization process is set to the background of this target image.
Alternatively, this target image is filled, makes the picture size after filling equal this screen size, comprising:
Based on this screen size and this picture size, calculate the first width and the second width, this first width is the width this target image length direction carrying out mend limit, and this second width is the width this target image Width carrying out mend limit;
Based on this first width and this second width, benefit limit is carried out to this target image, makes the picture size behind benefit limit equal this screen size.
In embodiments of the present invention, when this mobile terminal receives multimedia instruction, image acquisition request is sent to server, make server based on this multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file, when this mobile terminal receive server send at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of this at least one open one's eyes wide logo image and multimedia file, play this multimedia file, thus by the process of play multimedia file, add some static elements and dynamic special efficacy video, thus avoid and only show some static elements, the problem seeming dull and uninteresting, also enriched displaying contents simultaneously, enhance the result of broadcast of this multimedia file.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (18)

1. a method for broadcasting multimedia file, is characterized in that, described method comprises:
When receiving multimedia instruction, image acquisition request is sent to server, carry multimedia file identification in described image acquisition request, make described server based on described multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file;
When receive described server send described at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of described at least one open one's eyes wide logo image and described multimedia file, play described multimedia file.
2. the method for claim 1, is characterized in that, the described target dynamic special efficacy template based on described at least one open one's eyes wide logo image and described multimedia file, before playing described multimedia file, also comprises:
Determine the current residing attitude of mobile terminal;
When the current residing attitude of described mobile terminal is lateral attitude, whether the perpendicular screen switch detecting described mobile terminal is locked;
When the perpendicular screen switch of described mobile terminal is locked and when receiving the horizontal screen play instruction of multimedia, the screen state of described mobile terminal is set to horizontal screen state.
3. method as claimed in claim 1 or 2, is characterized in that the described target dynamic special efficacy template based on described at least one open one's eyes wide logo image and described multimedia file is play described multimedia file, being comprised:
Obtain the target dynamic special efficacy template of described multimedia file;
Described at least one logo image of opening one's eyes wide is filled in described target dynamic special efficacy template, obtains dynamic special efficacy video;
In the process playing described multimedia file, play described dynamic special efficacy video.
4. method as claimed in claim 3, it is characterized in that, the target dynamic special efficacy template of the described multimedia file of described acquisition, comprising:
Based on described multimedia file identification, from the first dynamic special efficacy ATL, search corresponding fixing dynamic special efficacy template, in the described first dynamic special efficacy ATL, store fixing dynamic special efficacy template corresponding to multiple multimedia file identification;
If found, then the fixing dynamic special efficacy template of searching is defined as the target dynamic special efficacy template of described multimedia file;
If do not found, then from the second dynamic special efficacy ATL stored, select a public dynamic special efficacy template, in the described second dynamic special efficacy ATL, store multiple public dynamic special efficacy template;
The public dynamic special efficacy template selected is defined as the target dynamic special efficacy template of described multimedia file.
5. method as claimed in claim 4, is characterized in that, described the second dynamic special efficacy ATL from storing, before selecting a public dynamic special efficacy template, also comprises:
Obtain public special efficacy video library, described public special efficacy video library comprises multiple public special efficacy video;
Based on described multiple public special efficacy video, generate at least one dynamic special efficacy template;
At least one dynamic special efficacy template described is stored in the described second dynamic special efficacy ATL.
6. method as claimed in claim 3, is characterized in that, describedly described at least one logo image of opening one's eyes wide is filled in described target dynamic special efficacy template, before obtaining dynamic special efficacy video, also comprises:
Determine the screen size of described mobile terminal and the picture size of described at least one logo image of opening one's eyes wide;
For described at least one logo image of often opening one's eyes wide of opening one's eyes wide in logo image, when the picture size of described target image is greater than described screen size, determine the central area of described target image;
Based on described central area, cutting is carried out to described target image, make the picture size after cutting equal described screen size;
When the picture size of described target image is less than described screen size, described target image is filled, make the picture size after filling equal described screen size.
7. method as claimed in claim 6, it is characterized in that, the described central area determining described target image, comprising:
Face datection is carried out to described target image;
If Face datection success, be then defined as the central area of described target image by the human face region recognized;
If Face datection failure, then carry out marking area identification to described target image;
The marking area recognized is defined as the central area of described target image.
8. method as claimed in claim 6, is characterized in that, describedly fills described target image, makes the picture size after filling equal described screen size, comprising:
Obtain the blank map picture of described target image;
The picture size of described blank map picture is adjusted, makes the picture size after adjustment equal described screen size;
Virtualization process is carried out to the blank map picture after adjustment;
Blank map picture after virtualization process is set to the background of described target image.
9. method as claimed in claim 6, is characterized in that, describedly fills described target image, makes the picture size after filling equal described screen size, comprising:
Based on described screen size and described picture size, calculate the first width and the second width, described first width is the width described target image length direction carrying out mend limit, and described second width is the width described target image Width carrying out mend limit;
Based on described first width and described second width, benefit limit is carried out to described target image, make the picture size behind benefit limit equal described screen size.
10. a multimedia file playing device, is characterized in that, described device comprises:
Sending module, for when receiving multimedia instruction, sending image acquisition request to server, in described image acquisition request, carrying multimedia file identification, make described server based on described multimedia file identification, return at least one logo image of opening one's eyes wide of mating with multimedia file;
Playing module, for when receive described server send described at least one open one's eyes wide logo image time, based on the target dynamic special efficacy template of described at least one open one's eyes wide logo image and described multimedia file, play described multimedia file.
11. devices as claimed in claim 10, it is characterized in that, described device also comprises:
Determination module, for determining the current residing attitude of mobile terminal;
Detection module, for when the current residing attitude of described mobile terminal is lateral attitude, whether the perpendicular screen switch detecting described mobile terminal is locked;
Module is set, for when the perpendicular screen switch of described mobile terminal locked and when receiving the horizontal screen play instruction of multimedia, the screen state of described mobile terminal is set to horizontal screen state.
12. devices as described in claim 10 or 11, it is characterized in that, described playing module comprises:
Acquiring unit, for when receive described server send described at least one open one's eyes wide logo image time, obtain the target dynamic special efficacy template of described multimedia file;
First filler cells, for described at least one logo image of opening one's eyes wide being filled in described target dynamic special efficacy template, obtains dynamic special efficacy video;
Broadcast unit, in the process playing described multimedia file, plays described dynamic special efficacy video.
13. devices as claimed in claim 12, it is characterized in that, described acquiring unit comprises:
Search subelement, for based on described multimedia file identification, from the first dynamic special efficacy ATL, search corresponding fixing dynamic special efficacy template, in the described first dynamic special efficacy ATL, store fixing dynamic special efficacy template corresponding to multiple multimedia file identification;
First determines subelement, for when finding, the fixing dynamic special efficacy template of searching is defined as the target dynamic special efficacy template of described multimedia file;
Chooser unit, for when not finding, from the second dynamic special efficacy ATL stored, selecting a public dynamic special efficacy template, storing multiple public dynamic special efficacy template in the described second dynamic special efficacy ATL;
Second determines subelement, for the public dynamic special efficacy template selected being defined as the target dynamic special efficacy template of described multimedia file.
14. devices as claimed in claim 13, it is characterized in that, described acquiring unit also comprises:
First obtains subelement, and for obtaining public special efficacy video library, described public special efficacy video library comprises multiple public special efficacy video;
Generate subelement, for based on described multiple public special efficacy video, generate at least one dynamic special efficacy template;
Storing sub-units, for being stored at least one dynamic special efficacy template described in the described second dynamic special efficacy ATL.
15. devices as claimed in claim 12, it is characterized in that, described playing module also comprises:
First determining unit, for the picture size of the screen size and described at least one logo image of opening one's eyes wide of determining described mobile terminal;
Second determining unit, for for described at least one logo image of often opening one's eyes wide of opening one's eyes wide in logo image, when the picture size of described target image is greater than described screen size, determines the central area of described target image;
Cutting unit, for based on described central area, carries out cutting to described target image, makes the picture size after cutting equal described screen size;
Second filler cells, for when the picture size of described target image is less than described screen size, fills described target image, makes the picture size after filling equal described screen size.
16. devices as claimed in claim 15, it is characterized in that, described second determining unit comprises:
First recognin unit, for when the picture size of described target image is greater than described screen size, carries out Face datection to described target image;
3rd determines subelement, for when Face datection is successful, the human face region recognized is defined as the central area of described target image;
Second recognin unit, for when Face datection is failed, carries out marking area identification to described target image;
4th determines subelement, for the marking area recognized being defined as the central area of described target image.
17. devices as claimed in claim 15, it is characterized in that, described second filler cells comprises:
Second obtains subelement, for when the picture size of described target image is less than described screen size, obtains the blank map picture of described target image;
Adjustment subelement, for adjusting the picture size of described blank map picture, makes the picture size after adjustment equal described screen size;
Virtualization subelement, for carrying out virtualization process to the blank map picture after adjustment;
Subelement is set, for the blank map picture after virtualization process being set to the background of described target image.
18. devices as claimed in claim 15, it is characterized in that, described second filler cells comprises:
Computation subunit, for when the picture size of described target image is less than described screen size, based on described screen size and described picture size, calculate the first width and the second width, described first width is the width described target image length direction carrying out mend limit, and described second width is the width described target image Width carrying out mend limit;
Mend limit subelement, for based on described first width and described second width, benefit limit is carried out to described target image, make the picture size behind benefit limit equal described screen size.
CN201510400143.6A 2015-07-08 2015-07-08 Method for broadcasting multimedia file and device Active CN105049959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510400143.6A CN105049959B (en) 2015-07-08 2015-07-08 Method for broadcasting multimedia file and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510400143.6A CN105049959B (en) 2015-07-08 2015-07-08 Method for broadcasting multimedia file and device

Publications (2)

Publication Number Publication Date
CN105049959A true CN105049959A (en) 2015-11-11
CN105049959B CN105049959B (en) 2019-09-06

Family

ID=54456076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510400143.6A Active CN105049959B (en) 2015-07-08 2015-07-08 Method for broadcasting multimedia file and device

Country Status (1)

Country Link
CN (1) CN105049959B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040577A1 (en) * 2016-08-29 2018-03-08 武汉斗鱼网络科技有限公司 Method and system for realizing adaptive screen rotation in image collection process
CN107993191A (en) * 2017-11-30 2018-05-04 腾讯科技(深圳)有限公司 A kind of image processing method and device
CN108628914A (en) * 2017-03-22 2018-10-09 宏达国际电子股份有限公司 Mobile device and its operating method, non-volatile computer-readable medium storing
CN109600643A (en) * 2018-12-21 2019-04-09 广州酷狗计算机科技有限公司 Video providing method, playback method, device and storage medium
CN109640125A (en) * 2018-12-21 2019-04-16 广州酷狗计算机科技有限公司 Video content processing method, device, server and storage medium
CN111611430A (en) * 2020-05-26 2020-09-01 广州酷狗计算机科技有限公司 Song playing method, device, terminal and storage medium
WO2021196890A1 (en) * 2020-04-02 2021-10-07 腾讯科技(深圳)有限公司 Method and device for multimedia processing, electronic device, and storage medium
CN113508602A (en) * 2019-05-01 2021-10-15 谷歌有限责任公司 Biased lighting effect generation for video

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080155422A1 (en) * 2006-12-20 2008-06-26 Joseph Anthony Manico Automated production of multiple output products
CN101685657A (en) * 2008-09-27 2010-03-31 盛乐信息技术(上海)有限公司 Music visual effect method
CN103164119A (en) * 2013-02-25 2013-06-19 东莞宇龙通信科技有限公司 Communication terminal and self-adaption display method of images
CN103389863A (en) * 2013-07-29 2013-11-13 北京小米科技有限责任公司 Display control method and device
CN103699323A (en) * 2013-12-20 2014-04-02 上海卓悠网络科技有限公司 Method and device for realizing music desktop display
CN104537608A (en) * 2014-12-31 2015-04-22 深圳市中兴移动通信有限公司 Image processing method and device
CN104732573A (en) * 2015-03-26 2015-06-24 金陵科技学院 Animation system production method based on animation element model modeling output

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080155422A1 (en) * 2006-12-20 2008-06-26 Joseph Anthony Manico Automated production of multiple output products
CN101685657A (en) * 2008-09-27 2010-03-31 盛乐信息技术(上海)有限公司 Music visual effect method
CN103164119A (en) * 2013-02-25 2013-06-19 东莞宇龙通信科技有限公司 Communication terminal and self-adaption display method of images
CN103389863A (en) * 2013-07-29 2013-11-13 北京小米科技有限责任公司 Display control method and device
CN103699323A (en) * 2013-12-20 2014-04-02 上海卓悠网络科技有限公司 Method and device for realizing music desktop display
CN104537608A (en) * 2014-12-31 2015-04-22 深圳市中兴移动通信有限公司 Image processing method and device
CN104732573A (en) * 2015-03-26 2015-06-24 金陵科技学院 Animation system production method based on animation element model modeling output

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040577A1 (en) * 2016-08-29 2018-03-08 武汉斗鱼网络科技有限公司 Method and system for realizing adaptive screen rotation in image collection process
CN108628914A (en) * 2017-03-22 2018-10-09 宏达国际电子股份有限公司 Mobile device and its operating method, non-volatile computer-readable medium storing
CN107993191A (en) * 2017-11-30 2018-05-04 腾讯科技(深圳)有限公司 A kind of image processing method and device
CN107993191B (en) * 2017-11-30 2023-03-21 腾讯科技(深圳)有限公司 Image processing method and device
CN109600643A (en) * 2018-12-21 2019-04-09 广州酷狗计算机科技有限公司 Video providing method, playback method, device and storage medium
CN109640125A (en) * 2018-12-21 2019-04-16 广州酷狗计算机科技有限公司 Video content processing method, device, server and storage medium
CN109640125B (en) * 2018-12-21 2021-04-27 广州酷狗计算机科技有限公司 Video content processing method, device, server and storage medium
CN113508602A (en) * 2019-05-01 2021-10-15 谷歌有限责任公司 Biased lighting effect generation for video
WO2021196890A1 (en) * 2020-04-02 2021-10-07 腾讯科技(深圳)有限公司 Method and device for multimedia processing, electronic device, and storage medium
CN111611430A (en) * 2020-05-26 2020-09-01 广州酷狗计算机科技有限公司 Song playing method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN105049959B (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN105049959A (en) Multimedia file playing method and device
CN104253740B (en) Picture is registered method, Apparatus and system
CN105554522A (en) Method for playing audio in group, server and terminal
CN105187930A (en) Video live broadcasting-based interaction method and device
CN103596017B (en) Video downloading method and system
CN104967910A (en) Multimedia play progress control method and apparatus
CN104378683A (en) Program based interaction method and device
CN104869468A (en) Method and apparatus for displaying screen information
CN105338368A (en) Method, device and system for converting live stream of video into on-demand data
CN104967900A (en) Video generating method and video generating device
CN105430424A (en) Video live broadcast method, device and system
CN104967801A (en) Video data processing method and apparatus
CN104243671A (en) Volume adjustment method and device and electronic device
CN104519404A (en) Graphics interchange format file playing method and device
CN105187733A (en) Video processing method, device and terminal
CN105516784A (en) Virtual good display method and device
CN105606117A (en) Navigation prompting method and navigation prompting apparatus
CN103455583B (en) Virtual directory method for building up, device and electronic equipment
CN104796780A (en) Information display method, channel management platform and terminal
CN106231433A (en) A kind of methods, devices and systems playing Internet video
CN105740263A (en) Page display method and apparatus
CN104869465A (en) Video playing control method and device
CN103687063B (en) A kind of method of interconnection network, device and terminal equipment
CN105094809A (en) Combined picture layout modification method and device and terminal equipment
CN103873883A (en) Video playing method and device and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20161101

Address after: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Applicant before: Tencent Technology (Shenzhen) Co., Ltd.

CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant