<?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>ruisz.com</title>
	<atom:link href="http://www.ruisz.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ruisz.com</link>
	<description>The Blog of ruisz.it - IT Consulting, Software Development, Information Technology in Graz, Austria</description>
	<lastBuildDate>Fri, 17 Feb 2012 09:02:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Map Icons Collection</title>
		<link>http://www.ruisz.com/coding/103/map-icons-collection/</link>
		<comments>http://www.ruisz.com/coding/103/map-icons-collection/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 09:02:20 +0000</pubDate>
		<dc:creator>J. Ruisz</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.ruisz.com/?p=103</guid>
		<description><![CDATA[Map Icons Collection is a set of more than 700 free icons to use as placemarks for your POI (Point of Interests) locations on your maps. You can use them on Google Maps with the &#8220;My places / My maps&#8221; &#8230; <a href="http://www.ruisz.com/coding/103/map-icons-collection/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Map Icons Collection is a set of more than 700 free icons to use as placemarks for your POI (Point of Interests) locations on your maps. You can use them on Google Maps with the &#8220;My places / My maps&#8221; feature or automatically by using the Google Maps API.</p>
<p>more at <a title="http://mapicons.nicolasmollet.com/" href="http://mapicons.nicolasmollet.com/" target="_blank">http://mapicons.nicolasmollet.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruisz.com/coding/103/map-icons-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>s3tools</title>
		<link>http://www.ruisz.com/centos/100/s3tools/</link>
		<comments>http://www.ruisz.com/centos/100/s3tools/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 08:53:50 +0000</pubDate>
		<dc:creator>J. Ruisz</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ruisz.com/?p=100</guid>
		<description><![CDATA[Save Backups in the Cloud Amazon S3 is a reasonably priced data storage service. Ideal for off-site backups, archiving and other data storage needs. Check out About Amazon S3 section to find out more. S3cmd is a command line tool &#8230; <a href="http://www.ruisz.com/centos/100/s3tools/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Save Backups in the Cloud</strong></p>
<p>Amazon S3 is a reasonably priced data storage service. Ideal for off-site backups, archiving and other data storage needs. Check out About Amazon S3 section to find out more.</p>
<p>S3cmd is a command line tool for uploading, retrieving and managing data in Amazon S3. It is best suited for power users who don&#8217;t fear command line. It is also ideal for scripts, automated backups triggered from cron, etc.</p>
<p>S3cmd is an open source project available under GNU Public License v2 (GPLv2) and is free for both commercial and private use. You will only have to pay Amazon for using their storage. None of these money go to S3cmd developers.</p>
<p>more at <a title="http://s3tools.org/s3cmd" href="http://s3tools.org/s3cmd" target="_blank">http://s3tools.org/s3cmd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruisz.com/centos/100/s3tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beim Abspecken nicht hungern</title>
		<link>http://www.ruisz.com/lifestyle/91/beim-abspecken-nicht-hungern/</link>
		<comments>http://www.ruisz.com/lifestyle/91/beim-abspecken-nicht-hungern/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 07:50:48 +0000</pubDate>
		<dc:creator>J. Ruisz</dc:creator>
				<category><![CDATA[Lifestyle]]></category>

		<guid isPermaLink="false">http://www.ruisz.com/?p=91</guid>
		<description><![CDATA[Geht es ihnen auch wie mir ? In den Wintermonaten zu wenig draußen, guten selbstgemachten Panettone genascht, und plötzlich sind da völlig unerwartet einige Kilos mehr auf der Waage, und der Schwimmreifen sieht (zumindest selbst betrachtet) nicht wirklich sauber aus. &#8230; <a href="http://www.ruisz.com/lifestyle/91/beim-abspecken-nicht-hungern/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Geht es ihnen auch wie mir ? In den Wintermonaten zu wenig draußen, guten selbstgemachten Panettone genascht, und plötzlich sind da völlig unerwartet einige Kilos mehr auf der Waage, und der Schwimmreifen sieht (zumindest selbst betrachtet) nicht wirklich sauber aus. Vorsätze gibt es zwar genug, aber haben wir etwas falsch gemacht?</p>
<p>Ab sofort wird also wieder richtig ernährt. Wie, das habe ich hier herausgefunden, so als kleine Anregung: <a title="http://www.heilpraxisnet.de/naturheilpraxis/beim-abspecken-nicht-hungern-900281.php" href="http://www.heilpraxisnet.de/naturheilpraxis/beim-abspecken-nicht-hungern-900281.php" target="_blank">Beim Abspecken nicht hungern</a></p>
<p>Das Panettone-Rezept ist von hier : <a title="http://www.rezeptewiki.org/wiki/Panettone" href="http://www.rezeptewiki.org/wiki/Panettone" target="_blank">http://www.rezeptewiki.org/wiki/Panettone</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruisz.com/lifestyle/91/beim-abspecken-nicht-hungern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jEdit &#8211; Programmer&#8217;s Text Editor</title>
		<link>http://www.ruisz.com/general/86/jedit-programmers-text-editor/</link>
		<comments>http://www.ruisz.com/general/86/jedit-programmers-text-editor/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 08:01:01 +0000</pubDate>
		<dc:creator>J. Ruisz</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ruisz.com/?p=86</guid>
		<description><![CDATA[jEdit is a text editor for programmers, available under the GNU General Public License version 2.0. It is written in Java and runs on any operating system with Java support, including Windows, Linux, Mac OS X, and BSD. Features jEdit &#8230; <a href="http://www.ruisz.com/general/86/jedit-programmers-text-editor/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>jEdit is a text editor for programmers, available under the GNU General Public License version 2.0. It is written in Java and runs on any operating system with Java support, including Windows, Linux, Mac OS X, and BSD.</p>
<p><strong>Features</strong></p>
<p>jEdit includes syntax highlighting that provides native support for over 130 file formats. Support for additional formats can be added manually using XML files. It supports UTF-8 and many other encodings.</p>
<p>It has extensive code folding and text folding capabilities as well as text wrapping that takes indents into account.</p>
<p>The application is highly customizable and can be extended with macros written in BeanShell, Jython, JavaScript and some other scripting languages.</p>
<p><a title="http://jedit.org/" href="http://jedit.org/" target="_blank">jedit home</a><br />
<a title="http://en.wikipedia.org/wiki/Jedit" href="http://en.wikipedia.org/wiki/Jedit" target="_blank">jedit wikipedia</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruisz.com/general/86/jedit-programmers-text-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>csv2array</title>
		<link>http://www.ruisz.com/coding/79/csv2array/</link>
		<comments>http://www.ruisz.com/coding/79/csv2array/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 07:45:32 +0000</pubDate>
		<dc:creator>J. Ruisz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[fgetcsv]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.ruisz.com/?p=79</guid>
		<description><![CDATA[Wir hatten die Aufgabe, einen Monatskalender für die chirurgische Abteilung in einem Krankenhaus zu schreiben. Der Kalender sollte jeden Tag anzeigen, also auch Tage welche keine ambulanten Untersuchungen, Aufnahmen oder OP Termine beinhalten. Weiters sollte die aktuelle Kalenderwoche dargestellt werden, &#8230; <a href="http://www.ruisz.com/coding/79/csv2array/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wir hatten die Aufgabe, einen Monatskalender für die chirurgische Abteilung in einem Krankenhaus zu schreiben. Der Kalender sollte jeden Tag anzeigen, also auch Tage welche keine ambulanten Untersuchungen, Aufnahmen oder OP Termine beinhalten. Weiters sollte die aktuelle Kalenderwoche dargestellt werden, ebenso allgemeine Termine wie z.B. Schulbeginn, sowie alle Feiertage.</p>
<p>Feiertage und allgemeine Termine sollten als solche gekennzeichnet werden.</p>
<p>Zuerst trugen wir die Termine und Feiertage in ein PHP-Array ein. Aber es zeigte sich bald, dass diese Datei &#8216;not human readable&#8217; war, Fehler sind nicht leicht erkennbar und mussten mühsam gesucht und korrigiert werden.</p>
<pre class="brush: php; title: ; notranslate">
$feiertage =  array (
&quot;2011-07-02&quot; =&gt; array(&quot;text&quot; =&gt; &quot;Beginn Sommerferien f. Bgld, NÖ, Wien&quot;, &quot;type&quot; =&gt;&quot;t&quot;),
&quot;2011-07-09&quot; =&gt; array(&quot;text&quot; =&gt; &quot;Beginn Sommerferien f. Ktn, OÖ, Sbg, Stmk, Tirol, Vbg&quot;, &quot;type&quot; =&gt;&quot;t&quot;),
&quot;2011-08-15&quot; =&gt; array(&quot;text&quot; =&gt; &quot;Mariä Himmelfahrt&quot;, &quot;type&quot; =&gt;&quot;f&quot;),
&quot;2011-09-03&quot; =&gt; array(&quot;text&quot; =&gt; &quot;Ende Sommerferien für Bgld, NÖ, Wien&quot;, &quot;type&quot; =&gt;&quot;t&quot;),
&quot;2011-09-10&quot; =&gt; array(&quot;text&quot; =&gt; &quot;Ende Sommerferien f. Ktn, OÖ, Sbg, Stmk, Tirol, Vbg&quot;, &quot;type&quot; =&gt;&quot;t&quot;),
&quot;2011-09-24&quot; =&gt; array(&quot;text&quot; =&gt; &quot;Hl. Rupert&quot;, &quot;type&quot; =&gt;&quot;t&quot;),
);
</pre>
<p>Das ist nur ein Auszug, die originale Liste beinhaltet alle Termine und Feiertage von 2011 bis 2013.</p>
<p>Eine klare Formatierung hilft zwar bei der Lesbarkeit, aber immer noch nicht beim Schreiben bzw. Copy/Paste aus einer verfügbaren Quelle.</p>
<pre class="brush: php; title: ; notranslate">
$feiertage =  array (
	&quot;2013-01-01&quot;    =&gt; array (
	&quot;text&quot;        =&gt; &quot;Neujahr&quot;,
	&quot;type&quot;        =&gt; &quot;f&quot;
),
	&quot;2013-01-06&quot;    =&gt; array (
	&quot;text&quot;        =&gt; &quot;Hl. Drei Könige. Ende Weihnachtsferien&quot;,
	&quot;type&quot;        =&gt; &quot;f&quot;
),
	&quot;2013-02-12&quot;    =&gt; array (
	&quot;text&quot;        =&gt; &quot;Faschingsdienstag&quot;,
	&quot;type&quot;        =&gt; &quot;t&quot;
),
	&quot;2013-02-13&quot;    =&gt; array (
	&quot;text&quot;        =&gt; &quot;Aschermittwoch&quot;,
	&quot;type&quot;        =&gt; &quot;t&quot;
),
	&quot;2013-02-14&quot;    =&gt; array (
	&quot;text&quot;        =&gt; &quot;Valentinstag&quot;,
	&quot;type&quot;        =&gt; &quot;t&quot;
),
);
</pre>
<p>Einen Ausweg und eine Lösung bietet die PHP Funktion fgetcsv . Wir legten eine CSV-Datei an, und trennten die einzelnen Spalten mit einem Tabulator.</p>
<pre class="brush: bash; title: ; notranslate">
2011-07-02    t    Beginn Sommerferien f. Bgld, NÖ, Wien
2011-07-09    t    Beginn Sommerferien f. Ktn, OÖ, Sbg, Stmk, Tirol, Vbg
2011-08-15    f    Mariä Himmelfahrt
2011-09-03    t    Ende Sommerferien für Bgld, NÖ, Wien
2011-09-10    t    Ende Sommerferien f. Ktn, OÖ, Sbg, Stmk, Tirol, Vbg
2011-09-24    t    Hl. Rupert
</pre>
<p>Mit einem Script wird dann das File ausgelesen und in ein Array umgewandelt.</p>
<pre class="brush: php; title: ; notranslate">
$file = $_SERVER['DOCUMENT_ROOT'].'/calendar/feiertage.csv' ;
$handle = fopen ( $file, 'r' ) ;
$DATA = array();
while ( ($data = fgetcsv ( $handle, 1000, &quot;\t&quot; )) != FALSE ) {
	$DATA[$data[0]]['type'] = $data[1];
	$DATA[$data[0]]['text'] = $data[2];
}
print_r ( $DATA ) ;
</pre>
<p>Das Array hat nun die gewünschte Form, die Quelle ist überschaubar, leicht zu lesen und zu ergänzen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruisz.com/coding/79/csv2array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pdftk &#8211; The PDF Toolkit</title>
		<link>http://www.ruisz.com/linux/69/pdftk-the-pdf-toolkit/</link>
		<comments>http://www.ruisz.com/linux/69/pdftk-the-pdf-toolkit/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 15:32:23 +0000</pubDate>
		<dc:creator>J. Ruisz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ruisz.com/?p=69</guid>
		<description><![CDATA[Pdftk &#8211; The PDF Toolkit If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple tool for doing everyday things with PDF documents. Keep one in the top drawer of &#8230; <a href="http://www.ruisz.com/linux/69/pdftk-the-pdf-toolkit/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Pdftk &#8211; The PDF Toolkit</strong></p>
<p>If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple tool for doing everyday things with PDF documents.</p>
<p>Keep one in the top drawer of your desktop and use it to:</p>
<ul>
<li>Merge PDF Documents</li>
<li>Split PDF Pages into a New Document</li>
<li>Rotate PDF Pages or Documents</li>
<li>Decrypt Input as Necessary (Password Required)</li>
<li>Encrypt Output as Desired</li>
<li>Fill PDF Forms with FDF Data or XFDF Data and/or Flatten Forms</li>
<li>Apply a Background Watermark or a Foreground Stamp</li>
<li>Report on PDF Metrics such as Metadata, Bookmarks, and Page Labels</li>
<li>Update PDF Metadata</li>
<li>Attach Files to PDF Pages or the PDF Document</li>
<li>Unpack PDF Attachments</li>
<li>Burst a PDF Document into Single Pages</li>
<li>Uncompress and Re-Compress Page Streams</li>
<li>Repair Corrupted PDF (Where Possible)</li>
</ul>
<p>Pdftk allows you to manipulate PDF easily and freely. It does not require Acrobat, and it runs on Windows, Linux, Mac OS X, FreeBSD and Solaris.</p>
<p><a title="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/" href="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/" target="_blank">Pdftk Home</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruisz.com/linux/69/pdftk-the-pdf-toolkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unetbootin &#8211; create bootable Live USB drives for Linux distributions</title>
		<link>http://www.ruisz.com/linux/67/unetbootin-create-bootable-live-usb-drives-for-linux-distributions/</link>
		<comments>http://www.ruisz.com/linux/67/unetbootin-create-bootable-live-usb-drives-for-linux-distributions/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 08:43:45 +0000</pubDate>
		<dc:creator>J. Ruisz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ruisz.com/?p=67</guid>
		<description><![CDATA[Introduction UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions without burning a CD. It runs on Windows, Linux, and Mac OS X. You can either let UNetbootin download one of the many &#8230; <a href="http://www.ruisz.com/linux/67/unetbootin-create-bootable-live-usb-drives-for-linux-distributions/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions without burning a CD. It runs on Windows, Linux, and Mac OS X. You can either let UNetbootin download one of the many distributions supported out-of-the-box for you, or supply your own Linux .iso file if you&#8217;ve already downloaded one or your preferred distribution isn&#8217;t on the list.</p>
<p><strong>Features</strong></p>
<p>UNetbootin can create a bootable Live USB drive, or it can make a &#8220;frugal install&#8221; on your local hard disk if you don&#8217;t have a USB drive. It loads distributions either by downloading a ISO (CD image) files for you, or by using an ISO file you&#8217;ve already downloaded.</p>
<p><a title="unetbootin.sourceforge.net/" href="http://unetbootin.sourceforge.net/" target="_blank">more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruisz.com/linux/67/unetbootin-create-bootable-live-usb-drives-for-linux-distributions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ffmpeg</title>
		<link>http://www.ruisz.com/coding/62/ffmpeg/</link>
		<comments>http://www.ruisz.com/coding/62/ffmpeg/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 17:02:09 +0000</pubDate>
		<dc:creator>J. Ruisz</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.ruisz.com/?p=62</guid>
		<description><![CDATA[FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. ffmpeg home ffmpeg documentation 19 ffmpeg commands for all needs ffmpeg is a multiplatform, open-source library for video and audio files. These 19 useful commands cover &#8230; <a href="http://www.ruisz.com/coding/62/ffmpeg/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.</p>
<p><a title="http://ffmpeg.org/" href="http://ffmpeg.org/" target="_blank">ffmpeg home</a><br />
<a title="http://ffmpeg.org/ffmpeg.html" href="http://ffmpeg.org/ffmpeg.html">ffmpeg documentation</a></p>
<p><strong>19 ffmpeg commands for all needs</strong></p>
<p>ffmpeg is a multiplatform, open-source library for video and audio files. These 19 useful commands cover almost all needs: video conversion, sound extraction, encoding file for iPod or PSP, and more.<span id="more-62"></span></p>
<p><strong>Getting infos from a video file</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video.avi
</pre>
<p><strong>Turn X images to a video sequence</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -f image2 -i image%d.jpg video.mpg
</pre>
<p>This command will transform all the images from the current directory (named image1.jpg, image2.jpg, etc…) to a video file named video.mpg.<br />
Turn a video to X images</p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video.mpg image%d.jpg
</pre>
<p>This command will generate the files named image1.jpg, image2.jpg, …</p>
<p>The following image formats are also availables : PGM, PPM, PAM, PGMYUV, JPEG, GIF, PNG, TIFF, SGI.</p>
<p><strong>Encode a video sequence for the iPpod/iPhone</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i source_video.avi input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X final_video.mp4
</pre>
<p>Explanations :</p>
<p>Source : source_video.avi<br />
Audio codec : aac<br />
Audio bitrate : 128kb/s<br />
Video codec : mpeg4<br />
Video bitrate : 1200kb/s<br />
Video size : 320px par 180px<br />
Generated video : final_video.mp4</p>
<p><strong>Encode video for the PSP</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i source_video.avi -b 300 -s 320x240 -vcodec xvid -ab 32 -ar 24000 -acodec aac final_video.mp4
</pre>
<p>Explanations :</p>
<p>Source : source_video.avi<br />
Audio codec : aac<br />
Audio bitrate : 32kb/s<br />
Video codec : xvid<br />
Video bitrate : 1200kb/s<br />
Video size : 320px par 180px<br />
Generated video : final_video.mp4</p>
<p><strong>Extracting sound from a video, and save it as Mp3</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 sound.mp3
</pre>
<p>Explanations :</p>
<p>Source video : source_video.avi<br />
Audio bitrate : 192kb/s<br />
output format : mp3<br />
Generated sound : sound.mp3</p>
<p><strong>Convert a wav file to Mp3</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i son_origine.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 son_final.mp3
</pre>
<p><strong>Convert .avi video to .mpg</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.avi video_finale.mpg
</pre>
<p><strong>Convert .mpg to .avi</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.mpg video_finale.avi
</pre>
<p><strong>Convert .avi to animated gif(uncompressed)</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.avi gif_anime.gif
</pre>
<p><strong>Mix a video with a sound file</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i son.wav -i video_origine.avi video_finale.mpg
</pre>
<p><strong>Convert .avi to .flv</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv video_finale.flv
</pre>
<p><strong>Convert .avi to dv</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.avi -s pal -r pal -aspect 4:3 -ar 48000 -ac 2 video_finale.dv
</pre>
<p>Or:</p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.avi -target pal-dv video_finale.dv
</pre>
<p><strong>Convert .avi to mpeg for dvd players</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i source_video.avi -target pal-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg
</pre>
<p>Explanations :</p>
<p>target pal-dvd : Output format<br />
ps 2000000000 maximum size for the output file, in bits (here, 2 Gb)<br />
aspect 16:9 : Widescreen</p>
<p><strong>Compress .avi to divx</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.avi -s 320x240 -vcodec msmpeg4v2 video_finale.avi
</pre>
<p><strong>Compress Ogg Theora to Mpeg dvd</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i film_video_source.ogm -s 720x576 -vcodec mpeg2video -acodec mp3 video_target.mpg
</pre>
<p><strong>Compress .avi to SVCD mpeg2</strong></p>
<p>NTSC format:</p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.avi -target ntsc-svcd video_finale.mpg
</pre>
<p>PAL format:</p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.avi -target pal-svcd video_finale.mpg
</pre>
<p><strong>Compress .avi to VCD mpeg2</strong></p>
<p>NTSC format:</p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.avi -target ntsc-vcd video_finale.mpg
</pre>
<p>PAL format:</p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i video_origine.avi -target pal-vcd video_finale.mpg
</pre>
<p><strong>Multi-pass encoding with ffmpeg</strong></p>
<pre class="brush: bash; title: ; notranslate">
ffmpeg -i fichierentree -pass 2 -passlogfile ffmpeg2pass fichiersortie-2
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ruisz.com/coding/62/ffmpeg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JW Player for Flash and HTML5</title>
		<link>http://www.ruisz.com/coding/60/jw-player-for-flash-and-html5/</link>
		<comments>http://www.ruisz.com/coding/60/jw-player-for-flash-and-html5/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 10:16:06 +0000</pubDate>
		<dc:creator>J. Ruisz</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.ruisz.com/?p=60</guid>
		<description><![CDATA[Flash &#38; HTML5. Together. Why choose? Do both. There has been a great deal of debate about Flash versus HTML5. We think it&#8217;s pointless. The revolutionary aspect of the JW Player is that Flash and HTML5 work together as part &#8230; <a href="http://www.ruisz.com/coding/60/jw-player-for-flash-and-html5/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Flash &amp; HTML5. Together.<br />
Why choose? Do both.</p>
<p>There has been a great deal of debate about Flash versus HTML5. We think it&#8217;s pointless. The revolutionary aspect of the JW Player is that Flash and HTML5 work together as part of a single player. Skins, JavaScript, and soon a library of plugins are supported regardless of which rendering mode you choose.</p>
<p>Want Flash for a uniform desktop experience but need to support the iPad? No problem. Standards junkie and only want HTML5? That&#8217;s cool too. Either way. One player does it all.</p>
<p>Why Choose the JW Player?<br />
Because you just need it to work.</p>
<p>There are host of niche video players on the Internet today. HTML5 has enabled people to create simple JavaScript players with ease. But video is hard. In fact, HTML5 makes it even harder. It&#8217;s not enough to have a player, but you need a player that works in every browser and on every device, old and new.</p>
<p>The JW Player has evolved through the history of online video since the time Jeroen wrote the first version in 2005. The experience we have developed over those years are built into the JW Player. This is evident in our support for all the major CDNs, YouTube, Adobe&#8217;s Flash Media Server, Wowza, RTMP streaming, HTTP streaming, major advertising networks, analytics providers, and more. We have worked with these companies for years. By choosing the JW Player you can rest easy that we will offer the same support for HTML5, as we have for Flash, as the market continues to evolve.</p>
<p><a title="www.longtailvideo.com/players" href="http://www.longtailvideo.com/players" target="_blank">more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruisz.com/coding/60/jw-player-for-flash-and-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Meld and Curlftpfs</title>
		<link>http://www.ruisz.com/linux/50/meld-and-curlftpfs/</link>
		<comments>http://www.ruisz.com/linux/50/meld-and-curlftpfs/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 23:28:10 +0000</pubDate>
		<dc:creator>J. Ruisz</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.ruisz.com/?p=50</guid>
		<description><![CDATA[If you have to compare many files or whole directories on your local inhouse development webserver with those on the webserver hosted by your provider, you can do this with Meld and curlFTPS. Meld Meld is a visual diff and &#8230; <a href="http://www.ruisz.com/linux/50/meld-and-curlftpfs/">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you have to compare many files or whole directories on your local inhouse development webserver with those on the webserver hosted by your provider, you can do this with Meld and curlFTPS.</p>
<p><strong>Meld</strong></p>
<p>Meld is a visual diff and merge tool. You can compare two or three files and edit them in place (diffs update dynamically). You can compare two or three folders and launch file comparisons. You can browse and view a working copy from popular version control systems such such as CVS, Subversion, Bazaar-ng and Mercurial. Look at the screenshots page for more detailed features.</p>
<p>more : <a title="http://meld.sourceforge.net/" href="http://meld.sourceforge.net/" target="_blank">http://meld.sourceforge.net/</a></p>
<p>CurlFtpFS lets you mount a directory on your filesystem to an external FTP server. You have then access to the remote files with Meld.</p>
<p><strong>CurlFtpFS</strong> &#8211; A FTP filesystem based on cURL and FUSE</p>
<p>Description</p>
<p>CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE and libcurl.</p>
<p>Features</p>
<p>SSLv3 and TLSv1 support<br />
connecting through tunneling HTTP proxies<br />
automatically reconnection if the server times out<br />
transform absolute symlinks to point back into the ftp file system</p>
<p>more: <a title="http://curlftpfs.sourceforge.net/" href="http://curlftpfs.sourceforge.net/" target="_blank">http://curlftpfs.sourceforge.net/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruisz.com/linux/50/meld-and-curlftpfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

