ab-av1 icon indicating copy to clipboard operation
ab-av1 copied to clipboard

Encode a clip in chunks based on a a specific VMAF

Open samtheruby1012 opened this issue 1 year ago • 5 comments

Hi I wanted to find out if it would be possible to implement a feature to auto-encode that makes it that a specified minimum VMAF can be supplied (for example 95) and that the auto encode should encode the clip adjusting the CRF per sample taken to target that specified minimum VMAF, so that in the clip the minimum the VMAF will be is 95.

samtheruby1012 avatar Jan 29 '24 17:01 samtheruby1012

This sounds pretty much what auto-encode already does.

Or do you mean to sample the entire file in chunks and to encode each chunk with different crfs according to the vmaf target? If so this is roughly what av1an project does. The idea of ab-av1 is to make the VMAF analysis fast, sampling only parts of the video, then encode with a single crf value.

alexheretic avatar Jan 29 '24 19:01 alexheretic

av1an still targets 5 percentile lows while ab-av1 targets a exact vmaf, which is much more in line with what I want to do

SamTheRuby avatar Jan 30 '24 14:01 SamTheRuby

Hey, i've been experimenting a bit with this idea, inspired by av1an. https://github.com/BankaiNoJutsu/media-db

specifically the pipe_vmaf_threaded or _2 mode.

you can try it with: .\cli.exe -m pipe_vmaf_threaded -e hevc_qsv -v 95 --verbose -t 4 -o . -i '.\file.mkv'

note that it's unfinished, just an idea put into test. Messy code and i can't recall if it was actually doing it's fully intended purpose. But hopefully food for thought.

BankaiNoJutsu avatar Jan 30 '24 22:01 BankaiNoJutsu

@BankaiNoJutsu Im assuming I have to build it from source?

SamTheRuby avatar Jan 31 '24 00:01 SamTheRuby

Ill definitely run some test for you @BankaiNoJutsu

SamTheRuby avatar Jan 31 '24 01:01 SamTheRuby

I think this is just a different approach overall to ab-av1, good luck with it.

alexheretic avatar Sep 04 '24 20:09 alexheretic