Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

av1an build failed: process didn't exit successfully: C:\\Av1an\target\release\build\ffmpeg-sys-the-third-911bd4f4d7a7bd1e\build-script-build (exit code: 101) #854

Open
allrobot opened this issue Jun 21, 2024 · 4 comments

Comments

@allrobot
Copy link

allrobot commented Jun 21, 2024

C:\Tools\Other_Tools\Video_Tools>git clone https://github.com/master-of-zen/Av1an
Cloning into 'Av1an'...
remote: Enumerating objects: 11544, done.
remote: Counting objects: 100% (438/438), done.
remote: Compressing objects: 100% (251/251), done.
remote: Total 11544 (delta 249), reused 323 (delta 169), pack-reused 11106
Receiving objects: 100% (11544/11544), 16.29 MiB | 8.95 MiB/s, done.
Resolving deltas: 100% (7399/7399), done.

C:\Tools\Other_Tools\Video_Tools>cd av1an

C:\Tools\Other_Tools\Video_Tools\Av1an>cargo build --release
    Updating crates.io index
  Downloaded num-conv v0.1.0
  Downloaded is-terminal v0.4.12
  Downloaded new_debug_unreachable v1.0.6
  Downloaded plotters-svg v0.3.6
  Downloaded is_terminal_polyfill v1.70.0
  Downloaded windows-targets v0.52.5
  Downloaded strum v0.26.2
  Downloaded profiling-procmacros v1.0.15
  Downloaded colorchoice v1.0.1
  Downloaded autocfg v1.3.0
  Downloaded anstyle-wincon v3.0.3
  Downloaded thiserror v1.0.61
  Downloaded cargo_metadata v0.18.1
  Downloaded rustversion v1.0.17
  Downloaded num-integer v0.1.46
  Downloaded which v6.0.1
  Downloaded paste v1.0.15
  Downloaded thiserror-impl v1.0.61
  Downloaded semver v1.0.23
  Downloaded lock_api v0.4.12
  Downloaded v_frame v0.3.8
  Downloaded getrandom v0.2.15
  Downloaded unicode-width v0.1.12
  Downloaded time-macros v0.2.18
  Downloaded strum_macros v0.26.2
  Downloaded parking_lot_core v0.9.10
  Downloaded pin-project-lite v0.2.14
  Downloaded num-traits v0.2.19
  Downloaded crossbeam-utils v0.8.20
  Downloaded clap v4.5.4
  Downloaded bitflags v2.5.0
  Downloaded num-rational v0.4.2
  Downloaded jobserver v0.1.31
  Downloaded smallvec v1.13.2
  Downloaded quote v1.0.36
  Downloaded camino v1.1.7
  Downloaded bitstream-io v2.3.0
  Downloaded libloading v0.8.3
  Downloaded clap_derive v4.5.4
  Downloaded built v0.7.3
  Downloaded log v0.4.21
  Downloaded vergen v8.3.1
  Downloaded textwrap v0.16.1
  Downloaded serde_derive v1.0.202
  Downloaded unicode-bidi v0.3.15
  Downloaded unicode-normalization v0.1.23
  Downloaded sysinfo v0.30.12
  Downloaded time v0.3.36
  Downloaded rayon v1.10.0
  Downloaded syn v2.0.65
  Downloaded regex v1.10.4
  Downloaded regex-syntax v0.8.3
  Downloaded ffmpeg-sys-the-third v2.0.0+ffmpeg-7.0
  Downloaded av-scenechange v0.12.2
  Downloaded git2 v0.18.3
  Downloaded chrono v0.4.38
  Downloaded flexi_logger v0.28.0
  Downloaded bindgen v0.69.4
  Downloaded winsafe v0.0.19
  Downloaded windows_x86_64_msvc v0.52.5
  Downloaded ffmpeg-the-third v2.0.1+ffmpeg-7.0
  Downloaded tokio v1.37.0
  Downloaded libc v0.2.155
  Downloaded regex-automata v0.4.6
  Downloaded serde_json v1.0.117
  Downloaded libgit2-sys v0.16.2+1.7.2
  Downloaded serde v1.0.202
  Downloaded rayon-core v1.12.1
  Downloaded plotters v0.3.6
  Downloaded num-bigint v0.4.5
  Downloaded mio v0.8.11
  Downloaded memchr v2.7.2
  Downloaded aho-corasick v1.1.3
  Downloaded itertools v0.13.0
  Downloaded itertools v0.12.1
  Downloaded indicatif v0.17.8
  Downloaded hashbrown v0.14.5
  Downloaded crossbeam-channel v0.5.13
  Downloaded libz-sys v1.1.16
  Downloaded clap_builder v4.5.2
  Downloaded cc v1.0.98
  Downloaded socket2 v0.5.7
  Downloaded proc-macro2 v1.0.83
  Downloaded parking_lot v0.12.2
  Downloaded bytes v1.6.0
  Downloaded anyhow v1.0.86
  Downloaded ryu v1.0.18
  Downloaded plotters-backend v0.3.6
  Downloaded av-data v0.4.2
  Downloaded anstream v0.6.14
  Downloaded num-derive v0.4.2
  Downloaded strsim v0.11.1
  Downloaded pkg-config v0.3.30
  Downloaded either v1.12.0
  Downloaded clap_lex v0.7.0
  Downloaded profiling v1.0.15
  Downloaded itoa v1.0.11
  Downloaded heck v0.5.0
  Downloaded cargo-platform v0.1.8
  Downloaded anstyle-query v1.0.3
  Downloaded anstyle-parse v0.2.4
  Downloaded anstyle v1.0.7
  Downloaded aligned-vec v0.5.0
  Downloaded 103 crates (15.1 MB) in 3.96s (largest was `libz-sys` at 4.0 MB)
   Compiling proc-macro2 v1.0.83
   Compiling unicode-ident v1.0.12
   Compiling windows_x86_64_msvc v0.52.5
   Compiling libc v0.2.155
   Compiling autocfg v1.3.0
   Compiling crossbeam-utils v0.8.20
   Compiling jobserver v0.1.31
   Compiling once_cell v1.19.0
   Compiling serde v1.0.202
   Compiling pkg-config v0.3.30
   Compiling thiserror v1.0.61
   Compiling vcpkg v0.2.15
   Compiling memchr v2.7.2
   Compiling cfg-if v1.0.0
   Compiling either v1.12.0
   Compiling rayon-core v1.12.1
   Compiling regex-syntax v0.8.3
   Compiling glob v0.3.1
   Compiling cc v1.0.98
   Compiling anyhow v1.0.86
   Compiling aho-corasick v1.1.3
   Compiling num-traits v0.2.19
   Compiling bitflags v2.5.0
   Compiling clang-sys v1.7.0
   Compiling minimal-lexical v0.2.1
   Compiling rustversion v1.0.17
   Compiling nom v7.1.3
   Compiling windows-targets v0.52.5
   Compiling windows-sys v0.52.0
   Compiling regex-automata v0.4.6
   Compiling quote v1.0.36
   Compiling crossbeam-epoch v0.9.18
   Compiling libloading v0.8.3
   Compiling windows_x86_64_msvc v0.48.5
   Compiling syn v2.0.65
   Compiling bindgen v0.69.4
   Compiling crossbeam-deque v0.8.5
   Compiling itertools v0.12.1
   Compiling rustc-hash v1.1.0
   Compiling cexpr v0.6.0
   Compiling shlex v1.3.0
   Compiling lazy_static v1.4.0
   Compiling tinyvec_macros v0.1.1
   Compiling lazycell v1.3.0
   Compiling tinyvec v1.6.0
   Compiling num-integer v0.1.46
   Compiling semver v1.0.23
   Compiling log v0.4.21
   Compiling num-bigint v0.4.5
   Compiling winapi v0.3.9
   Compiling rayon v1.10.0
   Compiling windows-targets v0.48.5
   Compiling unicode-normalization v0.1.23
   Compiling regex v1.10.4
   Compiling itoa v1.0.11
   Compiling serde_json v1.0.117
   Compiling camino v1.1.7
   Compiling libz-sys v1.1.16
   Compiling libgit2-sys v0.16.2+1.7.2
   Compiling percent-encoding v2.3.1
   Compiling unicode-bidi v0.3.15
   Compiling form_urlencoded v1.2.1
   Compiling windows-sys v0.48.0
   Compiling num-rational v0.4.2
   Compiling idna v0.5.0
   Compiling lock_api v0.4.12
   Compiling ryu v1.0.18
   Compiling built v0.7.3
   Compiling bytes v1.6.0
   Compiling nasm-rs v0.2.5
   Compiling powerfmt v0.2.0
   Compiling aligned-vec v0.5.0
   Compiling paste v1.0.15
   Compiling parking_lot_core v0.9.10
   Compiling vapoursynth-sys v0.4.0
   Compiling v_frame v0.3.8
   Compiling deranged v0.3.11
   Compiling url v2.5.0
   Compiling vergen v8.3.1
   Compiling getrandom v0.2.15
   Compiling portable-atomic v1.6.0
   Compiling utf8parse v0.2.1
   Compiling ntapi v0.4.1
   Compiling smallvec v1.13.2
   Compiling rav1e v0.7.1
   Compiling byte-slice-cast v1.2.2
   Compiling time-core v0.1.2
   Compiling ffmpeg-the-third v2.0.1+ffmpeg-7.0
   Compiling arrayvec v0.7.4
   Compiling scopeguard v1.2.0
   Compiling anstyle v1.0.7
   Compiling num-conv v0.1.0
   Compiling unicode-width v0.1.12
   Compiling time v0.3.36
   Compiling maybe-rayon v0.1.1
   Compiling anstyle-wincon v3.0.3
   Compiling av1-grain v0.2.3
   Compiling anstyle-parse v0.2.4
   Compiling rand_core v0.6.4
   Compiling anstyle-query v1.0.3
   Compiling simd_helpers v0.1.0
   Compiling windows-core v0.52.0
   Compiling heck v0.4.1
   Compiling noop_proc_macro v0.3.0
   Compiling ppv-lite86 v0.2.17
   Compiling bitstream-io v2.3.0
   Compiling plotters-backend v0.3.6
   Compiling bitflags v1.3.2
   Compiling encode_unicode v0.3.6
   Compiling colorchoice v1.0.1
   Compiling new_debug_unreachable v1.0.6
   Compiling is_terminal_polyfill v1.70.0
   Compiling strsim v0.11.1
   Compiling anstream v0.6.14
   Compiling console v0.15.8
   Compiling windows v0.52.0
   Compiling rand_chacha v0.3.1
   Compiling plotters-svg v0.3.6
   Compiling mio v0.8.11
   Compiling home v0.5.9
   Compiling socket2 v0.5.7
   Compiling unicode-linebreak v0.1.5
   Compiling hashbrown v0.14.5
   Compiling std_prelude v0.2.12
   Compiling pin-project-lite v0.2.14
   Compiling number_prefix v0.4.0
   Compiling winsafe v0.0.19
   Compiling heck v0.5.0
   Compiling smawk v0.3.2
   Compiling stfu8 v0.2.7
   Compiling y4m v0.8.0
   Compiling clap_lex v0.7.0
   Compiling num_cpus v1.16.0
   Compiling textwrap v0.16.1
   Compiling indicatif v0.17.8
   Compiling clap_builder v4.5.2
   Compiling tokio v1.37.0
   Compiling affinity v0.1.2
   Compiling plotters v0.3.6
   Compiling rand v0.8.5
   Compiling parking_lot v0.12.2
   Compiling serde_derive v1.0.202
   Compiling thiserror-impl v1.0.61
   Compiling num-derive v0.4.2
   Compiling profiling-procmacros v1.0.15
   Compiling arg_enum_proc_macro v0.3.4
   Compiling strum_macros v0.26.2
   Compiling which v6.0.1
   Compiling clap_derive v4.5.4
   Compiling nu-ansi-term v0.49.0
   Compiling ansi_term v0.12.1
   Compiling atty v0.2.14
   Compiling is-terminal v0.4.12
   Compiling chrono v0.4.38
   Compiling itertools v0.13.0
   Compiling crossbeam-channel v0.5.13
   Compiling simdutf8 v0.1.4
   Compiling splines v4.3.1
   Compiling profiling v1.0.15
   Compiling clap v4.5.4
   Compiling strum v0.26.2
   Compiling av-data v0.4.2
   Compiling vapoursynth v0.4.0
   Compiling av-bitstream v0.2.0
   Compiling flexi_logger v0.28.0
   Compiling ffmpeg-sys-the-third v2.0.0+ffmpeg-7.0
   Compiling av-format v0.7.0
   Compiling av-ivf v0.5.0
