2013-06-28 187 views
1

我安裝的GStreamer-0.10,並根據這些指令(通過瀏覽點擊/下一個先前)所有模塊(基地,好的,壞的,醜陋的,ffmpeg的): http://www.linuxfromscratch.org/blfs/view/svn/multimedia/gst-plugins-ugly.html的GStreamer x264enc沒有找到

一切似乎有工作得很好,但是當我要執行我的管道我得到這個錯誤:

glib.GError: no element "x264enc" 

顯然模塊未安裝:

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

之後,我通過執行安裝編解碼器:

sudo apt-get install x264 

這也沒有工作。所以我手動安裝最新版本: http://www.videolan.org/developers/x264.html

X264的成功安裝我的的GStreamer-0.10醜陋模塊的./configure跑再次後,發現了這一點:

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 

的檢查,如果x264是可用似乎得到fullfilled:

which x264 
/usr/local/bin/x264 

我使用的是Ubuntu的服務器12.04 LTS。任何想法,我必須做些什麼來正確編譯這個模塊?謝謝!

回答

1

這裏的問題是x264未正確安裝。我檢查了x264源代碼目錄和安裝目的地以及一些文件丟失。手動將它們複製到各自的目錄後,重新編譯gstreamer醜陋模塊。

1

我有與Ubuntu 14.04和gstreamer-1.0相同的問題。對我來說,它有助於加裝libx264-dev的:

sudo apt-get install libx264-dev 
2

嘗試使用安裝它:

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

OR

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

它爲我工作。