rdp / ffmpeg-windows-build-helpers

Helper script for cross compiling some media tools for windows, like customizable ffmpeg.exe (with or without non-free components, etc), and some other bonuses like mplayer, mp4box, mxf, etc.
GNU General Public License v3.0
1.07k stars 409 forks source link

ffmpeg won't build using the --ffmpeg-git-checkout-version flag #712

Closed echoxxzz closed 7 months ago

echoxxzz commented 9 months ago

If I try and build ffmpeg using the --ffmpeg-git-checkout-version flag the ffmpeg build fails with the following error:

ERROR: nvenc requested but not found.

hydra3333 commented 9 months ago

eek. what does the configure log say about it ?

echoxxzz commented 9 months ago

Here are my logs. I included the logs using both ffmpeg n6.1-dev and n6.0.

config.logs.zip

hydra3333 commented 9 months ago

Unfortunately the log does not seem very helpful. Is there another more detailed log, say in the ffbuild folder or something ?

rdp commented 9 months ago

Full command line please?

On Thu, Sep 28, 2023 at 12:54 PM echoxxzz @.***> wrote:

If I try and build ffmpeg using the --ffmpeg-git-checkout-version flag the ffmpeg build fails with the following error:

ERROR: nvenc requested but not found.

— Reply to this email directly, view it on GitHub https://github.com/rdp/ffmpeg-windows-build-helpers/issues/712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADBUBUOC4DLSUGAKOCTV3X4XBWBANCNFSM6AAAAAA5LNDIIA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

echoxxzz commented 9 months ago

The full command I was using was:

cross_compile_ffmpeg.sh --disable-nonfree=n --compiler-flavors=win64 --prefer-stable=y --ffmpeg-git-checkout-version=n6.0

After a bit of trial and error I was able to narrow it down to commit: 03823ac0c6a38bd6ba972539e3203a592579792f.

If I use that commit or after it works fine but if I use any commit before it the build script fails with the nvenc requested but not found error.

This kind of makes sense since this was a change to the configure script related to nvenc.

rdp commented 9 months ago

it's working now?

On Sat, Sep 30, 2023 at 1:44 AM echoxxzz @.***> wrote:

The full command I was using was:

cross_compile_ffmpeg.sh --disable-nonfree=n --compiler-flavors=win64 --prefer-stable=y --ffmpeg-git-checkout-version=n6.0

After a bit of trial and error I was able to narrow it down to commit: 03823ac0c6a38bd6ba972539e3203a592579792f.

If I use that commit or after it works fine but if I use any commit before it the build script fails with the nvenc requested but not found error.

This kind of makes sense since this was a change to the configure script related to nvenc.

— Reply to this email directly, view it on GitHub https://github.com/rdp/ffmpeg-windows-build-helpers/issues/712#issuecomment-1741706644, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADBUCDJ6JSVHXDQJ5BYWTX47EULANCNFSM6AAAAAA5LNDIIA . You are receiving this because you commented.Message ID: @.***>

echoxxzz commented 9 months ago

No it still only works using any ffmpeg commit after 03823ac0c6a38bd6ba972539e3203a592579792f. I think it has something to do with the new nvenc headers SDK 12.1 and it probably can't be fixed since the versions of the nvenc headers seem to have to match the ffmpeg configure script.

rdp commented 9 months ago

gotcha, yeah you'd probably want to just disable nvenc for older builds then (manually), sorry for the confusion

On Sun, Oct 1, 2023 at 10:41 AM echoxxzz @.***> wrote:

No it still only works using any ffmpeg commit after 03823ac0c6a38bd6ba972539e3203a592579792f. I think it has something to do with the new nvenc headers SDK 12.1 and it probably can't be fixed since the versions of the nvenc headers seem to have to match the ffmpeg configure script.

— Reply to this email directly, view it on GitHub https://github.com/rdp/ffmpeg-windows-build-helpers/issues/712#issuecomment-1742134447, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADBUBA3M2FPR5YPBMGZZ3X5GMLFANCNFSM6AAAAAA5LNDIIA . You are receiving this because you commented.Message ID: @.***>

FREEWING-JP commented 8 months ago

This is Solution for nvenc error . https://github.com/rdp/ffmpeg-windows-build-helpers/blob/44ea850342aaa9357e83246bc1efbd4b1f93b2ce/extra/wsl_patch_2023_10_for_n4_4_x.sh#L28