Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Apple Low-Latency HLSを使った 超低遅延配信について

Shumpei Urabe
September 12, 2020

Apple Low-Latency HLSを使った 超低遅延配信について

iOSDC Japan 2020
https://iosdc.jp/2020/

Shumpei Urabe

September 12, 2020
Tweet

More Decks by Shumpei Urabe

Other Decks in Technology

Transcript

  1. w όοΫϘʔϯωοτϫʔΫ஗Ԇ w #(1ʹΑΔܦ࿏޿ใͰɺҰ෦ܦ࿏ʹো֐͕ൃੜͯ͠ϑΣΠϧΦʔόʔ΍ΠϯλʔωοτΤΫενΣϯδͷ᫔᫓ w *41͔Βࢹௌऀ·Ͱͷ஗Ԇ w ϑϨοπ/(/ͷ10* 111P& ͷ᫔᫓ɺޫͷ఻ૹ଎౓ɺ௨৴ܦ࿏ͷύέοτϩε

    w Τϯίʔυɾσίʔυ஗Ԇ w ෳࡶੑ͕ߴ·ΔΞϧΰϦζϜʹͳΕ͹ͳΔ΄ͲɺΤϯίʔυ΍σίʔυ͕஗ΕΔ w ࠶ੜόοϑΝϦϯά w ࠶ੜ͢Δ·Ͱ͋Δఔ౓όοϑΝΛͨΊΔ͕ɺόοϑΝ͕ͳ͘ͳͬͯ͘ΔͱɺҰ࣌ఀࢭ͠ɺόοϑΝ͕ͨΊऴΘΔ·Ͱ଴ͭ w $%/໰୊ w $%/ΛڬΉ৔߹ɺ$%/͸ΦϦδϯ͔Βऔಘ͠ɺΩϟογϡ͞ΕΔ·ͰԠ౴Λฦ͞ͳ͍৔߹ʹ஗Ԇ͢Δ ͳͥ஗Ԇ͢Δͷ͔
  2. w "QQMF͕։ൃ w 3'$ͱͯ͠ඪ४Խ w NVͷϓϨΠϦετͰ഑৴ w .1&(54'SBHNFOUFE.1 HTTP Live

    Streaming .BTUFS1MBZMJTU .FEJB1MBZMJTU 4FHNFOU 4FHNFOU .FEJB1MBZMJTU 4FHNFOU 4FHNFOU .FEJB1MBZMJTU MJTUNV QNV UT UT QNV UT UT QNV
  3. w "71MBZFSͩͱ࠷௿ͭηάϝϯτΛ ઌʹಡΈࠐΉඞཁ͕͋Δ w ηάϝϯτ͕શ෦ಡΈऴΘΒͳ͍ͱ ࠶ੜͰ͖ͳ͍ HTTP Live Streaming .BTUFS1MBZMJTU

    .FEJB1MBZMJTU 4FHNFOU 4FHNFOU .FEJB1MBZMJTU 4FHNFOU 4FHNFOU .FEJB1MBZMJTU MJTUNV QNV UT UT QNV UT UT QNV
  4. w 1FSJTDPQFࣾ 5XJUUFS ͕ఏҊ w 54ϑΝΠϧΛ)551Ͱ$IVOLFE 5SBOTGFS&ODPEJOH $5& ͢Δ͜ͱͰઌʹ ΫϥΠΞϯτଆͰड͚औΕΔ

    w ࣍ͷηάϝϯτ͕Τϯίʔυ͢ΔલʹϚχ ϑΣετʹॻ͘ Community LL-HLS .BTUFS1MBZMJTU .FEJB1MBZMJTU 4FHNFOU 4FHNFOU 1MBZ 1MBZ MJTUNV QNV UT $MJFOU UT $MJFOU $IVOL $IVOL
  5. w ͜ͷΞϓϩʔν͸౰ֵ໋࣌తͩͬͨ w ͜ΕΛ͖͔͚ͬʹ&95913&'&5$)͕ ੜ·Εͨ w ͜ΕʹΑΓɺΫϥΠΞϯτͷόοϑΝϦϯ άͱηάϝϯτͷऔಘΛಉ࣌ʹߦ͑ΔΑ͏ ʹͳͬͨ Community

    LL-HLS .BTUFS1MBZMJTU .FEJB1MBZMJTU 4FHNFOU 4FHNFOU 1MBZ 1MBZ MJTUNV QNV UT $MJFOU UT $MJFOU $IVOL $IVOL
  6. w ͜Ε·Ͱ"QQMF)-4ͷଞʹ*40ඪ४ͷ.1&(%"4)ͱ͍͏ϑΥʔ Ϛοτ͕͋ͬͨ w ͜ΕΒͷϑΥʔϚοτΛ౷Ұ͢ΔͨΊʹ$PNNPO.FEJB "QQMJDBUJPO'PSNBU $."' ͕ࡦఆ͞Εͨ w $."'Ͱ͸ɺ*40#BTF.FEJB'JMF'PSNBU

    *40#.'' ͕࢖ΘΕ Δ͜ͱ͕ܾΊΒΕ͓ͯΓɺ)-4΍%"4)Ͱ͸GSBHNFOUFE.1͕࢖ ΘΕ͍ͯΔ w $."'ʹΑΓɺ)-4ͱ%"4)Ͱಉ͡ηάϝϯτΛ࢖͏͜ͱ͕Ͱ͖ɺ ϚχϑΣετΛม͑Δ͚ͩͰ྆ํରԠ͢Δ͜ͱ͕Մೳʹͳͬͨ Common Media Application Format .BTUFS1MBZMJTU .FEJB1MBZMJTU *OJUJBM4FHNFOU 4FHNFOU 4FHNFOU .FEJB1MBZMJTU 4FHNFOU 4FHNFOU MJTUNV QNV NT QNV NT JOJUNT NT NT
  7. w 88%$Ͱൃදɻඪ४Խ͸͞Ε͓ͯΒͣɺ ESBGUQBOUPTIMTSGDCJTͱͯ͠ެ։ɻ w ௕͍ͷͰɺ"QQMF--)-4΍"-)-4ͳͲͱ΋ݺ͹ΕΔ w ͜Ε·Ͱͷ)-4͔Βେ෯ʹ࢓༷มߋ͞Εͨ w ैདྷͷ)-4ͱͷେ͖ͳҧ͍͸ɺϚχϑΣετʹ 1BSUJDBM4FHNFOU͕هࡌ͞Ε͍ͯΔ

    w ͜ΕʹΑΓɺΫϥΠΞϯτ͸Τϯίʔυ௚ޙͷηά ϝϯτΛऔಘՄೳʹͳͬͨ Apple Low-Latency HLS .BTUFS1MBZMJTU .FEJB1MBZMJTU 1BSUJDBM4FHNFOU @UT 1MBZ 1MBZ 1BSUJDBM4FHNFOU @UT 1BSUJDBM4FHNFOU @UT 1BSUJDBM4FHNFOU @UT 1BSUJDBM4FHNFOU @UT 1BSUJDBM4FHNFOU @UT MJTUNV QNV 4FHNFOU $MJFOU 4FHNFOU $MJFOU
  8. w "QQMF--)-4͸ޙํޓ׵͕͋Δ w "QQMF--)-4ͷϚχϑΣετʹ͸ɺ௨ৗͷ ηάϝϯτͱ1BSUJDBM4FHNFOUͷ྆ํ͕ॻ ͍͍ͯΔ w ͦͷͨΊɺඇରԠΫϥΠΞϯτ͸௨ৗͷ )-4ͱಉ͘͡ηάϝϯτΛಡΈࠐΉɹ Apple

    Low-Latency HLS .BTUFS1MBZMJTU .FEJB1MBZMJTU 1BSUJDBM4FHNFOU 1MBZ 1MBZ 1BSUJDBM4FHNFOU 1BSUJDBM4FHNFOU 1BSUJDBM4FHNFOU 1BSUJDBM4FHNFOU 1BSUJDBM4FHNFOU 4FHNFOU 4FHNFOU MJTUNV QNV UT $MJFOU UT $MJFOU
  9. w "QQMF--)-4͸)551Λඞਢͱ͢Δ w )551ʹΑΓɺѹॖ͕͏·͘ಇ͖ɺϑΝ Πϧͷ఻ૹ͕εϐʔσΟʔʹͳΔ Apple Low-Latency HLS .BTUFS1MBZMJTU .FEJB1MBZMJTU

    1BSUJDBM4FHNFOU 1MBZ 1MBZ 1BSUJDBM4FHNFOU 1BSUJDBM4FHNFOU 1BSUJDBM4FHNFOU 1BSUJDBM4FHNFOU 1BSUJDBM4FHNFOU 4FHNFOU 4FHNFOU MJTUNV QNV UT $MJFOU UT $MJFOU
  10. w &9591"35Ͱɺ1BSUJDBM4FHNFOUΛهࡌ w &9591"35*/'1"355"3(&5Ͱɺ֤1BSUJDBM 4FHNFOUͷฏۉతͳ௕͞Λॻ͘ w %63"5*0/͸1BSUJDBM4FHNFOUͷ௕͞ w 1BSUJDBM4FHNFOUʹؔͯ͠͸63*͚ͩͰͳ͘#ZUF 3BOHFࢦఆ΋Մೳ

    355࡟ݮ  w *ϑϨʔϜ͕ೖ͍ͬͯΔ1BSUJDBM4FHNFOUʹ͸ */%&1&/%&/5:&4Λૠೖ͢Δ EXT-X-PART Video Tech Deep-Dive: Live Low Latency Streaming Part 3 - Low-Latency HLS (https://bitmovin.com/live-low-latency-hls/)͔ΒҾ༻
  11. w $"/#-0$,3&-0"%:&4 w ෦෼ηάϝϯτ͕ར༻ՄೳʹͳΔ·ͰɺΫϥΠΞϯτ͸ϚχϑΣετΛߋ৽͠ͳ͍ w $"/4,*16/5*- w ඵ·ͰͷηάϝϯτΛεΩοϓ͢Δ w 1"35)0-%#"$,

    w ࠷ޙ͔Βඵલͷ1BSUJDBM4FHNFOUΛ࠶ੜ͢Δɻͨͩ͠*ϑϨʔϜ͔Β࢝·Δඞཁ͕͋ΔͷͰɺͦͷதͰ*ϑϨʔ Ϝ͕͋Δηάϝϯτ͕બ͹ΕΔɻ Ωϟογϡώοτ޲্ EXT-X-SERVER-CONTROL
  12. w &9593&/%*5*0/3&1035͸ϨϯσΟγϣϯʹؔ͢Δ৘ใΛ௨ ஌ͯ͘͠ΕΔ w 63*͸ϓϨΠϦετͷ63* w -"45.4/͸࠷ޙͷ1BSUJDBM4FHNFOUͷ൪߸ w -"451"35͸ύʔτΠϯσοΫε w

    ͜ΕΛ࢖͏ͱɺผͷϨϯσΟγϣϯΛ࠶ੜ͢ΔࡍʹϚελʔϓϨ ΠϦετΛݟʹߦ͔ͳͯ͘΋͙͢ʹ࠶ੜ͢Δ͜ͱ͕Ͱ͖Δ EXT-X-RENDITION-REPORT Video Tech Deep-Dive: Live Low Latency Streaming Part 3 - Low-Latency HLS (https://bitmovin.com/live-low-latency-hls/)͔ΒҾ༻