Live data from Hacker News

H.264 is Magic

sidbala.com

81–90 of 230 posts

Re: H.264 is Magic

#81
post #59

Can someone explain how the frequency domain stuff works? I've never really understood that, and the article just waves it away with saying it's like converting from binary to hex.

In the most basic terms, not even talking about frequency, the mechanics of this is that one series of numbers (pixel values, audio samples, etc.) is replaced, according to some recipe or another, with a different series of numbers from which the original can be recovered (using a similar "inverse" recipe). The benefit of doing this comes from the discovery that this new series has more redundancy in it and can be compressed more efficiently than the original, and even if some of the data are thrown away at this point, the purpose of which is to make compression even more effective, the original can still be recovered with high fidelity.

Re: H.264 is Magic

#82
post #79

Even better H.265 with 40-50% bit rate reduction compared with H.264, at the same visual quality!

But much higher hardware requirements for both encoding and decoding. Encoding is like 8x slower too.

Re: H.264 is Magic

#83
post #56

Earlier quoted context omitted.

>why wouldn't any local media playback seek backwards and reconstruct the full frame? Most codecs/players do. VLC used to be criticized for being different in that regard. One possible advantage is istantaneous seeking, as there's no need to decode all the needed frames (which could amount to several seconds of video) between the nearest I-frames[1] (the complete reference pictures) and the desired one. [1]: plural,…

I try to use VLC when I can because it offers intuitive playlist support, but for high-resolution H.264 and friends I usually have to switch to Media Player Classic. VLC is willing to let my entire screen look like a blob of grey alien shit for 10 seconds instead of just taking a moment to reconstruct frames. And its hardware acceleration for newer codecs is balls. Sucks because otherwise, it's right up there with f2…

I recently bought a camera that has 4k video recording. VLC just gives up playing the video. Even Windows Media Player can handle it. No idea what's going on, but I was really surprised and disappointed with VLC.

Re: H.264 is Magic

#84
post #56

Earlier quoted context omitted.

>why wouldn't any local media playback seek backwards and reconstruct the full frame? Most codecs/players do. VLC used to be criticized for being different in that regard. One possible advantage is istantaneous seeking, as there's no need to decode all the needed frames (which could amount to several seconds of video) between the nearest I-frames[1] (the complete reference pictures) and the desired one. [1]: plural,…

I try to use VLC when I can because it offers intuitive playlist support, but for high-resolution H.264 and friends I usually have to switch to Media Player Classic. VLC is willing to let my entire screen look like a blob of grey alien shit for 10 seconds instead of just taking a moment to reconstruct frames. And its hardware acceleration for newer codecs is balls. Sucks because otherwise, it's right up there with f2…

I stopped using VLC when I found mpv [0]. I really like it because it exposes everything from the CLI, so once you're familiarized with the flags you're interested in using, it's easy to play anything. For everyday usage it "just works" too, as expected of any video player.

[0] https://mpv.io/

Re: H.264 is Magic

#86

Do H.264 and WebRTC have different use cases? Or do they compete directly?

Let's say you want to video chat with someone using only web browsers, you would establish a direct peer-to-peer connection with WebRTC and then you could stream H.264 video to each other. I'd say WebRTC and H.264 compliment each other. However, the shared stream or data need not be H.264.

Re: H.264 is Magic

#87
post #21

What are directions for the future? Could neural networks become practically useful for video compression? [1] [1] http://cs.stanford.edu/people/eroberts/courses/soco/projects...

Google has been experimenting with image compression using AI for a while now: https://research.googleblog.com/2016/09/image-compression-wi...

Re: H.264 is Magic

#88
post #70
post #23

Earlier quoted context omitted.

It is an open standard. Anyone can purchase and implement it, and it was developed by ISO. The technologies are not royalty free in the US. Don't conflate the two. * Edit: I emphasize this mainly because the terms have a specific meaning in standards jargon but also because it places the blame for software patent abuses on the wrong parties (the standards developers rather than the lawyers and legislators).

OK, so it is open, but not free ? Is it available for academic purposes free of cost ?

No, not at all. There's even restrictions on distributing H264/AVC video files themselves.

Re: H.264 is Magic

#89
Really cool stuff, one thing though seems a little odd:

> Even at 2%, you don't notice the difference at this zoom level. 2%!

I'm not supposed to see that major streakiness? The 2% difference is extremely visible, even 11% leaves a noticably bad pattern on the keys (though I'd probably be okay with it in a moving video), only the 30% difference looks acceptable in a still image.

Post reply on HN