Sign up to Submit Content

Sign Up / Login
debiantutorials.org accepts no advertising. Quit asking me.
feed image
Guests 25
If you can walk and chew gum at the same time, you can run Linux

debian tutorials | debian support forum
I invite anyone familiar with Linux or Debian to register here at debiantutorials.org and write tutorials or related articles in order that everyone in the community can benefit. I'm talking to you. You say it better than I do. Your ideas just flow like water. There's so much more that needs to be written in ways that your cousin or an office manager can benefit from. Consider it.
debiantutorials.org is built on and runs on Debian.
Creative Commons License
Multimedia on Debian Etch
Multimedia on your bad-ass Debian Etch Desktop PDF Print E-mail
Written by machiner   
Monday, 12 February 2007 04:07

I dig the fact that it only takes a minute before/while/after installing my desktop for me to be groovin' on my favorite tunes or catching a funny video on-line. OK -- I don't watch that many videos, but sometimes the chillen and I will watch some movie previews on Apple trailers. We say things like " COOL!" and "Did you see that?!". "That was darn cool" is a favorite of my almost-six-year-old. How 'bout you? Got music?  [EDIT: no sound on etch.]

With this short multimedia tutorial we'll get you groovin' in no time, too. It's a snap, and as usual, everything is as easy as an

# apt-get install [cool-app]

I love using the command line. Of course, you can always use Synaptic after you've installed and have logged in to your desktop. Linux is known for "the choice is yours" and some of us appreciate that we are able to make these choices ourselves. I think you'll like having that sort of power on your own machine, too. Should be a given, I think, but some operating systems take this control out of your hands.

The first thing that I do when setting up my desktop's multimedia capabilities is to get my sound working. I do this when I'm installing Debian. In fact, I do this as root, from the command line right I've installed my hardware specific kernel image and rebooted! I set-up the video and codec stuff at this time, as well. When I log in (after the initial kernel install and reboot) I get [[alsa]] (Advanced Linux Sound Architecture) on and configured straight away:

# apt-get install alsa-base alsa-utils alsa-oss

When it's in, I simply run alsa's configuration script # alsaconf

This only takes a second and it is probably all that you will need to do, as well. However, we all have different hardware, so it would probably behoove you to check out alsa's hardware support page.

Hey now, being the knowledge-thirsty hell-hound that you are, you may want more sound information. Read up a little on some other aspects of sound on Linux:

ESD isn't really a "sound system" like Alsa, read their Abstract:

"Esound (also referred to as ESD) is a small sound daemon for both Linux and UNIX. ESD was created to provide a consistent and simple interface to the audio device, so applications do not need to have different driver support written per architecture. It was also designed to enhance capabilities of audio devices such as allowing more than one application to share an open device. ESD accomplishes these things while remaining transparent to the application, meaning that the application developer can simply provide ESD support and let it do the rest. On top of this, the API is designed to be very similar to the current audio device API, making it easy to port to ESD."

Example, you may like to hear sounds for desktop actions while you're listening to your favorite [[Megadeath]] track.

Oh, just so you're aware, there is a "muting-bug" present in Alsa. You may not have any sound after setting up Alsa. If you would like to fix this immediately from the command-line, (and if you're this person then you probably know what to do anyway) simply run:

$ amixer set Master 100% unmute

$ amixer set PCM 100% unmute

Of course, you can wait until you have your desktop set up, go up in your menu bar, right-click on the volume-control widget and uncheck mute. Like I say, it's a known bug, but you may not be affected. Pfft!

With Etch you don't have to do much. Installing Rhythmbox will add enough of the gstreamer back-end that you can hear sounds from multiple sources concurrently. I can remember that in Sarge this could get a little tedious. However, that's relative anyway!

For example, I like to listen to my favorite local Jazz station in XMMS. In Etch I have nothing to do to ensure that while I'm groovin' on Mingus I can also get sound if I open another source. Who wants some "jackass" video on YouTube corrupting the sweet stirrings of Mingus? Not I.

Following your sound set up, it's time for video. This is just as simple and if you've installed Gnome instead of gnome-core you'll have the back-end that you need. Totem-xine gets installed and xine is a terrific back-end. You may be perfectly happy with the gstreamer back-end coupled with xine. If you like using the Multimedia Properties widget and/or aren't too fond of embedded media, count me in there, then Totem will make you happy. Some folks complain that Totem chokes on certain codecs -- I haven't noticed this. There may be limitations but I haven't seen them.

If you want to go the gstreamer route, then you'll need to install the w32codecs. You can find them in the Marillat repository. I use this mirror in my /etc/apt/sources.list file:

deb http://mirror.home-dn.net/debian-multimedia/ etch main
deb-src http://mirror.home-dn.net/debian-multimedia/ etch main

Add the debian-multimedia key:

# aptitude install debian-multimedia-keyring

Check this page for a mirror closest to you. So, for the w32codecs we would do this:

# apt-get install w32codecs

Cake.

I happen to like Totem because I don't really like embedded media on web pages. I like to size what I'm watching and embedded media doesn't let me do that.

You don't mind embedded media? You like it? Well then, you can install Mplayer in addition to, or in place of, Totem. Mplayer will handle just about everything and there are some really cool things that you can do with Mplayer -- like record streams and rip/convert/re-size video. Now, take note of this: If, you're watching a wma file and you see an error about directshow, what can you do? You can install the w32codecs. Note that these codecs aren't essential for Mplayer. You will still see and hear your video just fine.

These days, for my video and plugin needs I simply install the following and I'm off -- wasting time:

# apt-get install mplayer mozplugger ffmpeg

