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

Leveraging Open Source to Create Virtual Live Channels from On-Demand Video

Leveraging Open Source to Create Virtual Live Channels from On-Demand Video

5dc4abe3dc14c25021ff2295fc380d73?s=128

Flávio Ribeiro

July 01, 2020
Tweet

Transcript

  1. Leveraging Open Source to Create Virtual Live Channels from On-Demand

    Video July, 2020
  2. @flavioribeiro /in/flavioribeiro /flavioribeiro Flavio Ribeiro Director of Engineering, Video Technology

    Group ViacomCBS Digital
  3. None
  4. None
  5. None
  6. None
  7. AGENDA • Why? • How?

  8. WHY? • recycle on-demand catalog • possible new revenue streams

    • pop-up channels • personalized channels • cheap "rundown/playout" alternative • cheap (no encoding) streaming alternative
  9. ON THE FLY PACKAGING from https://open.nytimes.com/improving-our-video-experience-part-one-our-on-demand-video-platform-cf818e03353d

  10. OUR DEPLOYMENT

  11. OUR DEPLOYMENT

  12. Goofy is a R&D Project For Virtual 24/7 Linear Channels

    from VoD Assets
  13. Architecture AWS S3 Scheduler Playout MP4 MP4 MP4 Google Cloud

    Storage MP4 MP4 MP4 File Streamer https://github.com/nytimes/gcs-helper https://github.com/crunchyroll/evs-s3helper
  14. SCHEDULER • REST API • Mediainfo ◦ calculate asset duration

    • detect overlap/content collision
  15. SCHEDULER $ http POST http://scheduler <<< ' { "title": "STAR

    TREK SEASON 01 EP 01", "airing_time_start": "2020-07-01T18:14:52Z", "renditions": [ { "label": "720p", "url": "http://gcs-helper:2000/proxy/STARTREK_S01E01_720p.mp4" }, { "label": "540p", "url": "http://gcs-helper:2000/proxy/STARTREK_S01E01_540p.mp4" }, { "label": "360p", "url": "http://gcs-helper:2000/proxy/STARTREK_S01E01_360p.mp4" }, ]
  16. None
  17. PLAYOUT • fetch & display "rolling window" of scheduled content

    • format JSON payload expected by the NGINX VOD Module
  18. PLAYOUT $ http GET http://playout { "clipSegments": [305, 305], "durations":

    [3045000, 3049000], "clipTimes": [ 1593174206000, 1593618600000, ], "currentTime": 1593618583000, "discontinuity": true, "initialClipIndex": 890, "initialSegmentIndex": 84913, "playlistType": "live", "sequences": [ { "clips": [ {"path": "/proxy/STARTREK_S01E01_720p.mp4", "type": "source"}, {"path": "/proxy/STARTREK_S01E02_720p.mp4", "type": "source"} ], "language": "eng" }, { "clips": [ {"path": "/proxy/STARTREK_S01E01_640p.mp4", "type": "source"}, {"path": "/proxy/STARTREK_S01E02_640p.mp4", "type": "source"} ], "language": "eng" } ] }
  19. PLAYOUT $ http GET http://playout { "clipSegments": [305, 305], "durations":

    [3045000, 3049000], "clipTimes": [ 1593174206000, 1593618600000, ], "currentTime": 1593618583000, "discontinuity": true, "initialClipIndex": 890, "initialSegmentIndex": 84913, "playlistType": "live", "sequences": [ { "clips": [ {"path": "/proxy/STARTREK_S01E01_720p.mp4", "type": "source"}, {"path": "/proxy/STARTREK_S01E02_720p.mp4", "type": "source"} ], "language": "eng" }, { "clips": [ {"path": "/proxy/STARTREK_S01E01_640p.mp4", "type": "source"}, {"path": "/proxy/STARTREK_S01E02_640p.mp4", "type": "source"} ], "language": "eng" } ] } from scheduler airing time since epoch # of clips in the past (+1) # of segments in the past sum(clip durations) / segment length
  20. NGINX http { vod_mode mapped; vod_upstream_location /goofy-playout-map; vod_hls_segment_file_name_prefix "segment"; vod_segment_duration

    10000; vod_align_segments_to_key_frames on; vod_live_window_duration 60000; upstream goofy-playout { server playout:2828; } server { listen 80; server_name localhost; location /goofy-playout-map { rewrite ^/goofy-playout-map/h/(.*)$ /$2 break; proxy_pass http://goofy-playout; proxy_http_version 1.1; proxy_set_header Connection ""; } location /h { vod hls; add_header Access-Control-Allow-Headers '*'; add_header Access-Control-Allow-Methods 'GET, HEAD, OPTIONS'; add_header Access-Control-Allow-Origin '*'; } }
  21. NGINX http { vod_mode mapped; vod_upstream_location /goofy-playout-map; vod_hls_segment_file_name_prefix "segment"; vod_segment_duration

    10000; vod_align_segments_to_key_frames on; vod_live_window_duration 60000; upstream goofy-playout { server playout:2828; } server { listen 80; server_name localhost; location /goofy-playout-map { rewrite ^/goofy-playout-map/h/(.*)$ /$2 break; proxy_pass http://goofy-playout; proxy_http_version 1.1; proxy_set_header Connection ""; } location /h { vod hls; add_header Access-Control-Allow-Headers '*'; add_header Access-Control-Allow-Methods 'GET, HEAD, OPTIONS'; add_header Access-Control-Allow-Origin '*'; } } point vod module to the playout service Initiate vod module in mapped mode create a location for the hls delivery
  22. None
  23. FUTURE • UI/CMS for linear "programming"

  24. None
  25. FUTURE • UI/CMS for linear "programming" • ads support (via

    scte-35 manifest decoration)
  26. FUTURE • UI/CMS for linear "programming" • ads support (via

    scte-35 manifest decoration) • support for mixed "real" live and virtual live
  27. FUTURE • UI/CMS for linear "programming" • ads support (via

    scte-35 manifest decoration) • support for mixed "real" live and virtual live • support for personalized slots on the linear feed • DASH (variant bitrates on the VOD library)
  28. Thanks!