Live data from Hacker News

How does a video codec work?

github.com

31–40 of 53 posts

Re: How does a video codec work?

#31
post #11

Earlier quoted context omitted.

Well DSP theory can make many engineering students eye's glaze over. Video compression theory could be explained to a fairly bright middle schooler.

How so? I took 3-4 DSP classes in university and none of them seemed particularly earth shattering. I think statistics and mathematic notation are a lot harder for students to work with. That said, information theory, which I would not consider a DSP course, was the hardest class I took. It requires mathematician’s math. None of that easy engineering math.

> easy engineering math

I felt a great disturbance in the Force, as if millions of engineers suddenly cried out in outrage and were suddenly offended.

Re: How does a video codec work?

#32

One thing that I wish more folks did with DSP/media tech was to start with concepts instead of diving into details first. Like, "how does a video codec work?" should start with: what is the problem? (reducing the bits per second required for a video stream, since it's big) and how? (don't send superfluous detail, since it's either redundant or imperceptible). Than dive into the details of how color is represented, ho…

Once again, the top Hacker News comment on an amazing piece of work is an asinine nitpick complaint.

Re: How does a video codec work?

#33
post #31

Earlier quoted context omitted.

How so? I took 3-4 DSP classes in university and none of them seemed particularly earth shattering. I think statistics and mathematic notation are a lot harder for students to work with. That said, information theory, which I would not consider a DSP course, was the hardest class I took. It requires mathematician’s math. None of that easy engineering math.

> easy engineering math I felt a great disturbance in the Force, as if millions of engineers suddenly cried out in outrage and were suddenly offended.

Dem Ego Battles. Second most important thing in an Engineer’s life, after getting the job done. Keeps it all going nicely.

Re: How does a video codec work?

#34

Earlier quoted context omitted.

It sounds like you don't like Apple at all

Irrespective of love or hate, support for open video standards would be better for everyone.

Apple does support (and contribute to) open video standards.

Re: How does a video codec work?

#35

As much as I like Apple it seems like they are in the back pocket of big media when it comes to this topic. AFAICT Apple only supports h.264 and h.265 meaning 1.3 billion iOS devices have browsers that can't access open standards for video. Yet one more reason why Apple should be required to allow alternate browser engines IMO. Some will claim it's a battery issue but Apple has the resources to add hardware support f…

Apple has made a lot of practical pushes on this topic and was heavily engaged in the HTML5 standard codec debate. Wiki has a good writeup of it: https://en.wikipedia.org/wiki/HTML5_video#Supported_video_an... . If I remember, they were basically arguing against Google as it favored codecs that put costs on consumers, not the servers? Anyone remember this? I think video patents have pretty much patented all the basic…

Google supports AV1 which is royalty-free (to the degree possible, given the plethora of patent trolls out there).

Apple joined the orgs but in the end made the dick move of not accepting a performant, free codec to become standard in HTML5 for purely selfish business reasons.

As far as support for open & free codecs goes, Apple have consistently been total assholes.

Re: How does a video codec work?

#36

Earlier quoted context omitted.

Not sure what you mean, a stock iPhone plays a VP8 webrtc stream with no issues?

https://www.webmfiles.org/demo-files/ Play in Chrome (Mac/Win/Linux/Android) and Firefox (Mac/Win/Linux/Android) but not Safari (Mac/iOS). Here's a few more https://commons.wikimedia.org/w/index.php?search=webm I would be nice if Apple would support open standards. It's unclear what their motive is for not supporting them.

> It's unclear what their motive is for not supporting them.

What's unclear? They want to monopolize the market for smart phones, or at least hurt the competition and splinter the market. Clear as day: they are not good citizens, they are a publicly traded company with a fiduciary responsibility to maximize return to their shareholders.

Their website is not apple.org

Re: How does a video codec work?

#37

Earlier quoted context omitted.

Irrespective of love or hate, support for open video standards would be better for everyone.

Apple does support (and contribute to) open video standards.

sure, if by support you mean "embrace, extend, extinguish".

Today, Apple is every bit as monopolistic and anti-competitive as Microsoft was during Peak Ballmer.

Re: How does a video codec work?

#39

I wish there was an article on how hardware decoding works. Detailed but approachable. I guess reading source code of drivers and popular open-source video players will give me an idea, but it is too much work. Does anyone have a technical article highlighting differences between hardware decoders and important details.

Afaik nowadays hardware decoding is a magic black box you shove bytestream into affair. Its all hidden away in binary driver/firmware blobs.

Re: How does a video codec work?

#40

I wish there was an article on how hardware decoding works. Detailed but approachable. I guess reading source code of drivers and popular open-source video players will give me an idea, but it is too much work. Does anyone have a technical article highlighting differences between hardware decoders and important details.

Seconded. I tried to dig up info on this a few times but found zilch.
Post reply on HN