nschlia / ffmpegfs

FUSE-based transcoding filesystem with video support from many formats to FLAC, MP4, TS, WebM, OGG, MP3, HLS, and others.
https://nschlia.github.io/ffmpegfs/
GNU General Public License v3.0
196 stars 14 forks source link

build error with recent FFmpeg #146

Closed dangowrt closed 1 year ago

dangowrt commented 1 year ago

Trying to build ffmpegfs on archlinux against FFmpeg 6.0 fails:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for int32_t... yes
checking for off_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking size of int... 4
checking size of long... 8
checking size of off_t... 8
checking size of time_t... 8
checking size of time_t type... long
checking size of pthread_t... 8
checking size of pthread_t type... long
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for chardet >= 1.0.4... yes
checking for fuse >= 2.6.0... yes
checking for libcue >= 2.1.0... yes
checking for sqlite3 >= 3.7.13... yes
checking for library containing sqlite3_errstr... -lsqlite3
checking for library containing sqlite3_db_cacheflush... none required
checking for library containing sqlite3_expanded_sql... none required
checking for a2x... /usr/bin/a2x
checking for a2x... yes
checking for w3m... /usr/bin/w3m
checking for w3m... yes
checking for libavutil >= 56.22.100... yes
checking for libavcodec >= 58.35.100... yes
checking for libavformat >= 58.20.100... yes
checking for libavfilter >= 7.40.101... yes
checking for libswscale >= 5.3.100... yes
checking for libswresample >= 3.3.100... yes
checking for dvdread >= 5.0.0... yes
checking for libbluray >= 0.6.2... yes
Internal S/VCD support enabled... yes
checking for doxygen... doxygen
checking for curl... curl
checking for dot... dot
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating test/Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
Making all in src
...
ffmpeg_transcoder.cc:670:2: warning: #warning is a GCC extension
  670 | #warning "Your FFMPEG distribution is missing AV_CODEC_CAP_TRUNCATED flag. Probably requires fixing!"
      |  ^~~~~~~
ffmpeg_transcoder.cc:670:2: warning: #warning "Your FFMPEG distribution is missing AV_CODEC_CAP_TRUNCATED flag. Probably requires fixing!" [-Wcpp]
ffmpeg_transcoder.cc: In member function ‘int FFmpeg_Transcoder::init_deinterlace_filters(AVCodecContext*, AVPixelFormat, const AVRational&, const AVRational&)’:
ffmpeg_transcoder.cc:6526:9: error: ‘AVBufferSinkParams’ was not declared in this scope; did you mean ‘AVBufferSrcParameters’?
 6526 |         AVBufferSinkParams buffer_sink_params;
      |         ^~~~~~~~~~~~~~~~~~
      |         AVBufferSrcParameters
ffmpeg_transcoder.cc:6532:9: error: ‘buffer_sink_params’ was not declared in this scope
 6532 |         buffer_sink_params.pixel_fmts = pixel_fmts.data();
      |         ^~~~~~~~~~~~~~~~~~

Any ideas?

nschlia commented 1 year ago

Seems that AVBufferSinkParms was dropped from the API in 6.0. Weird, I saw no deprecation warning.

I'll check that and fix it, but as of yet you need to use FFmpeg 5 to build FFmpegfs.

nschlia commented 1 year ago

That was an easy one... Just pull the latest version and try again.

dangowrt commented 1 year ago

Perfect! Builds, works. Thank you for handling this so quickly!