《Pro Android Graphics》讀書筆記之第二節
Android Digital Video: Formats, Concepts and Optimization
Android Digital Video Formats: MPEG4 H.264 and WebM VP8
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 直播流
Android VideoView and MediaPlayer Class: Video Players
MediaPlayer:在包android.media中。
VideoView:在包android.widget中,direct subclass of the Android SurfaceView(具體介紹請參考書)。
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(類似於圖片的概念)。
計算影片大小:每幀的大小*幀率*時間
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 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)。
Digital Video Files for Android: Resolution Density Targets
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。
Optimizing Digital Video: Codecs and Compression
decode codec
professional solution(專業解決方案(不到1000刀))
EditShare Lightworks 11(open source)
Creating Your Video Assets: Using Terragen 3 3D Software
Planetside
Creating Uncompressed Video: Using VirtualDub Software
VirtualDub Video(需要花費大量時間)
Compressing Your Video Assets: Using Sorenson Squeeze
從AVI到MP4(H264)(文中例子:壓縮比達到120:1)
Installing a Video Asset in Android: Using the Raw Folder
Referencing the Video Asset in Your Android Application
Uri splashScreenUri = Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.pag480portrait);
(VideoView)splashScreen.setVideoURI(splashScreenUri);
MediaController splashScreenMediaController = new MediaController(this);
相關文章
- 《Effective Java 第二版》讀書筆記Java筆記
- JVM讀書筆記之OOMJVM筆記OOM
- 《Maven實戰》之讀書筆記Maven筆記
- JVM讀書筆記之記憶體管理JVM筆記記憶體
- MySQL 8.0 Reference Manual(讀書筆記68節--Deadlocks)MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記90節--Replication)MySql筆記
- 讀書筆記筆記
- 《數學之美》讀書筆記&思考筆記
- 《讀書與做人》讀書筆記筆記
- MySQL 8.0 Reference Manual(讀書筆記63節--InnoDB Locking)MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記64節--InnoDBTransaction Model)MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記65節--InnoDBLocks Set)MySql筆記BloC
- MySQL 8.0 Reference Manual(讀書筆記45節--Optimization Overview)MySql筆記View
- MySQL 8.0 Reference Manual(讀書筆記94節--Replication(5))MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記93節--Semisynchronous Replication)MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記67節--Phantom Rows)MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記92節--Replication(3))MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記91節--Replication(2))MySql筆記
- 《Java8實戰》-讀書筆記第二章Java筆記
- webpackDemo讀書筆記Web筆記
- Vue讀書筆記Vue筆記
- 散文讀書筆記筆記
- Cucumber讀書筆記筆記
- HTTP 讀書筆記HTTP筆記
- postgres 讀書筆記筆記
- 讀書筆記2筆記
- 讀書筆記3筆記
- JVM讀書筆記之java記憶體結構JVM筆記Java記憶體
- MySQL 8.0 Reference Manual(讀書筆記80節-- InnoDB Row Formats)MySql筆記ORM
- MySQL 8.0 Reference Manual(讀書筆記69節--InnoDB Startup Configuration)MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記56節--Optimizing Database Structure)MySql筆記DatabaseStruct
- MySQL 8.0 Reference Manual(讀書筆記54節--Optimization and Indexes(1))MySql筆記Index
- MySQL 8.0 Reference Manual(讀書筆記55節--Optimization and Indexes(2))MySql筆記Index
- MySQL 8.0 Reference Manual(讀書筆記53節--Optimizing SQL Statements)MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記41節-- Data Types(3))MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記40節-- Data Types(2))MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記39節-- Data Types(1))MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記57節--Optimizing for InnoDB Tables)MySql筆記
- JVM讀書筆記之垃圾收集與記憶體分配JVM筆記記憶體