Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ultimate multimedia guide for Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
brfsa
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2005
Posts: 121
Location: Brazil

PostPosted: Fri Aug 05, 2005 1:28 pm    Post subject: Ultimate multimedia guide for Gentoo Reply with quote

*** For a full multimedia system with Codecs, players and good DVD playback ***

I haven't seen any good thread that covers a full multimedia howto. So i collected data from different sites and put all together.
And also from my own experience, of course...


First let's setup the make.conf file.



* CPU specific USE flags:

Athlon-XP or Duron CPU
"3dnow 3dnowext sse mmx mmxext"

Athlon-FX , Athlon 64 CPU
"3dnow 3dnowext sse sse2 sse3 mmx mmxext"

Celeron(p4 based) or Pentium4 based CPU
"sse sse2 mmx"

Newest P4 of those with 3GHz, and Celeron-D:
"sse sse2 sse3 mmx"

note: you can check you CPU flags by doing:
#grep flags /proc/cpuinfo



* Graphics Card Specific USE flags

NVidia
"nvidia"

Matrox
"matrox"

Radeon
"ati radeon"


* Multimedia related USE Flags:
"a52 aac aalib alsa avi cdparanoia cdr dts dv dvd dvdr dvdread encode ffmpeg flac jpeg lame live mad jpeg mp3 mplayer ogg opengl quicktime real theora truetype vcd vcdimager video vidix vorbis win32codecs xmms xv"


* Recomended USE Flags:
"wxwindows nptl nptlonly"


* Not Recomended USE Flags for 32bits system:
"hardened"


* Now let's emerge the codec packages

emerge -vnDNa a52dec faac faad2 flac lame libogg libmad libmatroska win32codecs libcddb libcdio
libdvbpsi libdvdcss libdvdread libdvdnav libfame ffmpeg


* and the players packages

emerge -uDvaN xine-lib xine-ui gxine mplayer vlc totem

go to sleep or have a meal, because it will take ages to complete. (3-6 hours?)

* Now we have many players to choose: xine-ui, gxine, mplayer, totem and vlc.

I recommend to use Alsa as the main audio modules.
It has a lot of features and better performance.
set alsa as static in the kernel and do the following


emerge -uDvaN alsa-utils alsa-tools
emerge -uDvaN gnome-alsamixer (if you use gnome)

* then setup alsa:

#rc-update add alsasound boot

* now, configure the default volume you want. Sometimes it is always mutted.
#alsamixer

* save it
#/etc/alsasound save


Last edited by brfsa on Thu Feb 09, 2006 1:07 pm; edited 6 times in total
Back to top
View user's profile Send private message
rafael
Apprentice
Apprentice


Joined: 22 Jul 2002
Posts: 267

PostPosted: Fri Aug 05, 2005 5:19 pm    Post subject: Reply with quote

As far as I know, at least the newest (kind of depends on how you define new) Intel P4 CPUs support mmxext. It wouldn't surprise me if it were the same for the 'older' P4, P3 and P4 based Celeron. Besides, doesn't this post belong in the Documentation, Tips and Tricks forum?

- rafael
Back to top
View user's profile Send private message
brfsa
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2005
Posts: 121
Location: Brazil

PostPosted: Sat Aug 06, 2005 5:20 am    Post subject: Reply with quote

I know, I should've posted it in the Documentation, Tricks and Tips forum .
How can I move it to there?
Back to top
View user's profile Send private message
nutznboltz
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 239

PostPosted: Thu Feb 02, 2006 1:57 pm    Post subject: Reply with quote

This needs updating.

I get:

emerge: there are no ebuilds to satisfy "divx4linux".

https://forums.gentoo.org/viewtopic-p-3079244.html

The vobix and divx4linux USE flags are obsolete.
Back to top
View user's profile Send private message
nutznboltz
Apprentice
Apprentice


Joined: 23 Apr 2004
Posts: 239

PostPosted: Mon Feb 06, 2006 4:37 pm    Post subject: Reply with quote

Code:
note: you can check you CPU flags by doing:
#cat /proc/cpuinfo | grep flags

Ah, a "deadcat". Try just
Code:
grep flags /proc/cpuinfo

Why add a cat and an pipe and all that goo just to feed a file to grep?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 17808

PostPosted: Mon Feb 06, 2006 4:48 pm    Post subject: Reply with quote

Moved from Multimedia.
_________________

Believing I had supernatural powers I slammed into a brick wall.
I said hey, is this my problem? Is this my fault?
Back to top
View user's profile Send private message
emery
n00b
n00b


Joined: 08 Dec 2005
Posts: 7

PostPosted: Thu Feb 09, 2006 2:49 am    Post subject: alsa runlevel Reply with quote

I think the alsa deamon should be added to the boot runlevel and not default.
So rather than
rc-update add alsasound default
it should be
rc-update add alsasound boot
Back to top
View user's profile Send private message
<3
l33t
l33t


Joined: 21 Oct 2004
Posts: 918

PostPosted: Thu Feb 09, 2006 4:31 am    Post subject: Reply with quote

realplayer?!?!? pffft
Back to top
View user's profile Send private message
scap1784
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 225

PostPosted: Thu Feb 09, 2006 12:22 pm    Post subject: Reply with quote

Code:


dual scap # ACCEPT_KEYWORDS=~amd64 emerge -vnDNa a52dec faac faad2 flac lame libogg libmad libmatroska win32codecs libcddb libcdio  libdvbpsi libdvdcss libdvdread libdvdnav libfame ffmpeg
>>> --newuse implies --update... adding --update to options.

