Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GStreamer x264enc not found

I installed GStreamer-0.10 and all modules (base, good, bad, ugly, ffmpeg) according to these instructions (browse through by clicking prev/next): http://www.linuxfromscratch.org/blfs/view/svn/multimedia/gst-plugins-ugly.html

Everything seemed to have worked just fine but when I want to execute my pipeline I got this error:

glib.GError: no element "x264enc"

Apparently the module was not installed:

gst-inspect x264enc
No such element or plugin 'x264enc'

After that I installed the codec by executing:

sudo apt-get install x264

This did not work either. So I installed the latest build manually: http://www.videolan.org/developers/x264.html

After a successful installation of x264 I ran ./configure on the gstreamer-0.10 ugly modules once again and found out about this:

configure: *** checking feature: x264 plug-in ***
configure: *** for plug-ins: x264 ***
checking for X264... no
configure: No package 'x264' found
configure: *** These plugins will not be built: x264
configure: creating ./config.status

A check if x264 is available seems to get fullfilled:

which x264
/usr/local/bin/x264

I'm using ubuntu server 12.04 LTS. Any ideas what I have to do to compile this module properly? Thanks!

like image 720
Dominik Schreiber Avatar asked Dec 09 '22 14:12

Dominik Schreiber


2 Answers

Try to install it using:

sudo apt-get install gstreamer1.0-plugins-ugly

OR

sudo apt-get install gstreamer0.1-plugins-ugly

It worked for me.

like image 65
ransh Avatar answered Dec 11 '22 04:12

ransh


I had the same issue with Ubuntu 14.04 and gstreamer-1.0. For me, it helped to additionally install libx264-dev:

sudo apt-get install libx264-dev
like image 22
D_K Avatar answered Dec 11 '22 05:12

D_K