Understanding Livestreaming and Video on the Internet

Real Time Messaging Protocol

The world of video on the internet has a complex history behind it and has been lead by a few major players. At the forefront of most things we do with technology are protocols. The earliest widespread protocol for transferring incremental chunks of video over the internet was RTMP. This protocol empowered the transfer of data over a persistent connection with relatively low latency communication.

A lot of major platforms depend on RTMP to power the delivery of media to their users. Although the succession of ordered images has long since become the standard for entertainment, education and news, it often is not considered critical for consumers or even content creators to be privy to the technology itself.

What is RTMP?

RTMP is the necessary technology that allows for efficient real time transfer of packets in a format that is readable as Video data. It allows for a stream of bytes to be transferred over a persistent connection using TCP.

What is TCP?

TCP utilizes the 3-way handshake process to establish connection between computers. When you send an email or access a website you are almost always using TCP. Due to the prevelance of HTTP, even though the use case of streaming video of UDP would be ideal, most media platforms use TCP for media transfer.

What is UDP?

UDP is an alternate protocol for transferring data from computer to computer. It does not require a handshake. A simple example would be VOIP voice calls. It is not feasible or so important - in most cases - to ensure that every packet of audio is transferred and the other side has received it. The other major streaming protocol besides RTMP is WebRTC. WebRTC uses UDP based connections for transferring packet data during calls. WebRTC allows for faster time-sensitive transfer of video between clients and sends smaller packet sizes.

If UDP is faster why use TCP?

It seems fair that if UDP is often faster and lighter, why not use it for all use cases? You can have a higher throughput, get less delay on data transferred and transmit fixed size packets without worrying about the receipt of all the bytes. It seems that UDP is superior.

Here's the thing: because HTTP is the standard it makes it simple for developers to work with TCP based requests.

Here are a few other reasons why TCP is more widely adopted:

  • Simple solution for Network Address Translation on Internet routers
  • Packets delivered in order expected by client
  • Reliable transfer of lost packets
  • Congestion control to ensure throttling of overburdened streams with high packet loss

The internet largely relies on TCP because of the reasons above, even though in some ways UDP might seem more ideal.

Quick Fact

Companies such as Netflix would rely on shipping physical DVDs up until the advent of high bandwidth internet and improved protocols that would materially transform their entire way of doing business.

Staying privy to where the industry has came from and where it is progressing is one of the main factors that generates entirely new businesses. Without being informed on the protocols and technological patterns in development there is no meaingful way for your Internet business to understand where to go.

RTMP vs WebRTC

RTMP

RTMP was the first protocol that empowered livestreaming across the web. Several channels are specified such that packets can be sent to transmit video data, audio data, fragment size control messages and more. This allows for the protocol to sent data in an organized fashion such that the client understands how to handle the incoming data. Video data is chopped up and then sent over this low latency protocol. It can be distributed to millions of clients with a latency under 5 seconds. You will see this often used when watching movies or sports online.

WebRTC

WebRTC is an acronym for Web Real-Time Communications. It was introduced to allow peer to peer video streaming amongst small amounts of computers. It has a very low latency which allows for live conversation between clients and because of its peer to peer nature it allows for delivery without the assistance of intermediary servers. It is not ideal for distributing live video to millions of clients. Think of a video meeting over the web.

MPEG-DASH and HLS

While RTMP is the commonly used protocol for livestreaming video to millions of clients over the internet, the schema of the data must be defined for major Media Platforms. As much as we may think of a video as a simple file to be shared in chunks, modern requirements necessitate that we explicitly define information such as video resolution, audio files and captions.

For this we require a playlist file. This is not necessarily a playlist that plays multiple unique videos, rather it encapsulates data such that the video player or application can accomodate different viewer contexts. First there is MPEG-DASH (Dynamic Streaming over HTTP). Once the server receives the input for the livestream from the streamer it is transcoded and referenced in this playlist file.

HLS (HTTP Live Streaming) is a protocol created by Apple which achieves the same use case as MPEG-DASH but for Apple products primarily. Currently the most common and optimal video encoding for streaming over the internet is H.264.

As a provider of Media Content over the web you must support both. Ontop of being redundant, having concurrency and being positioned to process millions of streams of incoming video at a time, we must create both MPEG-DASH and HLS formats because we don't know the device the client is using.

VAST and VMAP

The final aspect we will cover in this article is Advertising. In order to satisfy the needs of Advertisers and Streaming over the internet, the web required a standard for delivering advertisements to clients. With this we use Video Ad Serving Templates and Video Multiple Ad Playlists.

What is VAST?

With Ad delivery it is ultimately up to the client player to decide how to handle these files but these files help in describing when and how ads should play along with what endpoints should be notified when certain actions occur. With a VAST tag we define tracking events for a single advertisement or video such as the start, first quartile, midpoint, pause, meta, fullscreen and etc to keep track of how users are interacting with advertisements. By doing this we can keep a statistical reference for advertisers on how their videos are performing and we of course can act on this information and make judgement calls programmatically to decide what ads are best to share with users.

What is VMAP?

Using VMAP we can define a series of advertisements that should be played during any video. We use this to empower dynamic ad insertion on the client side. The tag should provide a timeline with the unique advertisement video files to play at parts in the video. All of this requires the Ad server to understand the video it is preparing advertisements for and either guessing what points to place the advertisements or using a timeline model on a video.

