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.

In defense of 'flicks' (or how I learned to stop worrying and love 705600000)

141 pointsby slimscsiover 5 years ago

13 comments

blackencinoover 5 years ago
Hi! I'm Chris Horvath, the author of Flicks, formerly of Facebook/Oculus, currently at Cruise Automation. I'm happy to answer any questions about my most-talked-about-single-line-of-code.
评论 #21636183 未加载
escardinover 5 years ago
The reason you don&#x27;t see flicks used all that much is because media encoding is incredibly proprietary in the space where it matters most, live broadcast. Selling into the broadcast space, every broadcaster has petabytes of video in their own chosen format. You have to support EVERY format to sell broadly, and they&#x27;re not going to let you transcode everything into your format. Using flicks gives you the ability to support as many combinations as possible with the least effort.<p>It matters very little when users are trained to tolerate slow transitions between videos, formats, etc...<p>It also doesn&#x27;t matter a whole lot when doing offline transcoding either, as you can afford to do the more expensive calculation.
评论 #21636073 未加载
fishgoatover 5 years ago
Good article, with a couple of minor errors:<p>&quot;Audio recorded at 44100khz&quot; should be 44.100 kHz or 44100 Hz.<p>&quot;there was no leap day in the year 2000&quot; - false. 2000 is divisible by both 400 and 100, so it was a leap year.
评论 #21634162 未加载
评论 #21639615 未加载
mensetmanusmanover 5 years ago
Computer scientists with a physics background might recognize the syncing problem to the challenge of describing simultaneous events.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Relativity_of_simultaneity" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Relativity_of_simultaneity</a>
Brett_Sover 5 years ago
For those looking for the original news article here is a link to it on HN <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16210670" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16210670</a>.
anonymfusover 5 years ago
In real modern video files every frame has its own timecode, and mobile phones typically record with variable framerate when these timecodes are placed highly irregularly (the reason can be a lack of performance or an attempt to sync with light source of the different frequency than camera&#x27;s settings). Any new video editing software is expected to deal with such files, and flicks are useless here.
评论 #21635094 未加载
mikorymover 5 years ago
&gt; there was no leap day in the year 1900<p>Tell that to the management over at Microsoft. [1]<p>[1] <a href="https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;office&#x2F;troubleshoot&#x2F;excel&#x2F;wrongly-assumes-1900-is-leap-year" rel="nofollow">https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;office&#x2F;troubleshoot&#x2F;excel&#x2F;w...</a>
jcelerierover 5 years ago
Heh, I&#x27;ve started to use it in <a href="https:&#x2F;&#x2F;ossia.io" rel="nofollow">https:&#x2F;&#x2F;ossia.io</a> just two weeks ago. Works fine for what it is.
kazinatorover 5 years ago
&gt; <i>That is 367.5 times more audio samples than video frames.</i><p>Okay, but an audio sample is not comparable to a frame of video, which by itself means something to the viewer. (But, on the other hand which probably doesn&#x27;t differ much from the previous or next one, especially at 120 Hz).<p>An audio sample is sort of more comparable to a pixel.
评论 #21634585 未加载
kidintechover 5 years ago
why is a least common multiple news and a concept that we love&#x2F;hate??
robolangeover 5 years ago
Did you leave that unbalanced paren in the [Hacker News] title just to drive Lisp users mad? Edit: Thanks for the fix!
评论 #21634048 未加载
0x0over 5 years ago
The article&#x27;s leap year rules seem wrong. Pretty sure year 2000 did have a leap day, but 1900 didn&#x27;t.
评论 #21634043 未加载
评论 #21634054 未加载
评论 #21634374 未加载
评论 #21634102 未加载
333cover 5 years ago
&gt; The number result is 0.008333333333 with the 3 repeating forever. For a computer to store a number that repeats forever would require an infinite amount of memory<p>This is very much not true, as I&#x27;m sure other HN readers will notice. The number is rational (it&#x27;s equivalent to 1&#x2F;120). Now, it is true that a floating point number may not be able to represent it exactly, but by no means does this number require &quot;infinite memory.&quot; In fact I have represented the number exactly in this comment, which does <i>not</i> take up infinite space.<p>For irrational numbers, sure, they cannot be exactly represented. But there are no irrationals involved in this article.<p>I got hung up at this point in the article, so I haven&#x27;t finished it yet, but it looks like the author goes on to argue that because numbers like the above cannot be represented in computer memory at all, errors will always accumulate in representations of audio&#x2F;video. This makes me question whether the author understands the problem they are writing about.<p>Edit: the author does in fact state that rational numbers can be represented by a numerator and a denominator. The article is actually about errors the accumulate during floating point operations. It ends up making a decent argument despite false claims about representing numbers in memory.
评论 #21635200 未加载
评论 #21634554 未加载
评论 #21635374 未加载
评论 #21635395 未加载
评论 #21636770 未加载
评论 #21635875 未加载
评论 #21634790 未加载
评论 #21634743 未加载