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

Fragmented MP4のおはなし

Fragmented MP4のおはなし

Streaming Conference #2で発表したスライドです。
https://streaming-lab.connpass.com/event/79586/

Shumpei Urabe

April 25, 2018
Tweet

More Decks by Shumpei Urabe

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ w ϝςΦ !NFUFPS@TBBO  w ෱ԬʹॅΜͰ͍Δେֶ೥ੜ w ઐ໳͸ࣗવݴޠॲཧ w

    ࠷ۙͷझຯ͸6%1ͷύέοτଛࣦ࣌ͷϦΧόʔʹؔ͢Δݚڀ w ๭ࣾͰϥΠϒ഑৴ج൫ͷߏஙʹؔΘ͍ͬͯͨ
  2. )551-JWF4USFBNJOH w "QQMF͕։ൃɻ w 3'$ͱͯ͠ඪ४Խɻ w NVϓϨΠϦετΛ࢖ͬͯ഑৴ɻ w .1&(54'SBHNFOUFE.1 .BTUFS1MBZMJTU

    .FEJB1MBZMJTU 4FHNFOU 4FHNFOU .FEJB1MBZMJTU 4FHNFOU 4FHNFOU .FEJB1MBZMJTU MJTUNV QNV UT UT QNV UT UT QNV
  3. w .1&(-"͕։ൃɻ w *40*&$ͱͯ͠ඪ४Խɻ w 9.-Ͱॻ͔Εͨ.1%ϑΝΠϧΛ࢖͏ɻ w 'SBHNFOUFE.1 .1&(54 .1&(%"4)

    %ZOBNJD"EBQUJWF4USFBNJOHPWFS)551 .BOJGFTU *OJUJBM4FHNFOU 4FHNFOU 4FHNFOU .BOJGFTU 4FHNFOU 4FHNFOU .BOJGFTU MJTUNQE JOJUNT NT NT MJTUNQE NT NT MJTUNQE
  4. 'SBHNFOUFE.1 w GUZQGJMFUZQF w TJEYJOEFYPGNPPG NEBU w NPPGIFBEFSEBUB w NEBUBVEJPWJEFPEBUB

    GUZQ NPPW NWIE USBL NEBU NPPG NGIE USBG 7JEFP%BUB 'SBHNFOUFE.1 ॳظԽηάϝϯτ JOJUNT ηάϝϯτϑΝΠϧ NT
  5. 'SBHNFOUFE.1 w )-4ͷ৔߹ɺ&9597&34*0/͔ Βαϙʔτ͞Ε͍ͯΔ J04Ҏ্  w &959."1ͰॳظԽηάϝϯτΛ ࢦఆ͢Δ͚ͩ w

    .1&(54ͷͱ͖ͱϑΥʔϚοτ͸ ͋·ΓมΘΒͳ͍ #EXTM3U #EXT-X-VERSION:4 #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-MAP:URI=“init.mp4" #EXTINF 10.001 segment1.mp4 #EXTINF 10.001 segment2.mp4
  6. 'SBHNFOUFE.1 w .1&(%"4)ͷ৔߹͸ݩʑαϙʔτ ͞Ε͍ͯΔ w *OJUJBMJ[BUJPO4PVSDF63-ʹॳظԽη άϝϯτΛࢦఆ͠ɺ4FHNFOU63-ʹ அยϑΝΠϧΛࢦఆ͢Δ͚ͩ <?xml version="1.0"?>

    <MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500S" type="static" mediaPresentationDuration="PT0H9M56.466S" maxSegmentDuration="PT0H0M4.000S" profiles="urn:mpeg:dash:profile:full:2011"> <ProgramInformation moreInformationURL="http:// gpac.sourceforge.net"> <Title>./output.mpd</Title> </ProgramInformation> <Period duration="PT0H9M56.466S"> <AdaptationSet segmentAlignment="true" maxWidth="320" maxHeight="180" maxFrameRate="30" par="16:9" lang="und"> <ContentComponent id="1" contentType="video" /> <ContentComponent id="2" contentType="audio" /> <Representation id="1" mimeType="video/mp4" codecs="avc3.640014,mp4a.40.2" width="320" height="180" frameRate="30" sar="1:1" audioSamplingRate="48000" startWithSAP="1" bandwidth="631708"> <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash: 23003:3:audio_channel_configuration:2011" value="2"/> <SegmentList timescale="1000" duration="4000"> <Initialization sourceURL=“init.mp4”/> <SegmentURL media=“segment1.m4s”/> <SegmentURL media=“segment2.m4s”/> </SegmentList> </Representation> </AdaptationSet> </Period> </MPD>
  7. $PNNPO.FEJB"QQMJDBUJPO'PSNBU w $."'Ͱ͸)551ͷ$IVOLFE5SBOTGFS &ODPEJOHΛ࢖͏ w ηάϝϯτϑΝΠϧΛߋʹ෼ׂͨ͠΋ͷΛνϟ ϯΫͱݺͿ w ηάϝϯτϑΝΠϧ͕Τϯίʔμ͔Βશͯૹ ৴͞ΕΔલʹɺνϟϯΫΛΫϥΠΞϯτଆͰ

    ࠶ੜ͢Δ NEBU NPPG NGIE USBG 7JEFP%BUB 'SBHNFOUFE.1 ηάϝϯτϑΝΠϧ NT νϟϯΫ NTͷҰ෦ NEBU NPPG NGIE USBG 7JEFP NEBU NPPG NGIE USBG 7JEFP NEBU NPPG NGIE USBG 7JEFP
  8. $PNNPO.FEJB"QQMJDBUJPO'PSNBU w νϟϯΫͷେ͖͞͸ࣗ༝ͳͷͰɺΑΓ௿஗ԆΛ࣮ ݱ͍ͨ͠ͳΒখ͍͞αΠζͰ۠੾Δ͜ͱ΋Մೳ w νϟϯΫΛ࠶ੜ͢Δʹ͸ɺηάϝϯτͷμ΢ϯϩʔ υ͕׬ྃ͢Δલʹ$IVOLFE5SBOTGFSͰड͚औͬ ͨσʔλΛ࠶ੜόοϑΝʹඇಉظͰ௥Ճ͢Δඞཁ ͕͋Δ w

    ͦͷͨΊɺ࣮ࡍʹ࠶ੜग़དྷΔϓϨΠϠʔ͕গͳ͍ NEBU NPPG NGIE USBG 7JEFP%BUB 'SBHNFOUFE.1 ηάϝϯτϑΝΠϧ NT νϟϯΫ NTͷҰ෦ NEBU NPPG NGIE USBG 7JEFP NEBU NPPG NGIE USBG 7JEFP NEBU NPPG NGIE USBG 7JEFP