We can define pre-rolls and post-rolls such that advertisements play before or after the video playback. With this level of control your business can determine exactly when and how videos are played. You may hear the schema "VPAID" but the Interactive Advertising Buerau has opted to deprecate VPAID which should be better for the community. The complexity of operating an Ad server to manage VAST and VMAP ontop of a Video Transcoding server is more than enough. Due to error rates with the interface and the difficulty in applying VPAID to mobile it has not been so favoured by publishers.

To be brief, VPAID allowed for the definition of rich interactive in-stream advertisements. You would be able to define interactive ads say for example a form or a survey or maybe multiple sections of the same ad. It would be fired using a line pointing to a javascript file. These functionalities are slowly being adopted in more secure methods to VAST and at Tycoon we are committed to ensuring our Advertising servers are compliant with IAB standards so that your advertisers can trust the implementation of their campaigns on your platform.

Certified Industry Specialists in TV Application Development to Serve Your Platform

This is just a short overview of the technologies required to own a Content Media platform. There are many other aspects such as video archival, user relationships, computer mediated communication, text mining and natural language processing for published content and more. When it is more efficient to "shadow-ban" bad players that negatively affect advertisers or serve content users are more likely to appreciate this all encompasses the myriad of requirements you need to build a Livestreaming platform. Here is an exhaustive list of some - and not even close to 1/10th - of requirements:

  • An ETL Pipeline that can ingest hundreds of User Video Uploads in a performant asynchronous way
  • Intaking User Inputs during or after the Video has Uploaded for survey processing
  • Quick and Efficient Credit Card Storage on a PCI Compliant Database for reuse on product offerings
  • Integrated Advertisement Server Functionality with Continuous Ad Playback that does not interrupt Video Time Tracking
  • CDN Delivery of Video Content in relevant user geographic locations
  • Redundant Load Balancing and Reverse Proxying Requests
  • Simple Admin Management of all User Actions, Content and Products on Platform
  • Caching of High Throughput Data like Chat and Purchases on Relevant Backend Technologies
  • License Management for Particular Content Creators that Require Control on how much your business is contractually allowed to stream their content
  • Monetization for user content creators and quick payment to their bank account
  • Monetization of the platform for your business to get paid to your businesses bank account
  • Prototyping Development and Delivery of New Features on Development environments
  • Content Creator Managed Donations and Product Offerings
  • Indexing SEO Visibility to the World Wide Web to drive Traffic to your Platform
  • Simple Newsletter Services that Leverage your SMTP Setup to communicate with Users
  • Support for Majority of Video File Formats and Transformation of those into Manifest files that are compatible with all Modern Platforms
  • Automatic AI Filtering of Bad/Pornographic/Violent Content You don’t want Users to see
  • AI Generation of Captions for Platform Accessibility
  • Automatic Generation of Video Thumbnails during Video Processing
  • Generic Announcement Page Templating so you can point users to standalone Update Pages
  • Advertisement Creation portals that allow for Advertisers to create Advertising Campaigns
  • Daily Invoicing of Advertisers and deactivation of their Advertising Campaigns on charge failure

One of the most detrimental factors of building a TV Platform over the Internet is not having the right skillset to solve the immense set of problems that such a project presents. Our professionals have a proven track record of delivered projects in media, streaming, TV, content management and many niche industries to serve you and your team. These skills include:

Concurrent Pipelines for MPEG-DASH & HLS Playlist Generation
Comprehensive Campaign Management and Payment Processing for Advertising Servers
IAB Certified Advertising Server Engineers for Digital Ad Operations
Database Specialization with PL/pgSQL, Vector and Graph Knowledge
Cyber Security CISSP Certification
Extensive Experience with Media Recommendation Algorithms Development
Stop using overpriced Video ETL Pipelines from Expensive Vendors with Complex Integration Documentation.
Let your collaborators publish content quick and easy.

Learn how much your business could make

How much money you make depends on your companies' content and viewership. Based on your platforms current following and catalogue you can get a brief estimate on some of the returns your company would be getting with a live platform.

You can forecast how much your company might make by using our tool here.

Monthly Platform Service

$64.99
USD
 / MONTH

Hosting Services required to serve Platform to sub - 5,000 customers

Monthly Rate up to a limit of 50 videos and 5,000 users. $249.99 for sub 1 million customers. Contact for rates over 1 million monthly customers
Plus Metered Rates for Storage, Delivery and more are detailed on pricing page above
Complete documentation for assistance in development of the Presentation Layer of your Platform
24/7 Support on Integration and Frontend Platform strategy Consultation

Optional Premium Development Support

Bespoke Development of Enterprise Features for scale

When you use the Tycoon Systems Livestreaming Services Platform & API you get a Platform on your own domain that is ready for delivery. If you want functionality built for your vertical or specific use case we can build it for you.
Database Engineering for Media Catalogues and Content Licensing
Large Scale Concurrency Pipelines for Media Ingestion and Delivery
Locally Running AI Inference on internal GPU's to Support Neural Network Wrappers on Platform
Contact for Pricing on this development service

Launch with Tycoon

To request a sales call, inquire about our services, schedule a demo please reach out to us at admin@tycoon.systems or schedule a meeting below: