<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kavirajan ST on Medium]]></title>
        <description><![CDATA[Stories by Kavirajan ST on Medium]]></description>
        <link>https://medium.com/@kavirajantech?source=rss-ee79993d0579------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*0JWz69MRAcJ2JJs7TWpaUw.jpeg</url>
            <title>Stories by Kavirajan ST on Medium</title>
            <link>https://medium.com/@kavirajantech?source=rss-ee79993d0579------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:40:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kavirajantech/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[IMAX to OTT: The Intricacies of High-Resolution Film Encoding]]></title>
            <link>https://medium.com/av-transcode/imax-to-ott-the-intricacies-of-high-resolution-film-encoding-e150b858aa29?source=rss-ee79993d0579------2</link>
            <guid isPermaLink="false">https://medium.com/p/e150b858aa29</guid>
            <dc:creator><![CDATA[Kavirajan ST]]></dc:creator>
            <pubDate>Sun, 06 Aug 2023 11:32:31 GMT</pubDate>
            <atom:updated>2023-08-06T11:32:31.375Z</atom:updated>
            <content:encoded><![CDATA[<p>With IMAX theaters known for their colossal screens and immersive audio experiences, the task of compressing these experiences for our much smaller home screens seems herculean. Yet, thanks to advances in encoding technology and innovative engineering, it’s become a reality. Here’s a deep dive into the technical process of converting IMAX films for OTT platforms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F9iwHXl5k4g_3S7Utifrqg.png" /></figure><p><strong>Resolution Downscaling: From 18K to 4K</strong></p><p>IMAX cameras are beasts of resolution, often capturing imagery at up to 18K. But OTT platforms typically deliver content at 1080p to 4K resolutions. Therefore, one primary task is downscaling this resolution without losing detail. Advanced algorithms ensure that downscaling preserves the original visual quality, and special care is taken to avoid artifacts or detail loss.</p><p><strong>Aspect Ratio: Preserving the IMAX Signature</strong></p><p>IMAX’s aspect ratio, whether it’s 1.43:1 or 1.90:1, is a signature component of its visual experience. Converting this to more standard aspect ratios like 16:9 involves re-framing or cropping scenes. Edge detection algorithms ensure that the essential content within frames is not lost during this transformation.</p><p><strong>HDR Mapping: Retaining Luminance and Color Depth</strong></p><p>High Dynamic Range (HDR) is crucial in replicating the depth of IMAX visuals. IMAX films are mapped to HDR standards like HDR10 or Dolby Vision. Tone mapping algorithms are used, adapting the high luminance range of IMAX films to the capabilities of standard HDR-enabled screens, ensuring that the brightness, contrast, and colors remain vibrant.</p><p><strong>Bitrate and Compression: Making IMAX Streamable</strong></p><p>Given the enormous file size of IMAX films, they must undergo compression to be streamed efficiently. Advanced codecs like H.265 (HEVC) or AV1 are often used, which offer superior compression rates without significant quality loss. Adaptive bitrate streaming ensures viewers receive the highest quality stream their internet connection can handle.</p><p><strong>Spatial Audio: From 12 Channels Down to 5.1 or Stereo</strong></p><p>IMAX films come with up to 12 channels of spatial audio. Converting this for home theaters or headphones is a complex task. Audio engineers utilize downmixing strategies, ensuring the spatial essence of IMAX audio remains intact even in more compact formats like 5.1 or stereo.</p><p><strong>Quality Control: The Final Check</strong></p><p>Before releasing the encoded film on OTT platforms, thorough quality checks are conducted. These involve scrutinizing the video for artifacts, ensuring audio sync, and checking the fidelity of HDR conversions.</p><p><strong>Platform-specific Optimization</strong></p><p>OTT platforms, from Netflix to Hulu, have unique requirements for video and audio codecs, metadata, and even subtitle formats. Therefore, the encoded IMAX film undergoes further fine-tuning to fit the specs of each platform, ensuring seamless streaming.</p><p><strong>Conclusion</strong></p><p>The journey of transforming an IMAX film for OTT streaming is an intricate blend of art and technology. While it’s a challenge to fully replicate the grandeur of an IMAX theater on smaller screens, the meticulous encoding and optimization process ensures viewers receive the best possible rendition. The next time you stream an IMAX-originated movie on your favorite platform, you’ll know the engineering marvel that made it possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e150b858aa29" width="1" height="1" alt=""><hr><p><a href="https://medium.com/av-transcode/imax-to-ott-the-intricacies-of-high-resolution-film-encoding-e150b858aa29">IMAX to OTT: The Intricacies of High-Resolution Film Encoding</a> was originally published in <a href="https://medium.com/av-transcode">AV Transcode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is WebRTC and How to Setup STUN/TURN Server for WebRTC Communication?]]></title>
            <link>https://medium.com/av-transcode/what-is-webrtc-and-how-to-setup-stun-turn-server-for-webrtc-communication-63314728b9d0?source=rss-ee79993d0579------2</link>
            <guid isPermaLink="false">https://medium.com/p/63314728b9d0</guid>
            <category><![CDATA[peer-to-peer]]></category>
            <category><![CDATA[turn]]></category>
            <category><![CDATA[webrtc]]></category>
            <category><![CDATA[stun]]></category>
            <category><![CDATA[video-calling]]></category>
            <dc:creator><![CDATA[Kavirajan ST]]></dc:creator>
            <pubDate>Sun, 08 Mar 2020 14:58:51 GMT</pubDate>
            <atom:updated>2020-03-08T14:58:51.930Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*pUgYsvby8kOvmgBF2RhOlQ.jpeg" /></figure><p>In this article, let’s see in detail how to set up a STUN/TURN server for WebRTC communication. Before stepping into it, let us discuss in detail what is WebRTC, STUN, TURN and how are they linked with one another.</p><h3><strong>What is WebRTC?</strong></h3><p>WebRTC (Web Real-Time Communication) is a technology that allows Web browsers to stream audio or video media, as well as to exchange random data between browsers, mobile platforms, and IoT devices without requiring an intermediary.</p><p>WebRTC allows web applications to run features like:</p><ul><li>Video Conferencing</li><li>File Sharing</li><li>Screen Sharing</li><li>Broadcasting etc.</li></ul><p>In real-time communication, a Video Gateway has to be deployed over the Internet so any user must connect and send media fragments over RTP (Real-time Transport Protocol) ports without having specific issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*r_7R_uQzqTde79JKdTqJuA.png" /></figure><p>But sometimes this would not be sufficient because there are possibilities where some users might face connectivity issues because of different IP networks where Firewalls and NATs (Network Address Translators) could include specific network policies that will not allow RTC communications.</p><p>In order to solve this kind of network connection scenario, we need to use ICE (Interactive Connectivity Establishment) protocol and it defines a systematic way of finding possible communication options between a peer and the Video Gateway (WebRTC).</p><p>ICE (INTERACTIVE CONNECTIVITY ESTABLISHMENT) is a protocol used to generate media traversal candidates that can be used in WebRTC applications, and it can be successfully sent and received through Network Address Translation (NAT)s using STUN and TURN.</p><h3><strong>What is STUN?</strong></h3><p>STUN (Session Traversal Utilities for NAT) that complements ICE through NATs using UDP protocol. STUN allows applications to discover the presence and types of NATs and firewalls between them and on the public Internet. It can be used by any device to determine the IP address and port allocated to it by a NAT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*HmMdrpVBTP2vYMhrVOdNOw.jpeg" /></figure><p>Typically A STUN client can send messages to the STUN server to get the Public IP and ports information then STUN server retrieve that information. Using this Public IP and Port information clients will make a peer to peer communication through the internet.</p><h3><strong>What is TURN?</strong></h3><p>TURN (Traversal Using Relays around NAT) is a protocol that assists in the traversal of network address translators (NAT) or firewalls for webRTC applications. TURN Server allows clients to send and receive data through an intermediary server. The TURN protocol is the extension to STUN.</p><p>In a few cases, client communication endpoints are stuck behind different types of NATs, or when a symmetric NAT is in use, it may be easier to send media through a relay server and its called the TURN server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9ARIJ9Jfkscjji1SNQ4ig.jpeg" /></figure><p>Typically A TURN client first sends a message to a TURN server to allocate an IP address and port on the TURN server. Once the allocation has succeeded, the client will use the IP address and port number to communicate with peers. The TURN packet contains the destination address of the peer, then converts these packets as the UDP protocol packet and sends this to the peer.</p><p>TURN is most useful for Web, Mobile and IoT clients on networks masqueraded by symmetric NAT devices. But the TURN server cost is high because of the server utilization and huge bandwidth usage in the case where more client connections are established.</p><h3><strong>Setup STUN/TURN server using Coturn</strong></h3><p>Here you can find the following steps to install and configure the Coturn server.</p><p><strong>Step 1: Firewall rules to Open ports:</strong></p><p>First, make sure to open the following ports in the firewall or Cloud security Groups.</p><pre>3478 TCP &amp; UDP<br>49152–65535 UDP</pre><p><strong>Step 2: Coturn installation</strong></p><p>Coturn can be installed directly from the Ubuntu package repositories, so install it with the following command.</p><pre>$ sudo apt-get update<br>$ sudo apt-get install coturn</pre><p><strong>Step 3: Start the Coturn Daemon at Startup</strong></p><p>To let it auto-start at system boot time, modify /etc/default/coturn file.</p><pre>sudo nano /etc/default/coturn</pre><p>Find the following line and uncomment it by removing the # to run Coturn as an automatic system service daemon.</p><pre>#TURNSERVER_ENABLED=1</pre><p>Save and close the file. And you can then start the Coturn service by running</p><pre>$ systemctl start coturn</pre><p><strong>Step 4: Create a TURN user to Next, edit the main configuration file.</strong></p><p>Then open or create /etc/turnserver.conf file and paste the following content. Replace &lt;USERNAME&gt;, &lt;PASSWORD&gt; and &lt;PUBLIC_IP_ADDRESS&gt; values with your respective ones.</p><pre>fingerprint<br>user=&lt;USERNAME&gt;:&lt;PASSWORD&gt;<br>lt-cred-mech<br>realm=kurento.org<br>log-file=/var/log/turnserver/turnserver.log<br>simple-log<br>external-ip=&lt;PUBLIC_IP_ADDRESS&gt;</pre><p>Here you can find the below example of my own sample details for your references.</p><pre>fingerprint<br>user=kavirajan:123456<br>lt-cred-mech<br>realm=flickin.io<br>log-file=/var/log/turnserver/turnserver.log<br>simple-log<br>external-ip=98.112.65.70</pre><p><strong>Step 5: Restart the Coturn Service</strong></p><p>you can restart the service using the following command.</p><pre>$ sudo service coturn restart</pre><p><strong>Step 6: Testing Time</strong></p><p>Go to the Trickle ICE page and enter your own TURN server details.</p><pre>STUN or TURN URI: turn:&lt;PUBLIC_IP_ADDRESS&gt;:3478<br>TURN username: &lt;USERNAME&gt;<br>TURN password: &lt;PASSWORD&gt;</pre><p>Then click Add Server and then “Gather candidates” button. If you have configured everything correctly, you should see “Done” as the final result.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63314728b9d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/av-transcode/what-is-webrtc-and-how-to-setup-stun-turn-server-for-webrtc-communication-63314728b9d0">What is WebRTC and How to Setup STUN/TURN Server for WebRTC Communication?</a> was originally published in <a href="https://medium.com/av-transcode">AV Transcode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to add multiple audio tracks to a single video using FFMpeg Open-source Tool?]]></title>
            <link>https://medium.com/av-transcode/how-to-add-multiple-audio-tracks-to-a-single-video-using-ffmpeg-open-source-tool-27bff8cca30?source=rss-ee79993d0579------2</link>
            <guid isPermaLink="false">https://medium.com/p/27bff8cca30</guid>
            <category><![CDATA[video-encoding]]></category>
            <category><![CDATA[ffmpeg]]></category>
            <category><![CDATA[video-codec]]></category>
            <category><![CDATA[multiple-audio]]></category>
            <category><![CDATA[hls]]></category>
            <dc:creator><![CDATA[Kavirajan ST]]></dc:creator>
            <pubDate>Sat, 28 Dec 2019 13:43:30 GMT</pubDate>
            <atom:updated>2019-12-28T14:03:23.024Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A0yyiFj0HycsaGb1tMLSQw.png" /></figure><p>In this article, I’m going to help you learn how to add multiple audio tracks to a single video file using FFmpeg tool.</p><blockquote><em>In this fast-paced world, we must agree the fact most of us spending money like buying a tool or software even for small things that we can do it by ourselves just by writing a one-line command.</em></blockquote><p>Before digging deeper into the details, let’s just give a thought about why we should go for multiple audio tracks and how does this help?</p><h3><strong>Why go for multiple audio tracks?</strong></h3><p>Consider this, you have created a video and planning to run it for a presentation or upload it online for everyone to watch. Your audience might be from various demographics and you need to plan the audio tracks accordingly so that everyone would understand the video better.</p><p>Also let us say, in case your family/friends are comfortable or only understand their particular language, then we need to store individual video for every single audio file this will cost your storage size i.e language count * video storage (4 * 1.5GB = 6GB).</p><p>So Adding multiple audio tracks will help us to reduce storage size</p><h3><strong>About FFMPEG:</strong></h3><p>FFmpeg is a free and open-source project consisting of powerful audio and video converter software suite of libraries and programs for handling video, audio, and other multimedia files and streams.</p><h3><strong>Adding Multiple Audio tracks to single video using FFMPEG:</strong></h3><p>The below video tutorial explains in detail with step by step process of adding multiple audio tracks to a single video and this way you can add more audio files into a video file on your own.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQCRnMvd-rDU%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQCRnMvd-rDU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQCRnMvd-rDU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2952b409c69ba65b64e7716c89b0d5a/href">https://medium.com/media/c2952b409c69ba65b64e7716c89b0d5a/href</a></iframe><p>For the testing purpose, here I’ve taken Captain Marvel video trailer with default English audio and 3 audio tracks namely <strong>Tamil, Telugu and Hindi</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hdie-YEto1FxmaKUDhhQNQ.png" /></figure><h4><strong>The command for Multiple audio tracks:</strong></h4><p>The below command will convert single Video file captain-marvel-trailer.mp4 to multiple language audio tracks (English, Tamil, Telugu &amp; Hindi) multilanguage.mp4 file.</p><p>FFmpeg expects the language can be specified as an ISO 639–2/T or ISO 639–2/B (3 letters) code. ISO 639 is a set of international standards that lists shortcodes for language names.</p><pre>ffmpeg -i captain-marvel-trailer.mp4 -i tamil.mp3 -i telugu.mp3 -i hindi.mp3 -map 1 -map 2 -map 3 -metadata:s:a:0 language=eng -metadata:s:a:1 language=tam -metadata:s:a:2 language=tel -metadata:s:a:3 language=hin -codec copy multilanguage.mp4</pre><ul><li>Here -metadata:s:a:0 language=eng — indicating the English language for the first audio track.</li><li>In the same way, you can add metadata for all three languages namely Tamil, Telugu, and Hindi.</li><li>This command will support all types of video formats like MP4, MKV, AVI, etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RSUip2MUQgk-8X8twI7wXw.png" /></figure><p>The above image shows the preview screenshot of the video with multiple audio tracks for a single video.</p><blockquote>Comment your queries below. Happy Encoding. Save storage :)</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27bff8cca30" width="1" height="1" alt=""><hr><p><a href="https://medium.com/av-transcode/how-to-add-multiple-audio-tracks-to-a-single-video-using-ffmpeg-open-source-tool-27bff8cca30">How to add multiple audio tracks to a single video using FFMpeg Open-source Tool?</a> was originally published in <a href="https://medium.com/av-transcode">AV Transcode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build an OTT Streaming Platform with the Right Hardware & Software Requirements?]]></title>
            <link>https://medium.com/av-transcode/ott-multi-channel-live-streaming-deployment-hardware-software-infrastructure-requirements-ca0a13d879d9?source=rss-ee79993d0579------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca0a13d879d9</guid>
            <category><![CDATA[catch-up-tv]]></category>
            <category><![CDATA[live-streaming]]></category>
            <category><![CDATA[iptv]]></category>
            <category><![CDATA[ott]]></category>
            <category><![CDATA[live-tv]]></category>
            <dc:creator><![CDATA[Kavirajan ST]]></dc:creator>
            <pubDate>Sun, 18 Aug 2019 17:15:12 GMT</pubDate>
            <atom:updated>2020-06-21T08:50:40.064Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Build OTT Streaming Platform with the Right Hardware &amp; Software Requirements?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rRO5cuYhW4ax9zm3fqWKg.png" /></figure><p>This article covers in detail about the end to end implementation process right from Satellite TV to OTT Service. Also, I’ll be explaining briefly about the hardware and software that are used to capture, encode, transcode, and stream to deliver SD / HD / FULL HD content to a massive audience.</p><h3><strong>What is Satellite TV?</strong></h3><p>Satellite TV is nothing but a broadcast delivery based on the space satellites that are used to deliver signals. The TV stations transmit the program signals through an uplink satellite dish to the DVB satellite and then the signals are re-transmitted back to the earth. The signals are received by the hyperbolic shaped reflector antenna i.e C, Ku, Ka band and delivered to the TV sets.</p><h3><strong>What is OTT (Over the Top):</strong></h3><p>Over the Top (OTT) is the delivery of media and TV content directly delivered to the users through the internet even without the subscription to a traditional cable TV or satellite pay-TV service. OTT bypasses cable, broadcast, and satellite television platforms that traditionally act as a controller or distributor of such content.</p><p>According to the BARC-Nielsen study on Covid-19 and its impact on TV and smartphone landscape, the time spent on it during week 1 of the pandemic has increased by 1.5 hours, a gain of 6 percent.</p><h3>What is OTT Platform?</h3><p>OTT platform is a media streaming platform that delivers media content over the Internet where people can watch from any device based on the subscription plans provided by each OTT player.</p><blockquote>Experts predict that the viewership hours of OTT content will exceed the broadcast TV viewership.</blockquote><p>Since the market is open and trending, everyone wants to explore more into it. OTT content distribution is becoming a larger part of consumers’ media necessities, consumers are moving away from traditional satellite TV channels.</p><blockquote>Due to this COVID-19 Pandemic, people are forced to stay indoors and eventually they tend to spend more time online. A recent study says that there is twice the growth in the OTT subscription and this has resulted in an increase in the OTT viewers when compared to the Linear TV viewers.</blockquote><p>Here are some of the top OTT streaming platforms like Netflix, Hulu, Hotstar, Amazon Prime, ZEE5, etc that are leading in the market.</p><h4><strong>OTT Architecture:</strong></h4><p>OTT live TV involves the delivery of video content from the video content providers to the end-users over the internet. Anybody can access the OTT services with a suitable high-speed connection to the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*Ee6jNhNiNi0dyPDg" /></figure><p>Satellite Television signal will be tuned and received on any standard DVBS2 transponders and output IP transport stream (TS over UDP). This stream (RTMP, RTSP, HLS) is sent to the Media server to process video into Adaptive Bitrate Streaming. After producing video content, a scalable CDN is used to distribute media streaming to everyone, everywhere, on any device globally.</p><h3><strong>Building your own enterprise OTT platform:</strong></h3><p>If you’re planning to expand your existing satellite TV channels into OTT service or planning to start a new OTT video subscription model, you need to choose the right hardware, server capacity, and distribution channels that are needed.</p><p>Depending on the live channel requirements, I have listed down the SDI, HDMI and multipurpose inputs for IP live streaming video encoder H.264, H.264 HLS, RTMP, RTSP, RTMPS, RTP, UDP multicast, UDP unicast, FLV protocol support.</p><h4><strong>1. SDI Live Streaming H.264 and H.265 Encoder:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*79QJ-owaSNad74Y1" /></figure><p>While choosing the SDI streaming encoder model, we have to consider the below features that support OTT or IPTV platforms.</p><ul><li>Maximum supported SDI signal inputs</li><li>Embedded hardware coding support</li><li>Supports OTT / IPTV applications</li><li>Definition 1920x1080p, 1920x1080i, 1280x720p, 720x576i, 720x576p, 640x480i etc (can be customized)</li><li>Support HTTP,RTSP,RTMP,RTMPS,RTP,UDP multicast, UDP unicast, FLV,HLS protocol (RTMP support user name, password function)</li><li>Output video stream format: TS/VES/AES stream, etc</li><li>Standard H.265 / H.264 double coding method</li><li>Support FFmpeg</li><li>Dual power redundancy design</li><li>Support ONVIF protocol and NVR recording</li><li>Audio coding supports MP3/AAC/G711 with left and right channels and volume adjustment</li><li>100m full Duplex Mode for Network Interface.</li><li>Local IPTV on LAN applications, Corporate IPTV, Hotel IPTV, Campus IPTV, Education IPTV</li></ul><h4><strong>2. HDMI Live Streaming H.265 and H.264 IPTV Encoder:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/0*o6zP8TH1ujancK-R" /></figure><p>While choosing the HDMI streaming encoder model, we have to consider the below features which will support.</p><ul><li>Maximum supported HDMI signal inputs</li><li>Support HEVC / H.265 or MPEG-4 / H.264 AVC video encoding</li><li>Support AAC, AAC+, AAC++, MP3, MP2, AC3, G.711 audio encoding</li><li>Support HTTP, UDP, RTP, RTSP, RTMP, RTMPS, HLS(M3U8), FLV, ONVIF, Unicast, Multicast, etc.</li><li>Streaming protocol Output video format: TS / VES / AES stream etc</li><li>Support insert image, logo, text, roll text on the output video stream</li><li>Support output displayed video resolution and frame rate setting (max 1920x1080P@60fps)</li><li>Support different protocol transmission for the 4 output video streams for each channel</li><li>Network interface full-duplex mode with 1000M speed</li><li>Firmware should be upgradeable</li></ul><h4>3. Multiple Card Assemblies SDI, HDMI, VGA, FIBER optic supported H.265 H.264 IPTV Encoder:</h4><p>Earlier we have seen about SDI and HDMI inputs. When it comes to enterprise-level OTT streaming solutions, we might need multiple input support like SDI, HDMI, VGA, FIBER optics, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/0*AmJnJx_i51JuNS4X" /></figure><p>HDMI signals run up to 50 feet without needing an amplifier and SDI signals can run up to 300 feet, whereas fiber optics can support longer-range when compared to HDMI and SDI.</p><p>OTT live streaming is used for various streaming purposes in different sectors like Satellite Live television, Education, Healthcare, Media and Entertainment, etc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca0a13d879d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/av-transcode/ott-multi-channel-live-streaming-deployment-hardware-software-infrastructure-requirements-ca0a13d879d9">How to Build an OTT Streaming Platform with the Right Hardware &amp; Software Requirements?</a> was originally published in <a href="https://medium.com/av-transcode">AV Transcode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Video Content Protection: AES-128 Encryption & DRM Solution]]></title>
            <link>https://medium.com/av-transcode/video-content-protection-aes-128-encryption-drm-solution-779859546171?source=rss-ee79993d0579------2</link>
            <guid isPermaLink="false">https://medium.com/p/779859546171</guid>
            <category><![CDATA[video-encryption]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[vod]]></category>
            <category><![CDATA[aes-encryption]]></category>
            <category><![CDATA[drm]]></category>
            <dc:creator><![CDATA[Kavirajan ST]]></dc:creator>
            <pubDate>Wed, 24 Jul 2019 19:46:16 GMT</pubDate>
            <atom:updated>2019-07-25T18:33:48.240Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*g3rKpLBt2tNfBx7-kNe-Yg.png" /></figure><p>In this fast-growing video streaming market, protecting video content is a major challenge.</p><p>Before going deep into video content protection, I’ll explain in detail about the VOD market, VOD providers, their business models and then finally where this video encryption is needed, how important it is and how it is implemented, etc.</p><blockquote>The VOD market estimated as US$ 43.9 Bn in 2017 is expected to reach US$ 87.1 by 2025 end with CAGR of 9%.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*D4qbrAut6uNPnvCVkvIUGw.png" /></figure><p>The video-on-demand services have completely transformed the traditional TV through its unique features which allow the users to experience exclusively on-demand video content, high-quality video content through broadband or mobile networks.</p><h3><strong>VOD Content Categories:</strong></h3><p>Video on demand allows to you watch movies, TV programs, web series, live concerts or shows, music, live video feed from the satellite, etc. VOD provides a wide range of video content that falls under entertainment, films, sports, and educational programs, etc.</p><h3><strong>VOD Services &amp; Business Model:</strong></h3><p>Services like Netflix, Amazon Prime, Hulu, Hotstar, Spotify, Apple Music, etc provides access to digital media on computers, televisions and mobile devices, irrespective of time, and place to their end-users.</p><p>Any VOD provider must ensure the safety of their video streams. Because the more secure the stream is protected, the more guaranteed the revenue growth can happen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bqc5NDhW5e_JND4z-v3DLA.png" /><figcaption>Video Monetization</figcaption></figure><p>When we talk about generating revenue through video streams, there are various monetization models like</p><ul><li>Transactional Video on Demand (TVOD)</li><li>Subscription Video on Demand (SVOD)</li><li>Advertising Video on Demand (AVOD)</li></ul><h3><strong>Importance of Securing Video Content:</strong></h3><p>When you have a VOD site and your business model is to generate revenue through the video content, then protecting your videos should be the primary focus. If the video content is easily accessible to steal and copy, anyone can take ownership of the video content without your knowledge.</p><p>As a result of this here are a few things that might make your business go down.</p><ul><li>Drastic reduction in the premium subscribers due to the new pirated source which is available for free of cost</li><li>Less audience visiting your VOD platform because when they already have a copy of your source to watch the video</li><li>You’ll be responsible for the infrastructure cost of the video stream contents because of the traffic from someone else’s site where your video content is embedded</li><li>On the internet there are free online tools available, using which the video content can be easily downloaded and redistributed in various forms like uploading on other sites, seeding in torrents, sharing via external storages, etc.</li></ul><blockquote>Let’s discuss in detail about the ways to protect the video stream and how it can be achieved.</blockquote><p>Some of the basic security measures that are followed traditionally.</p><ul><li><strong>CORS (Cross-origin resource sharing)</strong> — It’s a security mechanism which restricts the sharing of data to another domain but can permit particular domains if needed.</li><li><strong>Tokenization </strong>— Token authorization ensures that your data stream is accessible only by a particular audience who has the token. With token authorization, you can make the playback URL unavailable after a particular period of time in order to limit the access to the approved IP address. It can also prevent the URL from being shared by unauthorized links.</li><li><strong>Paywall </strong>— Paywall is a system which is designed for monetizing the digital content. It controls access to the content by pay based limitations to prevent the web page from being viewed by everyone.</li></ul><h3><strong>AES Encryption:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QUTTXgSPoy2FIiGs7UEktA.jpeg" /></figure><p>AES (Advanced Encryption Standard) is a cryptographic cipher algorithm using a block size of 128 bits (abbreviated as AES-128) encrypts and protects the premium content.</p><p>AES-128 is the only publicly available encryption algorithm that is recommended by the NSA (National Security Agency) uses a known, external piece of information, called a key, to uniquely change the source data.</p><p>This algorithm supports on-demand, live or DVR streaming. The encryption key which is needed to encrypt the videos is created using OpenSSL.</p><p>To decode the encrypted data, key files requires an initialization vector (IV). For security purpose IVs can be changed periodically. The recommended standard for encrypting media source is to change the key every 3 to 4 hours and as well as the IV after every 50 Mb of internet data usage.</p><p>This AES encryption enforces all the users to go through the main playlist to decrypt the data using the key. This security logic allows the users to access the content only those who have the key. Without this key, the content is not accessible by any third party delivery service.</p><blockquote><strong>Why AES-128 alone is not enough to protect the data even if it is considered highly secure?</strong></blockquote><p>Even though AES-128 is one of the most secure methods to encrypt information, for video streaming, just the AES-128 alone cannot guarantee the complete security of the media content. This security level can’t protect the premium content.</p><p>Complete protection can be guaranteed only when the key cannot be accessed by unauthorized elements. When the content keys are exchanged without a secure way, AES-128 is insufficient for content protection because the key itself is disclosed to the hacker.</p><h3><strong>AES Encryption with Authentication Tokens &amp; Signed URLs:</strong></h3><p>By adding this extra layer of security, the content keys are hidden and made accessible only to the authorized users. The authentication tokens and signed URLs relies on token-based authentication mechanism by rotating the key every n minutes.</p><p>Once the authorized user receives the key it can be easily shared to an unauthorized user. Even if the key is rotated every 15 minutes for data security, there are chances of breaching the security within that key rotation period.</p><h3><strong>Digital Rights Management Systems (DRM) Level Security:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMTZPN3LwP6ThlksaxEsDw.jpeg" /></figure><p>DRM is one of the most secure ways to deliver content. It separates the decryption key from the content and the entire decryption flow is managed in a secure black box which is not directly exposed to the authorized user instead the header file accompanying the video file contains metadata about the encryption mechanism used.</p><p>The metadata from the video file is received by the Content Decryption Module. The CDM creates a license request using the header metadata and is sent to the remote license server. Once the request is received, it returns a detailed license with the content keys. Then the CDM decrypts the content using the content keys. Once the decryption is done the video content is available to the user for playback. Encryption Media Extensions API securely handles these license request and the license information which are not accessible to the user.</p><p><strong>Some of the commonly used DRM providers:</strong></p><ul><li><em>Widevine</em> (Google) — Chrome, Firefox, Android</li><li><em>PlayReady </em>(Microsoft) — Edge, IE, Windows Phone</li><li><em>FairPlay </em>(Apple) — Safari, iOS</li></ul><p>Some of the drawbacks of DRM solution is, it is expensive and complex to implement the process.</p><h3><strong>Conclusion:</strong></h3><p>To protect the video content we have seen in detail about various types of security measures like AES encryption, AES with tokenization &amp; signed URLs then finally the higher level of security DRM. Even though there are multiple options to protect the content, still they are ways to steal the content. In such cases protecting the video content is a tough challenge.</p><p>In order to overcome all these scenarios, a unique code must be embedded in the video. So that if the video content is taken and uploaded on some other channel it can be tracked easily from which use the video is taken.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=779859546171" width="1" height="1" alt=""><hr><p><a href="https://medium.com/av-transcode/video-content-protection-aes-128-encryption-drm-solution-779859546171">Video Content Protection: AES-128 Encryption &amp; DRM Solution</a> was originally published in <a href="https://medium.com/av-transcode">AV Transcode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HLS Streaming Protocol — Pros and Cons of Choosing it]]></title>
            <link>https://medium.com/av-transcode/hls-streaming-protocol-pros-and-cons-of-choosing-it-12ef080163b0?source=rss-ee79993d0579------2</link>
            <guid isPermaLink="false">https://medium.com/p/12ef080163b0</guid>
            <category><![CDATA[live-streaming]]></category>
            <category><![CDATA[streaming-video]]></category>
            <category><![CDATA[mpeg-dash]]></category>
            <category><![CDATA[adaptive-bitrate]]></category>
            <category><![CDATA[hls]]></category>
            <dc:creator><![CDATA[Kavirajan ST]]></dc:creator>
            <pubDate>Sun, 14 Jul 2019 15:29:30 GMT</pubDate>
            <atom:updated>2019-07-14T15:29:30.124Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>HLS Streaming Protocol — Pros and Cons of Choosing it</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*HnfvN429C4ul9ekO2jyKOQ.png" /></figure><p>In earlier days playing videos through online was tremendously challenging. If a video has to be played in different screen sizes with different internet speed, it was not an easy task as the internet speed would be entirely different in both rural and urban areas. Earlier if the video source is HD, the same video will be played as the output. And because of the source file size, the video was not possible to be played on low bandwidth i.e 2G network.</p><blockquote><em>In 2009, Apple came up with a solution called HTTP Live Streaming or HLS protocol.</em></blockquote><h3><strong>Role of HLS protocol:</strong></h3><p>In order to optimize the media source, this protocol encodes as segments (.ts) of media files from servers to devices by rendering the content in different bitrate versions and splits into multiple chunks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*NMDOM6WWGRSJjrxI-6ElqQ.png" /><figcaption>Adaptive Bitrate Streaming</figcaption></figure><p>Therefore based on a wide range of user’s bandwidth environment (2G, 3G, 4G, LTE, WIFI Low, WIFI High) the video can be played with respective HLS bitrate versions 240p, 360p, 480p, 720p and 1080p which also allows the user to switch from one bitrate version to another.</p><h3><strong>HLS Architecture:</strong></h3><p>HLs uses a standard web server for distributing audio and video content. And It requires a specific software (FFmpeg, avconv etc) to fit into the proper format transmission in real time.</p><p><em>The architecture consists of the following 3 parts:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sOb6AKfEABxbOUd9JALm_A.png" /><figcaption>HTTP Live Streaming Architecture</figcaption></figure><p><strong>1. Server:</strong></p><p>The server component encapsulates the input video flow in a proper format for the delivery. The video is then segmented it into different files for distribution. During the process of intake, the video is encoded and segmented in order to generate video fragments and index file.</p><ul><li><strong>Encoder:</strong> Organizes the video files in H.264 format and audio in AAC, MP3, AC-3 or EC-3. Then outputs it in an MPEG-2 transport stream.</li><li><strong>Segmenter:</strong> The stream segmenter divides the MPEG-2 TS file into a series of short media files of equal length saved as .ts files. It also creates and maintains an index file which contains references of the fragmented files, saved as .m3u8. HLS recommended segment .ts size is 10 seconds. To have better encoding efficiency and flexibility for stream adaption to bandwidth changes, HLS chunk sizes can be customized around 2 to 4 seconds.</li></ul><p><strong>2. Distributor:</strong></p><p>The distributor component consists of standard web server. It accepts client requests and delivers all the resources (.m3u8 playlist file and .ts segment files) required for streaming.</p><p><strong>3. Client:</strong></p><p>The client software requests and downloads all the resources and then resembling them so that the media can be presented to the user in a continuous stream. The client software downloads first the index file through a URL and then the several media files available. The playback software assembles the sequence for allowing continued display to the user.</p><h3><strong>Advantages of HLS streaming:</strong></h3><p>Below I’ve mentioned some of the major advantages in terms of video streaming quality:</p><ul><li>The broadcasters can easily deliver audio or video streams using the adaptive bitrate process supported by HLS. As a result of this, every viewer can experience the best quality stream based on the internet connection.</li><li>The viewers can switch to any bitrate version at any time.</li><li>The HLS streaming protocol is widely supported by all client software like iPhones, iPads, and the iPod Touch, Google Chrome, Safari, Microsoft Edge, iOS, Android, Linux, Microsoft, and MacOS platforms.</li><li>As most of the clients supports MPEG DASH, but clients like Apple Safari and iOS devices does not support it. In that way, HLS would always be a better choice.</li></ul><h3><strong>Disadvantages of HLS streaming:</strong></h3><p>Even though we have so many advantages, here are a few cons why one would not use HLS streaming:</p><ul><li>HLS can be overpowered in terms of quality. But when it comes to latency, it is not built for delivering video quickly. In real-time HLS results in minimum of 20 seconds of latency.</li><li>The HTTP live streaming requires at least 3 segments to remain in queue before it allows the video playback.</li><li>HTTP live streaming is limited by its key frame interval, buffer requirements and packet size, pushing your stream back a delay between 20 to 60 seconds. Therefore, such scenario results as a major drawback in live streaming events.</li><li>HLS only supports playing streams. Unlike WebRTC that has a spec for publishing from a browser, HLS is a subscriber-only protocol.</li></ul><h3><strong>Conclusion:</strong></h3><p>As there are various advantages for choosing HLS streaming, there are quite a few cons where one has to give it a thought especially when going for live streaming. So choosing HLS protocol mainly depends upon your purpose of video content that you are going to stream. If you consider only the video quality then going for HLS streaming is a great choice. But when you go for interaction based live streaming purpose without latency issue, then just have to go for some other protocol.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12ef080163b0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/av-transcode/hls-streaming-protocol-pros-and-cons-of-choosing-it-12ef080163b0">HLS Streaming Protocol — Pros and Cons of Choosing it</a> was originally published in <a href="https://medium.com/av-transcode">AV Transcode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>