Better HN
topnewbestaskshowjobs
Log inSign up

TD-Linux

4,829 karma · joined Jan 31, 2014 (12y ago) · 1,177 submissions

Submissions

comment 8y ago · link · parent

The author of the OP has an article about DAI too: https://prestonbyrne.com/2018/01/11/epicaricacy/

Doesn't seem so hot to me, and what happens when the bot runs out of capital?

comment 8y ago · link · parent

It would also play back flawlessly even without the hardware decoder, because H.264 is so fast to decode nowadays. If AV1 is fast enough it can allow people to use AV1 without buying new hardware.

comment 8y ago · link · parent

FLIF has much better lossless compression than AV1 but much worse lossy compression.

154.

AV1: A new general-purpose video codec(people.xiph.org ↗)

909 points · by TD-Linux · 8y ago · 243 comments

comment 8y ago · link · parent

Actually had to double check this to make sure it wasn't in the sources. It seems the the encoder basically sees the trees as only having a small difference, but really visually it's quite large. The solution is a better distortion function in the encoder - libaom's is simple but dumb. (luckily this means no decoder or format changes)

comment 8y ago · link · parent

That's a very good point. I chose Rust more to get ergonomics and more reliable threading - security was not the primary motivation. That said, the encoder is exposed directly to the web via the MediaRecorder API.

comment 8y ago · link · parent

The github counter is misleading - it is counting auto-generated C headers used for calling assembly code. The repo also contains a libaom submodule, but the only parts that are used are initialization tables and the transforms.

comment 8y ago · link · parent

The feature is called "async DNS" and I believe queries both the system resolver and Google, and takes the first response.

https://superuser.com/questions/656938/does-chrome-use-a-dif...

comment 8y ago · link · parent

A better source is the original posting:

https://groups.google.com/forum/#!topic/mozilla.dev.platform...

Not even in Nightly yet.

comment 8y ago · link · parent

>only god knows what Google is sending itself from Chrome!

Chrome always uses Google DNS, which means that they already collect all the data that Mozilla could potentially collect from the DoH test.

comment 8y ago · link · parent

Timestamps in the block header. These timestamps are used to regulate the proof of work to maintain a block interval, so in the end both measures have the same time accuracy.

comment 8y ago · link · parent

There is a lot of previous art on this sort of thing, like the ffmpeg spp filter: https://ffmpeg.org/ffmpeg-filters.html#spp-1

It's unclear to me if this method will perform better than those methods.

comment 8y ago · link · parent

Previous (flagged) discussion: https://news.ycombinator.com/item?id=16576516

comment 8y ago · link · parent

This isn't the most unreasonable list I've seen, but beware you will break many websites with this, so you need to be prepared to deal with the fallout. Notably, a lot of the breakage is hidden in user.js, including:

* No WebGL or WebRTC

* Aggressive TLS settings (will break many websites)

* Mixed-content upgrading (Nightly ran an experiment on this recently and it also broke a lot of websites)

* No history

The text warns about this, but it should at least be clear why Mozilla doesn't ship this as default.

comment 8y ago · link · parent

What is there even to discuss? The disclosures and email tell me everything I wanted to know.

comment 8y ago · link · parent

Functions you don't call get stripped out of the final binary. The advantage is you get a bunch of high level functions like analogRead() that do all the setup for you. avr-gcc/avr-libc mostly just provides register definitions, so it's likely you're going to duplicate most of the code inside analogRead() anyway if you roll it yourself.

That said, I've done plenty of projects with bare avr-gcc (especially for chips not supported by Arduino at the time) and it's not terribly onerous, but often you don't need that level of control for every little thing.

comment 8y ago · link · parent

Real products absolutely do use Arduino libraries, it's not a toy. They are just embedding the AVR directly for cost (and using an external programmer), but there's no reason the Arduino libraries don't work for products that ship. Arduino only eats two pins for serial - I suppose you could drop that if you wanted, but in practice most commercial products have a debug serial port anyway.

comment 8y ago · link · parent

Both are built and run by Mozilla. (Pocket started out as a separate company, but then the whole company was bought by Mozilla). That said, Send is the right thing to use here, not Pocket.

