vps交流

【求助】win 编译ffmpeg nvida 模块


  1. ./configure –enable-nonfree –enable-gpl –enable-version3 –enable-static –disable-w32threads –disable-autodetect –enable-fontconfig –enable-iconv –enable-gnutls –enable-libxml2 –enable-gmp –enable-bzlib –enable-lzma –enable-libsnappy –enable-zlib –enable-librist –enable-libsrt –enable-libssh –enable-libzmq –enable-avisynth –enable-libbluray –enable-libcaca –enable-sdl2 –enable-libdav1d –disable-libdavs2 –disable-libuavs3d –enable-libzvbi –enable-librav1e –enable-libsvtav1 –enable-libwebp –enable-libx264 –enable-libx265 –enable-libxavs2 –enable-libxvid –enable-libaom –enable-libjxl –enable-libopenjpeg –enable-libvpx –enable-mediafoundation –enable-libass –enable-frei0r –enable-libfreetype –enable-libfribidi –enable-liblensfun –enable-libvidstab –enable-libvmaf –enable-libzimg –enable-amf –enable-cuda-llvm –enable-cuvid –enable-ffnvcodec –enable-nvdec –enable-nvenc –enable-d3d11va –enable-dxva2 –enable-libmfx –enable-libshaderc –enable-vulkan –enable-libplacebo –enable-opencl –enable-libcdio –enable-libgme –enable-libmodplug –enable-libopenmpt –enable-libopencore-amrwb –enable-libmp3lame –enable-libshine –enable-libtheora –enable-libtwolame –enable-libvo-amrwbenc –enable-libilbc –enable-libgsm –enable-libopencore-amrnb –enable-libopus –enable-libspeex –enable-libvorbis –enable-ladspa –enable-libbs2b –enable-libflite –enable-libmysofa –enable-librubberband –enable-libsoxr –enable-chromaprint –enable-cuda-nvcc –enable-libnpp –toolchain=msvc –extra-cflags=-I./nv_sdk –extra-ldflags=’-libpath:./nv_sdk’

复制代码

