Av1an
Av1an copied to clipboard
VMAF calculation fails if input file is filtered
Running Av1an with --target-quality
or --vmaf
fails to calculate proper VMAF values if the input is cropped, even if --vmaf-filter
is given:
av1an -i spiderman2.mkv -f " -vf crop=1920:800:0:140 " --force -e x265 -v ' --crf 17 --keyint 240 --preset medium --rc-lookahead 48 --aq-mode 3 --colorprim bt709 --transfer bt709 --colormatrix bt709 ' --vmaf-filter "crop=1920:800:0:140" --target-quality 95 --min-q 12 --max-q 45 --probing-rate 2 --vmaf-threads 2 --vmaf-path vmaf_v0.6.1.json --vmaf --logging av1an-logs/amazingspiderman-vmaf-x265-crop --concat mkvmerge --resume --temp /home/jack/.cache/av1an/amazingspiderman --min-scene-len 24 -o /home/jack/Videos/Encoded/spiderman2-vmaf95-x265.mkv`
amazingspiderman-vmaf-x265-crop.log
:: VMAF Run thread 'main' panicked at 'VMAF calculation failed: :"[Parsed_libvmaf_4 @ 0x559f8f650500] Width and height of input videos must be same.\n[Parsed_libvmaf_4 @ 0x559f8f650500] Failed to configure input pad on Parsed_libvmaf_4\nError reinitializing filters!\nFailed to inject frame into filter network: Invalid argument\nError while processing the decoded data for stream #1:0\n"', av1an-core/src/vmaf.rs:175:3 note: run with
RUST_BACKTRACE=1 environment variable to display a backtrace
However, running without cropping the input produces no error:
av1an -i spiderman2.mkv --force -e x265 -v ' --crf 17 --keyint 240 --preset medium --rc-lookahead 48 --aq-mode 3 --colorprim bt709 --transfer bt709 --colormatrix bt709 ' --target-quality 95 --min-q 12 --max-q 45 --probing-rate 2 --vmaf-threads 2 --vmaf-path vmaf_v0.6.1.json --vmaf --logging av1an-logs/amazingspiderman-vmaf-x265 --concat mkvmerge --resume --temp /home/jack/.cache/av1an/amazingspidermannocrop --min-scene-len 24 -o /home/jack/Videos/Encoded/spiderman2-vmaf95-x265-nocrop.mkv`
amazingspiderman-vmaf-x265.log
:: VMAF Run
Also, the calculated VMAF values seem to be very low or 0 entirely, I'm not sure if this is related.
Already reported with #328 and #325 I think.
@Bl4cKn1gh7 How can you create a vmaf file ?
@phanluchoaofficial20 --vmaf