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

令和の時代におけるライブ動画サービスの作り方 / How to build your Live video streaming service in Reiwa era

Taro Hirose
September 28, 2022
57

令和の時代におけるライブ動画サービスの作り方 / How to build your Live video streaming service in Reiwa era

hoge

Taro Hirose

September 28, 2022
Tweet

Transcript

  1. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Taro HIROSE Manager, Snr. Solutions Architect Digital Native Business - Internet Media Amazon Web Services Japan G.K. 令和の時代における ライブ動画サービスの作り方 AWS Tech talk Night #2 動画配信/SaaS/Game/FinTech領域における最新アーキテクチャ
  2. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. ⾃⼰紹介 廣瀬 太郎 (Taro HIROSE) 所属 • Manager, DNB-IM Solutions Architect • いわゆる "Web 系" のお客様を担当 • 前職は動画事業の基盤設計/開発/運⽤に従事 好きな AWS サービス • Amazon Interactive Video Service (Amazon IVS) • AWS Elemental Media Services • Amazon CloudFront プライベート • 2児の⽗、⼦育てまっさなか • ランニングはじめました • Dolby Atmos 対応の 4K TV + Soundbar を導⼊ @uorat tarohirose
  3. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. https://speakerdeck.com/uorat/20171212-jawsug-container-lt https://speakerdeck.com/uorat/20170601-aws-devday-tokyo-openrec 事業会社のエンジニア時代の活動
  4. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. AWS の SA としての活動例 – Thought Leadership 動画配信や AWS の Media Services に 関する基礎キャッチアップにどうぞ︕ https://a.co/3HwGWue https://aws.amazon.com/jp/aws-jp-introduction/aws-jp-webinar-service-cut/
  5. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. ライブ動画配信の近年のトレンド 時流の変化に伴い、配信スタイルも年々形を変えている • 配信者層の変化 • クリエイターの裾野が広がる • 主要端末はスマートフォン • リモート化 • コロナ禍により在宅活動が活性化
  6. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. ライブ動画配信の近年のトレンド 時流の変化に伴い、配信スタイルも年々形を変えている • 配信者層の変化 • クリエイターの裾野が広がる • 主要端末はスマートフォン • リモート化 • コロナ禍により在宅活動が活性化 → 配信数の増減の激しい UGC (User-Generated Content) への対応
  7. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. 配信数の増減の激しい UGC への対応 配信数などのカスタムメトリクスに基づき拡張縮退させる コントロールプレーンが必要 Broadcaster#1 Broadcaster#1 Broadcaster#1 Live Transcoder Cluster ON AIR ON AIR ON AIR ライブソースを持続接続で受け続ける 開始も終了も配信者次第 Compute-heavy 費⽤最適のため常時稼働は避けたい 先回りしたスケーリングは必要
  8. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. 同時配信数が増減するワークロードへの対処例 MEDIA-OPTIMZED STORAGE & SIMPLE ORIGINATION AWS Elemental MediaStore DISTRIBUTION Amazon CloudFront DISPLAY DEVICES REAL-TIME PROCESSING AWS Elemental MediaLive Input/Channel #1 Input/Channel #2 Input/Channel #3 SOURCE Live Channel Live #1 Live #2 Live #3 start/stop Channel Request CHANNEL MANAGER AWS Lambda Amazon DynamoDB Amazon API Gateway
  9. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Solutions Architect の活動例 • 顧客が抱える課題の聴取、解決策の検討、提案 • アーキテクチャの設計支援、クラウドへの移行支援 • アーキテクチャの最適化(コスト、性能、運用性、可用性、セキュリティ) Trusted Partner 1 • 技術調査/検証 • 技術的な コンテンツ作成 • トレーニングやイベントへの登壇で 啓蒙 Technical Thought Leadership 2 • 世界中のアーキテクトと密に連携し、技術的な課題を克服 • 顧客課題/ニーズをフィードバックし、サービスの改善・進化 を支援する Platform Improvement 3
  10. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Pace of Innovation – 加速する新機能の追加 160 280 516 722 1,017 1,430 1,957 2,345 2,757 3,084 2012年 2013年 2014年 2015年 2016年 2017年 2018年 2019年 2020年 2021年 AWSの提供する90%のサービスや機能はお客様からのご要望をもとに開発、 残りの10%もお客様の潜在的な要望を汲み取って作られています
  11. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Interactive Video Service (Amazon IVS) 素早く簡単にセットアップできるマネージドライブストリーミングサービス ストリーミングソフトウェアを使⽤してライブストリームを Amazon IVS に送信するだけで、 超低遅延のライブ動画を世界中で視聴できるようにするために必要なすべてをサポート https://aws.amazon.com/about-aws/whats-new/2020/07/introducing-amazon-ivs/ https://aws.amazon.com/blogs/aws/amazon-interactive-video-service-add-live-video-to-your-apps-and-websites/ https://aws.amazon.com/jp/blogs/news/amazon-interactive-video-service-launch-seminar/
  12. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. ライブ動画配信の近年のトレンド 時流の変化に伴い、配信スタイルも年々形を変えている • 配信者層の変化 • クリエイターの裾野が広がる • 主要端末はスマートフォン • リモート化 • コロナ禍により在宅活動が活性化 → 簡単に配信できる環境の提供
  13. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon IVS が Mobile Broadcast SDK for iOS/Android をサポート ネイティブアプリケーションから IVS にライブストリームを 打ち上げるための Broadcast SDK • iOS と Android 両プラットフォームをサポート • ネットワーク環境にあわせて⾃動的にビットレートを調整 • ポートレート (縦向き) とランドスケープ (横向き) に対応 • カメラやマイク、スクリーンキャプチャ、アプリ内のオーディオや ビデオなど複数の⼊⼒ソースを利⽤できるミキサー機能を搭載 https://aws.amazon.com/about-aws/whats-new/2021/07/amazon-interactive-video-service-adds-live-broadcasting-ios-android/ https://docs.aws.amazon.com/ivs/latest/userguide/broadcast-ios.html https://docs.aws.amazon.com/ivs/latest/userguide/broadcast-android.html Your Application w/ Amazon IVS broadcast SDK Amazon Interactive Video Service RTMPS
  14. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon IVS が Web ブラウザ向けの Broadcast SDK をサポート Web ブラウザ上のアプリケーションから映像送出が可能 • OBS など別のライブエンコーダーが不要に • エンドユーザーに⾼い IT リテラシーを強いることなく 簡単にライブ動画配信できる機能を実装できるように • Chrome, Firefox, Edge, Safari をサポート プロトコルは WebRTC を採⽤ • 従来 (RTMPS) とは異なるエンドポイントが提供される https://aws.amazon.com/about-aws/whats-new/2022/07/amazon-interactive-video-service-includes-web-broadcast-sdk/ https://aws.amazon.com/blogs/media/broadcast-from-a-browser-with-the-amazon-ivs-web-broadcast-sdk/ https://aws.github.io/amazon-ivs-web-broadcast/
  15. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. ライブ動画配信の近年のトレンド 時流の変化に伴い、配信スタイルも年々形を変えている • 配信者層の変化 • クリエイターの裾野が広がる • 主要端末はスマートフォン • リモート化 • コロナ禍により在宅活動が活性化 → 複数の話者の対話をマス配信
  16. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. ビデオミーティングのマス配信ライブ配信実装例 ビデオミーティングサービスから、ライブトランスコーダーに送出する Amazon Interactive Video Service AWS Elemental MediaLive AWS Elemental MediaStore AWS Elemental MediaPackage Amazon CloudFront Amazon Chime SDK User A User B User B Video Meeting Layer AWS Fargate (bot user) • headless browser • capture • encode & ingest Broadcasting Layer Pipeline – Amaozn IVS Pipeline – AWS Elemental MediaLive https://aws.amazon.com/blogs/opensource/how-to-deploy-a-live-events-solution-built-with-the-amazon-chime-sdk/ https://github.com/aws-samples/amazon-chime-meeting-broadcast-demo
  17. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Amazon Chime SDK が IVS & MediaLive への出力をサポート Chime SDK 上のビデオ会議を IVS や MediaLive に出⼒できるように • ビデオ会議のキャプチャ (録画) や結合などをバックグラウンドで処理する Media pipelines の⼀機能 (Live connector) • RTMP(S) に対応するライブプラットフォーム (Youtube, Twitch) もサポート • 最⼤ FHD (1080p30) のビデオ出⼒に対応 複数の話者が登場するビデオ通話やテレビ会議を、 多くの視聴者向けにライブ配信することがより容易に https://aws.amazon.com/about-aws/whats-new/2022/08/amazon-chime-sdk-streaming-ivs-elemental-medialive/ https://aws.amazon.com/blogs/business-productivity/amazon-chime-sdk-launches-live-connector-for-streaming/ Amazon Interactive Video Service AWS Elemental MediaLive AWS Elemental MediaStore AWS Elemental MediaPackage Amazon CloudFront Amazon Chime SDK Pipeline – Amaozn IVS Pipeline – AWS Elemental MediaLive Audiences RTMPS RTMP
  18. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Take away 時流の変化に伴い、ライブ動画の配信スタイルも年々形を変えている ⼀⽅で、ソリューションの幅や機能も VERSION UP している 当時必要だったワークアラウンド (回避策) が今では不要になっていることも AWS のサービスや機能の 90% はお客様の声から⽣まれている
  19. © 2022, Amazon Web Services, Inc. or its Affiliates. All

    rights reserved. Thank you! 令和の時代におけるライブ動画サービスの作り⽅ AWS Tech talk Night #2 Taro HIROSE @uorat tarohirose