#1  
Old 05-28-2010, 05:18 AM
aj123 aj123 is offline
Member
 
Join Date: May 2010
Posts: 69
Thanked: 22 times
Default How to: Compile source for non-free codecs (gstreamer or vlc)

Banshee (the default player) will play mp3 and divx/xvid if you follow the gstreamer guide but won't play anything advanced like h264. My solution is to use totem from the meego repos. You will have to pass --enable-XXX arguments for the codecs you want installed. If you just run ./configure it will tell you what is enabled.

Quote:
# yum install totem gcc flex bison make diffutils glib2-devel pango-devel cairo-devel liboil-devel alsa-lib-devel libtheora-devel libvorbis-devel libogg-devel wget gcc-c++ fribidi* qt*devel* *SDL* dbus-devel *hal*dev* libXpm* libXt* moz* libXScrnSaver.i586 libXaw-devel.i586 pulseaudio-devel.i586 totem.i586 totem-gstreamer.i586 totem-pl-parser.i586 dbus-devel sudo gcc-c++ libgcrypt libgcrypt-devel make

+ faac
http://downloads.sourceforge.net/faac/faac-1.28.tar.bz2
or
http://91.190.227.59/xbmc_builddeps.tar.gz (install faac only if source fails; it did for me)

+ (avc/x264)
ftp://ftp.videolan.org/pub/videolan/x264/snapshots/

+faad2
http://downloads.sourceforge.net/faac/faad2-2.7.tar.bz2

+ then Gstreamer:
http://www.garypigott.net/result-ive...on-moblin-2-1/

___________________________

or

VLC:
Prep
Code:
yum install gcc flex bison make diffutils glib2-devel pango-devel cairo-devel liboil-devel alsa-lib-devel libtheora-devel libvorbis-devel libogg-devel wget gcc-c++ fribidi* qt*devel* *SDL* *dbus*dev* *hal*dev* libXpm* libXt* moz*
install libmad
Code:
cd ~/Download
wget http://downloads.sourceforge.net/pro...0.15.1b.tar.gz
tar xvfz libmad-0.15.1b.tar.gz
cd libmad-0.15.1b
echo "\tremoving optimize="\$optimize -fforce-mem" option"
sed -e 's/optimize="$optimize -fforce-mem"/#optimize="$optimize -fforce-mem"/g' ./configure > new
mv ./configure ./configure.org;mv new ./configure
diff ./configure.org ./configure
chmod 777 ./configure
./configure -prefix=/usr && make && make install

