master-of-zen / Av1an

Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding
GNU General Public License v3.0
1.51k stars 156 forks source link

Error applying option 'model_path' to filter 'libvmaf': Option not found #856

Closed allrobot closed 2 months ago

allrobot commented 5 months ago
F:\>av1an -i input.mp4 --encoder svt-av1 --target-quality 95 --temp "F:/BaiduNetdiskDownload/test/新建文件夹 (2)/av1an" --probes 6 --min-q 18 --max-q 55 --video-params=" --rc 0 --preset 4 --input-depth 10 --tune 0 --film-grain 4 --film-grain-denoise 0 --keyint 10s"  --vmaf-path "C:/ProgramData/anaconda3/envs/python312/vmaf/model/vmaf_float_v0.6.1.pkl"
INFO [av1an_core::context] Input: 1920x1080 @ 60.000 fps, YUV420P, SDR
Scene detection
INFO [av1an_core::context] scenecut: found 1 scene(s) [with extra_splits (600 frames): 13 scene(s)]
00:00:24 ▐█████████████████████████████████████████████████████████████████████████▌ 100% 7200/7200 (293.69 fps, eta 0s)thread 'main' panicked at av1an-core\src\context.rs:1090:12:
called `Result::unwrap()` on an `Err` value: encoder crashed: exit code: 0xabafb008
stdout:

stderr:
        Error applying option 'model_path' to filter 'libvmaf': Option not found
        Failed to set value '[0:v]scale=1920x1080:flags=bicubic:force_original_aspect_ratio=decrease,setpts=PTS-STARTPTS,setsar=1[distorted];[1:v]scale=1920x1080:flags=bicubic:force_original_aspect_ratio=decrease,setpts=PTS-STARTPTS,setsar=1[ref];[distorted][ref]libvmaf=log_fmt='json':eof_action=endall:log_path=//?/F\\:/BaiduNetdiskDownload/test/新建文件夹 (2)/av1an/split/0.json:model_path=//?/C\\:/ProgramData/anaconda3/envs/python312/vmaf/model/vmaf_float_v0.6.1.pkl:n_threads=16' for option 'filter_complex': Option not found
        Error parsing global options: Option not found

source pipe stderr:

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: BaseThreadInitThunk
  13: RtlUserThreadStart
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

C:/ProgramData/anaconda3/envs/python312/vmaf/model/vmaf_float_v0.6.1.pkl or C:/ProgramData/anaconda3/envs/python312/vmaf/model/vmaf_v0.6.1.json cannot work.

I git clone https://github.com/Netflix/vmaf, how to solve it?

image image

If vmaf-path is not used, it prompts 'xxx' not found.

F:\>av1an -i input.mp4 --encoder svt-av1 --target-quality 95 --temp "F:/av1an" --probes 6 --min-q 18 --max-q 55 --video-params=" --rc 0 --preset 4 --input-depth 10 --tune 0 --film-grain 4 --film-grain-denoise 0 --keyint 10s"
INFO [av1an_core::context] Input: 1920x1080 @ 60.000 fps, YUV420P, SDR
Scene detection
INFO [av1an_core::context] scenecut: found 1 scene(s) [with extra_splits (600 frames): 13 scene(s)]
00:00:24 ▐█████████████████████████████████████████████████████████████████████████▌ 100% 7200/7200 (295.61 fps, eta 0s)thread 'main' panicked at av1an-core\src\vmaf.rs:263:48:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "The specified file cannot be found." }
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
FreezyLemon commented 3 months ago

model_path has been deprecated for a while (relevant commit, early 2022)

use model='path=...'.

Guess this needs to be changed

EDIT: Already reported in #821.