Log in

View Full Version : x264 Ubuntu 13.04 compile


drmpeg
13th November 2013, 02:30
The latest version of x264 (from git://git.videolan.org/x264.git) gives an error on ./configure.

Warning: AV_PIX_FMT_FLAG_RGB is missing from libavutil, update for swscale support
Warning: libavformat is not supported without swscale support


This was changed in a commit called "Update to current libav/ffmpeg API" on October 25.

I have the latest libavutil-dev installed (0.8.9), but none of these "AV_PIX*" defines are in it.

The "stable" release (r2363) configures and compiles properly.

Does anyone know what's going on here?

Ron

LoRd_MuldeR
13th November 2013, 13:38
Seems like the libav/ffmpeg from the Ubuntu 13.04 repositories is too much outdated. Try Ubuntu 13.10 or compile the latest libav/ffmpeg yourself...

JEEB
13th November 2013, 14:21
Debian/Ubuntu have plenty of packages that depend on the old APIs removed with libav 9 (and ffmpeg version <I am not sure>), and thus the last version with the old old APIs is still used. The migration status can be seen here (http://release.debian.org/transitions/html/libav9.html). It's still not finished, and thus 13.10 has the same libav version as 13.04.

If one does not want to build a newer libav/ffmpeg by himself, there are newer libav binaries available at the official raring (13.04) and saucy (13.10) libav9 PPAs at the MOTU Media Team launchpad (https://launchpad.net/~motumedia).

Edit: The transition seems to be still ongoing, but at least testing and experimental (http://packages.debian.org/search?suite=jessie&searchon=names&keywords=libav) have libav 9 now. It has also been added to proposed in 14.04 (https://launchpad.net/ubuntu/trusty/+package/libav-tools). Hooray!

flapane
19th May 2014, 22:05
Here on 14.04 I have libav9 and libswscale9 headers, but while trying to compile x264 from latest git I get:
Warning: AV_PIX_FMT_FLAG_RGB is missing from libavutil, update for swscale support
Warning: libavformat is not supported without swscale support
Warning: ffms is not supported without swscale support

foxyshadis
20th May 2014, 03:27
You just have to update to libav10, or at least build it side-by-side. The flag will never exist in 9, that's one of the downsides of backwards compatibility.

flapane
20th May 2014, 09:47
Thanks, I thought libav9 was fine. I'll take a look at MOTU ppa repository, or will build libav10 by myself.