GitHub Issue #1418

1 view
Skip to first unread message

CCExtractor.org CI Platform

unread,
Mar 1, 2022, 8:02:43 AM3/1/22
to ccextra...@googlegroups.com
[BUG] CCExtractor incompatible with ffmpeg 5.0 - canihavesomecoffee
Link to Issue: https://www.github.com/CCExtractor/ccextractor/issues/1418
canihavesomecoffee

CCExtractor version: 0.94 / master

Necessary information

  • Is this a regression (i.e. did it work before)? YES
  • What platform did you use? Linux
  • What were the used arguments? N/A

Additional information

When building the AUR package for CCExtractor, building fails when the installed ffmpeg version on the system is 5.0.

==> Starting build()... Running pre-build script... Obtaining Git commit Storing variables in file Commit: b7beb3d202a9bcb77a426ef324282ca7114bcdf4 Date: 2022-03-01 Stored all in compile_info_real.h Done. Trying to compile... Checking for cargo... rustc >= MSRV(1.54.0) Building rust files... Updating crates.io index Downloading crates ... Downloaded aho-corasick v0.7.18 ... Compiling ccx_rust v0.1.0 (/tmp/bauh@me/arch/build_1646139098/ccextractor/src/ccextractor/src/rust) Finished dev [unoptimized + debuginfo] target(s) in 51.58s Building ccextractor Compiled with errors ../src/lib_ccx/hardsubx.c: In function 'hardsubx_process_data': ../src/lib_ccx/hardsubx.c:16:9: warning: implicit declaration of function 'av_register_all' [-Wimplicit-function-declaration] 16 | av_register_all(); | ^~~~~~~~~~~~~~~ ../src/lib_ccx/hardsubx.c:35:48: error: 'AVStream' has no member named 'codec' 35 | if (ctx->format_ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) | ^~ ../src/lib_ccx/hardsubx.c:46:72: error: 'AVStream' has no member named 'codec' 46 | ctx->codec_ctx = ctx->format_ctx->streams[ctx->video_stream_id]->codec; | ^~ ../src/lib_ccx/hardsubx.c:47:20: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 47 | ctx->codec = avcodec_find_decoder(ctx->codec_ctx->codec_id); | ^ ../src/lib_ccx/hardsubx.c: In function '_init_hardsubx': ../src/lib_ccx/hardsubx.c:224:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 224 | char *lang = options->ocrlang; | ^~~~~~~ ../src/lib_ccx/hardsubx_decoder.c: In function 'hardsubx_process_frames_tickertext': ../src/lib_ccx/hardsubx_decoder.c:385:25: warning: implicit declaration of function 'avcodec_decode_video2'; did you mean 'avcodec_decode_subtitle2'? [-Wimplicit-function-declaration] 385 | avcodec_decode_video2(ctx->codec_ctx, ctx->frame, &got_frame, &ctx->packet); | ^~~~~~~~~~~~~~~~~~~~~ | avcodec_decode_subtitle2 ==> ERROR: A failure occurred in build().

$ ffmpeg -version ffmpeg version n5.0 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.2.0 (GCC) configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-shared --enable-version3 libavutil 57. 17.100 / 57. 17.100 libavcodec 59. 18.100 / 59. 18.100 libavformat 59. 16.100 / 59. 16.100 libavdevice 59. 4.100 / 59. 4.100 libavfilter 8. 24.100 / 8. 24.100 libswscale 6. 4.100 / 6. 4.100 libswresample 4. 3.100 / 4. 3.100 libpostproc 56. 3.100 / 56. 3.100 FFmpeg released 5.0 January 17th, 2022 and seems to have quite some breaking changes.

Reply all
Reply to author
Forward
0 new messages