Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831482 - media-video/transcode-1.1.7-r6 with ffmpeg-5: encode_lavc.c:242:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
Summary: media-video/transcode-1.1.7-r6 with ffmpeg-5: encode_lavc.c:242:21: error: ‘A...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard: Workaround dep applied
Keywords: PMASKED
: 834417 (view as bug list)
Depends on: 861311 891585
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-01-19 14:28 UTC by Kobboi
Modified: 2023-12-16 07:52 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,371.92 KB, text/x-log)
2022-01-19 14:29 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-01-19 14:28:11 UTC
encode_x264.c:477:47: warning: pointer targets in passing argument 4 of ‘tc_code_to_ratio’ differ in signedness [-Wpointer-sign]
  477 |                                               &params->i_fps_den)
      |                                               ^~~~~~~~~~~~~~~~~~
      |                                               |
      |                                               uint32_t * {aka unsigned int *}
../libtc/ratiocodes.h:180:47: note: in definition of macro ‘tc_frc_code_to_ratio’
  180 |         tc_code_to_ratio(TC_FRC_CODE, frc, n, d)
      |                                               ^
../libtc/ratiocodes.h:174:68: note: expected ‘int *’ but argument is of type ‘uint32_t *’ {aka ‘unsigned int *’}
  174 | int tc_code_to_ratio(TCRatioCode rc, int in_code, int *out_n, int *out_d);
      |                                                               ~~~~~^~~~~
encode_x264.c: In function ‘x264_inspect’:
encode_x264.c:876:22: warning: variable ‘pd’ set but not used [-Wunused-but-set-variable]
  876 |     X264PrivateData *pd = NULL;
      |                      ^~
encode_lavc.c: In function ‘pre_encode_video_yuv420p’:
encode_lavc.c:242:5: warning: implicit declaration of function ‘avpicture_fill’ [-Wimplicit-function-declaration]
  242 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf,
      |     ^~~~~~~~~~~~~~
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -march=znver3 -pipe -g -ggdb3 -module -avoid-version -Wl,-O1 -Wl,--as-needed -o encode_faac.la -rpath /usr/lib64/transcode encode_faac_la-encode_faac.lo -L/usr/lib -lfaac  -lm -lz -ldl 
encode_lavc.c:242:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  242 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf,
      |                     ^~~~~~~~~
      |                     AVPictureType
encode_lavc.c:242:21: note: each undeclared identifier is reported only once for each function it appears in
encode_lavc.c:242:32: error: expected expression before ‘)’ token
  242 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf,
      |                                ^
encode_lavc.c: In function ‘pre_encode_video_yuv420p_huffyuv’:
encode_lavc.c:256:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  256 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                     ^~~~~~~~~
      |                     AVPictureType
encode_lavc.c:256:32: error: expected expression before ‘)’ token
  256 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                                ^
encode_lavc.c: In function ‘pre_encode_video_yuv422p’:
encode_lavc.c:272:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  272 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                     ^~~~~~~~~
      |                     AVPictureType
encode_lavc.c:272:32: error: expected expression before ‘)’ token
  272 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                                ^
encode_lavc.c: In function ‘pre_encode_video_yuv422p_huffyuv’:
encode_lavc.c:284:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  284 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf,
      |                     ^~~~~~~~~
      |                     AVPictureType
encode_lavc.c:284:32: error: expected expression before ‘)’ token
  284 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, vframe->video_buf,
      |                                ^
encode_lavc.c: In function ‘pre_encode_video_rgb24’:
encode_lavc.c:294:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  294 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                     ^~~~~~~~~
      |                     AVPictureType
