TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How Video Works

241 pointsby circuit_over 4 years ago

9 comments

AnotherGoodNameover 4 years ago
One thing i&#x27;d love to see added here is a blurb about the importance of the location of the video metadata in the file. Specifically that you need to have the metadata at the start of the file rather than the end of the file (which is the default) for low-latency playback on web.<p>Explained: Freshly recorded MPEG (and almost all other container types) typically saves the header at the end of the file. This is the logical place to store header information after recording as you just append to the end of the file you&#x27;ve just written. It&#x27;s the default.<p>Unfortunately having the header at the end of the file is terrible for web playback. A user must download the entire video before playback starts. You absolutely need to re-encode the video with FAST-Start set.<p>The header location is the number one mistake that i&#x27;ve seen a lot of website and developers make. If you find your website videos have a spinner that&#x27;s seconds long before the video playback starts check the encoding. Specifically check that you&#x27;ve set fast start.<p>I&#x27;ve seen companies who have a perfectly reasonable static site behind a CDN spend a fortune hosting their videos with a third party to fix the latency issues they were seeing. The expensive third party was ultimately fixing the issue because they re-encoded the videos with fast start set. The reality is their existing solution backed by a CDN would also have worked if they encoded the videos correctly.
评论 #25425145 未加载
评论 #25426049 未加载
评论 #25427600 未加载
评论 #25425097 未加载
评论 #25426246 未加载
Sean-Derover 4 years ago
I really love all the work the Mux team is doing! They don&#x27;t just throw APIs over the wall. They are putting in lots of effort to educate&#x2F;empower developers. This is good stuff, and not just propietary knowledge to sell something.<p>Also check out the video-dev Slack[0] and demuxed. Pion WebRTC and WebRTC for the Curious was motivated by conversations I had with other developers in their Slack.<p>[0] <a href="https:&#x2F;&#x2F;video-dev.herokuapp.com" rel="nofollow">https:&#x2F;&#x2F;video-dev.herokuapp.com</a><p>[1] <a href="https:&#x2F;&#x2F;demuxed.com" rel="nofollow">https:&#x2F;&#x2F;demuxed.com</a>
评论 #25425013 未加载
_a1_over 4 years ago
Oh, I thought it was about VHS video for some reason. I guess I&#x27;m old enough to rant that this should be named &#x27;how video streaming works&#x27;, not &#x27;how video works&#x27; :&#x2F;
rememberlennyover 4 years ago
Thank you to the Mux team for putting this together! I&#x27;ve been using Mux as the basis of milk.video&#x27;s transcoding and video serving from the start, and it&#x27;s been an absolute pleasure to work with.<p>This site is an incredible, concise, and comprehensive resource for people trying to better understand how video works.<p>I attended the demuxed conference this year, and was exposed for the first time into the nitty gritty of how video works behind the scenes.<p>Huge props for the content not being a sales pitch, and truly being educational and informative.
8K832d7tNmiQover 4 years ago
For those who handles video streaming, which software do you use in production to segmented the video?<p>I&#x27;ve already tinkered around with ffmpeg including throwing around any movflags I could find and it will never be able to stream it properly in chunks.<p>My current working solution is using MP4Box with this command<p><pre><code> MP4Box -dash 1000 -rap -frag-rap test.mp4</code></pre>
Jackypotover 4 years ago
Perhaps someone here can answer a question I&#x27;ve had for a while: if you stream a video which is actually a static image (think a song on YouTube, the &#x27;video&#x27; is just the album cover) is there any way to optimise that? Or must the server stream that same image constantly as though it was a regular video?
评论 #25428600 未加载
评论 #25428606 未加载
评论 #25428852 未加载
tobyhinloopenover 4 years ago
Thanks. I learned something. Maybe now I can fix our video playback on our website
tester756over 4 years ago
I wish I knew all this earlier this year, so I&#x27;d be writting different thing as my thesis<p>Great explaination tho.
shmerlover 4 years ago
Why bring HLS (Apple only) instead of DASH as an example?
评论 #25427291 未加载