That's it. I know, I hear you. "What about watching DVDs,?" Well, personally, I think watching movies on my computer(s), terrific monitors notwithstanding, seems kind of silly. Although sometimes it can be handy. I'm also pretty sick of buying movies from that cartel. Besides, our movie collection is big enough, thank you very much, and the space allocated for all of the back-up copies that I've made ( see: ripping DVDs ) is full. But that's me -- do what you feel.

To watch those DVD movies on your box, just install libdvdcss2. It is in the Marillat repository, as well.

# apt-get install libdvdcss2

That's it, you're done. All you need is a minute, like I wrote, and you only need to install a couple of things to get that sound working.

Cake: chocolate, and homemade from scratch, baby!

I also install flash because many sites are using it to display videos. The ads on web pages suck, but there are plenty of ways to block those. You can get it here. Close your browser after you've downloaded it, go to the directory where the downloaded file is, extract the files, move into the extracted directory and run:

$ ./flashplayer-installer

You'll be fine. I install flash after my desktop is finished and I'm logged in.

Some useful multimedia programs include:

  • streamtuner
  • xmms
  • camstream
  • VLC
  • quodlibet
  • sox (sound converter)
  • geekcast
  • gnump3d
  • hotkeys

Realplayer is also in the Etch repos if you need that.

For those of you with nVIDIA cards, I guess this fits in with multimedia, as well -- check out our nVIDIA tutorial. 'Cos games are multimedia, right? I dig Nexuiz. I will frag yer ass! LOL

KDE has its own collection of multimedia apps as well, but KDE gives me a headache.

That's it -- enjoy the show.

Any trouble -- post it here

--machiner 12 Feb 2007
Edited By: Rob Hodgins

Feel free to add your comments below -- I may have forgotten something, as I only got 3 hours of sleep last night and I'm beat. Let me know below and I'll fix-up this guide right-quick



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Free Joomla PHP extensions, software, information and tutorials.
Comments
Add New RSS
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly:
:dry::lol::kiss::D:pinch::(:shock:
:X:side::):P:unsure::woohoo::huh:
:whistle:;):s:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.
'Guest'  - Flash   |86.149.248.xxx |2007-02-13 04:14:02
You really need to change the flash section. Its in the repositories.

http://packages.debian.org/testin
g/web/flashplugin-nonfree

from the contrib repository will setup flash for you, if you download flash
files then VLC can play them and I think there may be a flash player in the Marillat repos
'Guest'  - KDE and additional plugins   |24.176.42.xxx |2007-02-13 07:13:59
mozilla-mplayer - MPlayer-Plugin for Mozilla,realplay and kplayer along with acroread pretty much complete the
multimedia thing along with all the above. KDE is my thing so I don't use totem instead I use
mplayer.

Amarok, and Kaffeine round out the other necessary multimedia apps for me as well. Especially now
that Amarok plays Shoutcast.

Flash 9 is now in non-free so a simple apt-get install flashplugin-nonfree
will install the latest Adobe flash.

Java is a necessary multimedia browser plugin in todays internet as
well. apt-get install sun-java6-jre sun-java6-plugin sun-java5-bin
using again the non-free will install the
latest Sun Java6.

'Guest'  - Flash   |72.74.124.xxx |2007-02-19 06:56:10
Activate Debian Etch contrib repository, then you can install Flash 9 using apt-get:

# apt-get install
flashplugin-nonfree
'Guest'  - Flash   |202.173.188.xxx |2007-02-13 14:26:32
apt-get install flashplugin-nonfree
'Guest'  - Flash   |72.74.124.xxx |2007-02-19 06:55:44
* add non-free to source.list
# apt-get install flashplugin-nonfree flashplayer-mozilla
'Guest'   |72.74.124.xxx |2007-02-19 06:59:25
Sheesh!!! Thank you for the eligntenment!! You guys ROCK!!

--machiner
'Guest'  - need alittle help with libdvdcss   |72.74.112.xxx |2007-02-26 17:58:07
wow, thanks for making it so easy.

one Q - I'm using Ubuntu and trying to set up DVD and all went well till
I ran:

apt-get install libdvdcss2

I have the file I downloaded on the desktop and it's
labelled

libdvdcss_1.2.5.orig.tar.gz

all I can do is extract it to a folder. When I run:

apt-get
install libdvdcss2

it tells me:

Reading package lists... Done
Building dependency tree... Done
Package
libdvdcss2 is not available, but is referred to by another package.
This may mean that the package is
missing, has been obsoleted, or
is only available from another source
E: Package libdvdcss2 has no
installation candidate
gary@HAL:~$
gary@HAL:~$


also, two other items, HP PSC 1210 set up
and WInGo TV card

I don't wanna go back to the other OS's so please help me thru this?

THANKS!

Gary
'Guest'  - hey Gary   |72.74.112.xxx |2007-02-26 18:00:56
contact me through the admin - machiner contact page.
Post something in the forum,
http://www.debiantutorials.org/talkitup/index.php


We get more visitors to that new forum all the
time.

--machiner
'Guest'  - Laptops... Mute External Amplifier to Ge   |72.74.109.xxx |2007-03-13 14:23:41
May my pain save you from this simple mistake.

Symptom: No sound on laptop. Modules are loaded. Alsaconf
tells you to "Have Fun" but there is no fun, cause there is no sound.

Solution: start some sound
application (from the command line try "speaker-test" if at this point you hear nothing. Try
this
open a second terminal and run "alsamixer" and navigate right until you find the external
amplifier controller. The press "m" (mute) wait a second and see if you hear some white noise.
If
you do, this problem is solved!

If not, try messing with the other levels, good luck!!
'Guest'  - libdvdcss2 in ubuntu   |71.162.67.xxx |2007-03-12 03:58:27
this is a great guide - thanks

gary - you need to enable the multiverse and universe
repos

[edited]

seshomaru samma

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Monday, 16 February 2009 18:30