encode_lavc.c:294:32: error: expected expression before ‘)’ token
  294 |     avpicture_fill((AVPicture *)&pd->ff_venc_frame, pd->vframe_buf->video_buf,
      |                                ^


Reproducible: Always
Comment 1 Kobboi 2022-01-19 14:28:32 UTC
Portage 3.0.30 (python 3.9.10-final-0, !../../var/db/repos/kobboi-linux/profiles/kobboi/tanagra, gcc-11.2.1, glibc-2.34-r6, 5.15.14-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.15.14-gentoo-dist-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.34
KiB Mem:    98872568 total,  58998800 free
KiB Swap:   67108860 total,  67108860 free
Timestamp of repository gentoo: Wed, 19 Jan 2022 13:30:01 +0000
Head commit of repository gentoo: 0e38714c614e269a4188c1521515a16e258f26be
Timestamp of repository brother-overlay: Tue, 04 Jan 2022 12:07:32 +0000
Head commit of repository brother-overlay: acc42f0a94d4172139ab89985e36ef5c406dfdba

Timestamp of repository eclipse: Sun, 02 Jan 2022 18:07:14 +0000
Head commit of repository eclipse: de1869b453b9ead7ae7e28f75858a2c612b3bd41

Timestamp of repository guru: Tue, 18 Jan 2022 08:52:59 +0000
Head commit of repository guru: d56f6e1ee98248316df28cbf7fbf9f1be68b70b8

Head commit of repository kobboi-linux: eed951fdfa40c173fa502473ce07bc08af1d7cff

Timestamp of repository steam-overlay: Sun, 16 Jan 2022 17:52:59 +0000
Head commit of repository steam-overlay: fbbf584a3edeeb2820ede99c1199e242d61cd223

sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.9.10::gentoo, 3.10.2::gentoo
dev-lang/rust:             1.58.0::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.1::gentoo
dev-util/meson:            0.61.1::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.2::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           12.0.1::gentoo, 13.0.0::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            12.0.1::gentoo, 13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo

eclipse
    location: /var/db/repos/eclipse
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/eclipse.git
    masters: gentoo

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

kobboi-linux
    location: /var/db/repos/kobboi-linux
    sync-type: git
    sync-uri: https://github.com/kobboi/kobboi-linux
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

Installed sets: @kobboi-all-packages, @kobboi-machine-tanagra
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver3 -pipe -g -ggdb3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=znver3 -pipe -g -ggdb3"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=znver3 -pipe -g -ggdb3"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=znver3 -pipe -g -ggdb3"
GENTOO_MIRRORS="ftp://kobboi-linux:*password*@10.8.0.1/2020.11"
INSTALL_MASK="/usr/src/debug /usr/lib/debug"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 avahi bluetooth bzip2 cairo cdda cdr cli colord crypt cups dbus dist-kernel djvu dri dts dvd dvdr eds egl encode evo exif facedetect ffmpeg flac fluidsynth fortran frei0r gdbm gif glade gles gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle gui iconv icu introspection ipv6 jpeg ladspa lcms libass libglvnd libnotify libsecret libtirpc lv2 lz4 lzma lzo mad midi mng modemmanager mono mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl ogg opencv opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba screencast sdl seccomp smartcard smp spell split-usr ssl startup-notification svg sysprof systemd tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis vulkan wayland wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="vesa radeon nvidia intel amdgpu dummy fbdev nouveau radeonsi v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Kobboi 2022-01-19 14:29:02 UTC
Created attachment 762637 [details]
build.log
Comment 3 Kobboi 2022-02-28 23:33:15 UTC
HOMEPAGE and non-Gentoo parts of SRC_URI are down. Project apparently abandoned

"Transcode was a fast, versatile and command-line based audio/video everything to everything converter primarily focussed on producing AVI video files with MP3 audio, but also including a program to read all the video and audio streams from a DVD.

Although outdated and no longer maintained, it can still be used to extract items from a DVD using only the required and recommended dependencies, or to recode to AVI files." [1]

[1] https://www.linuxfromscratch.org/blfs/view/svn/multimedia/transcode.html

Probably adding an <ffmpeg-5 dependency is acceptable to close this?
Comment 4 Andreas Sturmlechner gentoo-dev 2022-07-14 16:40:53 UTC
*** Bug 834417 has been marked as a duplicate of this bug. ***
Comment 5 Paolo Pedroni 2022-10-10 16:25:36 UTC
(In reply to Kobboi from comment #3)
> Probably adding an <ffmpeg-5 dependency is acceptable to close this?

Hardly. kde-apps/k3b[encode] depends on media-video/transcode.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-21 09:33:17 UTC
So I suppose the next step would be to start acting on revdeps?

We'd be removing:

app-cdr/dvdshrink
media-plugins/vdr-burn + media-plugins/vdr-burn-templates
media-video/dvd9to5
media-video/dvdrip

Then masking media-video/chaplin[transcode].

No clue about kde-apps/k3b since its USE flag looks like a convoluted mess.
Comment 7 Larry the Git Cow gentoo-dev 2023-05-29 20:49:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b94a194374984f09b1aa46428cb101608febfd8

commit 6b94a194374984f09b1aa46428cb101608febfd8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-29 20:49:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-29 20:49:04 +0000

    media-video/transcode: depend on <ffmpeg-5
    
    Bug: https://bugs.gentoo.org/831482
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/transcode/transcode-1.1.7-r6.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)