Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#6966 closed defect (invalid)

Latest ffmpeg can't compile with latest x264

Reported by: kingprimex Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% BuildFFmpeg() {
    echo "Compiling ffmpeg"
    cd $source_dir
    ffmpeg_version="3.4"
    if [ ! -f  ffmpeg-${ffmpeg_version}.tar.bz2 ]; then
        wget -4 http://ffmpeg.org/releases/ffmpeg-${ffmpeg_version}.tar.bz2
    fi
    tar xjf ffmpeg-${ffmpeg_version}.tar.bz2
    cd ffmpeg-${ffmpeg_version}
    PKG_CONFIG_PATH="${build_dir}/lib/pkgconfig" ./configure \
        --prefix="$build_dir" \
        --extra-cflags="-fPIC -m64 -I${inc_dir}" \
        --extra-ldflags="-L${build_dir}/lib" \
        --bindir="$bin_dir" \
        --enable-gpl \
        --enable-libass \
        --enable-libfdk-aac \
        --enable-libfreetype \
        --enable-libmp3lame \
        --enable-libopus \
        --enable-libtheora \
        --enable-libvorbis \
        --enable-libvpx \
        --enable-libx264 \
        --enable-nonfree \
        --enable-nvenc \
        --enable-pic \
        --enable-libxcb \
        --extra-ldexeflags=-pie \
        --enable-shared
    make -j${cpus}
    make install

OUPUT:


CC	libavcodec/libopus.o
CC	libavcodec/libopusdec.o
CC	libavcodec/libopusenc.o
CC	libavcodec/libtheoraenc.o
CC	libavcodec/libvorbisdec.o
CC	libavcodec/libvorbisenc.o
libavcodec/libtheoraenc.c: In function ‘encode_init’:
libavcodec/libtheoraenc.c:211:5: warning: ‘avcodec_get_chroma_sub_sample’ is deprecated [-Wdeprecated-declarations]
     avcodec_get_chroma_sub_sample(avc_context->pix_fmt, &h->uv_hshift, &h->uv_vshift);
     ^
In file included from libavcodec/libtheoraenc.c:39:0:
libavcodec/avcodec.h:5703:6: note: declared here
 void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift);
      ^
CC	libavcodec/libvpx.o
CC	libavcodec/libvpxdec.o
CC	libavcodec/libvpxenc.o
CC	libavcodec/libx264.o
CC	libavcodec/ljpegenc.o
libavcodec/libx264.c: In function ‘X264_frame’:
libavcodec/libx264.c:282:9: error: ‘x264_bit_depth’ undeclared (first use in this function)
     if (x264_bit_depth > 8)
         ^
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)
     if (x264_bit_depth == 8)

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (8)

comment:1 by kingprimex, 6 years ago

Component: undeterminedavcodec
Priority: normalimportant
Version: unspecifiedgit-master

comment:2 by Hendrik, 6 years ago

Both git-master and the 3.4 branch (although none of the 3.4 releases yet) have been updated for the latest x264 changes.

comment:3 by kingprimex, 6 years ago

Yes. My mistake, thought 3.4 was equivalent of master. It passed the problem.

comment:4 by kingprimex, 6 years ago

Yes. My mistake, thought 3.4 was equivalent of master. It passed the problem.

comment:5 by kingprimex, 6 years ago

Yes. My mistake, thought 3.4 was equivalent of master. It passed the problem.

comment:6 by Hendrik, 6 years ago

Resolution: fixed
Status: newclosed

comment:7 by Carl Eugen Hoyos, 6 years ago

Component: avcodecundetermined
Priority: importantnormal
Resolution: fixedinvalid

comment:8 by Roger Pack, 6 years ago

Or you can revert your libx264 build to something older, like 2451a728246 for instance. FWIW.

Note: See TracTickets for help on using tickets.