Anime Video Encoding Guide for X265 (HEVC) & AAC/Opus (2019)
kokomins.wordpress.com
kokomins.wordpress.com
Well, it's 2021 now, would be interesting to see a guide for AV1 encoding in the same vein. As I understand it, both of the leading AV1 encoders are still undergoing frequent changes and improvements, but it still would be nice to have a guide to help one to get a handle on things.
AMD is a huge AV1 supporter, both with improving speed of software decoding and encoding, but also granting the ability to the Radeon's video ASIC to handle it.
[1]: https://developer.nvidia.com/video-encode-and-decode-gpu-sup...
There might be something to be said for perceptible degradation: the characteristic macroblock vomit produced by bit-starvation gives a sure signal to the viewer that something went wrong with the video encoding, whereas a smooth looking image with some details omitted can produce a false impression of what the video signal is, with no indication as to whether or not this is taking place (imagine this happening, for example in security camera footage).
Otherwise it's a very long-winded way of saying, use the x265 defaults, which doesn't really need said at all.
Presumably it's a leftover from the x264 community where blur (a valid compression technique that can be overused) was demonized probably beyond what was supported by evidence so now they need to rein that bias in when blur is actually the best option available.
This is totally confusing me. If the scheme that best describes the frame actually uses more data, and the user is targeting a lower bitrate/quality, shouldn't the encoder realize that the less accurate description is a more efficient choice, and select that?
That said, it is the case across all codecs that more accurate motion vector fields (e.g. using optical flow) are not generally optimal. A simple way of reasoning about that is that one block reusing the same motion vector as a neighboring block is much cheaper than encoding a marginal difference, which often more expensive than the bits saved in the residual.
Anyway, CRF was never designed to map to the same quality across different encoder settings, which having actually read the article, is what I think they’re actually complaining about.
I think for AV1 they're using VMAF too, which is an actual video quality metric (https://github.com/Netflix/vmaf).
Not to say the author is wrong, as their example is very drastic, but I don’t think this matter is so black-and-white.
1) Audio quality matters more than the quality of the video in terms of viewing satisfaction (this one is my subjective opinion).
2) The better your audio system, the more important the source material quality.
3) Lossy compression is a one-way road. Did the distributor recode from lossless, or applied their own lossy encoding on top of an already lossy stream because they couldn’t be bothered to reconfigure their tools? You don’t even have the data to tell how messed up your sound is. Meanwhile, with lossless there are straightforward ways to tell whether it’s “true lossless” (i.e., wasn’t up-coded from a lossy format).
4) Distributing truly lossless video is currently just plain impossible (from obtaining the requisite master files to dealing with such volumes of data), so we are choosing between “different degrees of evil” out of necessity. Distributing lossless audio ultimately is feasible, at the expense of a couple hundred megabytes.
In the end, if we’re speaking about a work of value (e.g., a good classic film), I wouldn’t mind spending extra megabytes on preserving the original audio.
The point that “the entirety of one’s experience is fully available to one’s conscious mind, so if one can’t tell the difference then it doesn’t matter” can be a philosophical question on which we’ll disagree.
Nobody is arguing 96kbit mono should be enough for everyone obviously.
(By the way, your numbers look like you pulled them out of nowhere, but if we are doing this then let me tell you: 99% of population will just stream. This discussion is already moot to everyone but the most picky viewers.)
Nowadays, we don't have to worry about that, since we can use scene-based encoding instead. [1][2] In addition to allowing for full use of all cores, without any loss of encoding or processing efficiency, different encoding settings may be chosen for each scene, increasing potential efficiency.
[1] https://netflixtechblog.com/optimized-shot-based-encodes-for...
Shapes are often basic enough that a “vector” graphic could adequately represent their structure (in far fewer bytes).
If there were a way to structure anime into their core components, could we compress the video more like LZMA?
As other said, they have to be rasterized inevitably for various reasons.
(Hand drawn animations aren't really vectors to begin with; computer-aided ones probably are better examples.)
https://github.com/nikitaa30/Image-Compression-using-ML-and-...
Image trace exists but doesn't work well.
Recent VPx encoders are also better at multi-threading. For instance with ffmpeg: `-c:v vp9 -row-mt 1 -crf 26`
I think that's because AAC supports a wide range of coding tools on paper and off-brand encoders might use them, but everybody supports the ones the Apple encoder uses.
This also doesnt touch on what the anime is being sourced from. Furthermore, it only touches on encoder usage but not having to process the source such as using avisynth in some cases.
Doesn't using h265 invalidate this? I know it's seem to have won in current-gen consumer hardware support, but there's hope that AV1 grows.
[1] https://bitbucket.org/multicoreware/x265_git/src/master/
Most of major release and fansub teams don't really vary their encoding parameters much.
Still a good article though.
The anime encoders are copying things illegally anyway, so they're not going to care about violating the patent licenses.
"cough" or mumble is a slightly humorous shorthand/convention for this. It suggests an audio transcript mistake, that conveniently doesn't reveal the guilty party.
I think it would be good for the scene to move to H.265.
It's been a while since they moved to H.264 (2012) and that made a big difference - https://torrentfreak.com/bittorrent-pirates-go-nuts-after-tv...
The sooner someone invents a way to get standard committees to work at a faster pace the sooner we'll all get to Mars and solve world poverty.
(I think the biggest hurdle for HEVC is that it isn't available on a lot of devices. Sure, if you want to watch a video on a computer, HEVC will work. But if you want to watch the same video on your TV, chances are that it won't work. H.264 / AVC however is now near universal on most LED TVs sold).