Media file processing method and device, and media file sharing method and device in social media application
AssigneeTencent Technology (Shenzhen) Company Limited
InventorFengkai Wu
Life of this patent
Estimating the term…
Abstract
A media file processing method is described. Multiple selected media files are processed by a terminal device comprising a processor and a memory storing computer readable instructions executed by the processor. The terminal device extracts content association information corresponding to the multiple selected media files. The terminal device further synthesizes the multiple selected media files according to the content association information to obtain an animation that is a dynamic presentation of contents of the multiple selected media files. The animation is then stored in a predetermined file format in the terminal device.
Claims12
A media file processing method, comprising:
- obtaining multiple selected media files by a terminal device comprising a processor and a memory storing computer readable instructions executed by the processor;
- extracting, by the terminal device, content association information corresponding to the multiple selected media files, wherein the content association information comprises:
- shooting location;
- creation time point;
- and
- facial property;
- aggregating the multiple selected media files according to a similarity of the shooting location or the facial property between the multiple selected media files to form file sequences;
- sorting the media files within each of the file sequences according to the creation time point of the media files;
- counting a total number of the file sequences;
- calculating, according to a preset animation playback duration and the total number of the file sequences, a duration occupied by each of the file sequences;
- calculating display time points of the media files in each of the file sequences according to the creation time point of the media files in each of the file sequences and the duration occupied by each of the file sequences;
- adjusting the display time points of the media files in each of the file sequences based on a weighting factor;
- forming an animation timeline for each of the file sequences, using the calculated display time points of the media files in each of the file sequences;
- synthesizing, by the terminal device, for each of the file sequences, the multiple selected media files according to the animation timeline to obtain an animation, the animation being a dynamic presentation of contents of the media files in each of the file sequences;
- combining, the animation of each of the file sequences to form a combined animation, based on an order of the file sequences;
- and
- storing the combined animation in a predetermined file format in the terminal device.
A media file processing device, comprising:
- a memory storing computer readable instructions;
- a processor in communication with the memory, wherein the processor, when executing the instructions, is configured to cause the media file processing device to:
- obtain multiple selected media files;
- extract content association information corresponding to the multiple selected media files, wherein the content association information comprises:
- shooting location;
- creation time point;
- and
- facial property;
- aggregate the multiple selected media files according to a similarity of the shooting location or the facial property between the multiple selected media files to form file sequences;
- sort the media files within each of the file sequences according to the creation time point of the media files;
- count a total number of the file sequences;
- calculate, according to a preset animation playback duration and the total number of the file sequences, a duration occupied by each of the file sequences;
- calculate display time points of the media files in each of the file sequences according to the creation time point of the media files in each of the file sequences and the duration occupied by each of the file sequences;
- adjust the display time points of the media files in each of the file sequences based on a weighting factor;
- form an animation timeline for each of the file sequences, using the calculated display time points of the media files in each of the file sequences;
- synthesize, for each of the file sequences, the multiple selected media files according to the animation timeline to obtain an animation, the animation being a dynamic presentation of contents of the media files in each of the file sequences;
- combine the animation of each of the file sequences to form a combined animation, based on an order of the file sequences;
- and
- the combined animation in a predetermined file format in the media file processing device.
Dependencies are inferred from the claim text.