FFMPEG V4 compil error need help

Post Reply
martos
Posts: 85
Joined: Fri Jun 29, 2018 12:42 am
languages_spoken: english
ODROIDs: MC1
Has thanked: 0
Been thanked: 0
Contact:

FFMPEG V4 compil error need help

Post by martos »

Hello,

I want to compil new ffmpeg v4 ( https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu )

I need :
libnuma-dev

And when i try to compil i have an error :

"ERROR: aom >= 1.0.0 not found using pkg-config"
it could be : AV1 (AOM) AV1 support has been added with the 20180329-af043b8 build via the AOM reference encoder/decoder.

I look on google but i find nothing.

Could someone can help me ?

martos
Posts: 85
Joined: Fri Jun 29, 2018 12:42 am
languages_spoken: english
ODROIDs: MC1
Has thanked: 0
Been thanked: 0
Contact:

Re: FFMPEG V4 compil error need help

Post by martos »

find a workaround ( disable h265 and aom )

cd ~/ffmpeg_sources && \
wget -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
tar xjvf ffmpeg-snapshot.tar.bz2 && \
cd ffmpeg && \
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--extra-libs="-lpthread -lm" \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-libaom \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--disable-libaom \
--enable-nonfree && \
PATH="$HOME/bin:$PATH" make && \
make install && \
hash -r

User avatar
rooted
Posts: 9971
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 777 times
Been thanked: 581 times
Contact:

Re: FFMPEG V4 compil error need help

Post by rooted »

Thanks for posting the workaround.

martos
Posts: 85
Joined: Fri Jun 29, 2018 12:42 am
languages_spoken: english
ODROIDs: MC1
Has thanked: 0
Been thanked: 0
Contact:

Re: FFMPEG V4 compil error need help

Post by martos »

Make an update of the ffmpeg compil ,
i add
--enable-hardcoded-tables
for have some cpu gain
And
make -j8
For quick compile ( very quick !!! )
rm -rf ~/ffmpeg_build ~/bin/{ffmpeg,ffprobe,ffplay,x264,x265}

cd ~/ffmpeg_sources && \
git -C fdk-aac pull 2> /dev/null || git clone --depth 1 https://github.com/mstorsjo/fdk-aac && \
cd fdk-aac && \
autoreconf -fiv && \
./configure --prefix="$HOME/ffmpeg_build" --disable-shared && \
make -j8 && \
make install

cd ~/ffmpeg_sources && \
wget -O lame-3.100.tar.gz https://downloads.sourceforge.net/proje ... 100.tar.gz && \
tar xzvf lame-3.100.tar.gz && \
cd lame-3.100 && \
PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --disable-shared --enable-nasm && \
PATH="$HOME/bin:$PATH" make -j8 && \
make install

cd ~/ffmpeg_sources && \
git -C x264 pull 2> /dev/null || git clone --depth 1 https://git.videolan.org/git/x264 && \
cd x264 && \
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --enable-pic && \
PATH="$HOME/bin:$PATH" make -j8 && \
make install

cd ~/ffmpeg_sources && \
git -C opus pull 2> /dev/null || git clone --depth 1 https://github.com/xiph/opus.git && \
cd opus && \
./autogen.sh && \
./configure --prefix="$HOME/ffmpeg_build" --disable-shared && \
make -j8 && \
make install

cd ~/ffmpeg_sources && \
git -C libvpx pull 2> /dev/null || git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git && \
cd libvpx && \
PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm && \
PATH="$HOME/bin:$PATH" make -j8 && \
make install

cd ~/ffmpeg_sources && \
wget -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
tar xjvf ffmpeg-snapshot.tar.bz2 && \
cd ffmpeg && \
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--extra-libs="-lpthread -lm" \
--bindir="$HOME/bin" \
--enable-hardcoded-tables \
--enable-v4l2_m2m \
--enable-gpl \
--enable-libaom \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--disable-libaom \
--enable-nonfree && \
PATH="$HOME/bin:$PATH" make -j9 && \
make install && \
hash -r

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 61 times
Contact:

Re: FFMPEG V4 compil error need help

Post by memeka »

You can find ffmpeg 4.0.1 compiled already here:
https://oph.mdrjr.net/memeka/bionic/

martos
Posts: 85
Joined: Fri Jun 29, 2018 12:42 am
languages_spoken: english
ODROIDs: MC1
Has thanked: 0
Been thanked: 0
Contact:

Re: FFMPEG V4 compil error need help

Post by martos »

Thank's a lot

martos
Posts: 85
Joined: Fri Jun 29, 2018 12:42 am
languages_spoken: english
ODROIDs: MC1
Has thanked: 0
Been thanked: 0
Contact:

Re: FFMPEG V4 compil error need help

Post by martos »

little error

root@odroid:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libopencv-calib3d-dev libopencv-core-dev libopencv-dev libopencv-features2d-dev libopencv-flann-dev libopencv-highgui-dev libopencv-imgcodecs-dev libopencv-imgproc-dev libopencv-ml-dev
libopencv-objdetect-dev libopencv-photo-dev libopencv-shape-dev libopencv-stitching-dev libopencv-superres-dev libopencv-ts-dev libopencv-video-dev libopencv-videoio-dev libopencv-videostab-dev
libopencv-viz-dev unattended-upgrades
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up rdma-core (17.1-1) ...
rdma-hw.target is a disabled or a static unit, not starting it.
rdma-ndd.service is a disabled or a static unit, not starting it.
Job for iwpmd.service failed because the control process exited with error code.
See "systemctl status iwpmd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript iwpmd, action "start" failed.
● iwpmd.service - iWarp Port Mapper
Loaded: loaded (/lib/systemd/system/iwpmd.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-07-22 09:07:59 UTC; 26ms ago
Docs: man:iwpmd
file:/etc/iwpmd.conf
Process: 1079 ExecStart=/usr/sbin/iwpmd --systemd (code=exited, status=1/FAILURE)
Main PID: 1079 (code=exited, status=1/FAILURE)

Jul 22 09:07:59 odroid systemd[1]: iwpmd.service: Unit not needed anymore. Stopping.
Jul 22 09:07:59 odroid systemd[1]: iwpmd.service: Failed to enqueue stop job, ignoring: Transaction is destructive.
Jul 22 09:07:59 odroid systemd[1]: Starting iWarp Port Mapper...
Jul 22 09:07:59 odroid iwpmd[1079]: get_iwpm_param: Got param (name = nl_sock_rbuf_size val = 419430400)
Jul 22 09:07:59 odroid iwpmd[1079]: create_netlink_socket: Unable to create socket. Protocol not supported.
Jul 22 09:07:59 odroid iwpmd[1079]: main: Couldn't start iWarp Port Mapper.
Jul 22 09:07:59 odroid systemd[1]: iwpmd.service: Main process exited, code=exited, status=1/FAILURE
Jul 22 09:07:59 odroid systemd[1]: iwpmd.service: Failed with result 'exit-code'.
Jul 22 09:07:59 odroid systemd[1]: Failed to start iWarp Port Mapper.
dpkg: error processing package rdma-core (--configure):
installed rdma-core package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of ibacm:
ibacm depends on rdma-core (>= 15); however:
Package rdma-core is not configured yet.

dpkg: error processing package ibacm (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
rdma-core
ibacm

But i don't think is very important ...

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest