SRT – How the hot new UDP video protocol actually works under the hood

It’s been a great year at The Broadcast Knowledge growing to over four thousand followers on social media and packing in 250 new articles. So what better time to look back at 2020’s most popular articles as we head into the new year?

It’s fair to say that SRT has seen a lot of interest this year. This was always going to be the case as top-tier broadcasters are now adopting a ‘code as infrastructure’ approach. whereby transmission chains, post-production and live-production workflows are generated via APIs in the cloud, ready for temporary or permanent use. Seen before as the perfect place to put your streaming service, the cloud is increasingly viewed as a viable option for nearly all parts of the production chain.

Getting video in and out of the cloud can be done without SRT, but SRT is a great option as it seamlessly corrects for missing packets which can get lost on the route. How it does this, is the topic of this talk from Alex Converse from Twitch. In the original article on this site, one of the highest-ranking this year, it’s also pitched as an RTMP replacement.

RTMP is still heavily used around the world and like many established technologies, there’s an element of ‘better the devil you know’ mixed in with a reality that much equipment out there will never be updated to do anything else. However, new equipment is being delivered with technologies such as SRT which means that getting from your encoder to the cloud, can now be done with less latency, with better reliability and with a wider choice of codecs than RTMP.

SRT, along with RIST, is helping transform the broadcast industry. To learn more, watch Alex’s video and then look at our other articles and videos on the topic.

Speaker

Alex Converse Alex Converse
Streaming Video Software Engineer,
Twitch

Video: 2019 What did I miss? – SRT

We’re looking at the most popular posts of 2019 now as The Broadcast Knowledge takes a break over the holiday season. Twitch’s Alex Converse had one of the most visited posts of the year in his video detailing how SRT works. It’s a great technical resource for developers and engineers wanting to understand more than just the highlights of SRT. Did it do well because it was Alex? Because the San Francisco’s Video Tech meet up is a well known part of Demuxed’s community for ‘engineers working with video’ or because its title? Any or all of these could be true and it wouldn’t invalidate it’s usefulness or its popularity. So if you haven’t already, read more about it here, or click play below.

Another SRT talk of interest this year you may want to catch up on was the IBC SRT Open Source Technical panel which looked at the general SRT features and looked at the pros and cons against SRT. The panel looked at a case study with Red Bee Media and South American broadcaster Globo and the use of RTP and SRT together. Read more detail here or click here to watch for free

Speaker

Alex Converse Alex Converse
Streaming Video Software Engineer,
Twitch

Video: SRT – How the hot new UDP video protocol actually works under the hood

In the west, RTMP is seen as a dying protocol so the hunt is on for a replacement which can be as widely adopted but keep some of it’s best parts including relatively low latency. SRT is a protocol for Secure, Reliable Transport of streams over the internet so does this have a role to play and how does it work?

Alex Converse from Twitch picks up the gauntlet to dive deep into the workings of SRT to show how it compares to RTMP and specifically how it improves upon it.

RTMP fails in many ways, two to focus on are that the spec has stopped moving forward and it doesn’t work well over problematic networks. So Alex takes a few minutes to explain where SRT has come from, the importance of t being open source and how to get hold of the code and more information.

Now, Alex starts his dive into the detail reminding us about UDP, TS Packets and Ethernet MTUs has he goes down. We look at how SRT data packets are formed which helps explain some of the features and sets us up for a more focussed look.

SRT, as with other, similar protocols which create their resilience by retransmitting missing packets, need to use buffers in order to have a chance to send the missing data before it’s needed at the decoder. Alex takes us through how the sender and receiver buffers work to understand the behaviour in different situations.

Fundamental to the whole protocol is packet the packet acknowledgement and negative acknowledgements which feature heavily before we discuss handshaking as we start our ascent from the depths of the protocol. As much as acknowledgements provide the reliability, encryption provides the ‘secure’ in Secure Reliable Transport. We look at the approach taken to encryption and how it relates to current encryption for websites.

Finally, Alex answers a number of questions from the audience as he concludes this talk from the San Francisco Video Tech meet-up.

Watch now!

Speaker

Alex Converse Alex Converse
Streaming Video Software Engineer,
Twitch

Video: AAC Demystified: How the AAC audio codec works and how to make sense of all its crazy profiles.

The title says it all! Alex Converse speaks here at the San Fancisco Video Tech meet up while he was working at Google discussing the ins and outs of AAC – and since he implemented an AAC decoder himself, he should know a thing or two about it.

Sure enough, Alex delivers by talking about the different version of AAA that have been around since MPEG 2 AAC through to the high efficiency AACs we have seen more recently.

Walking through the AAC Encoder block diagram we look at each of the different sections from sampling, MDCT (a type of Fourier transform) to psychoacoustic processing, stereo processing and more.

We then start to look at the syntax for the way the streams are structured which brings us in to understanding the AAC channel modes, and the enhanced mechanisms for encoding and processing used by the later versions of AAC including HE-AAC V2.

Alex finished with quick look at low delay codecs and a Q&A.

A great, detailed, overview of AAC. Ideal for developers and those who need to fully understand audio.

Watch now!

Speaker

Alex Converse Alex Converse
Senior Software Engineer,
Twitch