Turn Android video playback the difference between soft and hard solutions

Source: Internet
Author: User

    • Hard solution, play with your own player, Videoview in Android
    • Soft solutions, using audio and video decoding libraries, such as FFmpeg
First, hard decoding

Hard Solution: is to call the GPU dedicated module encoding to solve, reduce CPU operation, CPU and other hardware requirements are relatively low point. The soft solution requires CPU operation, which increases the CPU power consumption in disguise. hardware decoding is the original all the CPU to process the video data part of the GPU to do, and the GPU parallel computing power is much higher than the CPU, so that can greatly reduce the load on the CPU, CPU occupancy rate is low, you can run some other programs at the same time.
For Android devices, the more recently used SoCs are Qualcomm, HiSilicon and MediaTek, which are mostly integrated with many functions, CPU, GUP, DSP, ISP including video decoding, audio decoding and so on, so we are talking about SOC instead of CPU directly. At present, the CPU integration of the mobile phone is very high, the following is our big Huawei's sea-view Kylin 950 composition diagram:

We can see that this SOC integrates a separate audio and video decoding unit.

Second, soft decoding

Soft decoding: that is, the software allows the CPU to decode the video, that is, through the CPU to run the video codec code, our most common video soft decoding open source to see is ffmpeg:

      • FFmpeg official website: https://ffmpeg.org/

      • Domestic ffmpeg Tutorial: Rai (leixiaohua1020) column

      • Currently FFmpeg based open source player has B station Ijkplayer, tutorial please step: http://blog.csdn.net/u010072711/article/details/51728537

Turn Android video playback the difference between soft and hard solutions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.