"Pro Android Graphics" second section of reading notes

Source: Internet
Author: User

Android Digital Video:formats, concepts and optimization Android digital Video formats:mpeg4 H. and WebM VP8h.263 support for older displays
MPEG4 SP
Supported for commercial video (support for commercial videos)
3GP
Google adds support for WEBM in 2.3.3
Version number after video Stream 4.0
Recommend using MPEG-4-H-AVC
WebM Live stream
        Android Videoview and MediaPlayer class:video Players

MediaPlayer: In the package Android.media.

Videoview: In package Android.widget, direct subclass of the Android Surfaceview (refer to the book for details).


The Foundation of Digital video:motion, Frames and FPS

Pixels, resolution, aspect ratios, color depth, alpha channels, pixel blending, image compositing, and even data footprint Optimization (similar to the concept of a picture).

Calculate Movie size: Size per frame * frame rate * Time


Digital Video conventions:bit Rates, Streams, SD, and HD

Internet 2.0 IP infrastructure is 1536 Kbits/second (1.5 MBPS, or megabits per second).

A faster data pipe is at least 2048 kbits/s, or 2 mbits/s or 2 MBPS, and video compressed at the higher bit rate exhibits A higher visual quality level. More modern 4G networks claim-be between 3 and 6 mbits/s (3G networks deliver between-kbits/s and 1.5 mbits/s, so, O n average, these'll be 1.5 mbits/s and classified as a medium data pipe).


Digital Video Files for android:resolution Density Targets

dpi:density Pixel Imagery

For digital video, this also includes different target bit rates, so-you can try to fit all of the different device s Creen densities and the different processing power capabilities of Single-core through Quad-core CPU product offerings.


Optimizing Digital Video:codecs and Compression

Decode codec

Professional solution (less than 1000 knives) (professional solution)

Editshare Lightworks (Open source)

Creating Your Video assets:using terragen 3 3D Software

PlanetSide


Creating uncompressed video:using VirtualDub software

VirtualDub Video (Takes a lot of time)


Compressing Your Video assets:using Sorenson Squeeze

from AVI to MP4 (H264) (sample: Compression ratio up to 120:1)

Installing a Video Asset in android:using the Raw Folder
Referencing the Video Asset in Your Android application


"Pro Android Graphics" second section of reading notes

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.