• SaharaMaleikuhm@feddit.org
    link
    fedilink
    arrow-up
    3
    arrow-down
    3
    ·
    2 months ago

    Cause you need to insert it every time for every viewer. People get different ads and those ads obviously change over time. So embedding one ad into the video permanently makes no sense. I’m pretty sure YouTube does it the way they do cause the alternative is not feasible.

    • EveningPancakes@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      2 months ago

      You can still do dynamic ad serving in a stream stitched integration. It’s just that the content and the ads are being served by the same CDN, hence why you can’t block the ads without also blocking the content. In the manifest file there are m3u8 chucks, the file is essentially broken up into 5/10 second chunks, and when the video segment chunk is coming to an ad break, it stitches in dynamically an ad m3u8 chunk that the ad server dynamically selects based on the ads they currently have trafficked in their system.

    • h4lf8yte
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      That wouldn’t make sense in the case of hls since the stream consists of multiple fragments of a video and you would just insert the ad fragments. This would only require changing the index file which could be done again and again with no effort and needs no reencoding of the video file.