FAQ  •  Register  •  Login

ffmpeg installation problems Ubuntu 12.04

<<

Luigi

Serviio newbie

Posts: 3

Joined: Sat Jan 31, 2015 4:29 pm

Post Sat Jan 31, 2015 5:19 pm

ffmpeg installation problems Ubuntu 12.04

I am a newbie on Ubuntu therefore when I want to install a new program I just follow the instructions step by step and I usually succed. Not this time.

I first installed serviio as instructed on serviio-wiki and is running.
(serviio start/running, process 1075)
The Serviio Console is also working and my TV is listed.

Then I followed the Building FFmpeg Guide :
Install “Essential Build Tools and Libraries” – done – no apparent errors
Install “Yasm” – done – no apparent errors
Build and install x264 – done – no apparent errors (Please note that I did disable OpenCL)
Build and install librtmp – done – no apparent errors

When I tryed to build and install ffmpeg (again following exactely the instructions given on wiki)
due to errors the installetion failed.

I removed x264 (using dpkg -r x264) then I reinstalled it but I had the same errors again!

Any idea of what I am doing wrong?

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.
luigi@luigi-IXTREME-MC-9600:~/src/ffmpeg$ make
CC libavdevice/alldevices.o
/bin/sh: 1: i686-w64-mingw32-gcc: not found
make: *** [libavdevice/alldevices.o] Error 127

luigi@luigi-IXTREME-MC-9600:~/src/ffmpeg$ sudo checkinstall --pkgname=ffmpeg --pkgversion="99:$(date +%Y%m%d%H%M)-git" --backup=no \
> --deldoc=yes --fstrans=no --default

checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.


*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values:

0 - Maintainer: [ root@luigi-IXTREME-MC-9600 ]
1 - Summary: [ Package created with checkinstall 1.6.2 ]
2 - Name: [ ffmpeg ]
3 - Version: [ 99:201501300007-git ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ ffmpeg ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ffmpeg ]
12 - Conflicts: [ ]
13 - Replaces: [ ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
CC ffmpeg.o
/bin/sh: 1: i686-w64-mingw32-gcc: not found
make: *** [ffmpeg.o] Error 127

**** Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

luigi@luigi-IXTREME-MC-9600:~/src/ffmpeg$
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Sat Jan 31, 2015 5:55 pm

Re: ffmpeg installation problems Ubuntu 12.04

<<

Luigi

Serviio newbie

Posts: 3

Joined: Sat Jan 31, 2015 4:29 pm

Post Sat Jan 31, 2015 9:49 pm

Re: ffmpeg installation problems Ubuntu 12.04

Thanks for the tip "npuser"
I did the following:

Checked where x264 is located

luigi@luigi-IXTREME-MC-9600:~$ whereis x264
x264: /usr/local/bin/x264

added : include /usr/local/bin to /etc/ld.so.conf
ran: ldconfig

removed x264

Compiled/installed x264 with –disable-opencl

Unfortunately trying to compile and install FFmpeg gives the same errors.

I have found libx264.a which is an AR archive in the src/x264 directory, do you know what is it?
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Sun Feb 01, 2015 5:34 pm

Re: ffmpeg installation problems Ubuntu 12.04

What do you get when you run 'x264' from a terminal? you should see following if x264 is in path and installed correctly.
  Code:
x264 [error]: No input file. Run x264 --help for a list of options.


if the x264 is installed correctly then opencl is the issue. Try following.
  Code:
cd ~/src
git clone git://git.videolan.org/x264
cd x264
./configure --enable-static --disable-opencl
make
sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
    awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \
    --fstrans=no --default


Npuser
<<

Luigi

Serviio newbie

Posts: 3

Joined: Sat Jan 31, 2015 4:29 pm

Post Sat Feb 07, 2015 10:49 am

Re: ffmpeg installation problems Ubuntu 12.04

Problem solved!

I rermoved and then reinstalled everything, ffmpeg is now compiled. I do not know what was wrong.

Serviio is stil not detected by my TV but I will keep searching for an answer.

Thanks a lot npuser

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 65 guests

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