Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Live Streaming for Android
Search
Daichi Furiya (Wasabeef)
September 16, 2016
Programming
5
500
Live Streaming for Android
Introduction to Live Streaming
Daichi Furiya (Wasabeef)
September 16, 2016
Tweet
Share
More Decks by Daichi Furiya (Wasabeef)
See All by Daichi Furiya (Wasabeef)
DevFest Tokyo 2025 - Flutter のアプリアーキテクチャ現在地点
wasabeef
5
1.9k
About Flutter Architecture
wasabeef
1
240
2023 Flutter/Dart Summary
wasabeef
0
73
I/O Extended 2023 - Dart と Flutter の新機能
wasabeef
0
180
I/O Extended 2023 - Flutter 活用事例
wasabeef
10
3k
What it Takes to be a Flutter Developer
wasabeef
0
200
FlutterKaigi 2022 Keynote
wasabeef
1
600
Flutter Hooks を使ったアプリ開発 / App Development with the Flutter Hooks
wasabeef
2
1.4k
Flutter 2021 の振り返りと今後のアプリ開発に向けて / Looking back on Flutter 2021 and for future app development.
wasabeef
4
2.2k
Other Decks in Programming
See All in Programming
コード書くの好きな人向けAIコーディング活用tips #orestudy
77web
3
330
エンジニア向け採用ピッチ資料
inusan
0
140
Beyond Portability: Live Migration for Evolving WebAssembly Workloads
chikuwait
0
380
アンドパッドの Go 勉強会「 gopher 会」とその内容の紹介
andpad
0
250
KotlinConf 2025 現地で感じたServer-Side Kotlin
n_takehata
1
220
イベントストーミング図からコードへの変換手順 / Procedure for Converting Event Storming Diagrams to Code
nrslib
1
150
たった 1 枚の PHP ファイルで実装する MCP サーバ / MCP Server with Vanilla PHP
okashoi
0
140
Cline指示通りに動かない? AI小説エージェントで学ぶ指示書の書き方と自動アップデートの仕組み
kamomeashizawa
1
560
社内での開発コミュニティ活動とモジュラーモノリス標準化事例のご紹介/xPalette and Introduction of Modular monolith standardization
m4maruyama
1
130
F#で自在につくる静的ブログサイト - 関数型まつり2025
pizzacat83
0
310
無関心の谷
kanayannet
0
180
CursorはMCPを使った方が良いぞ
taigakono
0
150
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
660
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Java REST API Framework Comparison - PWX 2021
mraible
31
8.6k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Why Our Code Smells
bkeepers
PRO
337
57k
Become a Pro
speakerdeck
PRO
28
5.4k
Designing Experiences People Love
moore
142
24k
Scaling GitHub
holman
459
140k
Producing Creativity
orderedlist
PRO
346
40k
Raft: Consensus for Rubyists
vanstee
140
7k
Making the Leap to Tech Lead
cromwellryan
134
9.3k
Site-Speed That Sticks
csswizardry
10
650
Transcript
Live Streaming for Android wasabeef Shibuya.apk #10
About me Daichi Furiya Google Developer Expert AbemaTV, Inc. wasabeef
@wasabeef_jp
Streaming?
HLS MPEG-DASH Microsoft Smooth Streaming RTMP Streaming?
Streaming? HLS HLS Encryption, Ads, Meta Encode, BroadCast Transcode, HLS
RTMP
Video compression
Video compression 30fps 1sec 60KB × 30 = 1.8MB 1min
1.8MB × 60 = 108MB 1hour 108MB × 10 = 1.1GB 60KB 65KB 55KB 50KB
Video compression 60KB 5KB 2KB 7KB 30fps 1sec 60KB +
(4KB × 30) = 180KB 1min 60KB + (4KB × 1800) = 7.2MB 1hour 7.2MB × 10 = 72MB
Video compression Be impossible ;(
Key Frame Be possible :)
Video structure Video Audio Meta Butterfly…? Discovered
Format
Container format
.avi .mp4 .mkv .ogg .flv etc.. Container format Video H.264
H.265 Divx VP9 Audio AAC WMA Voribis PCM Caption SAMI, SMIL Hi-Caption CMML, DXFP Meta Date Author Title
Video codec
H.264/MPEG-4 AVC H.265/HEVC VP9 Video Codec
8K 300fps Half the size of AVC Android 5.+ H.265/HEVC
Audio codec
MP3 AAC Vorbis Audio Codec
HTTP Live Streaming
Apple Adaptive bitrate streaming MPEG2-TS H.264/AAC HLS
playlist.m3u8
#EXTM3U #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=200000 gear1/prog_index.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=311111 gear2/prog_index.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=484444 gear3/prog_index.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=737777 gear4/prog_index.m3u8 playlist.m3u8
playlist.m3u8 gear1/prog_index.m3u8 BANDWIDTH: 200000 Header gear2/prog_index.m3u8 BANDWIDTH: 311111 gear3/prog_index.m3u8 BANDWIDTH:
484444 gear4/prog_index.m3u8 BANDWIDTH: 737777
#EXTM3U #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:0 #EXTINF:10, no desc fileSequence0.ts #EXTINF:10, no desc
fileSequence1.ts #EXTINF:10, no desc ~~~ 2-179.ts ~~~ fileSequence180.ts #EXT-X-ENDLIST playlist.m3u8
ts?
Transport Stream (ts) fileSequence0.ts Container (2sec 〜 10sec)
playlist.m3u8 FileSequence1.ts Length: 5sec FileSequence2.ts Length: 5sec FileSequence3.ts Length: 5sec
FileSequence4.ts Length: 5sec Header Footer
playlist.m3u8 FileSequence1.ts Length: 5sec FileSequence2.ts Length: 5sec ad.ts Length: 5sec
FileSequence3.ts Length: 5sec Header Footer
Dynamic Adaptive Streaming over HTTP
Microsoft, Netflix, Google, Ericsson, Samsung, Adobe Adaptive bitrate streaming MP4,
WebM, MPEG2-TS MPEG-DASH
<mdp> - Root manifest.mdp <period> - A start time and
duration. <AdaptationSet> - Audio/Video content <Representation> - Bitrate and Aspect
DRM
WideVine
Google Modular (Android 4.3+) Classic (Android 3+) MPEG-DASH SurfaceView WideVine
PlayReady
MicroSoft PlayReady HLS Android 3+ TextureView PlayReady
ExoPlayer
Google OSS HLS, MPEG-DASH, SmoothStreaming WideVine (4.3+) https://github.com/google/ExoPlayer ExoPlayer
Amazon OSS Bug fix https://github.com/amzn/exoplayer-amazon-port ExoPlayer Amazon Port
Conclusion
Thank you. twitter.com/wasabeef_jp wasabeef.jp github.com/wasabeef