Multimedia file splicing method and apparatus

A technology for multimedia files and video files, which is used in carrier indicating devices, electrical components, recording carrier editing, etc., and can solve the problems of low accuracy of audio and video splicing and synthesis

CN105791938AActive Publication Date: 2016-07-20TENCENT TECH (SHENZHEN) CO LTD
4 Cites 10 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2016-07-20

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a multimedia file splicing method and apparatus. The method comprises: a first video clip and a second video clip that are going to be spliced are obtained; audio files corresponding to the first video clip and the second video clip are obtained, wherein the audio files record first starting and ending time of the first video clip and second starting and ending time of the second video clip; the first video clip is adjusted to be played within a first period of time indicated by the first starting and ending time and the second video clip is adjusted to be played with a second period of time indicated by the second starting and ending time, wherein the first period of time and the second period of time do not overlap with each other; and splicing operation is carried out on the adjusted first video clip and the adjusted second video clip to obtain a spliced video file. According to the invention, a technical problem of low synthesis precision during the audio and video splicing process in the prior art can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of multimedia data processing, in particular to a splicing method and device for multimedia files. Background technique

[0002] When splicing the video generated by the Android system and the InternetworkingOperatingSystem system (referred to as the IOS system), it is necessary to decode the generated video through the sequence parameter sets (sps for short) and picture parameter sets (pps for short) of the Android system , and decode the generated video through the sps parameter and pps parameter of the IOS system, and decode the video code stream in the video file into a frame-by-frame image, which is displayed on the interface. However, there will be incompatibility problems when playing video files generated in the Android system and the IOS system at the same time, because if the sps and pps parameters of the Android system are used to decode, the video of the IOS system will display abnormally; if the sps of th...

Examples

Embodiment 1

[0018] According to an embodiment of the present invention, a method for splicing multimedia files is provided, such as figure 1 As shown, the method includes:

[0019] Optionally, in this embodiment, the above-mentioned splicing method for multimedia files can be applied to such as figure 1 In the hardware environment formed by the server 104 and the terminal 102 shown. figure 1 is an architectural diagram of a hardware environment according to an embodiment of the present invention, such as figure 1 As shown, the server 104 is connected to the terminal 102 through a network. The above-mentioned network includes but not limited to: a wide area network, a metropolitan area network or a local area network. The terminal 102 is not limited to computers, mobile phones, and tablet computers.

[0020] figure 2 It is a flowchart of a splicing method for multimedia files according to an embodiment of the present invention. Such as figure 2 Shown, the splicing method of this mul...

Embodiment 2

[0062] According to an embodiment of the present invention, there is also provided a multimedia file splicing device for implementing the above multimedia file splicing method, the multimedia file splicing device is mainly used to perform the splicing of multimedia files provided by the above-mentioned contents of the embodiments of the present invention Method, the splicing device of the multimedia file provided by the embodiment of the present invention is described in detail below:

[0063] Figure 4 is a schematic diagram of a splicing device for multimedia files according to an embodiment of the present invention, such as Figure 4 As shown, the splicing device of the multimedia file mainly includes:

[0064] The first acquisition unit 41 is configured to acquire the first video segment and the second video segment to be spliced, wherein the first video segment comes from the first terminal, the second video segment comes from the second terminal, and the first terminal ...

Embodiment 3

[0078] According to an embodiment of the present invention, there is also provided a mobile terminal for implementing the above multimedia file splicing method, such as Figure 5 As shown, the mobile terminal mainly includes a processor 401, a display 402, a data interface 403, a memory 404 and a network interface 405, wherein:

[0079] The display 402 is mainly used to display the interface of the client, wherein the interface of the client includes video or audio files recorded by the user using the client.

[0080] The data interface 403 mainly transmits the video segment recorded by the user to the server 401 through data transmission.

[0081] The memory 404 is mainly used for storing video clips recorded by users.

[0082] The network interface 405 is mainly used for network communication with the server 401 to provide data support for splicing video clips.

[0083] Processor 401 is mainly used to perform the following operations:

[0084] Acquiring the first video cl...