Only contains 2.0 audio. SDR. AV1 10-bit. No subs. I will delete this once a better encode is released.
[Video quality comparison to [Trix]](https://slow.pics/c/QJNrYJRu)
```
from vskernels import Hermite
from vstools import depth, get_y
from jvsfunc import rfs
hdr = core.ffms2.Source(r"00002.m2ts", track=0)
fel = core.ffms2.Source(r"00002.m2ts", track=1)
bl = depth(hdr, 16)
el = fel.resize.Point(bl.width, bl.height)
hdr = core.vsnlq.MapNLQ(bl, el)
sdr = core.resize.Point(hdr, matrix=1, transfer=1, primaries=1)
descale1 = core.descale.Debicubic(depth(get_y(sdr), 32), 1920, 1080, b=0, c=0.6)
hermite = Hermite.scale(depth(get_y(sdr), 32), 1920, 1080)
luma = rfs(descale1, hermite, [(0, 899), (171741, 178265), (178540, 178703)])
chroma420 = core.resize.Bicubic(sdr, 1920, 1080, format=vs.YUV420P10, filter_param_a_uv=0, filter_param_b_uv=0, chromaloc_in=2, chromaloc=0)
final420 = core.std.ShufflePlanes([depth(luma, 10), chroma420], [0, 1, 2], vs.YUV)
final420.set_output()
```
Notes:
1) When encoding UHD, you have to be aware of UHD chroma (which is positioned differently than normal chroma) and handle it somehow. If you're downscaling, that probably means changing chromaloc to 0 as in the above code. If you're not downscaling, set the appropriate chromaloc value in your encoder (and perhaps that's also possible in mkvmerge, not sure).
2) You need a recent version of ffms2 or lsmash to do the fel stuff, but either will work.
3) This encode method won't usually work for HDR content. It only works here because the movie is 100% fake HDR.
Comments - 6
NekoTrix
ChadXBeriz
NekoTrix
xwholesome
NekoTrix
xwholesome