Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for playing multimedia file

A multimedia file and technology to be played, applied in the information field, can solve problems such as occupying large system memory and CPU resources, freeze applications, and no response, etc., to achieve the effect of reducing CPU usage, avoiding freeze phenomena, and reducing system load

Inactive Publication Date: 2016-11-16
ALIBABA (CHINA) CO LTD
View PDF6 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the technical problem to be solved by the present invention is that in the prior art, when playing a multimedia file, the multimedia file is decoded by means of software decoding, which causes the decoding process to occupy a large amount of system memory and CPU resources, and is time-consuming. And it is easy to appear stuck phenomenon or application unresponsive phenomenon during playback

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for playing multimedia file
  • Method and device for playing multimedia file
  • Method and device for playing multimedia file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] figure 1 A flow chart showing the implementation of a method for playing a multimedia file according to an embodiment of the present invention is shown. Such as figure 1 As shown, the method mainly includes:

[0059] In step S101, a multimedia file to be played is acquired.

[0060] It should be noted that the execution subject of this embodiment may be a mobile terminal such as a mobile phone or a tablet computer, or other devices for playing multimedia files, which is not limited herein.

[0061] In the embodiment of the present invention, the multimedia file to be played may be acquired locally, or may be acquired from the server.

[0062] In a possible implementation, the method is based on the MediaCodec framework. In this implementation, the device for playing multimedia files is based on the Android operating system.

[0063] In step S102, the multimedia file is demultiplexed to obtain demultiplexed data corresponding to the multimedia file and format info...

Embodiment 2

[0094] Figure 7 A structural block diagram of an apparatus for playing multimedia files according to another embodiment of the present invention is shown. For ease of description, only parts related to the embodiments of the present invention are shown.

[0095] Such as Figure 7 As shown, the device includes: an acquisition module 71 for acquiring a multimedia file to be played; a demultiplexing module 72 for demultiplexing the multimedia file to obtain demultiplexing data corresponding to the multimedia file and Format information of the demultiplexed data; an initialization module 73, configured to initialize a hardware decoder according to the format information of the demultiplexed data; a decoding module 74, configured to use the hardware decoder to demultiplex the demultiplexed data Decoding is performed to obtain decoded data corresponding to the demultiplexed data; a rendering module 75 is configured to use a hardware renderer to render the decoded data.

[0096] ...

Embodiment 3

[0103] Figure 8 A structural block diagram of a device for playing multimedia files according to another embodiment of the present invention is shown. The device 1100 for playing multimedia files may be a host server with computing capabilities, a personal computer PC, or a portable portable computer or terminal. The specific embodiments of the present invention do not limit the specific implementation of the computing nodes.

[0104] The device 1100 for playing multimedia files includes a processor (processor) 1110 , a communication interface (Communications Interface) 1120 , a memory (memory) 1130 and a bus 1140 . Wherein, the processor 1110 , the communication interface 1120 , and the memory 1130 communicate with each other through the bus 1140 .

[0105] The communication interface 1120 is used for communicating with network devices, where the network devices include, for example, a virtual machine management center, shared storage, and the like.

[0106] The processor...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method and device for playing a multimedia file. The method comprises the steps of obtaining a to-be-played multimedia file; demultiplexing the multimedia file; initializing a hardware decoder according to format information of demultiplexing data; decoding the demultiplexing data by employing the hardware decoder; and rendering decoding data by employing a hardware renderer. According to the method and device for playing the multimedia file, under the condition that most of the multimedia files can be played, software decoding can be replaced by hardware decoding, and therefore, an occupation rate of a CPU (Central Processing Unit) can be reduced. A local software algorithm is replaced by GPU hardware acceleration, therefore the memory overhead of a system can be reduced, the load of the system can be reduced, the power consumption resulting from playing the multimedia file can be reduced, the delay phenomenon or no response phenomenon of an APP occurred in the playing process can be avoided, the user experience is improved, and the higher-definition multimedia file can be played by more mid-and-lower-end machines.

Description

technical field [0001] The invention relates to the field of information technology, in particular to a method and device for playing multimedia files. Background technique [0002] The packaging formats of multimedia files include MP4, MOV, FLV, AVI, MKV, and RMVB. These encapsulation formats mark the encapsulation protocol used by the multimedia file, so that the application layer uses the corresponding demultiplexer to separate the audio and video of the multimedia file. Different encapsulation protocols adopt different parameter standards, such as HeaderSlice, HeaderInfo or HeaderIndex, etc. These parameters can be used to analyze the basic information of multimedia files, such as whether there are audio and subtitles, the track information of the file, and so on. These basic information can be used to initialize the relevant parameters of the demultiplexer, so that the player can correctly separate the audio and video data through the demultiplexer, so that it can be d...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04N19/127H04N19/169H04N19/196
CPCH04N19/127H04N19/188H04N19/196
Inventor 李琛吴建平李庆燕彭伟刚林岳顾思斌潘柏宇王冀
Owner ALIBABA (CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products