<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lindesk &#187; multimedia</title>
	<atom:link href="http://lindesk.com/tag/multimedia/feed/" rel="self" type="application/rss+xml" />
	<link>http://lindesk.com</link>
	<description>Linux - on the Desktop</description>
	<lastBuildDate>Tue, 23 Jun 2009 14:03:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adding Support for almost All Video Formats/Codecs in Linux</title>
		<link>http://lindesk.com/2008/09/adding-support-for-almost-all-video-formatscodecs-in-linux/</link>
		<comments>http://lindesk.com/2008/09/adding-support-for-almost-all-video-formatscodecs-in-linux/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 18:55:15 +0000</pubDate>
		<dc:creator>BinnyVA</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[codec]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[multimedia]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://lindesk.com/?p=126</guid>
		<description><![CDATA[There is an over abundance of video formats right now - fortunately, our favorite OS, Linux, is capable of handling all of them. But some video formats are not supported 'out-of-the-box' - in such cases, we have to install the necessary codecs. This guide will show you how install the codecs for just about every video format under the sun.]]></description>
			<content:encoded><![CDATA[<p><img src="http://lindesk.com/wp-content/uploads/2008/09/videos.png" alt="Multimedia" title="Videos" width="128" height="128" class="size-full wp-image-127 intro" align="right" /></p>
<p class="intro">There is an over abundance of <a href="http://en.wikipedia.org/wiki/List_of_codecs#Video_codecs">video formats</a> right now &#8211; fortunately, our favorite OS, Linux, is capable of handling all of them. But some video formats are not supported &#8216;out-of-the-box&#8217; &#8211; in such cases, we have to install the necessary codecs. This guide will show you how install the codecs for just about every video format under the sun.</p>
<p>Before going into the topic further, let me pacify the flamers in the audience. There are many codecs that include DRM and many are proprietary &#8211; and for this reason, many distros refuse to support them. But these can be supported using external software &#8211; whether or not to do that is a choice I leave to the readers. I am only handling the technical issue of installing the codecs here. The moral and ethical concerns have been handled by others better than me.</p>
<h2>The Players &#8211; Video Trinity</h2>
<p>There is no shortage of <a href="http://lindesk.com/2007/05/top-5-video-players-in-linux/">video players in linux</a>. Among these, three players are more prominent than the others &#8211; these are Mplayer, Xine and VLC. <strong class="highlight">I call them the Video Trinity</strong>. Before doing anything, install all three players. Yes, all of them.</p>
<h3>Mplayer</h3>
<p><img src="http://lindesk.com/wp-content/uploads/2008/09/mplayer_logo.png" alt="" title="Mplayer Logo" width="234" height="193" class="alignnone size-full wp-image-128" /></p>
<p><a href="http://www.mplayerhq.hu/">Mplayer</a> is perharps the most popular among linux video players. You can install it in a Red Hat/Fedora system using this command(the command for debian/ubuntu systems will be similar &#8211; can someone post it in the comments?)&#8230;</p>
<pre><code class="cli">yum install mplayer mplayer-fonts mplayer-gui</code></pre>
<p>If you are on a Debian based system &#8211; like Ubuntu, use this command&#8230;</p>
<pre><code class="cli">apt-get install mplayer mplayer-fonts mplayer-skins</code></pre>
<h3>Xine</h3>
<p><img src="http://lindesk.com/wp-content/uploads/2008/09/xine_logo.png" alt="" title="Xine Logo" width="270" height="140" class="alignnone size-full wp-image-129" /></p>
<p><a href="http://xinehq.de/">xine</a> is a free multimedia player. It plays back CDs, DVDs, and VCDs. It also decodes multimedia files like AVI, MOV, WMV, and MP3 from local disk drives, and displays multimedia streamed over the Internet. It interprets many of the most common multimedia formats available &#8211; and some of the most uncommon formats, too. Installing xine is just as easy&#8230;</p>
<pre><code class="cli">yum install xine xine-lib xine-skins xine-lib-extras-nonfree </code></pre>
<p>Again, on a  Debian/Ubuntu system, use the command&#8230;</p>
<pre><code class="cli">apt-get install xine-ui</code></pre>
<h3>VLC</h3>
<p><img src="http://lindesk.com/wp-content/uploads/2008/09/vlc_icon.png" alt="" title="VLC Icon" width="140" height="154" class="alignnone size-full wp-image-130" /></p>
<p>VLC media player is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, &#8230;) as well as DVDs, VCDs, and various streaming protocols. VLC is popular in the windows crowd as well. Here is the command to install it&#8230;</p>
<pre><code class="cli">yum install vlc</code></pre>
<p>Debain/Ubuntu uses should use the command&#8230;</p>
<pre><code class="cli">apt-get install vlc</code></pre>
<p><strong>With these 3 players installed, you must be able to open 90% of the video</strong> files out there. But for the more exotic video formats, <strong>we must install the extra codecs provided by mplayer</strong>. First install the codes available in your distro&#8217;s repository &#8211; in Fedora(with Livna repository) the command I used is&#8230;</p>
<pre><code class="cli">yum install gstreamer libdvdcss gstreamer-plugins-ugly audacious-plugins-nonfree-mp3 kdemultimedia-extras-nonfree ...</code></pre>
<p>Or in Debian/Ubuntu system</p>
<pre><code class="cli">apt-get install gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-ffmpeg</pre>
<p></code></p>
<h2>Essential Video Codecs</h2>
<p>The binary codec packages provided by mplayer <strong>adds support for codecs that are not yet supported natively</strong>, like newer RealVideo variants and a lot of rare formats. Note that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc. Take a look at the <a href="http://www.mplayerhq.hu/DOCS/codecs-status.html">codec status table</a> for the list of currently supported codecs in Mplayer. </p>
<p>Instructions for installing binary codecs can be found in the <a href="http://www.mplayerhq.hu/DOCS/README">README</a> or in the README.txt file that accompanies each codec package. Detailed usage instructions are in the <a href="http://www.mplayerhq.hu/DOCS/HTML/en/codecs.html">codecs section</a> of the documentation. A brief overview of the installation procedure is given below...</p>
<h3>Installing the Codecs</h3>
<p>First, <a href="http://www.mplayerhq.hu/MPlayer/releases/codecs/">download the codecs package</a> that matches your system. In most cases, that is <a href="http://www4.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2">Linux x86</a>.</p>
<p>First, <strong>extract the file</strong> to a local directory. There should be 64 files(currently). Next, we have to <strong>copy this to the system's codecs folder(usually /usr/local/lib/codecs/)</strong>. To do this, you must have root user privileges...</p>
<pre><code class="cli">sudo cp -R essential-20071007/ /usr/local/lib/codecs/</code></pre>
<p>Voila - we have installed the codecs. But we are not done yet. Some players look for the codecs in other folders - to accommodate those players, we have to <strong>link the other folders to the central codecs directory</strong>. To do that, run these commands(as root)...</p>
<pre><code class="cli">ln -s /usr/local/lib/codecs/ /usr/lib/codecs
ln -s /usr/local/lib/codecs/ /usr/lib/win32
ln -s /usr/local/lib/codecs/ /usr/local/lib/win32
</code></pre>
<h2>Playing the Video</h2>
<p>Now <strong>open up the video you are trying to play in any video player(say mplayer)</strong> - in 99% of the cases, it will play without any issues. In the unlikely <strong>event of a problem, open up the same video in xine</strong>. If it still <strong>does not play, go to vlc</strong>. Your video will be working in atleast one of these three players.</p>
<p>Did it work for you - let me know in the comments...</p>
]]></content:encoded>
			<wfw:commentRss>http://lindesk.com/2008/09/adding-support-for-almost-all-video-formatscodecs-in-linux/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
