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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
6
2.5k
About Flutter Architecture
wasabeef
1
290
2023 Flutter/Dart Summary
wasabeef
0
110
I/O Extended 2023 - Dart と Flutter の新機能
wasabeef
0
210
I/O Extended 2023 - Flutter 活用事例
wasabeef
10
3.1k
What it Takes to be a Flutter Developer
wasabeef
0
220
FlutterKaigi 2022 Keynote
wasabeef
1
660
Flutter Hooks を使ったアプリ開発 / App Development with the Flutter Hooks
wasabeef
2
1.5k
Flutter 2021 の振り返りと今後のアプリ開発に向けて / Looking back on Flutter 2021 and for future app development.
wasabeef
4
2.2k
Other Decks in Programming
See All in Programming
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
430
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
高速開発のためのコード整理術
sutetotanuki
1
370
CSC307 Lecture 04
javiergs
PRO
0
650
Kotlin Multiplatform Meetup - Compose Multiplatform 외부 의존성 아키텍처 설계부터 운영까지
wisemuji
0
180
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
110
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
440
メルカリのリーダビリティチームが取り組む、AI時代のスケーラブルな品質文化
cloverrose
2
510
Data-Centric Kaggle
isax1015
2
750
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
11
6.3k
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
190
Featured
See All Featured
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.9k
The Limits of Empathy - UXLibs8
cassininazir
1
210
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
75
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Designing for humans not robots
tammielis
254
26k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
117
100k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
110
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
120
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
430
Joys of Absence: A Defence of Solitary Play
codingconduct
1
280
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