In Developer Diary Media Player #Day2 Paul talks about video formats, focusing on how to do video playback on the web. Subscribe to the Chrome Developers Channel: goo.gl/LLLNvf Check out the playlist: goo.gl/cbQTWK
The "versions" or bitrates of video that you were trying to remember is called ABR, or Adaptive Bitrate, which is what is used to allow you to play video bitrate depending on your connection bandwidth where you'll play the highest quality when you connection allows it, but will reduce the quality whenever your connection does not allow for that bitrate to play without interruption. This is to fix (or significantly reduce) the problem with buffering.
I am trying to build an app that digitalizes your dvd and bluray collection, and puts it in a library together with all your other digital media for playback on any device. The issue is the amount of files, HLS works on ALL devices and ALL browsers, the problem is that an anime episode with 9 or 10 audio languages can run up to 200 thousand files for just one episode if you set the parts on 10 seconds (imagine 5 second parts like youre supposed to do). DASH would be much better in this case because it just uses one file per stream but is only supported on desktop and Android. The Playstation 4 doesn't support language switching so the video ts files need to include an audio stream... adding up to the filesize.
Nice update! Definitely sounds like you are seeing the rabbit hole of streaming formats. I'm actually very curious to see how the video player itself is going to be built and function. I don't have much experience with the player part since most of the time I see people choose pre-built or in-house-built players.
Two questions: - Why do we have both dash and hls? - If content provider wants to support both, does it mean that he has to keep two versions of the same video on the server? Or the difference is in manifest format only?
DASH, HLS, HDS, et al all exist thanks to different parties wanting to promote their formats as the de facto on-demand and live streaming format. For instance, ever tried watching an Apple Product stream on Firefox or Chrome and wonder why it doesn't work? That's because Apple created the HLS standard and only uses that format for streaming. All of their devices support HLS (as does Microsoft Edge now) so they want you to use their devices to watch their streams. From my understanding DASH is trying to fix that. For supporting multiple streaming formats, at the moment I believe you'd have to ensure the video file is encoded in the format that HLS and DASH requires.This of course means if you want to support two formats, you need two video files - one for each streaming format. Technically, both HLS and DASH support the H.264 codec so in theory it should be possible to use a single H.264 encoded file but I'm not sure if this is done at the moment.
Too short! calling Day(3); Question: Assuming you gonna have huge traffic on your site, how will you reduce the millions ajax calls of the live-search please?
Paul, i commented this on your last video as well hope you saw it. Later on can you do an episode on refactoring and making the code production quality? I want to know the thought process of a googler before code goes to production!
It'd be nice if you could show some visuals (slides, websites, ...) to your spoken explanations. Kinda like Rob does it. While I really like your cheery nature this series needs a bit more "productiveness". BTW great topic. I'm curious how the series develops.
Nice series, for a couple of weeks ago, a was thinking to do something like this by myself, but by building my own video player for adaptive streaming, I was hoping you would build the video player for the ground up, but don't looks like so :( Nice series anyway, can't wait for the next one
loved this one. things I want covered... hmm. when you're done with encrypted media and live streaning, maybe a quick primer on world politics and how to program a quantum computer.
Great videos Paul. You know, you're kinda "slow" when you explain things, so I have to speed up the videos not to fall asleep. Don't take that bad but maybe something you can improve