<?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[Ellation Tech - Medium]]></title>
        <description><![CDATA[Ellation technology blog; video experiences for passionate fans at scale. - Medium]]></description>
        <link>https://medium.com/ellation-tech?source=rss----33bcdda26861---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Ellation Tech - Medium</title>
            <link>https://medium.com/ellation-tech?source=rss----33bcdda26861---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:13:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/ellation-tech" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automating the Android library release process with Kotlin Scripts]]></title>
            <link>https://medium.com/ellation-tech/automating-the-android-library-release-process-with-kotlin-scripts-f546154edd92?source=rss----33bcdda26861---4</link>
            <guid isPermaLink="false">https://medium.com/p/f546154edd92</guid>
            <category><![CDATA[script]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[releases]]></category>
            <category><![CDATA[android-libraries]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Egor Neliuba]]></dc:creator>
            <pubDate>Thu, 07 Mar 2019 23:35:17 GMT</pubDate>
            <atom:updated>2019-03-11T09:15:12.957Z</atom:updated>
            <content:encoded><![CDATA[<p>We have a couple of proprietary libraries and tools that our Android apps at Ellation use. Releasing them was a manual process until recently when we had some time to play around with Kotlin Scripts.</p><h3>What we wanted</h3><ol><li>Run 1 script to cover the whole release process</li><li>The script should be fail-proof (or at least has some instructions on how to recover from errors (or at least easy to understand what has failed))</li><li>The script should be testable</li></ol><h3>Release process</h3><p>In order to create a new release of a library or a tool, the following steps should be done:</p><ol><li>Pull the master branch and run ./gradlew build</li><li>Run ./gradlew uploadArchives to publish the artifact</li><li>Create a Git tag for the released version and push it to remote</li><li>Prepare the next version:<br>1. Increment the version name in gradle.properties<br>2. Add it to the changelog file<br>3. Create a branch and a commit with these changes<br>4. Since all our master branches are protected, create a pull request on GitHub</li></ol><h3>Kotlin Scripts</h3><p>We really wanted to find a way to incorporate the Kotlin Scripts into our release process. Although we considered writing a Gradle plugin initially, it appeared to be too “heavy-weight” for the small task we had.</p><p>We use <a href="https://github.com/holgerbrandl/kscript">kscript</a> which provides support for resolving dependencies and running the script from a URL.</p><h3>Result</h3><p>As a result, the whole release process of any library is done by running:</p><pre>kscript <a href="https://raw.githubusercontent.com/crunchyroll/android-library-release-script/master/src/main/kotlin/Release.kt">https://raw.githubusercontent.com/crunchyroll/android-library-release-script/master/src/main/kotlin/Release.kt</a></pre><p><a href="https://asciinema.org/a/Kb2O1EuKK5CIZWlWuBsum4Zzq">Android Library Release Script in Kotlin Showcase</a></p><p>All steps of the script are split up into classes which are then called from the main function. This makes it easier to read the script and unit test different pieces in isolation (I wish, though).</p><h4>Config</h4><p>The <a href="https://github.com/crunchyroll/android-library-release-script/blob/7018fc013ebbcc30c199f46e62298679153f0c3d/src/main/kotlin/Release.kt#L98-L136">CliConfig</a> class represents all possible arguments and options that could be passed from the command line. We used <a href="https://github.com/xenomachina/kotlin-argparser">xenomachina/kotlin-argparser</a> to parse them.</p><h4>Preconditions</h4><p>This class tries running different command line utilities that have to be installed for the whole script to work correctly. If any of them fail, it will abort the whole procedure.</p><h4>Steps</h4><p>All steps are wrapped into a nice lambda in order to print a pretty report in the end if something has failed. The steps are batched in main and are executed when all have been added.</p><ol><li>Upload artifact — this is just./gradlew uploadArchives</li><li>Create and push release tag</li><li>Increment version in gradle.properties</li><li>Update release date in the changelog</li><li>Add new version to the changelog</li><li>Create a commit and pull request — using the<a href="http://hub.github.com/">hub</a> command line utility</li></ol><h3>Development mode</h3><p>To make the script development process more convenient, we bootstrapped a simple Gradle project with the help of kscript.</p><p>The script itself lives in the src/main and since we use external dependencies in the script, we would like the IDE to know about them too. This is done by adding them to the dependencies block in the <a href="https://github.com/crunchyroll/android-library-release-script/blob/master/build.gradle">build.gradle</a> file as usual.</p><h3>What can be improved</h3><ul><li><strong>End-to-end testing</strong><br>The script currently doesn’t have any end-to-end tests. This is hard to achieve as there are multiple tools used (e.g Nexus repository, GitHub).</li><li><strong>Splitting up the script</strong><br>Currently, the script is one giant (300 LoC) .kt file. It would be nice to have it split up into different files.</li><li><strong>Linting<br></strong>Since this script is inside a simple Gradle project, we could add tools like ktlint and detekt.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f546154edd92" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ellation-tech/automating-the-android-library-release-process-with-kotlin-scripts-f546154edd92">Automating the Android library release process with Kotlin Scripts</a> was originally published in <a href="https://medium.com/ellation-tech">Ellation Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FOMS 2018 — Standards Unconference Style]]></title>
            <link>https://medium.com/ellation-tech/foms-2018-standards-unconference-style-ef54077d6765?source=rss----33bcdda26861---4</link>
            <guid isPermaLink="false">https://medium.com/p/ef54077d6765</guid>
            <category><![CDATA[ott]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[crunchyroll]]></category>
            <dc:creator><![CDATA[Michael Dale]]></dc:creator>
            <pubDate>Thu, 08 Nov 2018 13:09:38 GMT</pubDate>
            <atom:updated>2018-11-09T08:56:16.989Z</atom:updated>
            <content:encoded><![CDATA[<h3>FOMS 2018 — Standards, Unconference Style</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zCiynFuB2eeCIMJZXCB9Ww.png" /></figure><p>The <a href="http://www.foms-workshop.org/foms2018/">FOMS 2018</a> (Foundations of Open Media Standards and Software) conference took place mid-October here at Ellation HQ in San Francisco. FOMS included a <a href="http://www.foms-workshop.org/foms2018/pmwiki.php/Site/Attendees">key set of participants</a> from the tech/publisher side and browser/platform side. Similar to last year, it was timed closely with <a href="https://demuxed.com/">Demuxed 2018</a> video engineering conference. Demuxed greatly increased in size this year attracting hundreds of video engineers from around the globe to discuss everything from per-title encoding, low latency streaming and adaptive video delivery with presentations from major companies in the space such as Netflix, YouTube, Twitch and many video tech startups.</p><p>This year’s FOMS covered a broad <a href="http://www.foms-workshop.org/foms2018/pmwiki.php/Site/Schedule">set of working sessions</a> on standards that impact web video delivery. The unconference style is uniquely well structured towards addressing pain points that we, as video engineers, face in delivering against the growing expectations around quality of experience that our viewers demand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-xX1XRcSj95mq_lS" /><figcaption>White boarding MSE(Media Source Extension) concerns.</figcaption></figure><p>A standards effort is a usually complex undertaking as there is an ecosystem of competitive companies with entrenched interests that must be balanced and many unique use cases that don’t always fit with maintaining simplicity. A look at the <a href="https://www.w3.org/2018/Process-20180201/#Intro">standards process in W3C</a>, for example, does not exactly inspire one to dive into this undertaking. FOMS serves as one of the contexts for more flexibility in early stages of these standards adjustments or new proposals. Some, like Siliva’s <a href="https://www.w3.org/TR/webvtt1/">WebVTT proposal</a> from years past, is now at W3C Candidate Recommendation stage and is widely used today. It gained much more broad adoption then more feature rich formats like <a href="https://www.w3.org/TR/2018/PR-ttml2-20181004/">TTML</a> against its simplicity and similarity to community defined srt format.</p><p>Like in years past, there were many such early stage proposals and conversations such as John Bartos from JW, proposal for <a href="https://slides.com/vdnkh/lhls-foms-2018/#/1">low latency</a> annotations to the HLS spec that was well received relative to backwards compatibility with existing HLS streams, and its relatively straightforward approach towards ~2 second latency against a http protocol that normally has much higher latency. The unconference style enabled open discussion of the proposal with streaming software providers and other playback engineers. This enables companies like Apple or Google to share concerns they would have in supporting it within their browser or device ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GtsEF8Ih4s07Ctfs" /><figcaption>L-HLS (low latency hls) discussion at FOMS 2018 hosted at Ellation.</figcaption></figure><p>A big challenge we face at <a href="https://www.crunchyroll.com/">Crunchyroll</a> is around fansub-defined standards for high fidelity anime subtitles not fitting into the industry standard format definitions that are natively supported across the devices and platforms we support. A common fansub format that we work with is <a href="https://en.wikipedia.org/wiki/SubStation_Alpha#Advanced_SubStation_Alpha">advanced substation alpha</a>.</p><p>Rafik Mikhael, a staff Engineer here at Ellation on the video infrastructure team, helped illustrate the challenge in a presentation around enhancements needed for real world WebVTT implementations to get closer to our subtitle content fidelity.</p><p>Anime film content is often inspired by or directly based off of manga comic books. Because of this translation from manga to film, we have found that a substantial set of anime content includes mixed media of Japanese characters as part of the cinematic language of the content. An artistic aesthetic is lost with captions formats designed for captions reliability vs high fidelity subtitles that enable the translator to preserve the original intent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_YYc0XBO6CvnmK2YEeqiDw.png" /><figcaption>What Ellation renders today via application layer rendering or hard sub renditions depending on the capabilities of the device.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWJIdeccO3pXcbKsEAwfzg.png" /><figcaption>The WebVTT version as rendered by common WebVTT implementations.</figcaption></figure><p>Support for higher fidelity features in standard format such as VTT would enable Ellation to move away from costly per platform application layer renders or burned in subtitles that we leverage today, while maintaining the artistic intent afforded to our translators with high fidelity caption formats such as advanced substation alpha. Moving away from burned in subtitles has obvious benefits such as faster turnaround times on translations, low cost corrections and ability to support more languages as we expand our offering internationally.</p><p>We are proud to sponsor and participate in FOMS to further these and other goals. As you can see from <a href="http://www.foms-workshop.org/foms2018/pmwiki.php/Site/Schedule">the agenda</a> this post only scratched the surface of what was covered. You can sign up for the FOMS mailing list or #foms channel in <a href="http://video-dev.herokuapp.com/">video-dev</a> for updates on future workshops.</p><p>We hope to have a few follow up posts with more details around some of the other Ellation projects discussed at FOMS and other Engineering projects more generally; so be sure to follow Ellation tech blog for updates.</p><p>As always, <a href="http://www.ellation.com/jobs/">Ellation is hiring</a> so do shoot us a note if you would like to learn more about what we are up to and would welcome ideas about what’s next :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef54077d6765" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ellation-tech/foms-2018-standards-unconference-style-ef54077d6765">FOMS 2018 — Standards Unconference Style</a> was originally published in <a href="https://medium.com/ellation-tech">Ellation Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Github & Jira Workflows with “Merge Assistant”]]></title>
            <link>https://medium.com/ellation-tech/automating-github-jira-workflows-with-merge-assistant-5e0867f455c8?source=rss----33bcdda26861---4</link>
            <guid isPermaLink="false">https://medium.com/p/5e0867f455c8</guid>
            <category><![CDATA[automation-tools]]></category>
            <category><![CDATA[chrome-extension]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[jira]]></category>
            <dc:creator><![CDATA[Nicolai Trandafil]]></dc:creator>
            <pubDate>Fri, 15 Dec 2017 10:56:10 GMT</pubDate>
            <atom:updated>2017-12-15T10:56:09.732Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Boilerplate beginning</strong></p><p>In computer programming, <strong>boilerplate code</strong> or <strong>boilerplate</strong> refers to sections of code that have to be included in many places with little or no alteration. It is often used when referring to languages that are considered <em>verbose</em>, i.e. the programmer must write a lot of code to do minimal jobs. <a href="https://en.wikipedia.org/wiki/Boilerplate_code">[wiki]</a></p><p>Every company has guidelines how to do a high quality job, quickly and well documented<strong>.</strong> The last point is really important when we are talking about teamwork and IT companies. This criteria&#39;s push us to the next conclusion:</p><blockquote><strong><em>“We have to follow a set of rules”</em></strong><em>.<br>When you are doing a job once then twice using the same rules it becomes a boilerplate job. In fact, the real problem of the boilerplate job is not in that this job is boring but in our brain capability to make boilerplate jobs automatically and this sometimes gives us unexpected results.</em></blockquote><h4>Why merge assistant</h4><p>Being a developer you have to resolve tasks, in our case we are working with ‘Jira’ task board and Github version control repository. When you fixed task you are going to create the pull request on Github. For pull requests we have a specific template here it is :</p><blockquote><strong>Jira: [ticketID](baseUrl.com/ticketID)</strong> <br>Reviewers: <a href="http://twitter.com/artiom">@</a>reviewer1, @reviewer2 …</blockquote><blockquote>Synopsis</blockquote><blockquote>Changelog</blockquote><blockquote>How to Test</blockquote><blockquote>Wiki</blockquote><p>When you specified all these fields starting code review and when you achieved approve to merge, then starts interesting part:<br>1) You open the previous commit in develop branch and copy commit message</p><p>Jira: {{ jiraTicket }}<br>Reviewers: {{ reviewers | join }}<br>PR: GH-{{ prNumber }}</p><p>2) You put your ‘JiraTicketID’ and Github pull request number.</p><p>3) And the most interesting part reviewers. The major part of Github users have nicknames which are not equal to ‘first.lastname’, but in our company we have requirement specify firstName.lastName, for instance, you have 3 reviewers and you need find their full names in Github profile or in slack, not so fast as we planned just to push the button merge…</p><p>4) Next small boilerplate step doesn’t forget to move ‘Jira’ ticket from Needs Review — &gt; Dev complete column,</p><p>This repeated steps we have to do for every Github pull request, and if you have around 2-3 pull requests per day after a short period of time you will do this steps automatically with a big probability to make mistake.</p><p><strong>How to configure<br></strong>Merge assistant this is chrome extension which solves problems mentioned above, extension generates for you commit message with correct reviewers list and moves Jira ticket to the ‘Dev complete’ column.</p><p>First of all, you need to open the Github repository and clone ‘Merge Assistant’ <br>here is the link: <a href="https://github.com/CCristi/GitPR"><strong>https://github.com/CCristi/GitPR</strong></a><strong>. <br>Then run in terminal</strong></p><ol><li>Run npm install</li><li>Run npm run build</li><li>Setup chrome extension to push code from /dist folder <a href="https://developer.chrome.com/extensions/getstarted#unpacked">@link</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*fuXQNM3ybihIkqQEN8SNGg.png" /></figure><p>After installation you will have extension in chrome then you need to configure ‘Merge Assistant’. <strong>Tap right click</strong> to the ‘Merge Assistant’ in the drop down appeared select <strong>options </strong>and you will see options page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*XN_zNkBchb_pXhxt8inFYQ.png" /></figure><p>After configuration, tap to <strong>save button </strong>and you are done.</p><p><strong>How it works<br></strong>Open Github pull request click to button ‘squash and merge’ and then: l<strong>eft click to the ‘Merge Assistant’ </strong>it will generate commit message and will ask if you want move ‘Jira’ ticket to the ‘dev complete’. Here the demo:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdKJVcXj_UCk%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdKJVcXj_UCk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FdKJVcXj_UCk%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/07da10b881f2a7734d45de84cbe034ea/href">https://medium.com/media/07da10b881f2a7734d45de84cbe034ea/href</a></iframe><p>Big thanks to VRV web team for testing this extension and special thanks to the main contributor Cristian Covali.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e0867f455c8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ellation-tech/automating-github-jira-workflows-with-merge-assistant-5e0867f455c8">Automating Github &amp; Jira Workflows with “Merge Assistant”</a> was originally published in <a href="https://medium.com/ellation-tech">Ellation Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building VCode links with OpenCV and Branch.io]]></title>
            <link>https://medium.com/ellation-tech/building-vcode-links-with-opencv-and-branch-io-778ebcabd2d6?source=rss----33bcdda26861---4</link>
            <guid isPermaLink="false">https://medium.com/p/778ebcabd2d6</guid>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[opencv]]></category>
            <dc:creator><![CDATA[Ilya Ghirici]]></dc:creator>
            <pubDate>Wed, 22 Nov 2017 16:44:00 GMT</pubDate>
            <atom:updated>2017-11-22T16:43:59.678Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GQ6xlSVWTin7wy3J." /></figure><h3><strong>Hackaton Idea</strong></h3><p>In August 2017, Ellation held its very first <a href="https://medium.com/ellation-tech/ellations-first-hackday-cc62323b0f11">Internal Hackathon.</a></p><p>We wanted to implement generation &amp; reading of custom two dimensional barcode (VCode) image that can be read only by VRV application. The information inside the VCode would open a deeplink (start episode playback/open series screen and so on). The VCode would be able to be printed on any surface for reading by the VRV app.</p><p>By opening a specific screen (which will open camera) within the mobile app and pointing the camera to the image, user will be able to read the information encoded in the image and to start playing episode.</p><p>Image generation is implemented in the VRV web application as a separate module that can be used by marketing department to provide VCode with other branded commercials or anyone else who just wants to generate a shareable offline link of his favorite show on VRV.</p><h3>Use cases</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IRsBSX6MWRTIZzuf." /><figcaption>VCode in action</figcaption></figure><ul><li>A commercial could point you to a specific episode (it can start playing a new episode of your favorite anime series right away!)</li><li>Offline marketing. The VCode could be used for anime nights and anime conventions. For example a sticker for your laptop, backpack or even print it on a t-shirt. The possibilities are are limited only by your imagination!</li><li>Improve sharing. Too many steps — generate, copy/send, open. Now — only generate and scan!</li></ul><h3>How it works</h3><p>VRV application uses Branch.io for deep-linking. Branch Link format: <strong>https://vrv.app.link/{id}</strong>. Id consists of 10 <a href="https://en.wikipedia.org/wiki/ASCII">ASCII</a> symbols. Each Ascii symbol — 1 byte (8 bits).</p><h4>Encoding</h4><p>The deeplink ID can have only case sensitive alphabetic and numeric characters which is total of 62. That could be encoded in a word of 6 bits length, and since we have 10 symbols it would be 60 bits of information. But for simplicity we went with ASCII. And since each ASCII symbol is 1 byte, we had to encode 80 bits of information. For example:</p><p>PNAdc9MlmD = 01010000 01001110 01000001 01100100 01100011 00111001 01001101 01101100 01101101 01000100</p><p>Each dot (rectangle/whatever) represents a single bit of information — presence of the dot in the position = 1, lack of the dot = 0. We will read dots from top to the bottom and then from the right to left. The matrix will be with constant size = 8(rows)*10(columns)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vAXT9cPG2Iug8ekw3iCw1Q.png" /><figcaption>Matrix representation of id = PNAdc9MlmD</figcaption></figure><p>To encode a url we</p><ol><li>Generate branch link</li><li>Encode id into matrix</li><li>Generate image based on matrix, with each dots representing a cell from the matrix</li></ol><h4>Decoding</h4><p>Decoding is the just the opposite of encoding. The encoding is linear, so we just need to make the same steps in the reverse order:</p><ol><li>Read matrix from the image by detecting dots</li><li>Convert matrix into id</li><li>Form a branch deeplink</li><li>Open the deeplink</li></ol><h4>Image generation (id -&gt; VCode)</h4><p>Image generation was implemented as a simple web-page.</p><p>We implemented the algorithm that consumes the matrix described in the <a href="https://docs.google.com/document/d/1lisSXg7m4CzojHT39GfqwbYn2lcnd-BDDVidHaDC5EI/edit#heading=h.sql9saikkkcc">Encoding</a> paragraph and generates the image based on the matrix. Generated images are expected to differ only on the presence of dots, based on the matrix.</p><h4>Image decoding (VCode -&gt; id)</h4><p>Image positioning</p><p>First of all we need to find a VCode on the picture. VCode location detection was implemented using OpenCV and <a href="https://github.com/shuhei/rectify">Rectify</a> library. <a href="https://github.com/shuhei/rectify">Rectify</a> was used to find the biggest yellow square on the picture and then transform the image from 3D projection to 2D square.</p><p>Image decoding</p><p>Image decoding was done by detecting if a certain dot is present. We achieved this by converting the VCode rectangle to monochrome and then splitting it into small rectangles each representing a single bit in the matrix.</p><h3>Design</h3><p>The design had to be done first. We had to agree on the shape of the image, colors we would use and the way we encode information. We wanted the colors to have high contrast, so we could distinguish the shapes in monochrome on decoding step. Thankfully main VRV colors were good enough for us.</p><p>Next step was to divide yellow space in small squares. Each square could contain a dot, which is a small version of VRV logo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/0*WIq-HlT8uXxXFHcp." /></figure><p>A square with a dot is considered to be “one”, “zero” — otherwise. Now we have a grid with 10 squares on each axis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q3yVz-JH9c1g81J2." /></figure><p>Considering logo, we had 84 available squares for encoding which is more than enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2HvSI-cace10muCt." /></figure><p>Each byte we stacked vertically one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/0*0jKqkXh9p8qmkUrf." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/204/0*4oYesQ_Mz3DTvOLw." /></figure><h3>Summary</h3><p>Even though our team didn’t win the hackathon, we had a great time coding and building the project. Check the sample video bellow of the working prototype in action.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpCeZvG2glLE&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FpCeZvG2glLE&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/06692c6ae11533971ffaa20d31046786/href">https://medium.com/media/06692c6ae11533971ffaa20d31046786/href</a></iframe><p>VCode Generation: <a href="https://codepen.io/iparm/full/PKELWb">https://codepen.io/iparm/full/PKELWb</a></p><h3>The VCode team</h3><ul><li><a href="https://github.com/Ilya-Gh">Ilya-Gh (Ilya Ghirici)</a></li><li><a href="https://github.com/iparm">iparm (Ivan Parmaclii)</a></li><li><a href="https://github.com/vgaidarji">vgaidarji (Veaceslav Gaidarji)</a></li><li><a href="https://github.com/elderanakain">elderanakain (Arcadii Rubailo)</a></li><li><a href="https://www.linkedin.com/in/mediologiq">Q Williams | Professional Profile | LinkedIn</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=778ebcabd2d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ellation-tech/building-vcode-links-with-opencv-and-branch-io-778ebcabd2d6">Building VCode links with OpenCV and Branch.io</a> was originally published in <a href="https://medium.com/ellation-tech">Ellation Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FOMS and Demuxed 2017 Report Back]]></title>
            <link>https://medium.com/ellation-tech/foms-and-demuxed-2017-report-back-93db55836c71?source=rss----33bcdda26861---4</link>
            <guid isPermaLink="false">https://medium.com/p/93db55836c71</guid>
            <category><![CDATA[workshop]]></category>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[live-streaming]]></category>
            <dc:creator><![CDATA[Michael Dale]]></dc:creator>
            <pubDate>Thu, 12 Oct 2017 18:51:22 GMT</pubDate>
            <atom:updated>2017-10-12T21:12:18.068Z</atom:updated>
            <content:encoded><![CDATA[<p>The <a href="http://www.foms-workshop.org/foms2017/">FOMS workshop</a> and <a href="http://demuxed.com/">demuxed conference</a> took place here in San Francisco last week. Ellation was proud to host FOMS workshop here in our SF offices and participate in the Demuxed conference that took place the day after Broadway Studios.</p><p>The FOMS workshop is organized as an un-conference where topics are decided upon in during the workshop. Participating companies included broad representation from browser, service providers and publishers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*YnbQH7GQOxX4DWcBqHpySQ.png" /><figcaption>We were happy to see broad participation across browser, service providers and publishers at the FOMS workshop.</figcaption></figure><p>During the workshop all the participants share what they are working on and the engineering standards, challenges and opportunities to make video experince better for our users. This year topics ranged from adaptive streaming strategies, low latency live streaming, content protection, container formats, browser autoPlay polices, open codecs, captions, video accessibility how AI tools are affecting video workflows and more. You can see detailed notes from many of these sessions linked to from the <a href="http://www.foms-workshop.org/foms2017/pmwiki.php/Site/Schedule">FOMS workshop schedule</a>. Interesting new ideas around adaptive streaming quality annotation, improvements to communications around autoPlay policy, state of the art segment based low latency live streaming and much more were discussed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jr8ThI1tE7SpkV4pqSAc7A.jpeg" /></figure><p>This year at FOMS we broke up the workshop sessions with short presentations from participants which was a welcomed addition to the workshop structure. Topics ranged from a newly announced vlc.js that supported playback of many video codecs in the web browser, updates on CTA video quality metrics, Matroska standardization and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KnwnzQxhsF3HI3RorBChJw.jpeg" /><figcaption>Silvia presenting on steps towards W3C standardization.</figcaption></figure><p>After two days of intense video engineering workshops, it was on to<a href="http://demuxed.com/"> Demuxed</a>, which impressed with a solid lineup of talks this year around the state of the art of video engineering. Some highlights:</p><ul><li>“<a href="http://demuxed.com/#popup-tarek-amara">S-Frame in AV1</a>” by Tarek Amara from Twitch for short segments for low latency live streaming with non-GOP aligned segments for fast quality switching</li><li>Megha Manohara from Netflix’s talk on 250Kbs encodes was also impressive to see what has been achieved with a relatively small data envelope with contemporary codecs</li><li>Steven Robertson’s from YouTube visualization of adaptive streaming were illustrative towards accessing adaptive streaming performance.</li><li>HDR talk by Mark Watson from Netflix highlighted the promise of HDR for OTT, however the HDR technology is still quite segmented and possibly is craving for consolidation for wider adoption and distribution.</li></ul><p>For a more complete write up of the talks see <a href="http://www.streamingmedia.com/Articles/Editorial/Featured-Articles/Demuxed-A-Video-Engineers-Nirvana-121015.aspx">Jan Ozer’s article</a> on streaming media.</p><p>Overall two great events on video engineering, kudos to Matt McClure and Mux team for the Demuxed event and thanks to Silvia Pfeiffer and our FOMS sponsors ( Google, BitMoving and Ellation ) towards the FOMS workshop.</p><p>Ellation is hiring please <a href="http://www.ellation.com/jobs/">reach out</a> if you&#39;re interested, thanks for reading and keep an eye out for future video engineering updates in this space.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93db55836c71" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ellation-tech/foms-and-demuxed-2017-report-back-93db55836c71">FOMS and Demuxed 2017 Report Back</a> was originally published in <a href="https://medium.com/ellation-tech">Ellation Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ellation’s First Hackday]]></title>
            <link>https://medium.com/ellation-tech/ellations-first-hackday-cc62323b0f11?source=rss----33bcdda26861---4</link>
            <guid isPermaLink="false">https://medium.com/p/cc62323b0f11</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[crunchyroll]]></category>
            <category><![CDATA[hacks]]></category>
            <dc:creator><![CDATA[Soumya Lakshmi]]></dc:creator>
            <pubDate>Fri, 29 Sep 2017 20:23:22 GMT</pubDate>
            <atom:updated>2017-10-09T17:12:54.189Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEJfCsp9xOLY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEJfCsp9xOLY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FEJfCsp9xOLY%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/d398e865542e974d72f4da8add7bb7a3/href">https://medium.com/media/d398e865542e974d72f4da8add7bb7a3/href</a></iframe><p>Last month we held our very first Hackday at Ellation (Internal Hackathon). If the inaugural Hackday made one thing clear, it’s that a collaborative and innovation driven culture is very important to us. In the past half year, we grew from 150 to 300 employees and nurtured offices in Europe, Japan and San Francisco.</p><p>When it came to Hackday participation, there was talent from across all teams including Engineering, Finance, PeopleOps, Facilities, Marketing Design, Product Design, Customer Service, Marketing, Business Operations and Product Management. We looked at this as an opportunity to contribute to the rapid growth we’ve had. It gave us both a challenge and the ability to scale our culture globally across our expanding teams. Even as we grow our team in our three respective offices, we bring our people closer together to achieve greater things.</p><p><strong>Building a Culture of Innovation</strong></p><p>Hackday helped build bonds across teams in ways that other events haven’t been able to. People who have never worked together, came up with and built ideas that were inspiring, original, fun, and simply awesome.</p><p>It fueled innovation in the company. The ideas went beyond what we expected and got people not only thinking about how to make the company better, but also do so in areas that they normally wouldn’t venture into.</p><p><strong>We kept it stupidly simple!</strong></p><ul><li>All teams had 24 hours to build, create or change whatever they wanted to.</li><li>Each participant or team gave a 90 second presentation to our judges and the rest of the company.</li><li>We got together to cheer on the teams and watch the demos!</li></ul><p><strong>Opportunity to take 24 hours and do the following:</strong></p><ol><li>Create an Internal Tool</li><li>Build a cool feature for our users. (Social Impact)</li><li>Build an innovative feature for our users</li><li>Improve our Revenue model.</li></ol><p>Teams were also judged on who formed the most diverse team (such as department and location)!</p><h4>Technology + Creativity + Freedom + Responsibility = Hackday</h4><p>At our first Hackday, globally we had 30 teams, about 100 participants and the entire company attending all the live demos.</p><p>Hackday wouldn’t have been successful without the support of top management and Tom Pickett, our CEO. Our judging panel consisted of: Arlen Marmel, VP, Marketing;Simon Obstbaum, CTO; Quincy Carroll, CPO, Thomas Overton, VP of Engineering;Tom Hurlbutt, Group Product Manager; Soumya Lakshmi, Head of Quality Engineering and Desiree Therianos, VP of PeopleOps.</p><p>The judges had a tough time evaluating the hacks as all of the ideas were competitive and compelling. As we clean up our hacks, we look forward to releasing them to users in the near future.</p><p><strong>Join Us!</strong></p><p>Do you want to be part of our amazing team and participate in our next Hackday? We are Hiring! <a href="http://www.ellation.com/jobs/">http://www.ellation.com/jobs/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc62323b0f11" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ellation-tech/ellations-first-hackday-cc62323b0f11">Ellation’s First Hackday</a> was originally published in <a href="https://medium.com/ellation-tech">Ellation Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stabilizing & Improving Crunchyroll Service]]></title>
            <link>https://medium.com/ellation-tech/stabilizing-improving-crunchyroll-service-c44c53789e86?source=rss----33bcdda26861---4</link>
            <guid isPermaLink="false">https://medium.com/p/c44c53789e86</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Michael Dale]]></dc:creator>
            <pubDate>Sat, 01 Apr 2017 03:04:35 GMT</pubDate>
            <atom:updated>2017-04-01T03:04:34.760Z</atom:updated>
            <content:encoded><![CDATA[<p>As a Crunchyroll user you may have noticed some degradation of service on weekends as our popular simulcasts are released. We have been tracking this issue closely and employing strategies on the short, medium and long term to ensure Crunchyroll long term success and continued growth.</p><p><strong>What’s the problem ?</strong></p><p>Crunchyroll recently celebrated its 10th anniversary and the codebase has some almost as old design decisions. At the same time the Crunchyroll audience has continued to grow surpassing 1 million subscribers. The Crunchyroll platform is a “<a href="https://en.wikipedia.org/wiki/Monolithic_application">monolithic application</a>”, running within a traditional data center environment. This has consequences where the entire application has to be scaled together. Various services, web views, analytics, authentication and API endpoints all share the same databases. A constraint in one service can slow down other services. In contrast most modern large scale web services have employed a microservices architecture that can be scalable and analyzed on a per service level.</p><p>On the API itself, the Crunchyroll platform has intermixed public resources like episode metadata with private resources like playhead position for the user requesting that catalog data. This makes traditional resource caching on a CDN ( outside of video and static assets ) difficult with existing Crunchyroll apps and clients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LxJDKtHYyPVPWjHsVdMfyA.png" /><figcaption>Sample graph of DB connection load across multiple DBs</figcaption></figure><p>One problem we have seen during these degradation is high number of DB threads / connections during peak load. Because of the monolith structure of the system where a single request to the application can access many databases, it’s not trivial to trace what “service” or endpoint is causing the runway db connections. During these spikes the servers are still delivering API responses for the majority of users, but naturally we aim for no degradation of the service.</p><p><strong>How are we fixing it?<br></strong>We are pursuing multiple strategies to resolve including:</p><ul><li>Moving the crunchyroll service from the datacenter into AWS where we can better manage scaling with virtualized resources.</li><li>Breaking the monolith into microservices making use of services we have built in our software defined AWS infrastructure that is already powering our newer products such as VRV.</li><li>Implementing mitigations to ensure users can still access video when the services are degraded.</li><li>Auditing and updating our crunchyroll clients to reduce superfluous API calls, better cache their API responses, and looking at reducing database load on the server.</li></ul><p>One example of moving to AWS microservices is the shift towards cloud video delivery. Previously our video infrastructure ran out of the datacenter and required opening DB connections in order to server the list of video segments that were hosted on the CDN. Today we server the video stream list from our cloud services that are not affected by a Crunchyroll degradation.</p><p>Another project is transitioning to <a href="https://redis.io/">Redis</a> for our session store. This means instead of storing sessions in the MySQL database we would store them in a shared memory cache. This should move a very common db call to a simpler key-value store and be faster then a MySQL transactions.</p><p>There are a few other focused projects in this space which we will detail going forward.</p><p>There are far too many people to thank in this company wide effort to stabilize and improve the Crunchyroll service that is underway. Teams involved go beyond the engineering org, with the content operations team who has worked around the clock to push cloud video delivery before all the automated publishing was in place. The dedicated efforts of the operations team also must be noted against minimizing negative impact during these peak usage times.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c44c53789e86" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ellation-tech/stabilizing-improving-crunchyroll-service-c44c53789e86">Stabilizing &amp; Improving Crunchyroll Service</a> was originally published in <a href="https://medium.com/ellation-tech">Ellation Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Just-in-time VOD packaging in an AWS environment with role-based credentials]]></title>
            <link>https://medium.com/ellation-tech/just-in-time-vod-packaging-in-an-aws-environment-with-role-based-credentials-4e33202a4450?source=rss----33bcdda26861---4</link>
            <guid isPermaLink="false">https://medium.com/p/4e33202a4450</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[vod]]></category>
            <category><![CDATA[ellation]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[crunchyroll]]></category>
            <dc:creator><![CDATA[Jan Brittenson]]></dc:creator>
            <pubDate>Thu, 30 Mar 2017 19:43:26 GMT</pubDate>
            <atom:updated>2017-03-30T21:32:08.338Z</atom:updated>
            <content:encoded><![CDATA[<p>TL;DR: The nginx+<a href="https://github.com/kaltura/nginx-vod-module">kaltura JIT VOD packager</a> can’t perform role-based request signing for S3 to access mp4 assets. You can set up <a href="https://github.com/crunchyroll/evs-s3helper">s3-helper</a> by configuring the S3 region and bucket, and it takes care of the rest. Point nginx to use s3-helper instead of proxying directly to s3. Done.</p><p>The longer story…</p><p>AWS <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html">role-based IAM credentials</a> is a popular way of fencing off services in AWS, reducing the need for servers to implement inter-server authentication and access controls. Instead, somewhat simplified, instances are assigned a role when spun up that determines what services they can access: other instances, <a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Introduction.html">virtual private clouds (VPCs)</a>, S3, etc. Only backend services which need to implement ingress and egress through fences need to implement inter-server authentication; all other services running as an AWS guest only need to sign requests using the role-based credentials provided by the VM host; the AWS SDKs do this automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*gWBD0dqEmoGdYAScsCQNzw.png" /></figure><p>We use the <a href="https://github.com/kaltura/nginx-vod-module">Kaltura VOD packager</a> here at Ellation to serve video for our two properties: <a href="http://www.crunchyroll.com/">Crunchyroll</a> and <a href="https://vrv.co/">VRV</a>. The vast majority of our video content is played via AWS CloudFront which validates URL tokens (signed URLs) and then fetch objects from the VOD packagers. The vod packagers are autoscaled behind an elastic load balancer, so as our load changes additional packaging nodes are automatically added or removed as needed. Our video content lives in an AWS S3 bucket that’s only accessible to our backend services. The Kaltura VOD packager runs as a module inside nginx, effectively acting as an nginx gateway.</p><p>To fulfill a request for HLS or DASH playlists, segments, keys, or other bits and pieces needed for playback, the VOD packager generates HTTP range requests to fetch sections of mp4 files. These get proxied to S3, which responds with the range requested. The problem here is that the free version of nginx doesn’t know how to obtain the role credentials from the instance’s hypervisor-managed metadata to properly identify itself as having access rights. Theoretically, this could be added as say LUA scripting within nginx; but the stock LUA isn’t thread-safe and this calls for concurrent access to a single set of credentials. There is a thread safe LUA, but we didn’t want to add yet another scripting language, especially one nobody involved in this project has any experience with.</p><p>So we created <a href="https://github.com/crunchyroll/evs-s3helper">s3-helper</a>. This looks and tastes like an S3 instance on a loopback interface, except it doesn’t require a signature. Instead, it simply takes the request and signs it using the instance credentials and proxies the request to S3. S3 sees a request properly identifying itself as originating from a specific instance role, checks that the role has read permissions to the object, and happily returns the result. The s3-helper cleans up the headers removing everything AWS specific, and the VOD packager inside nginx can naively continue on its merry business. We only grant read permission to all playback related roles and services since they never need write access. We do however grant listing access so we get proper 404 errors if something doesn’t exist; otherwise S3 will return 403 (access denied). For development s3-helper can be replaced with another nginx instance, at least until ready to test on a live S3 bucket. In addition, the helper can be used in a similar role to solve the same issue for other software components that don’t know how to sign AWS requests using role based credentials. In addition, it makes the already complex nginx configuration entirely credentials-agnostic and moves this into a different microservice component that can be separately tested and reused. It also simplifies development setups since they can use the same nginx configuration as production systems (only with a few minor strings changed). This in turn reduces the likelihood of running into complex environment-specific configuration problems.</p><p>When explicitly configured to listen on 127.0.0.1 only services on the same instance will be able to reach it, and only by explicitly connecting to 127.0.0.1 or localhost.</p><p>s3-helper is written in go, with support for statsd/collectd and newrelic (request based only).</p><p>Special thanks to the broader Ellation team that worked on the video delivery project including <a href="http://twitter.com/jimyoull">@jimyoul</a> architectural work and for Ellation’s support in open sourcing this s3-helper project. Be on the lookout for a future posts that dive into this delivery system architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e33202a4450" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ellation-tech/just-in-time-vod-packaging-in-an-aws-environment-with-role-based-credentials-4e33202a4450">Just-in-time VOD packaging in an AWS environment with role-based credentials</a> was originally published in <a href="https://medium.com/ellation-tech">Ellation Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improving Video Quality for Crunchyroll and VRV]]></title>
            <link>https://medium.com/ellation-tech/improving-video-quality-for-crunchyroll-and-vrv-dd587261a364?source=rss----33bcdda26861---4</link>
            <guid isPermaLink="false">https://medium.com/p/dd587261a364</guid>
            <category><![CDATA[crunchyroll]]></category>
            <category><![CDATA[encoding]]></category>
            <category><![CDATA[h264]]></category>
            <category><![CDATA[videos]]></category>
            <dc:creator><![CDATA[Michael Dale]]></dc:creator>
            <pubDate>Thu, 16 Mar 2017 16:10:10 GMT</pubDate>
            <atom:updated>2017-03-16T17:06:30.414Z</atom:updated>
            <content:encoded><![CDATA[<p>At Ellation we have been hard at work rolling out updated encoding settings to drive increased video quality for Crunchyroll. This work includes improvements to quality for both our HD viewers and those on limited bandwidth, to get the best quality possible for the device.</p><p>Traditionally, Crunchyroll video has been served out of datacenter infrastructure. However, to scale with the launch of <a href="https://vrv.co/">VRV</a> and the <a href="http://www.crunchyroll.com/anime-news/2017/02/09-1/crunchyroll-surpasses-over-one-million-paid-subscribers-details-daily-giveaways-to-celebrate">growing Crunchyroll audience</a> we decided to transition to cloud encode and delivery. This transition to the new cloud delivery infrastructure is starting to drive greater stability in video serving and involved using an alternate set of encodes. These encodes were affected by a mistake in our encoding settings discovered after the catalog had been encoded. We have been using these problematic encodes for distribution a day or more after publishing the simulcasts and were progressively reducing this delay. The Crunchyroll community rightfully raised concerns that these transitional encodes<strong> </strong>are not up to the quality we intended. We apologize for not hitting the high quality bar that we are committed to delivering throughout the entirety of this transition as well as for any confusion this may have caused.</p><p>Today we are rolling out some of the encode profiles we are transitioning to as part of the new cloud video encoding infrastructure. <strong>We see these new encodes as the upper end of online streams for anime available anywhere. </strong>You will see these updated encodes immediately for all simulcasts going forward. The entire back-catalog will also be refreshed with updated settings as we complete our transition to the new cloud platform as originally intended.</p><p><strong>Whats changing?</strong></p><p>Crunchyroll old video infrastructure encoder quality used a flat bitrate (ABR) across all episodes and series. This resulted in a one size fits all for every show where episodes used a fixed bitrate to meet quality expectations. Similar to Netflix’s transition to <a href="http://techblog.netflix.com/2015/12/per-title-encode-optimization.html">per content encoding</a>, Ellation has started moving to more variable bitrates and per content constant quality (CRF) settings. This transition enables bandwidth constrained consumers on mobile devices to experience much higher video quality since video bitrate is not artificially constrained to high value as with the old video encoding infrastructure. As outlined in the samples below, some complex scenes could use more bitrate than Crunchyroll old video encoding infrastructure had allocated them. With this new encoding scheme we will continue to refine and ensure a high level quality in a much broader set of content scenarios.</p><p><em>Spoilers Alert</em></p><p>For example “<a href="http://www.crunchyroll.com/my-love-story/episode-14-my-jinx-678443">My Love Story, episode 14</a>” at 19:38, when Takeo and Rinko go to an amusement park with a girl who’s trying to split them up; she ultimately decides not to and Rinko and Takeo get to enjoy the parade together there is a scene of flashing lights that is traditionally challenging for encoders.</p><p><em>Screenshot Disclaimer: </em>We are sharing some quick samples here, please watch this space more formal analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JHypKh4-NhcQ4k0f." /><figcaption>The original scene from the source mezzanine</figcaption></figure><p>For this scene we can look at the 3 encode settings we now have active on crunchyroll.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p92x7FjcjoXPtdQJ." /><figcaption>Our misconfigured encoder settings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/132/0*VUJVOGCp64xojqZk." /><figcaption>You can see a degradation of the arm gradient.</figcaption></figure><p>With our historic Crunchyroll encodes we do a lot better with a very high constant bitrate but still see some minor degradation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DFHLqJLtTMbNZ4qI." /><figcaption>Old Crunchyroll encodes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/143/0*Oml9qmkk8NK03hRa." /><figcaption>The old Crunchyroll encodes.</figcaption></figure><p>Finally our newest encodes allow for more bitrate for complex scenes to slightly better capture details as available from the original mezzanine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*APrDQcp8tQ9J8RWE." /><figcaption>New encodes of the same scene.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/143/0*p2hVMUmvvBxNs6Xr." /><figcaption>New encode detail zoom</figcaption></figure><p>You can take a look at these new encodes in the <a href="http://www.crunchyroll.com/my-love-story/episode-14-my-jinx-678443">My Love Story</a> series and all simulcasts going forward.</p><p>Please watch this space for additional technical details regarding the encoding techniques being employed as we plan to share many more about our encoding and technology platform going forward.</p><p>Throughout 2017 we have big plans to test newer codecs such as VP9 and work with upstream content partners to drive quality and resolution upward. If you’re interested in joining the efforts and many other exciting projects for Crunchyroll and VRV please <a href="http://www.ellation.com/jobs">get in touch</a>.</p><p><strong>The Ellation Video Team</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd587261a364" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ellation-tech/improving-video-quality-for-crunchyroll-and-vrv-dd587261a364">Improving Video Quality for Crunchyroll and VRV</a> was originally published in <a href="https://medium.com/ellation-tech">Ellation Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open sourcing some useful Go utilities]]></title>
            <link>https://medium.com/ellation-tech/open-sourcing-some-useful-go-utilities-6d0ac7d420af?source=rss----33bcdda26861---4</link>
            <guid isPermaLink="false">https://medium.com/p/6d0ac7d420af</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[go]]></category>
            <dc:creator><![CDATA[Michael Dale]]></dc:creator>
            <pubDate>Thu, 29 Sep 2016 17:25:42 GMT</pubDate>
            <atom:updated>2016-09-29T17:25:42.401Z</atom:updated>
            <content:encoded><![CDATA[<p>Today we’re open-sourcing a couple small utilities we use internally:</p><p>`<a href="https://github.com/crunchyroll/multilog">multilog</a>` is a replacement for the built-in Go log package, supports a number of different logging levels, support for simultaneous logging to multiple files, a variety of verbosity levels, and “colorful” logs on stderr. We often found that we were writing a lot of boilerplate around the existing Go logger to output our logs the way we wanted them. This doesn’t solve all of the problems we had, but it’s a big improvement from the default logs for us.</p><p>`<a href="https://github.com/crunchyroll/go-json">go-json</a>` is a small, expediently-written utility which takes JSON objects as input, and produces Go types into which they can be unmarshaled. It has some limited ability to do type-inferencing, but it doesn’t support arrays with heterogenous types (e.g., [1, “hello”, {“field”: “value”}] will get turned into an array of type `[]int64`), and has a couple of other small limitations. It’s mostly meant to aid in automatic generation of Go structures from a JSON object that exemplifies a contract between servers and clients.</p><p>We hope these utilities are useful to you, and welcome issue reports and PRs for them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d0ac7d420af" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ellation-tech/open-sourcing-some-useful-go-utilities-6d0ac7d420af">Open sourcing some useful Go utilities</a> was originally published in <a href="https://medium.com/ellation-tech">Ellation Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>