2017-11-12 11 views
-2

https://trac.ffmpeg.org/wiki/CompilationGuide/Centoshttps://developer.nvidia.com/ffmpegのガイドに従ってNvidiaサポートでffmpegをコンパイルしようとしています。私は、次のコマンドで終わっている:CentOS 7.4.1708:エラー:x265がpkg-configで見つかりません

PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --enable-pthreads --disable-w32threads --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include -I/usr/local/cuda/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib -L/usr/local/cuda/lib64" --extra-libs='-lpthread -lm' --bindir="$HOME/bin" --enable-gpl --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp

私はffbuild/config.logで探して

ERROR: x265 not found using pkg-config

は、次のエラー明らかにする素晴らしいエラーを取得しています:

gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/home/agilbert/ffmpeg_build/include -I/usr/local/cuda/include -std=c11 -fomit-frame-pointer -pthread -I/home/agilbert/ffmpeg_build/include -I/usr/include/freetype2 -I/home/agilbert/ffmpeg_build/include/opus -I/home/agilbert/ffmpeg_build/include/opus -I/home/agilbert/ffmpeg_build/include -I/home/agilbert/ffmpeg_build/include -I/home/agilbert/ffmpeg_build/include -I/home/agilbert/ffmpeg_build/include -I/home/agilbert/ffmpeg_build/include -I/home/agilbert/ffmpeg_build/include -I/home/agilbert/ffmpeg_build/include -I/home/agilbert/ffmpeg_build/include -L/home/agilbert/ffmpeg_build/lib -c -o /tmp/ffconf.MfrVBc4k/test.o /tmp/ffconf.MfrVBc4k/test.c 
In file included from /tmp/ffconf.MfrVBc4k/test.c:1:0: 
/home/agilbert/ffmpeg_build/include/x265.h:1753:40: error: expected ';', ',' or ')' before '&' token 
FILE* x265_csvlog_open(const x265_param& param); 
             ^
/home/agilbert/ffmpeg_build/include/x265.h:1757:40: error: expected ';', ',' or ')' before '&' token 
void x265_csvlog_frame(const x265_param& param, const x265_picture& pic); 
             ^
/home/agilbert/ffmpeg_build/include/x265.h:1762:64: error: expected ';', ',' or ')' before '&' token 
void x265_csvlog_encode(x265_encoder *encoder, const x265_stats& stats, int argc, char** argv); 
                   ^
/home/agilbert/ffmpeg_build/include/x265.h:1766:36: error: expected ';', ',' or ')' before '&' token 
void x265_dither_image(x265_picture& pic, int picWidth, int picHeight, int16_t *errorBuf, int bitDepth); 
            ^
/home/agilbert/ffmpeg_build/include/x265.h:1815:50: error: expected ';', ',' or ')' before '&' token 
    FILE*   (*csvlog_open)(const x265_param&); 
               ^
/home/agilbert/ffmpeg_build/include/x265.h:1816:51: error: expected ';', ',' or ')' before '&' token 
    void   (*csvlog_frame)(const x265_param&, const x265_picture&); 
               ^
/home/agilbert/ffmpeg_build/include/x265.h:1817:67: error: expected ';', ',' or ')' before '&' token 
    void   (*csvlog_encode)(x265_encoder*, const x265_stats&, int, char**); 
                   ^
/home/agilbert/ffmpeg_build/include/x265.h:1818:47: error: expected ';', ',' or ')' before '&' token 
    void   (*dither_image)(x265_picture&, int, int, int16_t*, int); 
              ^
/home/agilbert/ffmpeg_build/include/x265.h:1820:1: warning: no semicolon at end of struct or union [enabled by default] 
} x265_api; 
^ 

gccのバージョンをgcc-4.8.5-16.el7.x86_64

以下の質問によると:Yes - x265はhttps://trac.ffmpeg.org/wiki/CompilationGuide/Centosとしてインストールされ、yesのpkg-configがそれを見つけています。コンパイルエラーにより、--pkg-config-flags optnionにフラグがないと思うが、動作するフラグが見つからない。

x265を有効にするためにpkg-configに渡す必要があることを誰かが知っていますか?

+0

x265コーデックライブラリをインストールするか、使用するように指定しないでください。これは明らかにCUDAとは関係がないので、タグを削除しました。実際、私は本当にこの質問がどこにあるのかわかりません(本当に質問しましたか?)、特に[SO]の話題になっています。 – talonmies

+0

x265がインストールされています - 私が従っていた最初のガイドに従って。エラーメッセージは、いくつかの種類の構文上の問題であり、x265.hが見つかりませんでした。質問をもっと明白にするためにこれを改訂します:-) – Adrian

+1

x265.pcとは何ですか? x265 説明:ここで – Mulvya

答えて

0

他の人に役立つ場合は、--enable-nvencと指定すると、--enable-libx265というオプションを指定する必要がないことがわかりました。

コンパイルエラーがまだ分かりませんが、--enable-nvencでは、nVidiaベースのGPUアクセラレーションでH.265でエンコードできます。

+0

あなたは正しい - 修正されました。 – Adrian

関連する問題