comment 8y ago · link · parent

I'm going to be that person - why a non-OSI approved license? Given that it's CUDA-specific, I'd expect NVIDIA to want people to use it.

comment 8y ago · link · parent

Strangely, the Antminer comes in a metal case with holes smaller than that. Maybe it wasn't grounded or something? Or it was radiated through the external power supply wires?

EDIT: mixed them up, Spoondoolies ones had a nice mesh but the Antminer ones don't behind the fans. That 1" of plastic must be enough to let a significant amount through (or the power supply wires still)

comment 8y ago · link · parent

While HEVC fees are only a tiny fraction of their encoders, they are far greater than 20 cents. Adding two of the pools together already nets up to $1.40, and there are more pools with unannounced pricing yet. https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#P...

comment 8y ago · link · parent

ffmpeg just ignores patent licensing - you're responsible for paying the appropriate licensing fees if you use it. The same applies to x264 and x265. Generally the pools won't go after ffmpeg itself but rather companies shipping it once they get big enough / have money. For example: https://github.com/mbebenita/Broadway/issues/124

HEVC is currently literally impossible to license. One of the pools hasn't decided on pricing yet. You basically have to set aside some cash and hope it's enough to back-pay once they announce the pricing. But even with the existing ones, you have to pay for encoders, decoders, and videos encoded in it. https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#P...

comment 8y ago · link · parent

Unfortunately that's not where the licensing ends - HEVC pools also charge for content distribution. Hence why you see companies like Netflix in AOM, despite them not having to pay fees for the hardware itself. https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding#P...

comment 8y ago · link · parent

Keep in mind, though, that the constraints for Bitcoin mining are a lot different. The Bitmain chips are far smaller than the NVIDIA ones to increase yield, so the absolute chip counts will be higher but NVIDIA is probably still ahead in terms of area shipped (latency is totally unimportant so no reason to have gigantic chips).

comment 8y ago · link · parent

If you end up being limited, there is a very similar trick you can do with audio, but even simpler. Unlike video, most audio formats don't have keyframes, but rather will converge to a correct decode a few packets after you start fresh or seek. So the solution to encode in parallel is to split the file into a bunch of chunks that overlap by a few packets (in the case of Opus, 80ms worth, or 4 packets, should be enough). You then encode all of these chunks, and then merge them together, throwing away the extra packets in the overlap. Unlike video, no final encode pass is needed.

comment 8y ago · link · parent

Many encoders have a "two pass" mode that saves statistics from a first, fast pass to guide the second pass. Usually these are very simple statistics, used to choose a quantizer and frame type in the second pass. Your method feels like a rather extreme version of this, that can guide the whole RDO search with a very large state. And, of course, rarely are first passes done in parallel. It's super exciting to see people looking at this - I think there's a lot of untapped potential. The WebRTC case looks interesting too, though there you need extremely low latencies (1 frame) so I'm curious to find out how you tackle that.

One downside with your approach is that you have to code many keyframes that are eventually thrown away. Keyframes are often expensive to encode because their bitrate is so much higher. Have you considered "synthesizing" fake keyframes somehow, such as doing an especially fast and stupid encode for them? Also, artifacts from keyframes tend to be a lot different from inter predicted frames, so would encoding a keyframe, plus a second frame, then throwing away both yield a quality improvement at the final pass (at the cost of more wasted computation)?

comment 8y ago · link · parent

Audio encodes far faster than video, so there isn't really a need to parallelize it. You'd probably combine this with Opus in WebRTC.

comment 8y ago · link · parent

This is really cool. They use VP8, which means that any web browser (except Safari) can decode the video, even over low-latency WebRTC. It also shows a lot of the limitations of VP8/VP9 encode slowness is due to libvpx, not the underlying format. It'll be interesting to see what they can achieve with VP9 or AV1.

comment 8y ago · link · parent

Compiling wasm also enforces security rules. Offloading that would require full trust of the server, which is probably not desirable.

comment 8y ago · link · parent

Now 4 different entities with the addition of Velos Media, which hasn't even announced pricing.
1
567
40