天天看点

《Pro Android Graphics》读书笔记之第二节Android Digital Video: Formats, Concepts and Optimization

   h.263 支持老显示器

mpeg4 sp  

supported for commercial video(支持商业视频)

3gp

google在2.3.3中加入对webm的支持

video stream 4.0以后版本

recommend using mpeg-4 h.264 avc

webm 直播流

mediaplayer:在包android.media中。

videoview:在包android.widget中,direct subclass of the android surfaceview(具体介绍请参考书)。

pixels, resolution, aspect ratios, color depth, alpha channels, pixel blending, image compositing, and even data footprint optimization(类似于图片的概念)。

计算影片大小:每帧的大小*帧率*时间

  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 this higher bit rate exhibits a higher visual quality level. more modern 4g networks claim to be between 3 and 6 mbits/s(3g networks deliver between 600 kbits/s and 1.5 mbits/s, so, on average, these will be 1.5 mbits/s and classified as a medium data pipe)。

dpi:density pixel imagery

for digital video, this also includes different target bit rates, so that you can try to fit all of the different device screen densities and the different processing power capabilities of single-core through quad-core cpu product offerings。

decode  codec

professional solution(专业解决方案(不到1000刀))

editshare lightworks 11(open source)

planetside 

virtualdub video(需要花费大量时间)

从avi到mp4(h264)(文中例子:压缩比达到120:1)