error: failed to run custom build command for `ffmpeg-sys-the-third v2.0.0+ffmpeg-7.0`

Caused by:
  process didn't exit successfully: `C:\Tools\Other_Tools\Video_Tools\Av1an\target\release\build\ffmpeg-sys-the-third-911bd4f4d7a7bd1e\build-script-build` (exit code: 101)
warning: build failed, waiting for other jobs to finish...

C:\Tools\Other_Tools\Video_Tools\Av1an>

Extract the file ffmpeg-5.0.1-full_build-shared.7z to a directory, then create a new environment variable called FFMPEG_DIR (this can be done with with the "Edit environment variables for your account" function available in the control panel), and set it to the directory that you extracted the original file to (for example, set it to C:\Users\Username\Downloads\ffmpeg-5.0.1-full_build-shared).

FFMPEG_DIR path is: C:\Tools\Other_Tools\Video_Tools\ffmpeg\ffmpeg-5.0.1-full_build-shared

How to solve it?

@Uranite
Copy link
Contributor

Uranite commented Jun 22, 2024

First, you should be using FFmpeg 7, unless you really need ffmpeg 5.0.1 for compatibility reasons.
The compile documentation has just been updated, you should check it out and see if it clarifies things.

It might be that rust fails to detect FFmpeg for some reason, make sure that your FFmpeg folder is not nested (e.g ffmpeg-5.0.1-full_build-shared\ffmpeg-5.0.1-full_build-shared)
The contents of the FFmpeg folder should look like this.
explorer_596_2024-06-22-1719037281

@allrobot
Copy link
Author

First, you should be using FFmpeg 7, unless you really need ffmpeg 5.0.1 for compatibility reasons. The compile documentation has just been updated, you should check it out and see if it clarifies things.

chrome_XMmXOQxcgs

@Uranite
Copy link
Contributor

Uranite commented Jun 24, 2024

Try running this before compiling
set FFMPEG_DIR=C:\Tools\Other_Tools\Video_Tools\ffmpeg\ffmpeg-7.0.1-full_build-shared

@allrobot
Copy link
Author

allrobot commented Jun 25, 2024

Try running this before compiling set FFMPEG_DIR=C:\Tools\Other_Tools\Video_Tools\ffmpeg\ffmpeg-7.0.1-full_build-shared

chrome_whGGU6PxoY.webm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants