<?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>dev/null &#187; mp3</title>
	<atom:link href="http://devnull.fuoriradio.com/tag/mp3/feed/" rel="self" type="application/rss+xml" />
	<link>http://devnull.fuoriradio.com</link>
	<description>appunti interessanti e non di un programmatore</description>
	<lastBuildDate>Tue, 19 Apr 2011 15:22:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>jPlayer un plugin jquery per l&#8217;audio html5 (e flash se html5 non c&#8217;è)</title>
		<link>http://devnull.fuoriradio.com/2010/02/01/jplayer-un-plugin-jquery-per-laudio-html5-e-flash-se-html5-non-ce/</link>
		<comments>http://devnull.fuoriradio.com/2010/02/01/jplayer-un-plugin-jquery-per-laudio-html5-e-flash-se-html5-non-ce/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 15:21:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[ogg]]></category>

		<guid isPermaLink="false">http://devnull.fuoriradio.com/?p=149</guid>
		<description><![CDATA[jPlayer è un plug-in per jQuery che consente di: suonare ed avere pieno controllo dei file audio nella tua pagina web. creare e disegnare un player audio soltanto con HTML e CSS aggiungere effeti sonori ai tuoi progetti jQuery utilizzare le caratteristiche di streaming veloci di HTML5in mp3 e ogg. Tutto questo è ottenuto con [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float:left; margin: 8px" src="http://snapcasa.com/get.aspx?code=9019&size=l&url=http%3A%2F%2Fwww.happyworm.com%2Fjquery%2Fjplayer%2F"/ ></p>
<p><a href="http://www.happyworm.com/jquery/jplayer/">jPlayer</a> è un plug-in per <a href="http://jquery.com">jQuery</a> che consente di:</p>
<ul>
<li> suonare ed avere pieno controllo dei file audio nella tua pagina web.</li>
<li>creare e disegnare un player audio soltanto con  HTML e CSS</li>
<li>aggiungere effeti sonori ai tuoi progetti jQuery</li>
<li>utilizzare le caratteristiche di streaming veloci di HTML5in mp3 e <a href="http://devnull.fuoriradio.com/2010/01/30/convertire-mp3-in-ogg-vorbis/">ogg</a>.</li>
</ul>
<p>Tutto questo è ottenuto con HTML5 in mp3 e ogg dove disponibile, e in mp3 con un player Flash invisibile per gli altri browser.</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdevnull.fuoriradio.com%2F2010%2F02%2F01%2Fjplayer-un-plugin-jquery-per-laudio-html5-e-flash-se-html5-non-ce%2F&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=65&amp;font=lucida+grande' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://devnull.fuoriradio.com/2010/02/01/jplayer-un-plugin-jquery-per-laudio-html5-e-flash-se-html5-non-ce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Audio con player in html5 senza javascript.</title>
		<link>http://devnull.fuoriradio.com/2010/01/31/audio-con-player-in-html5-senza-javascript/</link>
		<comments>http://devnull.fuoriradio.com/2010/01/31/audio-con-player-in-html5-senza-javascript/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 16:15:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[ogg]]></category>

		<guid isPermaLink="false">http://devnull.fuoriradio.com/?p=133</guid>
		<description><![CDATA[Vediamo come inserire un tag riconosciuto da tutti i browser compatibili con html5 (chrome, safari, firefox) che consenta di suonare un file audio mostrando il player di default del browser. Per prima cosa ricordiamoci di rendere disponibili sul server due versioni del file audio: in formato mp3 ed ogg. (Vedi anche: Convertire mp3 in ogg [...]]]></description>
			<content:encoded><![CDATA[<p>Vediamo come inserire un tag riconosciuto da tutti i browser compatibili con html5 (chrome, safari, firefox) che consenta di suonare un file audio mostrando il player di default del browser.</p>
<p>Per prima cosa ricordiamoci di rendere disponibili sul server due versioni del file audio: in formato mp3 ed ogg.<br />
(Vedi anche: <a href="http://devnull.fuoriradio.com/2010/01/30/convertire-mp3-in-ogg-vorbis/">Convertire mp3 in ogg vorbis</a>)</p>
<p>Poi dove ci serve nella pagina inseriamo il seguente Tag audio:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="xhtml" style="font-family:monospace;"> &lt;audio controls=&quot;true&quot; autobuffer=&quot;true&quot;&gt;
            &lt;source src=&quot;music/esempio.mp3&quot; type=&quot;audio/mpeg&quot;&gt;
            &lt;source src=&quot;music/esempio.ogg&quot; type=&quot;audio/ogg&quot;&gt;
 Questo browser non supporta html5 audio.
 &lt;/audio&gt;</pre></td></tr></table></div>

<p>Usate i path corretti per i vostri file audio e vedrete un risultato simile a questo:</p>
<p><audio controls="true" autobuffer="true"><br />
            <source src="http://devnull.fuoriradio.com/wp-content/uploads/2010/01/forpca.mp3" type="audio/mpeg"><br />
            <source src="http://devnull.fuoriradio.com/wp-content/uploads/2010/01/forpca.ogg" type="audio/ogg"><br />
            Questo browser non supporta html5 audio.<br />
</audio></p>
<p>Il brano è una mia creazione con garageband quindi tappatevi le orecchie prima di premere play <img src='http://devnull.fuoriradio.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdevnull.fuoriradio.com%2F2010%2F01%2F31%2Faudio-con-player-in-html5-senza-javascript%2F&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=65&amp;font=lucida+grande' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://devnull.fuoriradio.com/2010/01/31/audio-con-player-in-html5-senza-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://devnull.fuoriradio.com/wp-content/uploads/2010/01/forpca.mp3" length="1605298" type="audio/mpeg" />
		</item>
		<item>
		<title>Convertire mp3 in ogg vorbis.</title>
		<link>http://devnull.fuoriradio.com/2010/01/30/convertire-mp3-in-ogg-vorbis/</link>
		<comments>http://devnull.fuoriradio.com/2010/01/30/convertire-mp3-in-ogg-vorbis/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 14:51:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[ogg]]></category>

		<guid isPermaLink="false">http://devnull.fuoriradio.com/?p=124</guid>
		<description><![CDATA[Ultimamente il formato OGG è tornato alla ribalta, un pò per la crociata di Richard Stallman contro i formati musicali proprietari, un pò per via dell&#8217;implementazione dell&#8217;html5 audio usata da Firefox che è in grado appunto di riprodurre i file OGG senza ausilio di plugin esterni. L&#8217;implementazione del tag AUDIO e della api javascript Audio() [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float:left; margin:8px" src="http://www.xiph.org/quicktime/img/xiph-qt.png" alt="Ogg Vorbis" /></p>
<p>Ultimamente il formato OGG è tornato alla ribalta, un pò per la crociata di Richard Stallman contro i formati musicali proprietari, un pò per via dell&#8217;implementazione dell&#8217;html5 audio usata da Firefox che è in grado appunto di riprodurre i file OGG senza ausilio di plugin esterni. </p>
<p>L&#8217;implementazione del tag AUDIO e della api javascript Audio() varia però molto da browser a browser, in Internet Explorer è assente, Safari è in grado di riprodurre mp3 e wav (e in realtà qualsiasi formato audio di QT), Chrome OGG ed mp3, Firefox OGG e wav, Opera per il momento soltanto wav.</p>
<p>Se volessimo per esempio mettere nel nostro sito una musica di sfondo in mp3 la sentirebbero soltanto alcuni utenti, se la mettessimo in OGG solo alcuni altri etc.</p>
<p>La soluzione sarà evidentemente quella di &#8220;sniffare&#8221; il browser e fornire il formato corretto.</p>
<p>Per adesso vediamo come convertire un file mp3 in ogg su un linux debian, in un articolo successivo esamineremo i tag e le api audio di html5.</p>
<p><span id="more-124"></span></p>
<p>Nella nostra shell digitiamo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mp32ogg</pre></div></div>

<p>Confermiamo e lasciamo che apt-get installi tutte le dipendenze e i file necessari.</p>
<p>Appena finito possiamo convertire da mp3 a ogg singoli files o intere directory (ricorsivamente)</p>
<p>La sintassi ce la spiega lo stesso comando:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mp32ogg <span style="color: #660033;">--help</span>
&nbsp;
mp32ogg v0.11
<span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">2000</span>-<span style="color: #000000;">2002</span> Nathan Walp
Released without warranty under the terms of the Artistic License
&nbsp;
Usage: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mp32ogg <span style="color: #7a0874; font-weight: bold;">&#91;</span>options<span style="color: #7a0874; font-weight: bold;">&#93;</span> dir1 dir2 file1 file2 ...
&nbsp;
Options:
<span style="color: #660033;">--quality</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>-<span style="color: #000000;">1</span>..<span style="color: #000000;">10</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>       Set Ogg<span style="color: #000000; font-weight: bold;">/</span>Vorbis quality level
                         Defaults to bitrate of original .mp3
<span style="color: #660033;">--delete</span>                 Delete files after converting
<span style="color: #660033;">--rename</span>=format          Instead of simply replacing the .mp3 with
                         .ogg <span style="color: #000000; font-weight: bold;">for</span> the output <span style="color: #c20cb9; font-weight: bold;">file</span>, produce output 
                         filenames <span style="color: #000000; font-weight: bold;">in</span> this format, replacing <span style="color: #000000; font-weight: bold;">%</span>a, <span style="color: #000000; font-weight: bold;">%</span>t
                         and <span style="color: #000000; font-weight: bold;">%</span>l with artist, title, and album name
                         <span style="color: #000000; font-weight: bold;">for</span> the track
<span style="color: #660033;">--lowercase</span>              Force lowercase filenames when using <span style="color: #660033;">--rename</span>
<span style="color: #660033;">--verbose</span>                Verbose output
<span style="color: #660033;">--preserve-timestamp</span>     Preserve <span style="color: #c20cb9; font-weight: bold;">file</span> timestamp
<span style="color: #660033;">--help</span>                   Display this <span style="color: #7a0874; font-weight: bold;">help</span> message</pre></div></div>

<p>Credo non ci sia da aggiungere altro ma se avete bisogno di chiarimenti, commentate.</p>
<p><div style="text-align: center"><script type="text/javascript"><!--
google_ad_client = "pub-9763589373223061";
/* 468x60, devnull */
google_ad_slot = "9717154544";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdevnull.fuoriradio.com%2F2010%2F01%2F30%2Fconvertire-mp3-in-ogg-vorbis%2F&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=65&amp;font=lucida+grande' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://devnull.fuoriradio.com/2010/01/30/convertire-mp3-in-ogg-vorbis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

