More Related Content What's hot (20)
PPTX
Azure API Management 鯵議マニュアル
F崗 貧梳 ?
PDF
アナザ`エデンにおける掲揖豚オ`トセ`ブを喘いた宥佚棋ちストレスのないゲ`ム悶Yのg
gree_tech ?
PDF
仟たなgitのブランチモデル仝Git Feature Flow々Git Flow,Git Hub Flow,Git Lab Flowを階えれるか
naoki koyama ?
More from Moriyoshi Koizumi (20)
PPTX
Authentication, Authorization, OAuth, OpenID Connect and Pyramid
Moriyoshi Koizumi ?
堰晦皆について岑っていることを三します3. HLSとは
? HTTP Live Streaming の待
? ざっくり冱うと、HTTPを聞って匯違議なインタ`ネットラジオと揖じ勣
Iで啝を塘佚する室g
? 2009定にAppleがiOS3に兜めて喜dした。
? IETF Internet Draft
? Androidなどでのサポ`トもあり、モバイルデバイスではデファクトの
ストリ`ミング圭塀となっている
5. おっさんのためのHLSのs雰
? 1999定 SoundJam MP
? MacOS9喘の mp3 プレイヤ`
? Stream playback capability
? 2000定 Apple が SoundJamMP _k圷の Casady & Greene, Inc. I
? 2001定1埖 iTunes 1.0
? SoundJam MPがベ`ス
7. HLSの古廷
MPEG2 TS segment
Playlist (.m3u8)
MPEG2 TS segment
MPEG2 TS segment
MPEG2 ts segment
MPEG2 ts segment
MPEG2 ts segment 啝のエンコ`ド
RTMPなどでサ`バに僕佚
プレイリストの伏撹
セグメント晒
プレイリストのiみzみ、
セグメントのiみzみと壅伏
8. HLSの撹勣殆
? MPEG2TS セグメント
MPEG2 Transport Stream侘塀のコンテナに鯉{された俳りにされ
た啝デ`タ (ファイル)
コ`デックはH.264 (啝) AAC (咄蕗) が糞
? .m3u8ファイル
セグメントファイルの侭、壅伏rg、壅伏會などをhしたメタ
デ`タファイル
14. ffmpegでセグメントファイルを恬る
$ ffmpeg
-i "moriyoshi.mp4^
-map 0
-f ssegment
-vcodec libx264
-acodec aac -strict experimental
-segment_list stream.m3u8
-segment_time 4
segment-%03d.ts
秘薦ファイル
秘薦と竃薦のマッピング。竃薦ファイルが2N參貧あるので峺協が駅
TSファイルを伏撹したいのでstream segment 侘塀をxk
libx264を聞ってH.264でエンコ`ドする
咄蕗コ`デックはAAC
プレイリスト兆
セグメントの隔Arg。キ`フレ`ムが隔Arg
よりLいg侯になっているときはそちらが枠され
る。
16. ご社優でHLSのライブストリ`ミングをQう
3つの圭隈
1. AdobeのAdobe Media Serverを聞う
? http://www.adobe.com/products/adobe-media-server-family.html
? かつてFlash Media Serverとして咾辰討い壬u瞳
? 嶄附はJava Servlet + Apacheの鏡徭モジュ`ルなのでがっかりしないように
? AWS Marketplaceからgにせます
2. Red5 HLS プラグインを聞う
? https://github.com/Red5/red5-hls-plugin
? Red5はJavaでかれたメディアサ`バ`
? メンテナンスされていないXugglerというffmpegのラッパ`を聞っている
19. O協箭 (RTMP何蛍)
rtmp {
server {
listen 1935;
access_log /var/log/nginx/rtmp.access.log;
application test {
live on;
hls on;
hls_path /var/lib/nginx/hls/test;
hls_fragment 8;
hls_playlist_length 16;
hls_cleanup on;
}
}
}
20. O協箭 (HLS塘佚何蛍)
http {
include mime.types;
´
server {
listen 80;
´
location /.hls {
alias /var/lib/nginx/hls;
add_header Cache-Control no-cache;
}
}
}
http://example.com/.hls/test/{ストリ`ム兆}.m3u8
塘佚URL
22. 歌深Y創
? Lucas Gonze: A survey of playlist formats (November 17, 2003)
http://gonze.com/playlists/playlist-format-survey.html
? Michael Simon: The Complete iTunes History -- SoundJam MP to
iTunes 9 (November 09, 2009)
http://www.maclife.com/article/feature/complete_itunes_history_so
undjam_mp_itunes_9
? M3U and PLS Specification
http://forums.winamp.com/showthread.php?threadid=65772
? R. Pantos (Apple, Inc.): HTTP Live Streaming (May 1, 2009)
https://tools.ietf.org/html/draft-pantos-http-live-streaming-00