<?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"
	>

<channel>
	<title>Avi Alkalay &#187; Multimedia</title>
	<atom:link href="http://avi.alkalay.net/cat/ict/multimedia/feed" rel="self" type="application/rss+xml" />
	<link>http://avi.alkalay.net</link>
	<description>Digital Awareness and Flying Spirit</description>
	<pubDate>Wed, 06 Aug 2008 19:33:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>A Test with High Definition Video Conferencing</title>
		<link>http://avi.alkalay.net/2008/07/test-with-high-definition-video-conferencing.html</link>
		<comments>http://avi.alkalay.net/2008/07/test-with-high-definition-video-conferencing.html#comments</comments>
		<pubDate>Mon, 28 Jul 2008 20:58:58 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
		
		<category><![CDATA[Mobility]]></category>

		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[lang:en]]></category>

		<category><![CDATA[tech:yes]]></category>

		<guid isPermaLink="false">http://avi.alkalay.net/?p=716</guid>
		<description><![CDATA[I just participated in very successful proof of technology with Siemens OpenScape video conferencing products.
We made a point-to-point SIP high definition video conference over a local area network. Another test used H.323 protocol. We also included my SIP-enabled Nokia E61i in the conference over the office WiFi network in a direct multipoint call simply calling [...]]]></description>
			<content:encoded><![CDATA[<p>I just participated in very successful proof of technology with <a href="http://www.enterprise-communications.siemens.com/global/Products/Phones%20Clients/Videoconferencing/OpenScape%20Video.aspx?tab=4" onclick="javascript:urchinTracker ('/outbound/article/www.enterprise-communications.siemens.com');">Siemens OpenScape video conferencing products</a>.</p>
<p>We made a point-to-point <a href="http://en.wikipedia.org/wiki/Session_Initiation_Protocol" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">SIP</a> high definition video conference over a local area network. Another test used <a href="http://en.wikipedia.org/wiki/H.323" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">H.323</a> protocol. We also included my <a href="http://avi.alkalay.net/2007/08/my-new-nokia-e61i.html" >SIP-enabled Nokia E61i</a> in the conference over the office WiFi network in a direct multipoint call simply calling my phone&#8217;s IP address. Crystal clear sound.</p>
<p>The equipment statistics showed the following:<br />
<strong>Video</strong></p>
<ul>
<li>1280&#215;720 resolution (<a href="http://en.wikipedia.org/wiki/720p" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">720p HD</a>) at 30 frames per second</li>
<li><a href="http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">H.264</a> compression</li>
<li>aprox. 1780 kilobits per second for the compressed video stream</li>
</ul>
<p><strong>Audio</strong></p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Advanced_Audio_Coding#Modular_encoding" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">AAC-LC</a> compression</li>
<li>aprox. 70 kilobits per second for the compressed audio stream</li>
</ul>
<p>Total of aprox. 1850 kbps for excellent and smooth audio and video quality.</p>
<hr />
<p><small>&copy; Avi for <a href="http://avi.alkalay.net">Avi Alkalay</a>, 2008. |
<a href="http://avi.alkalay.net/2008/07/test-with-high-definition-video-conferencing.html">Permalink</a> |
<a href="http://avi.alkalay.net/2008/07/test-with-high-definition-video-conferencing.html#comments">4 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://avi.alkalay.net/2008/07/test-with-high-definition-video-conferencing.html&amp;title=A Test with High Definition Video Conferencing">del.icio.us</a>
<br/>
Post tags: <a href="http://avi.alkalay.net/tag/langen" rel="tag">lang:en</a>, <a href="http://avi.alkalay.net/tag/techyes" rel="tag">tech:yes</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://avi.alkalay.net/2008/07/test-with-high-definition-video-conferencing.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to Make High Quality DVD Rips</title>
		<link>http://avi.alkalay.net/2008/03/mpeg4-dvd-rip.html</link>
		<comments>http://avi.alkalay.net/2008/03/mpeg4-dvd-rip.html#comments</comments>
		<pubDate>Sun, 02 Mar 2008 12:36:50 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
		
		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[featured]]></category>

		<category><![CDATA[lang:en]]></category>

		<category><![CDATA[tech:yes]]></category>

		<guid isPermaLink="false">http://avi.alkalay.net/2008/03/how-to-make-high-definition-dvd-rips.html</guid>
		<description><![CDATA[After a long study of months I found this method to be the best way to rip/encode or backup my DVDs. The resulting digital file uses the best standards and technologies (as H.264, MP4, Matroska, AC3 etc), looks practically lossless to human eyes and has reasonable good file size (about 1 to 1.4GB per movie).]]></description>
			<content:encoded><![CDATA[<p>Some friends asked so the following is how I encode (rip) DVDs.</p>
<h4 id="container">Choosing the file format: .AVI, .OGG, .MP4 or .MKV ?</h4>
<p>The ripped video file format is a decision you must make. Currently my format of choice is .MKV or Matroska. I&#8217;ll explain why.</p>
<p>It is quite idiotic to say that an .MP4 movie has better quality than a .AVI or vice-verse (or any other combination of comparisons). OGG, MP4 (MPEG-4 Part 14), MKV (Matroska), AVI, WMV (or ASF) are just containers, envelopes. Video quality depends on what goes inside it.</p>
<p>&#8220;Multimedia&#8221; has this name because you have multiple types of media: video in multiple angles, multiple audio options including different languages and channels (stereo, 5.1, 6 channels etc), subtitles in several languages, chapter information, menu etc. Think about a DVD. So this is a graphical view of how things are organized inside a 900MB movie file in a modern format as MKV or MP4:</p>
<table style="border: 1px solid black; width: 98%" border="1">
<tbody>
<tr>
<td ROWSPAN=8 ALIGN=LEFT VALIGN=MIDDLE width="8%">Header with tags, track names, chapters info, seek positions</td>
<td COLSPAN=8 ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#47B8B8">Main Video track (MPEG-4 AVC/H.264)</td>
<td ROWSPAN=8 ALIGN=RIGHT VALIGN=MIDDLE width="8%">Attachments as JPG images, documents, scripts or text files</td>
</tr>
<tr>
<td COLSPAN=2 ALIGN=CENTER></td>
<td COLSPAN=5 ALIGN=CENTER BGCOLOR="#47B8B8">Video segment showing another angle (MPEG-4 ASP/Xvid/DivX)</td>
<td ALIGN=CENTER></td>
</tr>
<tr>
<td COLSPAN=8 ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#CCCCFF">Audio track: English Dolby Surround 5.1 (AC3)</td>
</tr>
<tr>
<td COLSPAN=8 ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#CCCCFF">Audio track: Director&#8217;s comments stereo (MP3)</td>
</tr>
<tr>
<td COLSPAN=8 ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#CCCCFF">Audio track: Portuguese Dolby Surround 5.1 (DTS)</td>
</tr>
<tr>
<td COLSPAN=8 ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#FFCC99">Subtitle track: Portuguese (Unicode text)</td>
</tr>
<tr>
<td COLSPAN=8 ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#FFCC99">Subtitle track: Chinese (Unicode text)</td>
</tr>
<tr>
<td COLSPAN=8 ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#FFCC99">Subtitle track: English (VobSub)</td>
</tr>
<tr>
<td style="background-color:#cccccc; text-align: right">byte 100K</td>
<td style="background-color:#cccccc; text-align: right">byte 100M</td>
<td style="background-color:#cccccc; text-align: right">byte 200M</td>
<td style="background-color:#cccccc; text-align: right">byte 310M</td>
<td style="background-color:#cccccc; text-align: right">byte 420M</td>
<td style="background-color:#cccccc; text-align: right">byte 530M</td>
<td style="background-color:#cccccc; text-align: right">byte 650M</td>
<td style="background-color:#cccccc; text-align: right">byte 780M</td>
<td style="background-color:#cccccc; text-align: right">byte 895M</td>
<td style="background-color:#cccccc; text-align: right">byte 900M</td>
</tr>
</tbody>
</table>
<p>A digital multimedia file format must be capable to contain all this different medias and multiplex them in parallel so you won&#8217;t have the video in the first 500MB of the file and the audio on the following 500MB (this can&#8217;t work for streaming). And this is exactly what modern file formats as MP4 and MKV do: they carry all your movie-related data together.</p>
<p>This is a comparison of all these file formats based on my personal experience with them (<a href="http://en.wikipedia.org/wiki/Comparison_of_container_formats" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">a more formal comparison can be found in Wikipedia</a>):</p>
<table style="width: 95%; border: 1px solid black" border="1">
<tr>
<th></th>
<th style="text-align: center; background-color: navy; color:white; font-weight: bold">.MKV</th>
<th style="text-align: center; background-color: navy; color:white; font-weight: bold">.MP4</th>
<th style="text-align: center; background-color: navy; color:white; font-weight: bold">.AVI</th>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Industry support</th>
<td style="background-color: yellow; text-align: center">Almost none</td>
<td style="background-color: lightgreen; text-align: center">Good and increasing, specially on Apple platforms, the mobile scene and Nero Digital ecosystem</td>
<td style="background-color: yellow; text-align: center">Treated as legacy popular format</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Usage on the web</th>
<td style="background-color: lightgreen; text-align: center">Very popular on HD or high quality DVD rips</td>
<td style="background-color: lightgreen; text-align: center">Very popular on HD or high quality DVD rips, supported by Flash Player, YouTube, Google Video</td>
<td style="background-color: yellow; text-align: center">Popular amongst low-quality DVD rips</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Support for advanced video formats and multiple video angles</th>
<td style="background-color: lightgreen; text-align: center">Yes. MPEG-4 ASP (DivX, Xvid), MPEG-4 AVC (a.k.a. H.264) etc</td>
<td style="background-color: lightgreen; text-align: center">Yes. Only MPEG-4 systems and a few others</td>
<td style="background-color: #ff8888; text-align: center">Problematic and No</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Support for multiple audio tracks (channels, formats, languages and &#8220;director&#8217;s comments&#8221;)</th>
<td style="background-color: lightgreen; text-align: center">Yes</td>
<td style="background-color: yellow; text-align: center">Yes. Formats are only MP3, AAC and a few others not very popular</td>
<td style="background-color: lightgreen; text-align: center">Yes</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Support for tags (artist, title, composer, etc as MP3&#8217;s ID3)</th>
<td style="background-color: lightgreen; text-align: center">Yes</td>
<td style="background-color: yellow; text-align: center" rowspan="4">Can be supported by MP4 extensibility but this is not standardized across authoring tools (iTunes, <a href="http://gpac.sourceforge.net/" onclick="javascript:urchinTracker ('/outbound/article/gpac.sourceforge.net');">GPAC</a> etc) and players (Amarok, Media Player Classic, iPod, Windows Media Player etc)</td>
<td style="background-color: #ff8888; text-align: center">No</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Support for attachments with mime-types (used to attach movie posters images or other files)</th>
<td style="background-color: lightgreen; text-align: center">Yes</td>
<td style="background-color: #ff8888; text-align: center">No</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Support for chapter marks</th>
<td style="background-color: lightgreen; text-align: center">Yes</td>
<td style="background-color: #ff8888; text-align: center">No</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Support for multiple language embedded soft-subtitles</th>
<td style="background-color: lightgreen; text-align: center">Yes. VobSub (as extracted from DVDs), plain timed UTF-8 text (SRT, SUB) etc</td>
<td style="background-color: #ff8888; text-align: center">No</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Support for naming tracks with human names as &#8220;Director&#8217;s comments&#8221; or &#8220;Portuguese subtitles&#8221; etc</th>
<td style="background-color: lightgreen; text-align: center">Yes</td>
<td style="background-color: #ff8888; text-align: center">No</td>
<td style="background-color: #ff8888; text-align: center">No</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Support for menus (as in DVDs) and interaction</th>
<td style="background-color: yellow; text-align: center">Yes through an XML idiom, but unsupported by most players</td>
<td style="background-color: yellow; text-align: center">Yes through SVG, but unsupported by most players </td>
<td style="background-color: #ff8888; text-align: center">No</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">The container overhead in bytes in the final file</th>
<td style="background-color: lightgreen; text-align: center">Very small</td>
<td style="background-color: lightgreen; text-align: center">Very small</td>
<td style="background-color: #ff8888; text-align: center">Very big</td>
</tr>
<tr>
<th style="background-color: navy; color:white; font-weight: bold; text-align: left">Supported by free and Open Source multiplatform authoring tools</th>
<td style="background-color: lightgreen; text-align: center">Perfect on Linux, Unix, Windows and Mac</td>
<td style="background-color: yellow; text-align: center">Yes, with some intellectual property issues and tools need to mature</td>
<td style="background-color: lightgreen; text-align: center">Yes</td>
</tr>
</table>
<p>Personally I believe MP4 is the multimedia file format for the future because since it is getting popular, all these unstandardized features will get stabilized. MP4 is an ISO standard and the increasing industry support can be felt on iPods and portable devices, and most notable on home DVD players capable of playing the 700MB MP4 video file burned in a CD.</p>
<p>By the way, remember this:</p>
<ul>
<li>MP4 is not an evolution of MP3. <a href="http://en.wikipedia.org/wiki/Advanced_Audio_Coding" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">AAC</a> (<a href="http://en.wikipedia.org/wiki/MPEG-4_Part_3" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">MPEG-4 Part 3</a>) is.</li>
<li>MP5 and MP6 (used to classify portable media players) are things that simply doesn&#8217;t exist in the multimedia scene.</li>
<li>.M4A, .M4V, .MOV and .3GP files can safely be renamed to .MP4. MP4 is the generic standard name.</li>
</ul>
<p>Meanwhile, MKV wins everything but on the Industry Support category. But this doesn&#8217;t really matter, and I&#8217;ll explain why. Since MKV is just a container, the large video, audio etc streams can be extracted and repackaged into MP4 and vice-versa in seconds. No transcoding (decoding followed by an encoding into another format) is needed.</p>
<p><strong>So today I store my videos in the most feature rich and well supported by players format: MKV.</strong></p>
<p>OGG or OGM (the container file format) is practically dead in my opinion. They were created as part of the <a href="http://www.xiph.org/" onclick="javascript:urchinTracker ('/outbound/article/www.xiph.org');">Xiph</a> initiative for a complete open source patent-free multimedia framework, but seems nobody uses it anymore for video. From the same family, <a href="http://www.vorbis.com/" onclick="javascript:urchinTracker ('/outbound/article/www.vorbis.com');">Vorbis</a> (the audio codec compared to MP3, a.k.a. .OGG) is very good but also very not popular. <a href="http://www.theora.org/" onclick="javascript:urchinTracker ('/outbound/article/www.theora.org');">Theora</a> (the video codec) is <a href="http://en.wikipedia.org/wiki/Theora#Performance" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">frequently comparable to old MPEG-1 in terms of quality and compression ration</a> so currently, if you want quality and are not concerned about patents, MPEG-4 AVC is the best choice. <a href="http://flac.sourceforge.net/" onclick="javascript:urchinTracker ('/outbound/article/flac.sourceforge.net');">FLAC</a>, Xiph&#8217;s lossless audio codec, is the winner of the family: very popular, massively used, and recommended.</p>
<h4 id="encode">Encoding the DVD</h4>
<p>I use <a href="http://handbrake.fr" onclick="javascript:urchinTracker ('/outbound/article/handbrake.fr');">HandBrake</a>, the most practical Open Source (and overall) movie encoder. It runs on Linux, Mac and Windows and <a href="http://handbrake.fr/?article=details" onclick="javascript:urchinTracker ('/outbound/article/handbrake.fr');">uses the same Open Source libraries</a> as ffmpeg, mplayer/mencoder, xine, etc. While these programs are generic video handlers (with thousands of confusing configuration parameters to sustain this generalistic status) HandBrake is optimized only for ripping so it is very easy to use, yet extremely powerful.</p>
<pre class="programlisting">
#!/bin/bash

##
## This is the script I use to make hifi DVD rips including chapter markers and
## subtitles. It uses Handbrake.
## Contains what I found to be the best quality ripping parameters and
## also let me set simple parameters I need.
##
## Avi Alkalay &lt;avi at unix dot sh&gt;
## http://avi.alkalay.net/2008/03/mpeg4-dvd-rip.html
##
## $Id$
##

#set -vx

HANDBRAKE=${HANDBRAKE:=~/bin/HandBrakeCLI}
#HANDBRAKE=${HANDBRAKE:=&#34;/cygdrive/c/Program Files/Handbrake/HandBrakeCLI.exe&#34;}
## Where is the Handrake encoder executable.
## Handbrake is the most practical free, OSS, DVD riper available.
## Download HandBrake for Linux, Mac or Windows at http://HandBrake.fr

INPUT=${INPUT:=/dev/dvd}
## What to process. Can also be a mounted DVD image or simply '/dev/dvd'

TITLE=${TITLE:=L}
## The title number to rip, or empty or &#34;L&#34; to get the longest title

#CHAPTERS=${CHAPTERS:=7}
## Example: 0 or undefined (all chapters), 7 (only chapter 7), 3-6 (chapters 3 to 6)

#VERBOSE=${VERBOSE:=&#34;yes&#34;}
## Wether to be verbose while processing.

SIZE=${SIZE:=1200}
## Target file size in MB. The biggest the file size, the best the quality.
## I use to use from 1000MB to 1400MB for astonishing high quality H.264 rips.

OUTPUT=${OUTPUT:=&#34;/tmp/output.mkv&#34;}
## Output file. This will also define the file format.
## MKV (Matroska) is currently the best but MP4 is also good.

AUDIO=${AUDIO:=&#34;-E ac3 -6 dpl2 -D 1&#34;} # For AC3 passthru (copy).
#AUDIO=${AUDIO:=&#34;-E lame -B 160&#34;} # For MP3 reencoding. Good when input is DTS.
## Audio parameters. If input is AC3, use it without transcoding.
## If is DTS, reencode to MP3.

MATRIX=${MATRIX:=&#96;dirname $0&#96;/eqm_avc_hr.cfg}
## x264 matrix to use. The matrix file may increase encoding speed and quality.
## This one is Sharktooth's as found
## at http://forum.doom9.org/showthread.php?t=96298

######### Do not change anything below this line ##############

## Make some calculations regarding title and chapters based on parameters.
SEGMENT=&#34;&#34;
if [[ &#34;$TITLE&#34; == &#34;L&#34; || -z &#34;$TITLE&#34; ]]; then
	SEGMENT=&#34;-L&#34;
else
	SEGMENT=&#34;-t $TITLE&#34;
fi

[[ -n &#34;$CHAPTERS&#34; &#038;&#038; &#34;$CHAPTERS&#34; -ne 0 ]] &#038;&#038; SEGMENT+=&#34; -c $CHAPTERS&#34;

[[ &#34;$VERBOSE&#34; != &#34;no&#34; ]] &#038;&#038; VERB=&#34;-v&#34;

# Define args for the x264 encoder. These are some values I found on the net
# which give excelent results.
X264ARGS=&#34;ref=3:mixed-refs:bframes=6:b-pyramid=1:bime=1:b-rdo=1:weightb=1&#34;
X264ARGS+=&#34;:analyse=all:8x8dct=1:subme=6:me=umh:merange=24:filter=-2,-2&#34;
X264ARGS+=&#34;:ref=6:mixed-refs=1:trellis=1:no-fast-pskip=1&#34;
X264ARGS+=&#34;:no-dct-decimate=1:direct=auto&#34;
[[ -n &#34;$MATRIX&#34; ]] &#038;&#038; X264ARGS+=&#34;:cqm=$MATRIX&#34;

# Encode...
&#34;$HANDBRAKE&#34; $VERB -i &#34;$INPUT&#34; -o &#34;$OUTPUT&#34; \
	-S $SIZE \
	-m $SEGMENT \
	$AUDIO \
	-e x264 -2 -T -p \
	-x $X264ARGS

# Repackage to optimize file size, to include seek and to include this
# this script as a way to document the rip...
echo $OUTPUT | grep -qi &#34;.mkv&#34;
if [[ $? &#038;&#038; -x &#96;which mkvmerge&#96; &#038;&#038; -f $OUTPUT ]]; then
	mv $OUTPUT $OUTPUT.mkv
	mkvmerge -o $OUTPUT $OUTPUT.mkv \
		--attachment-name &#34;The ripping script&#34; \
		--attachment-description &#34;How this movie was created from original DVD&#34; \
		--attachment-mime-type application/x-sh \
		--attach-file $0

	[[ -f $OUTPUT ]] &#038;&#038; rm $OUTPUT.mkv
fi</pre>
<p>The script seems long because it is fully documented but it actually only collects some parameters and simply runs the HandBrake encoder like this (passed parameters are in red):</p>
<pre class="programlisting">
~/bin/HandBrakeCLI -v -i <span style="color: red">/dev/dvd</span> -o <span style="color: red">/tmp/output.mkv</span> \
    -S <span style="color: red">1200</span> \
    -m <span style="color: red">-L</span> \
    -E <span style="color: red">lame -B 160</span> \
    -e x264 -2 -T -p \
    -x ref=3:mixed-refs:bframes=6:b-pyramid=1:bime=1:b-rdo=1:weightb=1:analyse=all:8x8dct=1:subme=6:me=umh:merange=24:filter=-2,-2:ref=6:mixed-refs=1:trellis=1:no-fast-pskip=1:no-dct-decimate=1:direct=auto:cqm=<span style="color: red">~/src/randomscripts/videotools/eqm_avc_hr.cfg</span></pre>
<p>All the rest is what I found to be the best encoding parameters.</p>
<p>The resulting video file (<span class="filename">/tmp/output.mkv</span> in this case) will contain correctly cropped video and audio quality as good as the DVD (it is almost lossless), and chapter breaks at the same positions read from the DVD.</p>
<p>In a <a href="http://avi.alkalay.net/2007/11/new-laptop.html" >Core Duo machine as my laptop</a> running Fedora 8 or Windows XP, a 2 pass H.264 encoding (2 pass improves quality and H.264 is newer standard MPEG-4 technology better than DivX/Xvid) takes about 4 to 5 hours for a regular 2 hours movie, so leave it encoding while you go to sleep. A Pentium 4 machine running Ubuntu takes about 17 hours for the same rip.</p>
<p>I use to rip one chapter from the movie first (use your preferred video player or <span class="command">lsdvd</span> command to find the shortest chapter), check quality, compare to DVD, fine tune, try again and then shoot full DVD ripping.</p>
<p>After encoding I use to repackage the audio/video stream with <a href="http://www.matroska.org/" onclick="javascript:urchinTracker ('/outbound/article/www.matroska.org');">Matroska</a>&#8217;s <span class="command">mkvmerge</span> (or <span class="command">mmg</span>, its GUI version available on any Linux distribution as &#8220;mkvtoolnix&#8221; package, and installable for <a href="http://www.matroska.org/downloads/windows.html" onclick="javascript:urchinTracker ('/outbound/article/www.matroska.org');">Windows</a> or <a href="http://www.matroska.org/downloads/others.html" onclick="javascript:urchinTracker ('/outbound/article/www.matroska.org');">Mac OS</a> from Matroska&#8217;s website) to optimize seeks and to include soft subtitles (that can be turned on and off as on regular DVDs), but I&#8217;ll explain that in another HOWTO.</p>
<h4 id="filename">Give Your Ripped Movie a Descriptive File Name</h4>
<p>I use to organize my media library in a standard way I invented for myself and which I suggest you to use too.</p>
<p>My movie file names shows everything that the file includes. Some examples:</p>
<ul style="overflow-x:auto">
<li><strong class="filename">Indiana_Jones_and_The_Raiders_of_the_Lost_Ark_IMDB{tt0082971}-Xvid{720&#215;304_23.98fps}+MP3{ENG,POB_VBR}+Sub{ENG,SPA,POB}+Covers.mkv</strong><br/><br />
This is the Indiana Jone&#8217;s Raiders of the Lost Ark movie, whose IMDB index is <a href="http://www.imdb.com/title/tt0082971/" onclick="javascript:urchinTracker ('/outbound/article/www.imdb.com');">tt0082971</a> (<strong>IMDB{tt0082971}</strong>). It was ripped with the old Xvid codec and contains 720&#215;304 pixels frame size at a rate of 23.98 frames per second (<strong>Xvid{720&#215;304_23.98fps}</strong>). It also contains selectable audio tracks in English and Brazilian Portuguese encoded in variable bit rate MP3 (<strong>MP3{ENG,POB_VBR}</strong>). In addition, there is also selectable subtitles in English, Spanish and Brazilian Portuguese (<strong>Sub{ENG,SPA,POB}</strong>). The file also contains the cover images as attachments.</li>
<li><strong class="filename">Harold_and_Maude_IMDB{tt0067185}-H264{672&#215;368_3Pass_25fps}+HEAAC{EN}+Sub{POR,EN,FRE}+Chapters+Covers.mkv</strong><br/><br />
The old Harold and Maude movie whose IMDB index is <a href="http://www.imdb.com/title/tt0067185/" onclick="javascript:urchinTracker ('/outbound/article/www.imdb.com');">tt0067185</a> (<strong>IMDB{tt0067185}</strong>). It is encoded with H.264 in 3 passes and has 672&#215;368 pixels frame size at a rate of 25 frames per second (<strong>H264{672&#215;368_3Pass_25fps}</strong>). There is only one English audio track encoded in modern <a href="http://en.wikipedia.org/wiki/HE-AAC" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">HE-AAC</a> (<strong>HEAAC{EN}</strong>). Subtitles in Portuguese, English and French (<strong>Sub{POR,EN,FRE}</strong>), chapter information and attached cover images. This is very complete high quality DVD backup.</li>
<li><strong class="filename">I_Am_Legend_IMDB{tt0480249}-H264{704&#215;304_23.98fps}+AC3{ENG_5.1}+Sub{POR}.mkv</strong><br/><br />
The I Am Legend movie whose IMDB index is <a href="http://www.imdb.com/title/tt0480249/" onclick="javascript:urchinTracker ('/outbound/article/www.imdb.com');">tt0480249</a> (<strong>IMDB{tt0480249}</strong>), video encoded in H.264 with 704&#215;304 pixels frame size (<strong>H264{704&#215;304_23.98fps}</strong>), original 5.1 channels AC3 audio in English (<strong>AC3{ENG_5.1}</strong>) and subtitles in Portuguese (<strong>Sub{POR}</strong>).</li>
</ul>
<p>The advantages of this scheme are:</p>
<ul>
<li>It is web safe with no spaces in filenames. All underlines. It is also DOS safe.</li>
<li>To have the IMDB index let me know exactly which movie this file contains. This is particularly good to avoid ambiguity for movies that have remakes as Ben Hur, or movies that have an official name but are well known by other names or have international titles.</li>
<li>To know the encoding method, subtitles included and chapters info give me the overall quality of the movie right away.</li>
<li>Special attention to audio and subtitle languages. Having them on the filename let me know I will understand its content without having to play. Sometimes I can&#8217;t play the file because I logged in my home computer remotely.
</ul>
<h4 id="play">Playing the Ripped File</h4>
<p>To play this advanced Matroska media file that contains such a rich set of metainformation and highly compressed digital content you will need an advanced player too. And happens that the best players are the Open Source ones. So use these players:</p>
<ul>
<li>On Windows: the <a href="http://www.codecguide.com/" onclick="javascript:urchinTracker ('/outbound/article/www.codecguide.com');">k-lite codec pack with the Media Player Classic</a> (which is better than Microsoft&#8217;s Windows Media Player)</li>
<li>On Linux: use MPlayer or Xine (or variants as Kaffeine, GMPlayer, KPlayer, KMPlayer) available from your Linux distribution&#8217;s package repositories. For example, <a href="http://avi.alkalay.net/2007/06/fedora-post-installation-configurations.html" >see the instructions to get them on a Fedora installation</a>.</li>
<li>On Mac: use <a href="http://www.videolan.org/vlc/download-macosx.html" onclick="javascript:urchinTracker ('/outbound/article/www.videolan.org');">VLC Media Player</a>.
</ul>
<p>These are Media Player Classic screenshots demonstrating how to activate the advanced content inside a Matroska file. Players on other platforms have similar capabilities and menus.</p>
<p><strong>Activating embedded subtitles and languages</strong><br />
The player lets you choose the audio language and subtitles. On MPC for example, this is how you turn on and off and choose the language for subtitles.<br />
<img src="http://avi.alkalay.net/articlefiles/2008/05/sub-lang.png" alt="Choosing subtitles language" title="Choosing subtitles language" class="photo aligncenter size-full wp-image-680" /></p>
<p>As you can see, the player found subtitles embedded in the MKV file in English, Hebrew and Portuguese.</p>
<p>If the MKV file contains many audio tracks (as different languages, director&#8217;s comments etc) this is how to select it:</p>
<p><img src="http://avi.alkalay.net/articlefiles/2008/05/audio-lang.png" alt="Selecting audio track to play in Media Player Classic" title="Selecting audio track to play in Media Player Classic"  class="aligncenter size-full wp-image-677 photo" /></p>
<p>And to jump directly to a specific chapter on the movie, if the MKV file contains this kind of information:</p>
<p><img src="http://avi.alkalay.net/articlefiles/2008/05/chapters.png" alt="Using Media Player Classic to browse chapter in a movie file" title="Using Media Player Classic to browse chapter in a movie file"  class="aligncenter size-full wp-image-679 photo" /></p>
<p><strong>Improving audio volume</strong><br />
If you ripped the movie without reencoding the audio, the final file will contain DVD&#8217;s original AC3 audio tracks in 6 channels (5+1). This may sound with a lower volume when played in a 2-speaker system as your laptop, iPod, etc because 4 channels are simply not being played. To remediate this the player will have to downsample the audio. In other words, it will remix the 6 channels into 2 stereo channels while playing. The Media Player Classic options should look like this:</p>
<p><img src="http://avi.alkalay.net/articlefiles/2008/05/audio-opt.png" alt="Selecting Media Player Classic\&#039;s Audio Options" title="Selecting Media Player Classic\&#039;s Audio Options" class="aligncenter size-full wp-image-678 photo" /></p>
<p><img src="http://avi.alkalay.net/articlefiles/2008/05/audio-downsample.png" alt="Configuring audio downsample on Media Player Classic" title="Configuring audio downsample on Media Player Classic" class="aligncenter size-full wp-image-676 photo" /></p>
<hr />
<p><small>&copy; Avi for <a href="http://avi.alkalay.net">Avi Alkalay</a>, 2008. |
<a href="http://avi.alkalay.net/2008/03/mpeg4-dvd-rip.html">Permalink</a> |
<a href="http://avi.alkalay.net/2008/03/mpeg4-dvd-rip.html#comments">19 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://avi.alkalay.net/2008/03/mpeg4-dvd-rip.html&amp;title=How to Make High Quality DVD Rips">del.icio.us</a>
<br/>
Post tags: <a href="http://avi.alkalay.net/tag/featured" rel="tag">featured</a>, <a href="http://avi.alkalay.net/tag/langen" rel="tag">lang:en</a>, <a href="http://avi.alkalay.net/tag/techyes" rel="tag">tech:yes</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://avi.alkalay.net/2008/03/mpeg4-dvd-rip.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Flash Player now supports advanced MPEG-4 content</title>
		<link>http://avi.alkalay.net/2007/10/flash-goes-mp4-aac-h264-mpeg4-avc.html</link>
		<comments>http://avi.alkalay.net/2007/10/flash-goes-mp4-aac-h264-mpeg4-avc.html#comments</comments>
		<pubDate>Thu, 11 Oct 2007 17:06:12 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
		
		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[best]]></category>

		<category><![CDATA[best:tech]]></category>

		<category><![CDATA[lang:en]]></category>

		<category><![CDATA[tech:ok]]></category>

		<guid isPermaLink="false">http://avi.alkalay.net/2007/10/flash-goes-mp4-aac-h264-mpeg4-avc.html</guid>
		<description><![CDATA[



Adobe&#8217;s press release says it all: lab version of o Flash Player 9.0 supports latest and best multimedia technologies.
Thanks to YouTube and other online video services, the Adobe Flash Player browser plug in is probably the most popular video player in the world. But before this version, only the proprietary and now inefficient FLV format [...]]]></description>
			<content:encoded><![CDATA[<p><div style="float: right; margin-left: 6px"><script type="text/javascript"><!--
google_ad_client = "pub-6579238986403678";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text";
//2007-08-28: Geral
google_ad_channel = "4496505080";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<p><a href="http://www.adobe.com/aboutadobe/pressroom/pressreleases/200708/082107FlashPlayer.html" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/www.adobe.com');">Adobe&#8217;s press release</a> says it all: <a href="http://labs.adobe.com/technologies/flashplayer9/" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/labs.adobe.com');">lab version of o Flash Player 9.0</a> supports latest and best multimedia technologies.</p>
<p>Thanks to YouTube and other online video services, the Adobe Flash Player browser plug in is probably the most popular video player in the world. But before this version, only the proprietary and now inefficient FLV format was supported.</p>
<p><a href="http://www.kaourantin.net" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/www.kaourantin.net');">Tinic Uro</a>, a multimedia software engineer at Adobe <a href="http://www.kaourantin.net/2007/08/what-just-happened-to-video-on-web_20.html" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/www.kaourantin.net');">explains</a> that the Player now supports:</p>
<ul>
<li><strong><a href="http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');"> H.264/MPEG-4 AVC</a></strong><br />
The best, most sofisticated and advanced video codec, capable of high quality, low bitrate video performances. H.264 is the standard for HD-TV, HD-DVD and BluRay. H.264 is better than MPEG-4 ASP/Xvid/DivX.</li>
<li><strong><a href="http://en.wikipedia.org/wiki/Advanced_Audio_Coding" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">AAC</a> and <a href="http://en.wikipedia.org/wiki/HE-AAC" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">HE-AAC</a> (a.k.a AAC <a href="http://en.wikipedia.org/wiki/Spectral_Band_Replication" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">SBR</a>)</strong><br />
The ISO successor of MP3, for audio. MP3 is already very good, extremely popular, and still supported by the MPEG-4 ISO standard and Flash Player. There is no practical advantage on AAC over MP3 for the music you load in your portable player, but HE-AAC achieves much better quality on very low bit rates (desired for streaming) than MP3.</li>
<li><strong><a href="http://en.wikipedia.org/wiki/MPEG-4_Part_14" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">MP4 file format</a></strong><br />
The MP4 container was designed for many types of usages, including streaming over the Internet. An MP4 file can carry many video, audio, subtitle, scripting, VRML, XML and other metadata multiplexed and in parallel.</li>
</ul>
<p>All this formats are parts of the ISO <a href="http://en.wikipedia.org/wiki/MPEG-4" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">MPEG-4</a> standard.</p>
<p><span title="pullquote">This is a much expected update for the Flash Player and its users</span>. Every new video on YouTube is being compressed with this technologies since June and the old ones will be converted over time.</p>
<p>We will see quality and speed improvements in multimedia content happening in the right way. Also, the formats of the video files people exchange will converge into a single one based on MPEG-4 standards: MP4 files containing higher-quality-for-megabyte H.264, AAC and subtitle streams.</p>
<p>This is also good news for the Linux and open community. A number of good MPEG-4 related authoring tools already exist and are maturing fast: <a href="http://www.videolan.org/developers/x264.html" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/www.videolan.org');">x264</a> for video compression, <a href="http://www.audiocoding.com/" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/www.audiocoding.com');">FAAD/FAAC</a> for audio, and <a href="http://gpac.sourceforge.net/" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/gpac.sourceforge.net');">GPAC</a> and others for MP4.</p>
<hr />
<p><small>&copy; Avi for <a href="http://avi.alkalay.net">Avi Alkalay</a>, 2007. |
<a href="http://avi.alkalay.net/2007/10/flash-goes-mp4-aac-h264-mpeg4-avc.html">Permalink</a> |
<a href="http://avi.alkalay.net/2007/10/flash-goes-mp4-aac-h264-mpeg4-avc.html#comments">10 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://avi.alkalay.net/2007/10/flash-goes-mp4-aac-h264-mpeg4-avc.html&amp;title=Flash Player now supports advanced MPEG-4 content">del.icio.us</a>
<br/>
Post tags: <a href="http://avi.alkalay.net/tag/best" rel="tag">best</a>, <a href="http://avi.alkalay.net/tag/besttech" rel="tag">best:tech</a>, <a href="http://avi.alkalay.net/tag/langen" rel="tag">lang:en</a>, <a href="http://avi.alkalay.net/tag/techok" rel="tag">tech:ok</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://avi.alkalay.net/2007/10/flash-goes-mp4-aac-h264-mpeg4-avc.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>My New Cellphone</title>
		<link>http://avi.alkalay.net/2007/08/my-new-nokia-e61i.html</link>
		<comments>http://avi.alkalay.net/2007/08/my-new-nokia-e61i.html#comments</comments>
		<pubDate>Sat, 04 Aug 2007 23:12:39 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
		
		<category><![CDATA[Mobility]]></category>

		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[lang:en]]></category>

		<category><![CDATA[tech:ok]]></category>

		<guid isPermaLink="false">http://avi.alkalay.net/2007/08/my-new-nokia-e61i.html</guid>
		<description><![CDATA[Its a Nokia E61i.




The Nokia E Series smartphones are currently the most advanced in the market. Some may say iPhone but there is no more than great usability and fancy-ness on it.
These are a few characteristics I like in E61i:

QWERTY keyboard. I&#8217;m tired of loosing stylus pens and even use them to point things.
WiFi with [...]]]></description>
			<content:encoded><![CDATA[<p>Its a Nokia E61i.</p>
<p><!--adsense#horinzontalTechcontent--></p>
<p><a href="http://www.nokiausa.com/link?cid=EDITORIAL_217498" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/www.nokiausa.com');"><img src="http://www.brighthand.com/assets/6324.jpg" class="photo" align="right" height="225" width="225" /></a>The Nokia E Series smartphones are currently the most advanced in the market. Some may say iPhone but there is no more than great usability and fancy-ness on it.</p>
<p>These are a few characteristics I like in E61i:</p>
<ol>
<li>QWERTY keyboard. I&#8217;m tired of loosing stylus pens and even use them to point things.</li>
<li>WiFi with power save features. This is unique and as far as I know only Nokia and now the iPhone have it. <a href="http://avi.alkalay.net/2007/08/leap-nokia-e-series.html" target="_blank" >E61i can also connect to Cisco WiFi networks with LEAP authentication</a>, as used by my company. At work, at home and everywhere it finds a WiFi network I stay connected all the time with a sort of smart roaming, without running out of batteries.</li>
<li>A wide screen and great web features as integrated feed reader and full XHTML browser based on KDE&#8217;s Konqueror that perfectly render very well all pages I need.</li>
<li>Integrated Java support so I can install a practical mobile Google Maps application amongst others.</li>
<li>Media features as MP3, MPEG-4&#8217;s AAC, MPEG-4 video (low profile DivX/Xvid) and MP4 container support.</li>
<li>2 megapixel camera for pictures and video.</li>
<li>Can syncronize PIM data with anything that supports the <a href="http://en.wikipedia.org/wiki/Syncml" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">SyncML</a> Open Standard, for example the <a href="http://scheduleworld.com/" onclick="javascript:urchinTracker ('/outbound/article/scheduleworld.com');">ScheduleWorld.com</a> service.</li>
<li>Has <a href="http://en.wikipedia.org/wiki/Text_to_speech" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">Text To Speech</a> capabilities, so everytime somebody calls me, the phone actually speaks his or her name as it is written in the contacts database. There are options to install and use different voices and language accents.</li>
<li>Has voice recognition capabilities, so I can press a button in the wireless bluetooth phones to make the phone as for a name, I speak it and it recognizes by how it is written in the contacts database. I did not have to record each contact&#8217;s name as previous phone models. Nokia E61i actually recognizes what I speak.</li>
<li>And, to keep me hacking, the most important: integrated VoIP support through the <a href="http://en.wikipedia.org/wiki/Session_Initiation_Protocol" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">SIP</a> standard.</li>
</ol>
<p>This last point deserves an explanation. To use VoIP you usually have to install a softphone in your computer and be close to it to make calls. Well, this phone kind of has a standards compliant softphone already installed in the OS. Together with great WiFi support, I can carry my work extension and other SIP accounts with me all the time, to make cheap international calls and also receive free calls.</p>
<p>This is all very geeky and I love it.</p>
<p>In further articles I&#8217;ll explain how to configure advanced features I&#8217;ve been using in my new Nokia E61i, a very portable computer.</p>
<p><!--adsense#horinzontalTechcontent--></p>
<hr />
<p><small>&copy; Avi for <a href="http://avi.alkalay.net">Avi Alkalay</a>, 2007. |
<a href="http://avi.alkalay.net/2007/08/my-new-nokia-e61i.html">Permalink</a> |
<a href="http://avi.alkalay.net/2007/08/my-new-nokia-e61i.html#comments">21 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://avi.alkalay.net/2007/08/my-new-nokia-e61i.html&amp;title=My New Cellphone">del.icio.us</a>
<br/>
Post tags: <a href="http://avi.alkalay.net/tag/langen" rel="tag">lang:en</a>, <a href="http://avi.alkalay.net/tag/techok" rel="tag">tech:ok</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://avi.alkalay.net/2007/08/my-new-nokia-e61i.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Fedora Post-installation Configurations</title>
		<link>http://avi.alkalay.net/2007/06/fedora-post-installation-configurations.html</link>
		<comments>http://avi.alkalay.net/2007/06/fedora-post-installation-configurations.html#comments</comments>
		<pubDate>Sun, 10 Jun 2007 20:31:03 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
		
		<category><![CDATA[Linux &amp; Open Source]]></category>

		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[best]]></category>

		<category><![CDATA[best:tech]]></category>

		<category><![CDATA[lang:en]]></category>

		<category><![CDATA[tech:yes]]></category>

		<guid isPermaLink="false">http://avi.alkalay.net/2007/06/fedora-post-installation-configurations.html</guid>
		<description><![CDATA[A short and practical guide on how to install proprietary technologies on Fedora Linux. Get MP3, DivX/Xvid, MP4, AVI, Flash, and fonts installed easily on Fedora Linux.]]></description>
			<content:encoded><![CDATA[<p style="float: right; margin-left: 10px"><!--adsense#verTech--></p>
<p>Inspired by <a href="http://ruimoura.net/blog/2006/11/20/fedora-core-6-notas-de-instalacao-completas/" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/ruimoura.net');">an old post by Rui Moura</a>, I&#8217;ll maintain here the plain commands needed to setup a freshly installed Fedora or Red Hat system, to include essential softwares they don&#8217;t ship by default due to legal issues.</p>
<p>These instructions are currently optimized for <strong>Fedora 8</strong>, but most of it works for Fedora 7 and modern Red Hat Enterprise Linux too. Good <a href="http://avi.alkalay.net/wp-admin/post.php#comments" >suggestions provided as comments bellow</a> will be added to this guide.</p>
<p>Terms highlighted in <strong style="color: red">red</strong> should be changed to match your system.</p>
<h4>Permissions Setup</h4>
<p>This step will allow you to issue some administrative commands without having to be all the time logged in as <span class="filename">root</span> — the system administrator.</p>
<pre class="screen">bash# echo '<span style="color: red;">your_plain_loginname_here</span> ALL=(ALL) ALL' &gt;&gt; /etc/sudoers</pre>
<p>Note that this is the only command throughout this guide that shows a root prompt (bash#). All other commands are indicated to be run as a regular non-root user (indicated by bash$).</p>
<p>After configuring <span class="command">sudo</span>, every time you execute an administrative command with its help, a password is requested. This is your password (the regular user&#8217;s password), not the root password.</p>
<h4>Keeping System Updated</h4>
<p>After all the steps bellow and from time to time, update all software installed on your system with the following command:</p>
<pre class="screen">bash$ sudo yum update</pre>
<h4>Repositories Setup</h4>
<p>Livna and FreshRPMs are repositories of many essential multimedia and general purpose software for Fedora and Red Hat systems.</p>
<pre class="screen">bash$ sudo rpm -Uvh http://rpm.livna.org/livna-release-<span style="color: red;">8</span>.rpm</pre>
<h4>Install Adobe Flash Player Globally</h4>
<pre class="screen">bash$ sudo rpm -Uvh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
bash$ sudo yum -y install flash-plugin</pre>
<p>Restart your browser to activate the plugin.<br />
For reference: <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&amp;promoid=BIOW" onclick="javascript:urchinTracker ('/outbound/article/www.adobe.com');">Flash Player for Linux home page</a>.</p>
<h4>Access LAN Hosts by Name Without a DNS Server</h4>
<p>You can access servers and machines on you LAN by name, instead of using their long IP address using the Zeroconf standard (implemented as Avahi in Linux). This is so useful and works out of the box in Ubuntu. The setup in Fedora is easy too, but not automatic.</p>
<pre class="screen">bash$ sudo yum -y install avahi-tools nss-mdns</pre>
<p>Now, instead of accessing local hosts by their IP, you can use the .local domain appended to their names. Just like this:</p>
<pre class="screen">bash$ ssh 10.0.0.5 <strong># stop using the IP address of dbserver</strong>
bash$ ssh dbserver.local <strong># start using its hostname</strong></pre>
<p>Tip grabbed from <a href="http://fedoraproject.org/wiki/Docs/Drafts/ZeroconfLocalDomains" onclick="javascript:urchinTracker ('/outbound/article/fedoraproject.org');">Fedora Project wiki</a>.</p>
<h4>Keep Date and Time Correct and Precise</h4>
<p>Your system can have 100% correct time and date everyday, synchronizing with atomic clocks across the Internet.</p>
<pre class="screen">bash$ sudo yum -y install ntp    <strong># install time sync tools</strong>
bash# ntpdate 0.fedora.pool.ntp.org    <strong># make the first time sync with a Fedora clock mirror</strong>
bash# chkconfig --level 2345 ntpd on    <strong># enable the synchronization service to run on every boot</strong>
bash# service ntpd start    <strong># run the service so you don't need to reboot</strong></pre>
<p>Read more in the official <a href="http://avi.alkalay.net/linux/docs/TimePrecision/TimePrecision.html" >Linux Time Precision HOWTO</a>.</p>
<h4>Dramatically Improve Fonts</h4>
<p><!--adsense#horTechPop--></p>
<pre class="screen">bash$ sudo yum install freetype-freeworld</pre>
<p>Logoff and login again your graphical environment to this update take effect.</p>
<p>To understand why you need this update read <a href="http://avi.alkalay.net/linux/docs/font-howto/Font.html#notgood" >this section on the Linux Font HOWTO</a>.</p>
<p>The <span class="filename">freetype-freeworld</span> package uses a technique described in <a href="http://bugzilla.livna.org/show_bug.cgi?id=1473#c0" onclick="javascript:urchinTracker ('/outbound/article/bugzilla.livna.org');">this bug report</a>.</p>
<h4>Install Web Standard Fonts</h4>
<p>These packages include popular fonts as Arial, Times New Roman, Tahoma, Verdana, as well as new Windows Vista and MS Office 2007 fonts. <a href="http://avi.alkalay.net/linux/docs/font-howto/Font.html#msfonts"title="Webcore fonts homepage"  target="_blank" >Learn more</a>.</p>
<pre class="screen">bash$ sudo rpm -Uvh \
http://avi.alkalay.net/software/webcore-fonts/webcore-fonts-3.0-1.noarch.rpm \
http://avi.alkalay.net/software/webcore-fonts/webcore-fonts-vista-3.0-1.noarch.rpm</pre>
<p>Then, configure your desktop as described in the <a href="http://avi.alkalay.net/linux/docs/font-howto/Font.html#desktop" >Linux Font HOWTO</a>, for <a href="http://avi.alkalay.net/linux/docs/font-howto/Font.html#kde" >KDE</a> or <a href="http://avi.alkalay.net/linux/docs/font-howto/Font.html#gnome" >Gnome</a>.</p>
<h4>MP3 Support</h4>
<p>For Gnome and GStreamer:</p>
<pre class="screen">bash$ sudo yum -y install gstreamer-plugins-ugly libmad libid3tag id3v2</pre>
<p><!--adsense#horTechPop--><br />
For KDE:</p>
<pre class="screen">bash$ sudo yum -y install kdemultimedia-extras-nonfree id3v2</pre>
<h4>Amarok: The best audio player for Linux</h4>
<pre class="screen">bash$ sudo yum -y install amarok-extras-nonfree</pre>
<h4>DVD Player</h4>
<pre class="screen">bash$ sudo yum -y install vlc</pre>
<h4>General DVD and Movie Player and Browser Plugin</h4>
<pre class="screen">bash$ sudo yum -y install mplayer mplayer-fonts mplayerplug-in</pre>
<h4>General Digital Video Authoring and Editing tools</h4>
<pre class="screen">bash$ sudo yum -y install mencoder mkvtoolnix mkvtoolnix-gui ffmpeg avidemux</pre>
<h4>Correctly install Java</h4>
<p>Fedora 8 includes what will be the new Sun Java 1.7 JVM that was open sourced in late 2006.</p>
<p>This JVM (codename Iced Tea) is still beta and may not fulfill all your needs, but it is now extremely easy to install:</p>
<pre class="screen">bash$ sudo yum -y install java-1.7.0-icedtea    # installs the JRE only</pre>
<p>Other subpackages you can install with similar command are <span class="filename">java-1.7.0-icedtea-devel</span> (JDK), <span class="filename">java-1.7.0-icedtea-plugin</span> (browser plugin), <span class="filename">java-1.7.0-icedtea-demo</span>, <span class="filename">java-1.7.0-icedtea-src</span>, <span class="filename">java-1.7.0-icedtea-javadoc</span>.</p>
<p>If the 1.7 does not fulfill your needs, I wrote another similar <a href="http://avi.alkalay.net/2007/06/sun-ibm-java-fedora-redhat-mandriva-suse.html" >tutorial on how to correctly install traditional Java</a> that will become obsolete as soon the Iced Tea project is final, but may be enlightening about how to install other Java related libraries and packages.</p>
<h4>Access Windows NTFS Partitions From Linux</h4>
<pre class="screen">bash$ sudo yum -y install ntfs-config</pre>
<p>Then run the <span class="command">ntfs-config-root</span> graphical tool and configure your partitions to be writable and mountable.</p>
<pre class="screen">bash$ sudo /usr/sbin/ntfs-config-root</pre>
<p>An example of my system:<br />
<img src="http://avi.alkalay.net/articlefiles/2007/11/ntfs-config.png" alt="NTFS config tool screenshot" /><br />
After you configure the tool and quit, your NTFS partitions will be mounted in the specified place. In my case <span class="filename">/media/Windows</span> and <span class="filename">/media/Work</span>.</p>
<h4>Configure text console in high resolution and smaller fonts</h4>
<p>This tip is for the text console.</p>
<pre class="screen">bash$ sudo echo 'SYSFONT="lat0-08"' &gt;&gt; /etc/sysconfig/i18n  # set a ISO-8859-15 font
bash$ sudo echo 'fbset <span style="color: red;">1024x768-60</span>' &gt;&gt; /etc/rc.d/rc.local    # set console resolution to 1024x768 @ 60Hz</pre>
<p>These settings will take effect after a reboot, but you can test them before rebooting executing the following commands:</p>
<pre class="screen">bash$ sudo setfont lat0-08
bash$ sudo fbset <span style="color: red;">1024x768-60</span></pre>
<p>Note that you can set different resolutions than 1024&#215;768 if you have a video card and monitor that will accept it. A full list of modes can be listed with the command:</p>
<pre class="screen">bash$ grep "mode " /etc/fb.modes</pre>
<hr />
<p><small>&copy; Avi for <a href="http://avi.alkalay.net">Avi Alkalay</a>, 2007. |
<a href="http://avi.alkalay.net/2007/06/fedora-post-installation-configurations.html">Permalink</a> |
<a href="http://avi.alkalay.net/2007/06/fedora-post-installation-configurations.html#comments">23 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://avi.alkalay.net/2007/06/fedora-post-installation-configurations.html&amp;title=Fedora Post-installation Configurations">del.icio.us</a>
<br/>
Post tags: <a href="http://avi.alkalay.net/tag/best" rel="tag">best</a>, <a href="http://avi.alkalay.net/tag/besttech" rel="tag">best:tech</a>, <a href="http://avi.alkalay.net/tag/langen" rel="tag">lang:en</a>, <a href="http://avi.alkalay.net/tag/techyes" rel="tag">tech:yes</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://avi.alkalay.net/2007/06/fedora-post-installation-configurations.html/feed</wfw:commentRss>
<enclosure url="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm" length="4208" type="audio/x-rpm" />
		</item>
		<item>
		<title>Propagandas do iPhone para Linux</title>
		<link>http://avi.alkalay.net/2007/06/propagandas-do-iphone-para-linux.html</link>
		<comments>http://avi.alkalay.net/2007/06/propagandas-do-iphone-para-linux.html#comments</comments>
		<pubDate>Mon, 04 Jun 2007 14:26:37 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
		
		<category><![CDATA[Linux &amp; Open Source]]></category>

		<category><![CDATA[Mobility]]></category>

		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[lang:pt]]></category>

		<guid isPermaLink="false">http://avi.alkalay.net/2007/06/propagandas-do-iphone-para-linux.html</guid>
		<description><![CDATA[A Apple finalmente deu a data de lançamento do iPhone: 29 de junho.
Em seu site há 3 lindos videos mostrando a operação fácil do aparelho. Mas exige Quicktime e sem isso não funciona. Para um leigo.
Mas como já sabia que a Apple usa padrões ISO em seus videos, tipo MP4, H.264 e AAC, foi só [...]]]></description>
			<content:encoded><![CDATA[<p>A Apple finalmente deu a data de lançamento do iPhone: 29 de junho.</p>
<p><a href="http://www.apple.com/iphone/ads/" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/www.apple.com');">Em seu site há 3 lindos videos mostrando a operação fácil do aparelho</a>. Mas exige Quicktime e sem isso não funciona. Para um leigo.</p>
<p>Mas como já sabia que a Apple usa padrões ISO em seus videos, tipo <a href="http://avi.alkalay.net/2007/05/supra-sumo-em-compressao-de-video.html" target="_blank" >MP4, H.264 e AAC</a>, foi só ver o fonte e descobrir a URL dos videos. Então é só clicar com o botão direito, salvar o arquivo MOV (MP4) e depois assistir com MPlayer ou outro player de Linux que você preferir.</p>
<p align="center"><a href="http://movies.apple.com/movies/us/apple/iphone/never_been/apple-iphone-never_been_848x496.mov"><img src="http://images.apple.com/iphone/ads/images/screen_neveripod20070612.jpg" title="Never been an iPod" alt="Never been an iPod" height="225" width="400" /><br />
Never been an iPod</a></p>
<p align="center"> <a href="http://movies.apple.com/movies/us/apple/iphone/how_to/apple-iphone-how_to_848x496.mov" target="_blank"><img src="http://images.apple.com/iphone/ads/images/screen_howto20070612.jpg" title="How to" alt="How to" height="225" width="400" /><br />
How to</a></p>
<p align="center"> <a href="http://movies.apple.com/movies/us/apple/iphone/calamari/apple-iphone-calamari_848x496.mov"><img src="http://images.apple.com/iphone/ads/images/screen_calamari20070612.jpg" title="Calamari" alt="Calamari" height="225" width="400" /><br />
Calamari</a></p>
<p>Ou então, se tiver um link rápido, pode assistir enquanto baixa, assim:</p>
<pre class="screen">
bash$ mplayer http://movies.apple.com/movies/us/apple/iphone/never_been/apple-iphone-never_been_848x496.mov
bash$ mplayer http://movies.apple.com/movies/us/apple/iphone/how_to/apple-iphone-how_to_848x496.mov
bash$ mplayer http://movies.apple.com/movies/us/apple/iphone/calamari/apple-iphone-calamari_848x496.mov</pre>
<p>Os links que escolhi são os de alta definição. Há versões com qualidade mais baixa no site original.</p>
<hr />
<p><small>&copy; Avi for <a href="http://avi.alkalay.net">Avi Alkalay</a>, 2007. |
<a href="http://avi.alkalay.net/2007/06/propagandas-do-iphone-para-linux.html">Permalink</a> |
<a href="http://avi.alkalay.net/2007/06/propagandas-do-iphone-para-linux.html#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://avi.alkalay.net/2007/06/propagandas-do-iphone-para-linux.html&amp;title=Propagandas do iPhone para Linux">del.icio.us</a>
<br/>
Post tags: <a href="http://avi.alkalay.net/tag/langpt" rel="tag">lang:pt</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://avi.alkalay.net/2007/06/propagandas-do-iphone-para-linux.html/feed</wfw:commentRss>
<enclosure url="http://movies.apple.com/movies/us/apple/iphone/how_to/apple-iphone-how_to_848x496.mov" length="7019081" type="video/quicktime" />
<enclosure url="http://movies.apple.com/movies/us/apple/iphone/never_been/apple-iphone-never_been_848x496.mov" length="7049343" type="video/quicktime" />
<enclosure url="http://movies.apple.com/movies/us/apple/iphone/calamari/apple-iphone-calamari_848x496.mov" length="7208672" type="video/quicktime" />
		</item>
		<item>
		<title>Suas Multas e Linux</title>
		<link>http://avi.alkalay.net/2007/05/suas-multas-e-linux.html</link>
		<comments>http://avi.alkalay.net/2007/05/suas-multas-e-linux.html#comments</comments>
		<pubDate>Wed, 09 May 2007 20:48:05 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
		
		<category><![CDATA[Community and Society]]></category>

		<category><![CDATA[Linux &amp; Open Source]]></category>

		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[lang:pt]]></category>

		<category><![CDATA[tech:ok]]></category>

		<guid isPermaLink="false">http://avi.alkalay.net/2007/05/suas-multas-e-linux.html</guid>
		<description><![CDATA[Sabe aquela multa de radar que você recebeu? Foi enviada pelo Tux.]]></description>
			<content:encoded><![CDATA[<p>Sabe aquela multa de radar que você recebeu? Foi enviada pelo <a href="http://en.wikipedia.org/wiki/Tux" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">Tux</a>.</p>
<p>Mas não o culpe por isso. Linux só foi a base tecnológica para todo o sistema.<br />
Ontem conversei bastante com o pessoal da Engebras, empresa que cria e administra a maioria dos radares de São Paulo e outros estados. Já tinha ouvido falar que todos os sistemas para suportar essa monitoração era baseada em Linux, e eles contaram mais detalhes. Continue lendo&#8230;</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6579238986403678";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-07-02: Populares, Techcontent
google_ad_channel = "6785498731+7144666552";
//-->
</script><br />
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Os radares são na verdade câmeras analógicas com sensibilidade melhorada conectadas a computadores próximos que rodam Linux que por sua vez digitalizam a imagem instantaneamente com a ajuda de placas de captura de vídeo. As placas dos carros são imediatamente reconhecidas por <a href="http://pt.wikipedia.org/wiki/OCR" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/pt.wikipedia.org');">OCR</a> por uma biblioteca de uma empresa israelense, a multa é impressa, enviada pelo correio, recolhida no banco e repassada para o governo estadual, federal ou município, dependendo da jurisdição.</p>
<p>Todos os carros que passam por um radar — infrator ou não — são filmados. Não é uma câmera fotográfica, e sim uma filmadora.</p>
<p>Tazo (gerente de informática da Engebras) e seu pessoal afirmaram que todos os sevidores da empresa rodam Linux. Coisa de 50 a 60 servidores. Mas são servidores paravirtuais. Porque servidores físicos mesmo a empresa tem menos de 10.</p>
<p>Fiquei feliz em ver um exemplo vivo de um datacenter inteiramente virtual, e imaginei a flexibilidade operacional que eles tem em fazer movimentações de serviços sem indisponibilidades.</p>
<p>Mostraram sua extranet onde pode-se ver as fotos de infrações do momento, mais estatísticas de variação de velocidade média por hora, número de veículos, e até seu tamanho. Mostraram também como motoqueiros cometem infrações, mas escondem sua placa com a mão.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6579238986403678";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-07-02: Populares, Techcontent
google_ad_channel = "6785498731+7144666552";
//-->
</script><br />
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Além disso, imediatamente consultam uma base de dados de veículos não licenciados (em MySQL), mas aqui não se pode multar por radar. Por outro lado uma aviso é enviado para a polícia da região, avisando a placa e o ponto onde o veículo foi detectado.</p>
<p>40% da frota nacional não é licenciada, inclusive viaturas da polícia.</p>
<p>Há também os radares de farol, onde não basta uma imagem estática. É necessário registrar o movimento do veículo ultrapassando o sinal vermelho como evidência. Neste caso são usados softwares livres como <a href="http://en.wikipedia.org/wiki/Ffmpeg" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">ffmpeg</a> para gerar este clip em MPEG.</p>
<p>A comunicação entre os radares e o datacenter central é geralmente provida por GPRS, pelas operadoras de celular da localidade.</p>
<p>Se tiver sorte, o pessoal da Engebras vai passar no meu blog para dar mais detalhes de sua operação.</p>
<hr />
<p><small>&copy; Avi for <a href="http://avi.alkalay.net">Avi Alkalay</a>, 2007. |
<a href="http://avi.alkalay.net/2007/05/suas-multas-e-linux.html">Permalink</a> |
<a href="http://avi.alkalay.net/2007/05/suas-multas-e-linux.html#comments">10 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://avi.alkalay.net/2007/05/suas-multas-e-linux.html&amp;title=Suas Multas e Linux">del.icio.us</a>
<br/>
Post tags: <a href="http://avi.alkalay.net/tag/langpt" rel="tag">lang:pt</a>, <a href="http://avi.alkalay.net/tag/techok" rel="tag">tech:ok</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://avi.alkalay.net/2007/05/suas-multas-e-linux.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Supra-sumo em Compressão de Video</title>
		<link>http://avi.alkalay.net/2007/05/supra-sumo-em-compressao-de-video.html</link>
		<comments>http://avi.alkalay.net/2007/05/supra-sumo-em-compressao-de-video.html#comments</comments>
		<pubDate>Wed, 09 May 2007 13:23:48 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
		
		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[lang:pt]]></category>

		<category><![CDATA[tech:yes]]></category>

		<guid isPermaLink="false">http://avi.alkalay.net/2007/05/supra-sumo-em-compressao-de-video.html</guid>
		<description><![CDATA[Andei estudando tecnologias de compressão de vídeo e é um mundo fascinante. Tudo sobre Linux.
DivX e Xvid são compressores ainda bons mas de gerações anteriores. O mais moderno e avançado é o H.264 também conhecido por MPEG-4 AVC, padrão ISO. Uma das melhores implementações desse compressor é livre: o projeto x264.

E sobre containers, um dos [...]]]></description>
			<content:encoded><![CDATA[<p>Andei estudando tecnologias de compressão de vídeo e é um mundo fascinante. Tudo sobre Linux.</p>
<p>DivX e Xvid são compressores ainda bons mas de gerações anteriores. O mais moderno e avançado é o <a href="http://en.wikipedia.org/wiki/H.264" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">H.264 também conhecido por MPEG-4 AVC</a>, padrão ISO. Uma das melhores implementações desse compressor é livre: o projeto x264.</p>
<p><!--adsense#horTechPop--></p>
<p>E sobre containers, um dos mais completos hoje em dia é o MP4. Um mesmo arquivo MP4 pode conter uma trilha de vídeo, outra de vídeo em outros ângulos, outra de audio em inglês, outra de audio em português, e outras de legendas em várias linguas, em Unicode, menu como o de um DVD, informação sobre capítulos etc. Isso é um significativo avanço em relação ao container AVI da Microsoft que não suportava nada disso. Pode-se fazer um backup de um DVD para um arquivo MP4, incluindo toda a sua interatividade, menus e capítulos.</p>
<p>Apesar do nome sugestivo, MP4 não é a evolução do MP3. Afirmar isso é como dizer que <span class="filename">.gif</span> evoluiu para <span class="filename">.tar</span>, coisa que não faz sentido. A evolução do MP3 é <a href="http://en.wikipedia.org/wiki/Advanced_Audio_Coding" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">AAC</a> e <a href="http://en.wikipedia.org/wiki/HE-AAC" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">HE-AAC</a>. MP4 (um formato de container) pode conter streams MP3 (um formato de audio), como fiz abaixo, mas o mais natural e moderno é um MP4 conter streams AAC.</p>
<p><a href="http://www.linuxjournal.com/article/9005" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/www.linuxjournal.com');">Converti</a> um vídeo de 53 segundos que fiz com minha câmera. Veja a comparação:</p>
<table border="1" width="95%">
<tr>
<td>&nbsp;</td>
<td align="center"><strong>Original.avi</strong></td>
<td align="center"><strong>Comprimido.mp4</strong></td>
</tr>
<tr>
<td><strong>Geral</strong></td>
<td>53s, 15.077 kb/s, 640&#215;480, 30 quadros por segundo</td>
<td>53s, 2.495 kb/s, 640&#215;480, 30 quadros por segundo</td>
</tr>
<tr>
<td><strong>Tamanho</strong></td>
<td>100.326.316 Bytes</td>
<td>16.639.145 Bytes</td>
</tr>
<tr>
<td><strong>Trilha de vídeo</strong></td>
<td>99.697.780 Bytes, compressão <a href="http://en.wikipedia.org/wiki/Motion_JPEG" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">Motion JPEG</a></td>
<td>15.952.188 Bytes, compressão H.264</td>
</tr>
<tr>
<td><strong>Trilha de audio</strong></td>
<td>586.888 Bytes, formato PCM mono 11,024 Hz</td>
<td>657.699 Bytes, compressão MP3 mono 22,05 Hz 64kbps</td>
</tr>
<tr>
<td><strong>Overhead do container</strong></td>
<td>41.648 Bytes ou 0.04% do tamanho do arquivo</td>
<td>29.258 Bytes ou 0.18% do tamanho do arquivo</td>
</tr>
</table>
<p><!--adsense#horTechPop--></p>
<p>Há duas discrepâncias aqui:</p>
<ol>
<li><strong>O tamanho relativo do container deveria ter diminuido.</strong><br />
O overhead do container MP4 é bem menor que AVI, mas como o tamanho do vídeo diminuiu muitíssimo, isso distorceu a relação do tamanho do container com o do arquivo. Se transferíssemos sem recomprimir os streams de audio e vídeo do AVI p/ MP4, veríamos uma significativa queda de overhead do container.</li>
<li><strong>O tamanho da trilha de audio aumentou.</strong><br />
O fato é que tive sérios problemas para compactar o audio. Minha câmera grava som em formatos tão baixos que tive que aumentar a freqüência do sinal para o arquivo ser aceito pelo <a href="http://en.wikipedia.org/wiki/LAME" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">LAME</a>. E ai usei bitrates talvez altos de mais para a compressão. Mas ganhei tanto com o H.264 que nem vou esquentar a cabeça.</li>
</ol>
<p>O vídeo final é de alta qualidade (comparado com o original), e não consegui perceber diferença entre eles. Olhei várias vezes, com muita atenção.</p>
<p>Eu ainda fiz questão de alta qualidade, e mantive o bitrate em 2495 kbps. Poderia ter diminuido mais ainda o tamanho se fizesse compressão em 2 passos. Filmes em formato Xvid (<a href="http://en.wikipedia.org/wiki/MPEG-4_Part_2" target="_blank" onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">MPEG-4 ASP</a>) que se baixa da Internet, em boa qualidade, tem aproximadamente 850 kbps. É esperado que se dermos só 850 kbits para o H.264 trabalhar 1 segundo de vídeo, obteremos resultados melhores comparados ao Xvid.</p>
<hr />
<p><small>&copy; Avi for <a href="http://avi.alkalay.net">Avi Alkalay</a>, 2007. |
<a href="http://avi.alkalay.net/2007/05/supra-sumo-em-compressao-de-video.html">Permalink</a> |
<a href="http://avi.alkalay.net/2007/05/supra-sumo-em-compressao-de-video.html#comments">9 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://avi.alkalay.net/2007/05/supra-sumo-em-compressao-de-video.html&amp;title=Supra-sumo em Compressão de Video">del.icio.us</a>
<br/>
Post tags: <a href="http://avi.alkalay.net/tag/langpt" rel="tag">lang:pt</a>, <a href="http://avi.alkalay.net/tag/techyes" rel="tag">tech:yes</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://avi.alkalay.net/2007/05/supra-sumo-em-compressao-de-video.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Sobre Podcast</title>
		<link>http://avi.alkalay.net/2007/01/sobre-podcast.html</link>
		<comments>http://avi.alkalay.net/2007/01/sobre-podcast.html#comments</comments>
		<pubDate>Fri, 12 Jan 2007 10:11:50 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
		
		<category><![CDATA[Community and Society]]></category>

		<category><![CDATA[Essays]]></category>

		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[Music &amp; Podcasts]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://avi.alkalay.net/2007/01/sobre-podcast.html</guid>
		<description><![CDATA[Uma vez perguntei a um amigo o que é um podcast, e ele disse que é um MP3. Bem, isso é tão minimalista quanto dizer que um Gaudí é um amontoado de tijolos, ou que a Internet é uma porção de bits dançantes.
Um podcast é um blog não-textual. Seu conteúdo pode ser audio e/ou vídeo, [...]]]></description>
			<content:encoded><![CDATA[<p>Uma vez perguntei a um amigo o que é um podcast, e ele disse que é um MP3. Bem, isso é tão minimalista quanto dizer que um <a href="http://en.wikipedia.org/wiki/Gaudi"target="_blank"  onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">Gaudí</a> é um amontoado de tijolos, ou que a <a href="http://worldofends.com/"title="Word of Ends" target="_blank"  onclick="javascript:urchinTracker ('/outbound/article/worldofends.com');">Internet</a> é uma porção de bits dançantes.</p>
<p>Um <a href="http://en.wikipedia.org/wiki/Podcasting"title="Podcast na Wikipedia" target="_blank"  onclick="javascript:urchinTracker ('/outbound/article/en.wikipedia.org');">podcast</a> é um blog não-textual. Seu conteúdo pode ser audio e/ou vídeo, rodeado por metainformações do tipo &#8220;autor&#8221;, &#8220;entrevistado&#8221;, &#8220;banda&#8221;, &#8220;estilo&#8221;, &#8220;sumário&#8221; etc.</p>
<p>Como todo blog, ele tem regularidade: &#8220;episódios&#8221; no lugar de posts e assim por diante.</p>
<p>Você &#8220;assina&#8221; um podcast como assina uma revista, da mesma forma como assina um blog (via RSS ou ATOM). Mas como um browser é um leitor essencialmente textual, é mais comum e prático assinar podcasts usando softwares de mídia: iTunes, Yahoo! Music Engine, Amarok, etc.</p>
<p>Na convergência das coisas, um podcast pode ser comparado a um programa de rádio onde o próprio ouvinte decide quando e como vai ouvi-lo.</p>
<p>Num mundo onde tivermos banda larga no ar tão abundante e livre quanto ondas de rádio, além da memória para freqüências de estações, os rádios de nossos carros terão também a assinatura de nossos podcasts preferidos. Com ainda não chegamos a isso, temos que usar MP3 players modernos como o iPod - que tratam podcasts de forma especial - para termos essa funcionalidade.</p>
<p>E nesse mundo, os podcasters seremos você e eu, pessoas comuns falando diretamente para o mundo. Publicar um podcast é tão simples quanto publicar posts num blog. É inclusive algo que se pode integrar com plataformas de blogs comuns, com plugins para Wordpress, etc.</p>
<p>Se você tem um fluxo de coisas para <em>dizer</em>, crie um podcast. Se você tem um fluxo de coisas para serem <em>assistidas</em>, crie um podcast. Se você tem um fluxo de coisas que quer que as pessoas <em>ouçam</em>, crie um podcast. Este último é o meu caso, sobre Jazz Brasileiro, e por isso estou juntando os pedaços e os módulos para criar um.</p>
<p>Andei estudando isso ultimamente, e achei importante compartilhar&#8230;</p>
<hr />
<p><small>&copy; Avi for <a href="http://avi.alkalay.net">Avi Alkalay</a>, 2007. |
<a href="http://avi.alkalay.net/2007/01/sobre-podcast.html">Permalink</a> |
<a href="http://avi.alkalay.net/2007/01/sobre-podcast.html#comments">3 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://avi.alkalay.net/2007/01/sobre-podcast.html&amp;title=Sobre Podcast">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://avi.alkalay.net/2007/01/sobre-podcast.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Converting YouTube to MPEG or iPod</title>
		<link>http://avi.alkalay.net/2006/09/converting-youtube-to-mpeg.html</link>
		<comments>http://avi.alkalay.net/2006/09/converting-youtube-to-mpeg.html#comments</comments>
		<pubDate>Fri, 29 Sep 2006 15:09:00 +0000</pubDate>
		<dc:creator>Avi</dc:creator>
		
		<category><![CDATA[Linux &amp; Open Source]]></category>

		<category><![CDATA[Multimedia]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[lang:en]]></category>

		<category><![CDATA[tech:yes]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/2006/09/converting-youtube-to-mpeg/</guid>
		<description><![CDATA[A concise guide on how to convert YouTube videos to MPEG files on your disk.]]></description>
			<content:encoded><![CDATA[<p>In the end of this proccess you&#8217;ll have an .mpg file on your local disk, generated from an Internet-only YouTube URL.</p>
<p><!--adsense#horTechPop--></p>
<p>First make sure you have <a href="http://ffmpeg.sourceforge.net/" onclick="javascript:urchinTracker ('/outbound/article/ffmpeg.sourceforge.net');">ffmpeg</a> (video encoding and decoding tools) and <a href="http://lame.sourceforge.net/" onclick="javascript:urchinTracker ('/outbound/article/lame.sourceforge.net');">lame</a> (MP3 audio encoding and decoding tools) softwares and dependencies installed on your system. You will also require the <a href="http://www.arrakis.es/~rggi3/youtube-dl/" onclick="javascript:urchinTracker ('/outbound/article/www.arrakis.es');">youtube-dl</a> scripts that downloads the actual YouTube video.</p>
<p>In a Red Hat or Fedora system you can install it from <a href="http://dag.wieers.com/home-made/apt/FAQ.php#B" onclick="javascript:urchinTracker ('/outbound/article/dag.wieers.com');">Dag</a> or <a href="http://rpm.livna.org/configuration.html" onclick="javascript:urchinTracker ('/outbound/article/rpm.livna.org');">Livna</a> RPM repositories, with a simple yum command:</p>
<pre class="screen">bash# yum install ffmpeg lame youtube-dl</pre>
<p>Then you get to the YouTube video page you want to download. In this example we&#8217;ll use the <a href="http://www.youtube.com/watch?v=DO9ZWDaLLxA" onclick="javascript:urchinTracker ('/outbound/article/www.youtube.com');">Heist video</a>, the first Linux ad from IBM, that has <a href="http://www.youtube.com/watch?v=DO9ZWDaLLxA" onclick="javascript:urchinTracker ('/outbound/article/www.youtube.com');">http://www.youtube.com/watch?v=DO9ZWDaLLxA</a> as its URL.</p>
<p>I&#8217;ll use youtube-dl this way:</p>
<pre class="screen">bash$ youtube-dl -t http://www.youtube.com/watch?v=DO9ZWDaLLxA</pre>
<p>And I saw it connecting to YouTube several times and downloading the video. In the end, I found a big file named <span class="filename">the_heist-RRZyz1vXkPE.flv</span> in the current firectory, which is the video file.</p>
<p><!--adsense#horTechPop--></p>
<p>Now lets convert it into MPEG with ffmpeg:</p>
<pre class="screen">bash$ ffmpeg -i <span class="filename">the_heist-RRZyz1vXkPE.flv</span><span class="filename"></span> -acodec copy -sameq <span class="filename">heist.mpg</span></pre>
<p><span class="command">-acodec copy</span> will cause <span class="command">ffmpeg</span> to copy the audio from input to output file, while <span class="command">-sameq</span> causes the output video quality to be the same as the source, but output file will be very big. For YouTube videos, you can use <span class="command">-b 320000</span> instead of <span class="command">-sameq</span> to get smaller file sizes.</p>
<p>I saw <span class="command">ffmpeg</span> taking some time to convert, and in the end I got the <span class="filename">heist.mpg</span> file which I was able to confortablly play in any MPEG aware video player, as <span class="command">mplayer</span>.</p>
<p>If you want to convert the video file into MP4, which is the format supported by iPod Video players, you just change the extension:</p>
<pre class="screen">bash$ ffmpeg -i <span class="filename">the_heist-RRZyz1vXkPE.flv</span> -acodec copy -b 320000 <span class="filename">heist.mp4</span></pre>
<p>Ffmpeg will take care to use the maximum screen size available from the source (the <span class="filename">.flv</span> file) so the converted file will be as hi-fi as YouTube let be (not too high really).</p>
<p>Enjoy your video.</p>
<hr />
<p><small>&copy; Avi for <a href="http://avi.alkalay.net">Avi Alkalay</a>, 2006. |
<a href="http://avi.alkalay.net/2006/09/converting-youtube-to-mpeg.html">Permalink</a> |
<a href="http://avi.alkalay.net/2006/09/converting-youtube-to-mpeg.html#comments">9 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://avi.alkalay.net/2006/09/converting-youtube-to-mpeg.html&amp;title=Converting YouTube to MPEG or iPod">del.icio.us</a>
<br/>
Post tags: <a href="http://avi.alkalay.net/tag/langen" rel="tag">lang:en</a>, <a href="http://avi.alkalay.net/tag/techyes" rel="tag">tech:yes</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://avi.alkalay.net/2006/09/converting-youtube-to-mpeg.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.628 seconds -->
