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.

Falsehoods programmers believe about video

250 pointsby pomfpomfpomf3over 8 years ago

19 comments

derefrover 8 years ago
&gt; rendering subtitles at the output resolution is better than rendering them at the video resolution<p>I would like to know what&#x27;s wrong with this approach. I watch a lot of commentated speed-run videos: that&#x27;s often something like ~244p video, plus soft subtitles. The subtitles get rendered at the source resolution (presumably, into the video framebuffer) and then upscaled along with the image, forcing them to be a tiny blurry mess instead of the crisp, readable text they could be.
评论 #13260725 未加载
评论 #13260611 未加载
评论 #13260589 未加载
评论 #13262897 未加载
评论 #13260717 未加载
评论 #13260830 未加载
franciscopover 8 years ago
The original one ( <a href="http:&#x2F;&#x2F;www.kalzumeus.com&#x2F;2010&#x2F;06&#x2F;17&#x2F;falsehoods-programmers-believe-about-names&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.kalzumeus.com&#x2F;2010&#x2F;06&#x2F;17&#x2F;falsehoods-programmers-b...</a> ) left me bafled. Then I realized you have to strike a balance; otherwise you cannot deal with names at all. The point where drawing the line depends on your industry&#x2F;customers, but I&#x27;d safely say that it&#x27;s too restrictive nowadays so these lists are useful somewhat and of course they are interesting.
评论 #13260499 未加载
评论 #13261092 未加载
评论 #13260891 未加载
评论 #13260354 未加载
评论 #13260540 未加载
nhaehnleover 8 years ago
This is a good list, but it would be so much better with some (brief) pointers to counter-examples to the beliefs.
评论 #13260082 未加载
评论 #13260203 未加载
评论 #13260831 未加载
donatjover 8 years ago
- &quot;all subtitle files are UTF-8 encoded&quot;<p>Hah, this strikes really close to home. I&#x27;ve had to work with so so many subtile files in Eastern European and Turkish Windows codepages mostly but not entirely compatible with Win-1252. There&#x27;s no way to tell them apart programmatically, so you check that the extended characters make sense. It&#x27;s a bit of a nightmare.
smallnamespaceover 8 years ago
This article would be infinitely better if it any provided counterexamples.
iopqover 8 years ago
&gt; my hardware contexts will survive the user’s coffee break<p>hell, they don&#x27;t survive alt-tabbing into a game that has a different resolution than the monitor
评论 #13261624 未加载
tuxidomasxover 8 years ago
This list makes me not want to program any [video stuff]
scottlambover 8 years ago
From the article:<p>&gt; I can exclusively use the video clock for timing<p>Heh. I just finished writing up a design doc to address problems I had with this, and I referenced &quot;Falsehoods programmers believe about time&quot;. Then I opened Hacker News and saw this article. So this is very timely for me.<p>(My doc: <a href="https:&#x2F;&#x2F;github.com&#x2F;scottlamb&#x2F;moonfire-nvr&#x2F;blob&#x2F;new-schema&#x2F;design&#x2F;time.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;scottlamb&#x2F;moonfire-nvr&#x2F;blob&#x2F;new-schema&#x2F;de...</a>)
jherikoover 8 years ago
it is true, video is a nightmare mess littered with weird functionality nobody needs. (limited range only just disappeared in rec 2100, optionally??? really??? i&#x27;m not worried about my electron gun in my CRT from 1975 these days...nor do i want to know what a Y or a Cb or a Cr means because everything is RGB and B&amp;W TV is long dead... and 4:2:2 is not exactly compression so much as computational overhead etc.. etc.)<p>its a nightmare, but the reason for these observations is precisely that it shouldn&#x27;t be a nightmare. this area of programming is a wasteland ... nobody that good wants to solve these trivial problems :&#x2F;
评论 #13260997 未加载
评论 #13264142 未加载
lolcover 8 years ago
And this is why I don&#x27;t do video. (And have lots of respect for the people who write the libraries I use.)
FranOntanayaover 8 years ago
Could write an entire page just on subtitles.
antirezover 8 years ago
There is a lot of potential information in such a list. But in this form is quite a &quot;trust me&quot; thing that does not really add to the reader knowledge.
milansukover 8 years ago
Nice one! Now I would like to see article like this, but about ciphers, hashes, digital signitures, etc.
the_dukeover 8 years ago
An explanation for each &#x27;falsehood&#x27; would have been nice
ryanmarshover 8 years ago
Well video programming just sounds delightful.<p>&#x2F;sarcasm
justinlasterover 8 years ago
&gt; a H.264 hardware decoder can decode all H.264 files<p>and<p>&gt; video decoding is easily parallelizable<p>At a previous job, I don&#x27;t know if it was just the field I was in or just bad luck, but having to explain this over and over again was kind of a personal nightmare.<p>That being said, this is an excellent list!
评论 #13260172 未加载
microcolonelover 8 years ago
I don&#x27;t think programmers believe any of the video decoding falsehoods; not because they know any better, but because they know they don&#x27;t know.<p>Also, none of these unfounded preconceptions make intuitive sense, so I don&#x27;t see why people would believe them.
imaginenoreover 8 years ago
&gt; <i>interlaced video files no longer exist</i><p>Interlaced video files should no longer exist.<p>Seriously, f<i></i>k interlaced video.<p>&gt; <i>upscaling algorithms can invent information that doesn’t exist in the image</i><p>That&#x27;s not a falsehood. Upscaling <i>does</i> invent information that doesn&#x27;t exist in the image.
评论 #13261007 未加载
评论 #13261532 未加载
评论 #13261031 未加载
AznHisokaover 8 years ago
can we have falsehoods programmers believe besides video that are more common? this list probably is relevant for 1% of programmers here.
评论 #13261987 未加载
评论 #13267396 未加载