install ffmpeg
Code:
cd ~/Download
wget http://ffmpeg.org/releases/ffmpeg-ex...apshot.tar.bz2
tar xvfj ffmpeg-export-snapshot.tarbz2
mkdir ffmpeg-export-snapshot
tar xvfj ffmpeg-export-snapshot.tar.bz2 -C ./ffmpeg-export-snapshot
cd ffmpeg-export-snapshot/*
./configure --prefix=/usr --enable-gpl --enable-postproc --enable-x11grab --enable-shared --enable-ffplay
make
sudo make install

install a52dec
Code:
cd ~/Download
wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
tar xvfz a52dec-0.7.4.tar.gz
cd a52dec-0.7.4
./configure -prefix=/usr && make && make install

install libmpeg2
Code:
cd ~/Download
wget http://libmpeg2.sourceforge.net/file...2-0.5.1.tar.gz
tar xvfz libmpeg2-0.5.1.tar.gz
cd libmpeg2-0.5.1
./configure -prefix=/usr && make && make install

install vlc
Code:
cd ~/Download
wget http://download.videolan.org/pub/vid...-1.0.3.tar.bz2
tar xvfj vlc-1.0.3.tar.bz2
cd vlc-1.0.3
./configure -prefix=/usr && make && make install
http://forum.videolan.org/viewtopic.php?f=13&t=67820


Edit: fixed dependencies issues

Last edited by aj123; 06-10-2010 at 02:52 AM.
Reply With Quote

The Following 6 Users Say Thank You to aj123 For This Useful Post:
  #2  
Old 05-29-2010, 01:48 PM
bigartemka bigartemka is offline
Junior Member
 
Join Date: May 2010
Posts: 13
Default Re: How to: Compile source for non-free codecs (gstreamer or vlc)

still cant play mp3, avi and others =(
Reply With Quote
  #3  
Old 05-29-2010, 01:52 PM
profebral's Avatar
profebral profebral is offline
Senior Member
 
Join Date: Feb 2010
Posts: 656
Thanked: 183 times
Send a message via AIM to profebral Send a message via Skype™ to profebral
Default Re: How to: Compile source for non-free codecs (gstreamer or vlc)

Please see the welcome post for MP3s
Reply With Quote
  #4  
Old 05-29-2010, 04:28 PM
meegoman meegoman is offline
Junior Member
 
Join Date: May 2010
Posts: 8
Thanked: 1 time
Default Re: How to: Compile source for non-free codecs (gstreamer or vlc)

I try install libmad but get error: configure: error: C++ preprocessor "/lib/cpp" fails sanity check?
Edit.

And also get this:
No package *hal*dev* available.

And when try to install packages get this:
Quote:
Install 39 Package(s)
Upgrade 0 Package(s)

Total size: 23 M
Installed size: 67 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test


Transaction Check Error:
file /usr/bin/dbusxx-introspect conflicts between attempted installs of libdbus-c++-0.5.1-3.10.i586 and dbus-c++-0.5.0-4.3.i586
file /usr/bin/dbusxx-xml2cpp conflicts between attempted installs of libdbus-c++-0.5.1-3.10.i586 and dbus-c++-0.5.0-4.3.i586
file /usr/lib/libdbus-c++-1.so.0.0.0 conflicts between attempted installs of libdbus-c++-0.5.1-3.10.i586 and dbus-c++-0.5.0-4.3.i586
file /usr/include/dbus-c++-1/dbus-c++/connection.h conflicts between attempted installs of dbus-c++-devel-0.5.0-4.3.i586 and libdbus-c++-devel-0.5.1-3.10.i586
file /usr/include/dbus-c++-1/dbus-c++/eventloop-integration.h conflicts between attempted installs of dbus-c++-devel-0.5.0-4.3.i586 and libdbus-c++-devel-0.5.1-3.10.i586
file /usr/include/dbus-c++-1/dbus-c++/eventloop.h conflicts between attempted installs of dbus-c++-devel-0.5.0-4.3.i586 and libdbus-c++-devel-0.5.1-3.10.i586
file /usr/include/dbus-c++-1/dbus-c++/util.h conflicts between attempted installs of dbus-c++-devel-0.5.0-4.3.i586 and libdbus-c++-devel-0.5.1-3.10.i586
file /usr/lib/pkgconfig/dbus-c++-1.pc conflicts between attempted installs of dbus-c++-devel-0.5.0-4.3.i586 and libdbus-c++-devel-0.5.1-3.10.i586

Error Summary
-------------
Reply With Quote
  #5  
Old 05-30-2010, 07:15 AM
zbby1987 zbby1987 is offline
Junior Member
 
Join Date: May 2010
Posts: 7
Default Re: How to: Compile source for non-free codecs (gstreamer or vlc)

天啊,我的英语太糟糕了,我还是用中文吓唬一下你们把!哈哈
Reply With Quote
  #6  
Old 05-30-2010, 11:13 AM
g00fy's Avatar
g00fy g00fy is offline
Member
 
Join Date: Feb 2010
Location: Germany
Posts: 58
Thanked: 9 times
Send a message via ICQ to g00fy Send a message via MSN to g00fy
Default Re: How to: Compile source for non-free codecs (gstreamer or vlc)

Quote:
Originally Posted by aj123 View Post
...

Code:
yum install gcc flex bison make diffutils glib2-devel pango-devel cairo-devel liboil-devel alsa-lib-devel libtheora-devel libvorbis-devel libogg-devel wget gcc-c++ fribidi* qt*devel* *SDL* *dbus*dev* *hal*dev* libXpm* libXt* moz*
...
Quote:
Originally Posted by meegoman View Post
...when try to install packages get this:
Code:
... Transaction Check Error ...
...
I guess the error is somewhere in the dbus-area... (uuuh, that was hard to find out )
I got the same error, so I slightly changed the code:

Code:
yum install gcc flex bison make diffutils glib2-devel pango-devel cairo-devel liboil-devel alsa-lib-devel libtheora-devel libvorbis-devel libogg-devel wget gcc-c++ fribidi* qt*devel* *SDL* dbus*dev* *hal*dev* libXpm* libXt* moz*
In short I just removed one sign ( * ) and no error occured.
Now I hope that I didn't miss any necessary packet to run the next steps...

to be continued...
Reply With Quote
  #7  
Old 05-30-2010, 11:13 AM
a02dami a02dami is offline
Junior Member
 
Join Date: May 2010
Posts: 14
Thanked: 1 time
Default Re: How to: Compile source for non-free codecs (gstreamer or vlc)

Quote:
Originally Posted by meegoman View Post
I try install libmad but get error: configure: error: C++ preprocessor "/lib/cpp" fails sanity check?
Edit.

And also get this:
No package *hal*dev* available.

And when try to install packages get this:

Me too .. 3 days of work, but any mp3 - I have the same error ..

I tryied also FLUENDO - like explain here - but nothing. After installation I recive ad error, and go up the Bug Reporting ..

this is a part of the BUG reported automaticaly

"warning: core file may not match specified executable file.
Missing separate debuginfo for /usr/lib/libmoblin-panel.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/95/3a559d6af3ee4db816d141597d05858e7c6dda /var/cache/abrt-di/usr/lib/debug/.build-id/95/3a559d6af3ee4db816d141597d05858e7c6dda
Missing separate debuginfo for /usr/lib/libmx-1.0.so.0 .. etc .. etc.. "
Reply With Quote
  #8  
Old 05-30-2010, 12:10 PM
spide spide is offline
Junior Member
 
Join Date: May 2010
Posts: 9
Thanked: 3 times
Default Re: How to: Compile source for non-free codecs (gstreamer or vlc)

You don't have c++ compiler.

sudo yum install gcc-c++
Reply With Quote
  #9  
Old 05-30-2010, 01:25 PM
bigartemka bigartemka is offline
Junior Member
 
Join Date: May 2010
Posts: 13
Default Re: How to: Compile source for non-free codecs (gstreamer or vlc)

here is my error =(

[root@bigartemka-desktop ffmpeg-export-2010-05-30]# ./configure --prefix=/usr --enable-gpl --enable-postproc --enable-x11grab --enable-shared --enable-ffplay
Unknown C compiler gcc
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.


cant install the video codecs...
but i got the mp3 working)) just copy the libgstflump3dec.so to gstreamer-0/10/plugins/
Reply With Quote
  #10  
Old 05-30-2010, 04:23 PM
smpalli smpalli is offline
Junior Member
 
Join Date: May 2010
Posts: 4
Default Re: How to: Compile source for non-free codecs (gstreamer or vlc)

I am getting the following error for VLC configure (./configure -prefix=/usr)


configure: error: libgcrypt support required for RemoteOSD plugin

Any help?

Thank you.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
statusnet / identica open source microblogging support remin13 Application Developer Support 3 03-24-2011 02:00 AM
Touch free gesture control using front cam? mja Off-topic 8 06-08-2010 03:35 PM
non-free repo eventually; meego or community hosted? aj123 General 3 06-01-2010 10:20 AM
Contact(or phonebook) Application source belfe7 Application Developer Support 1 05-24-2010 01:38 PM
Free / Non-free chart of software in MeeGo jeremiah Application Developer Support 5 04-20-2010 07:54 AM


All times are GMT. The time now is 08:38 PM.