These are the packages that I would merge, in order:

Calculating dependencies ...done!

[blocks B     ] <media-libs/faad2-2.0-r9 (is blocking media-libs/libmp4v2-1.4.1)

Back to top
View user's profile Send private message
brfsa
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2005
Posts: 121
Location: Brazil

PostPosted: Thu Feb 09, 2006 1:13 pm    Post subject: Reply with quote

ok..... Fine!!!
Realplayer removed....

i know it s0cks, but just for the sake if some people needs it.

by the way, <3, how is your experience with AMD64? did you have much trouble or was it all smooth through?

do you have your make.conf posted somewhere? I am getting a AMD64 system quite soon.
Back to top
View user's profile Send private message
bravecobra
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2002
Posts: 130
Location: Planet Earth (sometimes)

PostPosted: Thu Feb 09, 2006 5:22 pm    Post subject: Reply with quote

scap1784 wrote:
Code:


dual scap # ACCEPT_KEYWORDS=~amd64 emerge -vnDNa a52dec faac faad2 flac lame libogg libmad libmatroska win32codecs libcddb libcdio  libdvbpsi libdvdcss libdvdread libdvdnav libfame ffmpeg
>>> --newuse implies --update... adding --update to options.

These are the packages that I would merge, in order:

Calculating dependencies ...done!

[blocks B     ] <media-libs/faad2-2.0-r9 (is blocking media-libs/libmp4v2-1.4.1)


try
Code:
echo "media-sound/easytag -aac" >> /etc/portage/package.use

_________________
Brave Cobra
http://www.bravecobra.com
Back to top
View user's profile Send private message
dundas
Guru
Guru


Joined: 16 Dec 2004
Posts: 317
Location: China, Earth

PostPosted: Fri Feb 10, 2006 5:42 am    Post subject: Reply with quote

nice brfsa.
grep flags /proc/cpuinfo, can't believe I didn't use the sse2 flag.
_________________
Appreciate Gentoo: Best Devs, Best Forums. YOU could help too: Help Answer
Back to top
View user's profile Send private message
brfsa
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2005
Posts: 121
Location: Brazil

PostPosted: Fri Feb 10, 2006 5:32 pm    Post subject: Reply with quote

scap1784, why are you using ~amd64 for all those packages?

I don't have an AMD64, but in my athlon I almost never user ~x86, except for a dozen packages, like gcc, glibc, opera, ati-drivers.....

as soon I have a lot of ~x86 packages, my system starts to get anoying with me... and needs to do revdep-rebuild
Back to top
View user's profile Send private message
chris_g_g
n00b
n00b


Joined: 28 Apr 2003
Posts: 8

PostPosted: Wed Feb 15, 2006 6:03 pm    Post subject: multimedia on amd64 Reply with quote

I've recently got a relatively working AMD64 setup so thought I'd share what I've come up with so far. I'm quite inexperienced at gentoo and am trying KDE3.5.1 (from ~arch) so some of what I've done may be.... different!

'win32codecs' won't play with MPlayer, vlc or Kaffeine straight off the bat. http://gentoo-wiki.com/HOWTO_AMD64#Mplayer_and_32bit_codecs helped. There could be some confusion with how it's written though. Definitely, the app is called 'mplayer-bin' and not 'mplayer32'.
Step 1: 'emerge mplayer' and whatever else normally. This puts an entry for MPlayer in the K menu.
Step 2: Follow the wiki steps and emerge the binary packages.
Step 3: Rename mplayer to mplayer.old then link mplayer-bin to mplayer. This lets things like KMplayer (GUI) use the binary mplayer which can use win32 codecs.

A quick check of the USE flags list (http://www.gentoo.org/dyn/use-index.xml) shows some differences to the suggested list for multimedia goodness. Is there such a thing as sse3 and nvidia USE flags? My CPU is a new Venice core Athlon64 so it can do SSE3.... I just don't see any reference to it in the list.
Back to top
View user's profile Send private message
brfsa
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2005
Posts: 121
Location: Brazil

PostPosted: Thu Feb 16, 2006 4:29 pm    Post subject: Reply with quote

if you want to know which packages use the SSE flags, you can do this:

Code:
quse sse


*note that you need to emerge "app-portage/portage-utils"
Back to top
View user's profile Send private message
GetCool
Guru
Guru


Joined: 23 Nov 2003
Posts: 324
Location: Madison, Wisconsin

PostPosted: Fri Feb 17, 2006 10:51 pm    Post subject: Reply with quote

One question:

Aren't all of these USE flags...

Quote:
Athlon-FX , Athlon 64 CPU
"3dnow 3dnowext sse sse2 sse3 mmx mmxext"


...redundant (except for "sse3")? It seems as if they are ignored on AMD64 (because they are enabled by default).
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Sat Feb 18, 2006 11:29 am    Post subject: Re: Ultimate multimedia guide for Gentoo Reply with quote

brfsa wrote:
* Now let's emerge the codec packages

emerge -vnDNa a52dec faac faad2 flac lame libogg libmad libmatroska win32codecs libcddb libcdio libdvbpsi libdvdcss libdvdread libdvdnav libfame ffmpeg
Wouldn't it be better to let USE flags handle these, or at least emerge them with --oneshot, so that 'emerge depclean' would remove them if they're not needed.

Also I'd add 'xvid' in your Multimedia related USE Flags.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum