[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Janitor application acceptance emails are being sent out. Please remember to check your spam box!


[Advertise on 4chan]


File: 1761496745406530.webm (2.73 MB, 1280x720)
2.73 MB
2.73 MB WEBM
VP9 thread, this time with bloated sample MP4s at 720p because H264 blows hard at 1080p and above.

Windows batch script found in webm related to use as a reference point:

ffmpeg -i in.mp4 ^
-c:v libvpx-vp9 ^
-b:v 0 -crf 30 -g 300 ^
-cpu-used 4 -lag-in-frames 25 -aq-mode 2 ^
-tile-columns 1 -row-mt 1 -enable-tpl 1 ^
-an out.webm

REM -profile:v 2 -pix_fmt yuv420p10le ^
>>
File: in.mp4 (3.93 MB, 1280x720)
3.93 MB
3.93 MB MP4
First 20 second 720p sample from the anime: After the rain.
>>
File: out.webm (1.52 MB, 1280x720)
1.52 MB
1.52 MB WEBM
>>107119169
Output VP9 transcode using OP params.
>>
File: default_script.png (57 KB, 946x603)
57 KB
57 KB PNG
>>107119169
>>107119179
FFmetrics of these 2. Not sure what scores to aim for but they already seem pretty fucking high from the get-go.
>>
I'll focus on VMAF since that seems to be the most trusted in the video autism world. I found this:

>Our premium quality setting, boasting a VMAF score of 96.45% and an encoded size of 207.66 MB, provides unparalleled visual fidelity suitable for high-end applications where pristine quality is paramount. This setting achieves a compression size of approximately 87%, demonstrating a substantial reduction in file size compared to the original 1.6 GB.

>The optimal quality setting, with a VMAF score of 93.06% and an encoded size of 85 MB, strikes an excellent balance between quality and file size reduction. This setting achieves a compression size of approximately 94.7%, catering to a wide range of viewing environments and devices.

>Lastly, the standard quality setting, with a VMAF score of 90.07% and an encoded size of 56 MB, offers a compelling option for scenarios where conserving bandwidth and storage space is essential, without compromising on perceptible visual quality. This setting achieves a compression size of approximately 96.5%.

https://www.slashed.cloud/blog/slashedcloud-vmaf

TL;DR seems to be:
>VMAF scores above 95 indicate very high quality but result in ballooning file sizes
>VMAF scores below 90 are YIFY-tier
>VMAF scores between these (ie 93) strikes a compression/quality balance

So I'll modify the CRF parameter until I get VMAF 93 for the first video sample.
>>
I think that animu or cartoon is possibly the worst kind of material for such comparisons, you only see how the edges are affected, while the textures are flat so you can't tell anything about them. Some irl shit would be much better, forest or any other heavy foliage.

I've been mostly rendering fast game stuff and for size limited situations I find x265 superior to anything else. It has the best balance between blur and pixelation. x264 is way too pixelated and it ruins the edges the most, but at least it renders fast. VP9 and AV1 in limited size scenarios provide insane amount of blur, they are probably only good for porn, since blurred skin sometimes even looks better than the sharp one, also they render very slowly.

For 4chan I'd use VP9 for static cartoonish stuff and porn, while x264 would be better suited for some heavy movement irl stuff or gameplay where preserving the sharpness and depth is more important.
>>
>>107119654
VMAF is supposed to be agnostic to all that but practically speaking 4chan's tiny 4MB file size limited kinda does void motion intense footage uploads here. Anime is great for testing video codecs in general since they can flex their bigger macroblocks there. For example H264 has a macroblock limit of 16x16 while VP9 can go all the way up to 64x64. However outside of things like Anime video bigger macroblocks aren't as useful.
>>
File: crf-35.webm (1.21 MB, 1280x720)
1.21 MB
1.21 MB WEBM
CRF 40 = 90.7 VMAF @ 400 kbps & 0.9 MB file size

CRF 38 = 91.6 VMAF @ 440 kbps & 1.0 MB file size

CRF 36 = 92.6 VMAF @ 500 kbps & 1.2 MB file size

CRF 34 = 93.7 VMAF @ 530 kbps & 1.3 MB file size

CRF 35 = 93.1 VMAF @ 510 kbps & 1.2 MB file size

Webm related is last one to keep things consistent.
>>
>>107119706
Testing on anime will always make the VP9 look better, because of the flat textures. I trust my eyes more than any artificial method of comparison.
>>
File: h264-crf28.mp4 (861 KB, 1280x720)
861 KB
861 KB MP4
>>107119866
Not this time. Something is VERY wrong with the OP settings.

ffmpeg -i in.mp4 -c:v libx264 -crf 28 -preset medium -an h264-crf28.mp4

CRF 28 = 93.4 VMAF @ 350 kbps & 0.9 MB file size
>>
File: wtf.png (61 KB, 946x603)
61 KB
61 KB PNG
Welp, seems like this isn't going to be as straightforward as I thought. I'm calling it quits for now, if this thread is still up tomorrow I'll continue finding out what the CORRECT VP9 parameters are.
>>
>>107119948
Can you test with more than one example?
>>
>>107119983
Ye but I'm boofed. I expected OP params to be enough for a like 20-30% better compression efficiency vs H264 as normally expected but something is wrong.

VP9 is already like slow as balls, I hope I don't have to resort to 2 pass...
>>
File: pTsWGaulQFDSBpxq.jpg (67 KB, 1792x223)
67 KB
67 KB JPG
Double file size and no audio hail the eternal king H.264!
>>
File: 1744256935421048.jpg (85 KB, 1179x1122)
85 KB
85 KB JPG
I just open Shutter Encoder, convert to AV1 and done
>>
>>107119158
Hooly shit windows is miserable. I forgot about the "New Text Document" and save as lmao. Could have opened Notepad but I dont blame you at all, Windows UX sucks.
Also dont add C:\ to your path, you could have created some directory at least you heathen.
>>
this retarded fucking thread again
>>
>>107119158
>set environment
>whole C: drive
fucking hell, op. do better, faggot.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.