用的 msys2 编译的 出了一些奇奇怪怪的问题

  1. test.c
  2. ./ffconf.pf5ZAtvo/test.c(3): error C2143: syntax error: missing ‘)’ before ‘type’
  3. ./ffconf.pf5ZAtvo/test.c(3): error C2085: ‘f’: not in formal parameter list
  4. ./ffconf.pf5ZAtvo/test.c(3): error C2143: syntax error: missing ‘;’ before ‘type’
  5. ./ffconf.pf5ZAtvo/test.c(3): error C2059: syntax error: ‘)’
  6. ./ffconf.pf5ZAtvo/test.c(3): error C2085: ‘g’: not in formal parameter list
  7. ./ffconf.pf5ZAtvo/test.c(3): error C2143: syntax error: missing ‘;’ before ‘{‘
  8. ./ffconf.pf5ZAtvo/test.c(3): error C2065: ‘f’: undeclared identifier
  9. ./ffconf.pf5ZAtvo/test.c(3): error C2088: ‘*’: illegal for struct
  10. ./ffconf.pf5ZAtvo/test.c(3): error C2198: ‘cexp’: too few arguments for call
  11. ./ffconf.pf5ZAtvo/test.c(3): error C2440: ‘return’: cannot convert from ‘_Dcomplex’ to ‘float’
  12. ./ffconf.pf5ZAtvo/test.c(4): warning C4311: ‘type cast’: pointer truncation from ‘float (__cdecl *)()’ to ‘int’
  13. require_headers avisynth/avisynth_c.h avisynth/avs/version.h
  14. check_headers avisynth/avisynth_c.h avisynth/avs/version.h
  15. test_cpp
  16. BEGIN ./ffconf.pf5ZAtvo/test.c
  17.     1        #include <avisynth/avisynth_c.h>
  18.     2        #include <avisynth/avs/version.h>
  19.     3        int x;
  20. END ./ffconf.pf5ZAtvo/test.c
  21. cl.exe -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -D_WIN32_WINNT=0x0600 -nologo -I./nv_sdk -IC:/msys64/usr/include -P -Fi./ffconf.pf5ZAtvo/test.o ./ffconf.pf5ZAtvo/test.c
  22. test.c
  23. ./ffconf.pf5ZAtvo/test.c(1): fatal error C1083: Cannot open include file: ‘avisynth/avisynth_c.h’: No such file or directory
  24. ERROR: avisynth/avisynth_c.h avisynth/avs/version.h not found

复制代码

有没有大佬帮编译一个?  有偿

avisynth/avisynth_c.h avisynth/avs/version.h not found

没找到文件

看字面意思,好像是需要安装avisynth

唐王李世民 发表于 2022-5-30 15:13
avisynth/avisynth_c.h avisynth/avs/version.h not found

没找到文件

就是这个东西不知道为啥 也有人说是 ffmpeg 5.0  avisynth+ 版本问题等等

–enable-avisynth
要么你在编译里取消这一部份
其实官网不是有编译好的包?不需要另外单独再编译了

  1. PS C:UsersAdministrator> D:ffmpegbinffmpeg.exe -h
  2. ffmpeg version N-102564-g2261cc6d8a Copyright (c) 2000-2021 the FFmpeg developers
  3.   built with gcc 10-win32 (GCC) 20210408
  4.   configuration: –prefix=/ffbuild/prefix –pkg-config-flags=–static –pkg-config=pkg-config –cross-prefix=x86_64-w64-
  5. mingw32- –arch=x86_64 –target-os=mingw32 –enable-gpl –enable-version3 –disable-debug –disable-w32threads –enable-
  6. pthreads –enable-iconv –enable-libxml2 –enable-zlib –enable-libfreetype –enable-libfribidi –enable-gmp –enable-lz
  7. ma –enable-fontconfig –enable-libvorbis –enable-opencl –enable-libvmaf –enable-vulkan –enable-amf –enable-libaom
  8. –enable-avisynth –enable-libdav1d –enable-libdavs2 –enable-ffnvcodec –enable-cuda-llvm –enable-libglslang –enable
  9. -libgme –enable-libass –enable-libbluray –enable-libmp3lame –enable-libopus –enable-libtheora –enable-libvpx –ena
  10. ble-libwebp –enable-lv2 –enable-libmfx –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libopenjpeg –en
  11. able-librav1e –enable-librubberband –enable-schannel –enable-sdl2 –enable-libsoxr –enable-libsrt –enable-libsvtav1
  12. –enable-libtwolame –enable-libuavs3d –enable-libvidstab –enable-libx264 –enable-libx265 –enable-libxavs2 –enable
  13. -libxvid –enable-libzimg –extra-cflags=-DLIBTWOLAME_STATIC –extra-cxxflags= –extra-ldflags=-pthread –extra-ldexefla
  14. gs= –extra-libs=-lgomp
  15.   libavutil      57.  0.100 / 57.  0.100
  16.   libavcodec     59.  1.100 / 59.  1.100
  17.   libavformat    59.  2.100 / 59.  2.100
  18.   libavdevice    59.  0.100 / 59.  0.100
  19.   libavfilter     8.  0.101 /  8.  0.101
  20.   libswscale      6.  0.100 /  6.  0.100
  21.   libswresample   4.  0.100 /  4.  0.100
  22.   libpostproc    56.  0.100 / 56.  0.100
  23. Hyper fast Audio and Video encoder
  24. usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
  25. Getting help:
  26.     -h      — print basic options
  27.     -h long — print more options
  28.     -h full — print all options (including all format and codec specific options, very long)
  29.     -h type=name — print all options for the named decoder/encoder/demuxer/muxer/filter/bsf/protocol
  30.     See man ffmpeg for detailed description of the options.
  31. Print help / information / capabilities:
  32. -L                  show license
  33. -h topic            show help
  34. -? topic            show help
  35. -help topic         show help
  36. –help topic        show help
  37. -version            show version
  38. -buildconf          show build configuration
  39. -formats            show available formats
  40. -muxers             show available muxers
  41. -demuxers           show available demuxers
  42. -devices            show available devices
  43. -codecs             show available codecs
  44. -decoders           show available decoders
  45. -encoders           show available encoders
  46. -bsfs               show available bit stream filters
  47. -protocols          show available protocols
  48. -filters            show available filters
  49. -pix_fmts           show available pixel formats
  50. -layouts            show standard channel layouts
  51. -sample_fmts        show available audio sample formats
  52. -colors             show available color names
  53. -sources device     list sources of the input device
  54. -sinks device       list sinks of the output device
  55. -hwaccels           show available HW acceleration methods
  56. Global options (affect whole program instead of just one file):
  57. -loglevel loglevel  set logging level
  58. -v loglevel         set logging level
  59. -report             generate a report
  60. -max_alloc bytes    set maximum size of a single allocated block
  61. -y                  overwrite output files
  62. -n                  never overwrite output files
  63. -ignore_unknown     Ignore unknown stream types
  64. -filter_threads     number of non-complex filter threads
  65. -filter_complex_threads  number of threads for -filter_complex
  66. -stats              print progress report during encoding
  67. -max_error_rate maximum error rate  ratio of decoding errors (0.0: no errors, 1.0: 100% errors) above which ffmpeg retur
  68. ns an error instead of success.
  69. -bits_per_raw_sample number  set the number of bits per raw sample
  70. -vol volume         change audio volume (256=normal)
  71. Per-file main options:
  72. -f fmt              force format
  73. -c codec            codec name
  74. -codec codec        codec name
  75. -pre preset         preset name
  76. -map_metadata outfile[,metadata]:infile[,metadata]  set metadata information of outfile from infile
  77. -t duration         record or transcode "duration" seconds of audio/video
  78. -to time_stop       record or transcode stop time
  79. -fs limit_size      set the limit file size in bytes
  80. -ss time_off        set the start time offset
  81. -sseof time_off     set the start time offset relative to EOF
  82. -seek_timestamp     enable/disable seeking by timestamp with -ss
  83. -timestamp time     set the recording timestamp (‘now’ to set the current time)
  84. -metadata string=string  add metadata
  85. -program title=string:st=number…  add program with specified streams
  86. -target type        specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-
  87. " or "film-")
  88. -apad               audio pad
  89. -frames number      set the number of frames to output
  90. -filter filter_graph  set stream filtergraph
  91. -filter_script filename  read stream filtergraph description from a file
  92. -reinit_filter      reinit filtergraph on input parameter changes
  93. -discard            discard
  94. -disposition        disposition
  95. Video options:
  96. -vframes number     set the number of video frames to output
  97. -r rate             set frame rate (Hz value, fraction or abbreviation)
  98. -fpsmax rate        set max frame rate (Hz value, fraction or abbreviation)
  99. -s size             set frame size (WxH or abbreviation)
  100. -aspect aspect      set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
  101. -bits_per_raw_sample number  set the number of bits per raw sample
  102. -vn                 disable video
  103. -vcodec codec       force video codec (‘copy’ to copy stream)
  104. -timecode hh:mm:ss[:;.]ff  set initial TimeCode value.
  105. -pass n             select the pass number (1 to 3)
  106. -vf filter_graph    set video filters
  107. -ab bitrate         audio bitrate (please use -b:a)
  108. -b bitrate          video bitrate (please use -b:v)
  109. -dn                 disable data
  110. Audio options:
  111. -aframes number     set the number of audio frames to output
  112. -aq quality         set audio quality (codec-specific)
  113. -ar rate            set audio sampling rate (in Hz)
  114. -ac channels        set number of audio channels
  115. -an                 disable audio
  116. -acodec codec       force audio codec (‘copy’ to copy stream)
  117. -vol volume         change audio volume (256=normal)
  118. -af filter_graph    set audio filters
  119. Subtitle options:
  120. -s size             set frame size (WxH or abbreviation)
  121. -sn                 disable subtitle
  122. -scodec codec       force subtitle codec (‘copy’ to copy stream)
  123. -stag fourcc/tag    force subtitle tag/fourcc
  124. -fix_sub_duration   fix subtitles duration
  125. -canvas_size size   set canvas size (WxH or abbreviation)
  126. -spre preset        set the subtitle options to the indicated preset
  127. PS C:UsersAdministrator>

复制代码

https://github.com/AviSynth/AviSynthPlus/releases

或者你先安装AviSynth再编译ffmpeg

唐王李世民 发表于 2022-5-30 15:22
其实官网不是有编译好的包?不需要另外单独再编译了

官方的不带 过滤器加速模块   xxx_npp