#19718 closed enhancement (fixed)

ffmpeg-7 causes other packages to fail

Reported by: Bruce Dubbs Owned by: blfs-book
Priority: normal Milestone: 12.2
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description (last modified by Bruce Dubbs)

xine-lib - fixed
vlc - fixed

Add others and fixes here as we find them.

Change History (15)

comment:1 by Xi Ruoyao, 11 months ago

Also QtWebEngine (now we've worked around by using internal ffmpeg, but it's not a perfect solution)

comment:2 by Bruce Dubbs, 11 months ago

mlt has been fixed to use ffmpeg-7 in mlt-7.24.0.

comment:3 by Douglas R. Reno, 11 months ago

gst-libav fixed again at 1fc1afb4cfbf8625134c04731b61685fc1ee6218

comment:5 by Bruce Dubbs, 10 months ago

I tried that patch and it applied OK (along with the vlc-3.0.20-taglib-1.patch, but the build failed. I suspect though it is a gcc14 problem now:

export LUAC=/usr/bin/luac5.2 &&
export LUA_LIBS="$(pkg-config --libs lua52)" &&
export CPPFLAGS="$(pkg-config --cflags lua52)" &&

patch -Np1 -i $DIR/$PROGRAM-taglib-1.patch
patch -Np1 -i $DIR/$PROGRAM-fedora_ffmpeg7-1.patch

BUILDCC=gcc ./configure --prefix=/usr --disable-libplacebo &&
make

...

input/input.c: In function ‘InitTitle’:
input/input.c:910:19: error: assignment to ‘const input_title_t **’ from 
incompatible pointer type ‘input_title_t **’ [-Wincompatible-pointer-types]
  910 |     priv->title   = p_master->title;
      |                   ^

in reply to:  5 comment:6 by Douglas R. Reno, 10 months ago

Replying to Bruce Dubbs:

I tried that patch and it applied OK (along with the vlc-3.0.20-taglib-1.patch, but the build failed. I suspect though it is a gcc14 problem now:

export LUAC=/usr/bin/luac5.2 &&
export LUA_LIBS="$(pkg-config --libs lua52)" &&
export CPPFLAGS="$(pkg-config --cflags lua52)" &&

patch -Np1 -i $DIR/$PROGRAM-taglib-1.patch
patch -Np1 -i $DIR/$PROGRAM-fedora_ffmpeg7-1.patch

BUILDCC=gcc ./configure --prefix=/usr --disable-libplacebo &&
make

...

input/input.c: In function ‘InitTitle’:
input/input.c:910:19: error: assignment to ‘const input_title_t **’ from 
incompatible pointer type ‘input_title_t **’ [-Wincompatible-pointer-types]
  910 |     priv->title   = p_master->title;
      |                   ^

Check this out for this: https://src.fedoraproject.org/rpms/vlc/blob/rawhide/f/4645.patch

comment:7 by Bruce Dubbs, 10 months ago

Yes, that works. With

    patch -Np1 -i $DIR/$PROGRAM-taglib-1.patch
    patch -Np1 -i $DIR/$PROGRAM-fedora_ffmpeg7-1.patch
    patch -Np1 -i $DIR/$PROGRAM-gcc14-1.patch

the vlc build completes successfully. I have not tested it out though. There are 467 warnings.

comment:9 by Bruce Dubbs, 10 months ago

Description: modified (diff)

vlc has been fixed with two seds from fedora.

comment:10 by Bruce Dubbs, 10 months ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

Added a sed to fix xine-lib. As far as I know that is the last ffmpeg-7 issue. Marking this as closed, but if we run into another ffmpeg-7, we should create another ticket.

comment:12 by Douglas R. Reno, 10 months ago

Resolution: fixed
Status: closedreopened

comment:13 by Douglas R. Reno, 10 months ago

I think I have a working patch based off the following commits from Arch:

The last two commits were from May 8th.

The patch that I have applies cleanly, but I'll need a little bit to test it as I'm currently waiting on an LLVM upgrade.

To get this patch, I basically did the following:

hg clone http://hg.code.sf.net/p/xine/xine-lib-1.2
cd xine-lib-1.2
hg diff -c 771f4ae27e582123ff3500444718fc8f96186d74 | tee /tmp/xine-1.patch
hg diff -c 0a786d63bbdb2d780a9231f6772e84e743c72014 | tee /tmp/xine-2.patch
hg diff -c 6f1000084f6084f49c95c202d12593e49916f58b | tee /tmp/xine-3.patch
hg diff -c 1e7b184008860c8be2289c3cefd9dee57f06193a | tee /tmp/xine-4.patch
hg diff -c 73b833e7fe356cd2d9490dda4ebc9bfe16fce958 | tee /tmp/xine-5.patch

and then applied them all to a freshly extracted copy of xine-lib-1.2.13, and then diffed it.

I'll test my patch and if it works I'll add it in later tonight.

Last edited 10 months ago by Douglas R. Reno (previous) (diff)

comment:14 by Douglas R. Reno, 10 months ago

I was able to get xine-lib to build with my patch and test it with xine-ui, and it seems to be working well.

comment:15 by Douglas R. Reno, 10 months ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.