Hi,

I am trying to compile ffmpeg from source with libx264.  Because I don’t have 
any super-user privileges, I am building it under my home.

I first installed the latest stable release of x264 from VideoLAN.  Then under 
the ffmpeg source, I do

./configure --prefix=$HOME --extra-cflags=-I$HOME/include 
--extra-cxxflags=-I$HOME/include --extra-objcflags=-I$HOME/include 
--extra-ldflags=-L$HOME/lib --enable-libx264 --enable-gpl

From the output, I do see libx264 showing up in the section of External 
libraries, and I see h264 and h264_cuvid showing up in Enabled decoders.  
However, when I

make

something wrong with the code libavcodec/libx264.c:

CC      libavcodec/libx264.o
libavcodec/libx264.c: In function ‘X264_frame’:
libavcodec/libx264.c:282:9: error: ‘x264_bit_depth’ undeclared (first use in 
this function); did you mean ‘x264_picture_t’?
     if (x264_bit_depth > 8)
         ^~~~~~~~~~~~~~
         x264_picture_t
libavcodec/libx264.c:282:9: note: each undeclared identifier is reported only 
once for each function it appears in
libavcodec/libx264.c: In function ‘X264_init_static’:
libavcodec/libx264.c:892:9: error: ‘x264_bit_depth’ undeclared (first use in 
this function); did you mean ‘x264_picture_t’?
     if (x264_bit_depth == 8)
         ^~~~~~~~~~~~~~
         x264_picture_t
make: *** [libavcodec/libx264.o] Error 1

The problem was that the variable x264_bit_depth is undefined.  I tried to look 
for this variable in any possible headers, especially x264_config.h and x264.h 
generated by the x264 installation, but nothing exists.

Am I missing something in all this process?

Sincerely,
C.-C.

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to