FAQ  •  Register  •  Login

FFMPEG compile - libx264 not found

<<

DouggieC

Serviio newbie

Posts: 1

Joined: Tue Jun 18, 2013 1:28 pm

Post Thu Jun 20, 2013 9:10 am

FFMPEG compile - libx264 not found

Hi guys,

I'm attempting to build FFMPEG on Debian / SPARC platform, following the instructions in the wiki here: http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux.

X264 compiled and installed fine, but when I then attempt to build FFMPEG with x264 included, I get the message:

ERROR: libx264 not found

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.


If I leave out --enable-libx264, the package then builds and installs correctly, but I'd like to include x264 support if possible.

Any ideas what might be going wrong?

Cheers
Doug
<<

kiteboy

Serviio newbie

Posts: 15

Joined: Sat May 14, 2011 12:16 am

Post Thu Jun 20, 2013 5:00 pm

Re: FFMPEG compile - libx264 not found

Any solution to this - using the same guide getting the same error on ubuntu server 12.04
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jun 20, 2013 6:51 pm

Re: FFMPEG compile - libx264 not found

Look at this if you can find some differences: https://ffmpeg.org/trac/ffmpeg/wiki/Ubu ... ationGuide
<<

kiteboy

Serviio newbie

Posts: 15

Joined: Sat May 14, 2011 12:16 am

Post Thu Jun 20, 2013 7:32 pm

Re: FFMPEG compile - libx264 not found

Think ive messed this up now - gonna clean everything up before trying again

Have an .img before I started messing and will try again using that method (bit of a noob)
Thanks
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu Jun 20, 2013 8:22 pm

Re: FFMPEG compile - libx264 not found

I did the 2nd June update to that guide after testing it out on Debian 7, so it should work on Ubuntu. Post back after cleaning stuff out.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

kiteboy

Serviio newbie

Posts: 15

Joined: Sat May 14, 2011 12:16 am

Post Fri Jun 21, 2013 4:44 pm

Re: FFMPEG compile - libx264 not found

Thanks - just wondering would the install differ on 32bit or 64bit?????
<<

khurram23

Serviio lover

Posts: 76

Joined: Sun Jun 24, 2012 10:25 pm

Post Fri Jun 21, 2013 6:56 pm

Re: FFMPEG compile - libx264 not found

If you compile from source, 32 or 64bit shouldn't matter. The system will take care of that while compiling.

You can also try to use the pre-compiled packages to see if they help. Link in my signature. These packages are compiled on Ubuntu for both 32bit and 64bit platform.
Dropbox - Get 500MB bonus space.

My pre-compiled FFMPEG, X264 packages for Linux/Ubuntu - Dropbox
<<

kiteboy

Serviio newbie

Posts: 15

Joined: Sat May 14, 2011 12:16 am

Post Sat Jun 22, 2013 12:44 am

Re: FFMPEG compile - libx264 not found

All sorted :

Missed this option

NOTE: New version of x264 contains by default support of OpenCL. If not installed or without sense (example Ubuntu 12.04LTS on VMWare) add to configure additional option –disable-opencl. Without this option ffmpeg could not be configured (ERROR: libx264 not found).

Just another noob question about following the wiki guide

Build and Install libvpx
libvpx is an emerging open video compression library which is gaining popularity for distributing high definition video content on the internet. FFmpeg supports using the libvpx library to compress video content (although Serviio does not). To acquire and build libvpx, perform the following:

When adding suppport for libvpx particulary:

Now rebuild ffmpeg by following the above steps except add

--enable-libvpx
to the long ./configure command

Do I have to make ffmpeg again or just config as in above instruction

Working fine now thanks
<<

tguless

Serviio newbie

Posts: 1

Joined: Thu Nov 14, 2013 10:03 pm

Post Thu Nov 14, 2013 10:05 pm

Re: FFMPEG compile - libx264 not found

Here is a script I found on the net, and I just recently fixed it for Ubuntu 12

#!/bin/sh
#
# Name: ffmpeg git
# Version: 0.01a
# Description: ffmpeg git compilation with libvorbis, x264, mp3 lame support
# Script_URI: http://www.techno-blog.net
#
# Author: Nikos


###########################
##### Run some checks #####
###########################

# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Erreur : Vous devez être root pour utiliser ce script, use sudo sh $0"
exit 1
fi

#############################################
##### Set some variables and functions ######
#############################################

# Directory where this script is located
BASEDIR="$(dirname $0)"

error_out() {
echo "Could not ${1}, aborting"
exit 1
}

wrap() {
local ErrorMsg="$1"
shift
local cmd="$1"
shift
$cmd "$@" || error_out "$ErrorMsg"
}

# Function to install packages
install_pkgs() {
aptitude -yq=3 install "$@"
}

# Function to remove packages
remove_pkgs() {
aptitude -yq=3 remove "$@"
}


#################################
##### The magic starts here #####
#################################

# Uninstall Packages
wrap "remove libmp3lame-dev ffmpeg" remove_pkgs libmp3lame-dev ffmpeg

# Install packages
wrap "install some dependancies" install_pkgs quilt libsdl1.2-dev libogg-dev libvorbis-dev liba52-dev libdts-dev libimlib2-dev texi2html libraw1394-dev libdc1394-22-dev libtheora-dev libgsm1-dev libxvidcore-dev libfaac-dev libfaad-dev build-essential git-core checkinstall yasm texi2html libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev nasm

# Retrieving x264, libvorbis, mp3lame
mkdir ffmpeg_source
cd ffmpeg_source

wrap "retrieving x264 from git sources" git clone git://git.videolan.org/x264
cd x264
wrap "set up x264 config" ./configure --enable-static --disable-opencl
wrap "compilation with 3 cores" make -j3
wrap "build install-lib-dev" make install-lib-dev
wrap "build DEB package" checkinstall --pkgname=x264 --default --pkgversion="3:$(./version.sh | awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes

cd ..
mkdir -p /usr/local/share/doc/lame
wrap "download lamemp3 source" wget http://downloads.sourceforge.net/projec ... 8.4.tar.gz
tar xzvf lame-3.98.4.tar.gz
cd lame-3.98.4
wrap "set up lamemp3" ./configure --enable-nasm --disable-shared
wrap "compilation" make
wrap "build DEB package" checkinstall --pkgname=lame-ffmpeg --pkgversion="3.98.4" --backup=no --default --deldoc=yes

cd ..
wrap "retrieving libvpx from git sources" git clone http://git.chromium.org/webm/libvpx.git
cd libvpx
wrap "set up libvpx config" ./configure
wrap "compilation with 3 cores" make -j3
wrap "build DEB package" checkinstall --pkgname=libvpx --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no --default --deldoc=yes

cd ..
wrap "retrieving ffmpeg from git sources" git clone git://git.videolan.org/ffmpeg
cd ffmpeg
wrap "set up ffmpeg config" ./configure --enable-gpl --enable-postproc --enable-swscale --enable-pthreads --enable-x11grab --enable-libdc1394 --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-avfilter
wrap "compilation with 3 cores" make -j3
wrap "build DEB package" checkinstall --pkgname=ffmpeg --pkgversion="0.6.3-git" --backup=no --deldoc=yes --default
hash x264 ffmpeg ffplay ffprobe

echo "#############################"
echo "##### Mission complete! #####"
echo "#############################"

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 22 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.