Menu

#1704 Add support for ffmpeg 5.x

v3.x
closed-duplicate
nobody
None
Buildsystem
2022-11-06
2022-02-17
No

Hello.

In the coming months, main distributions will push ffmpeg 5.x either in their testing or main branch.

I tried to build Vice with ffmpeg 5.0, and I got this error in configure stage:

checking for FFMPEG_AV... yes
checking for libavformat/avformat.h... yes
checking for FFMPEG_SWSCALE... yes
checking for FFMPEG_SWRESAMPLE... yes
configure: error: ffmpeg version is not comnpatible. Use 4.x

Workaround? Remove --enable-external-ffmpeg to continue build process.

A proper support - if possible - of ffmpeg 5.x will be great!

Discussion

  • gpz

    gpz - 2022-02-17

    This is not a bug. FFMPEG has been a constant annoyance due to their API breakage and thus will be removed.
    That said, it will likely take a while before ffmpeg 4 will no more available in distros

     
    • Frederic bezies

      Frederic bezies - 2022-02-17

      OK. Can you add an ffmpeg 4.4 detection in configure step? On my test, I'm stuck because configure only found ffmpeg 5.x even if I have both ffmpeg4.4 and 5.x installed.

      Thanks!

      Edit: Archlinux - which I'm using - is now providing both ffmpeg 5.0 and 4.4. I have to remove --enable-external-ffmpeg to get build process working again.

      So I cannot record any video until there is a working detection for ffmpeg 4.4 :(

       

      Last edit: Frederic bezies 2022-02-17
  • gpz

    gpz - 2022-02-17

    please attach your configure.log

     
    • Frederic bezies

      Frederic bezies - 2022-02-17

      Here it is. If you need files from ffmpeg4.4 package, you can find these here: https://archlinux.org/packages/extra/x86_64/ffmpeg4.4/

       

      Last edit: Frederic bezies 2022-02-17
  • Frederic bezies

    Frederic bezies - 2022-02-18

    I think I found a workaround (based on a tweak applied to Dosbox-x-sdl2).

    If I use this configure line, ffmpeg 4.4 is added to produced binaries.

    PKG_CONFIG_PATH="/usr/lib/ffmpeg4.4/pkgconfig" ./configure --prefix=/usr --libdir=/usr/lib --enable-external-ffmpeg

     
  • gpz

    gpz - 2022-11-06

    duplicate of bug #1697

     
  • gpz

    gpz - 2022-11-06
    • status: open --> closed-duplicate
     

Log in to post a comment.

MongoDB Logo MongoDB