<?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>Burntimes blog &#187; Howto</title>
	<atom:link href="http://www.burntimeblog.de/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.burntimeblog.de</link>
	<description>I build stuff for the Internet</description>
	<lastBuildDate>Wed, 25 Jan 2012 08:00:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Syntaxhervorhebung für vim unter Mac</title>
		<link>http://www.burntimeblog.de/2010/02/18/syntax-highlighting-vim-mac/</link>
		<comments>http://www.burntimeblog.de/2010/02/18/syntax-highlighting-vim-mac/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 09:13:06 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.burntimeblog.de/?p=840</guid>
		<description><![CDATA[     <link rel="alternate" type="application/atom+xml" title="Burntimes blog Category: Howto" href="http://www.burntimeblog.de/category/howto/feed/" />
     <link rel="alternate" type="application/atom+xml" title="Burntimes blog Category: Mac" href="http://www.burntimeblog.de/category/apple/mac/feed/" />
Im Terminal eingeben: 1 2 cd /usr/share/vim sudo vim vimrc In den Insertion-Modus wechseln (&#8220;i&#8220;), und hinter &#8220;set backspace=2&#8221; folgendes einfügen: 1 syntax on &#34; syntax highlighting Jetzt ist die Syntaxhervorhebung automatisch immer angeschaltet.]]></description>
			<content:encoded><![CDATA[<p>Im Terminal eingeben:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">vim</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> vimrc</pre></td></tr></table></div>

<p>In den Insertion-Modus wechseln (&#8220;<strong>i</strong>&#8220;), und hinter &#8220;<strong>set backspace=2</strong>&#8221; folgendes einfügen:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">syntax on        <span style="color: #ff0000;">&quot; syntax highlighting</span></pre></td></tr></table></div>

<p>Jetzt ist die Syntaxhervorhebung automatisch immer angeschaltet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burntimeblog.de/2010/02/18/syntax-highlighting-vim-mac/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash Livestream mit FFmpeg und FFserver</title>
		<link>http://www.burntimeblog.de/2009/04/22/flash-livestream-mit-ffmpeg-und-ffserver/</link>
		<comments>http://www.burntimeblog.de/2009/04/22/flash-livestream-mit-ffmpeg-und-ffserver/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 15:32:27 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[FFmpeg]]></category>
		<category><![CDATA[FFserver]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[Livestream]]></category>
		<category><![CDATA[Logitech]]></category>
		<category><![CDATA[QuickCam]]></category>
		<category><![CDATA[Stream]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Webcam]]></category>

		<guid isPermaLink="false">http://www.burntimeblog.de/?p=692</guid>
		<description><![CDATA[In diesen Beitrag wird erklärt wie man mit einer Webcam und der Software FFmpeg &#38; FFserver einen Audio und Video Livestream erstellt. Ich habe dafür benutzt: 1x Logitech QuickCam für Notebooks 1x Ubuntu Netbook (Ubuntu 8.04 Hard Heron) 1x Ubuntu Server (Ubuntu 8.04 Hard Heron) Für den Heimgebrauch kann der Stream auch vom selben Rechner [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-full wp-image-700" title="ffserver.config" src="http://www.burntimeblog.de/wp-content/uploads/2009/04/ffserver1.png" alt="ffserver1" width="500" height="180" /></p>
<p>In diesen Beitrag wird erklärt wie man mit einer Webcam und der Software FFmpeg &amp; FFserver einen Audio und Video Livestream erstellt.</p>
<p>Ich habe dafür benutzt:</p>
<p>1x Logitech QuickCam für Notebooks<br />
1x Ubuntu Netbook (Ubuntu 8.04 Hard Heron)<br />
1x Ubuntu Server (Ubuntu 8.04 Hard Heron)</p>
<p>Für den Heimgebrauch kann der Stream auch vom selben Rechner aufgezeichnet und gesendet werden.<br />
<span id="more-692"></span><br />
Installation:</p>
<p>1)  Als erstes installieren wir auf beiden Rechnern das FFmpeg packet.</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> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span></pre></div></div>

<p>2) Falls noch nicht vorhanden brauch der Rechner welcher den Stream aufzeichnen soll den LAME Encoder</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> <span style="color: #c20cb9; font-weight: bold;">lame</span></pre></div></div>

<p>3) Configuration vom FFserver.</p>
<p>Jetzt müssen auf den Rechner welcher den Stream ins Internet Senden soll die Konfigurationsdatei bearbeiten.</p>
<p>Bevor wir die Konfiguration bearbeiten machen wir ein Backup:</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;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ffserver.conf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ffserver.conf_backup</pre></div></div>

<p>Bei einen Rechner mit grafischer Oberfläche bearbeiten wir die Datei mit:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ffserver.conf</pre></div></div>

<p>Bei einem Rechner welcher nur über Terminal bedient wird mit:</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;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ffserver.conf</pre></div></div>

<p>Jetzt können wir den gesamten Inhalt der Konfigurationsdatei löschen und durch das ersetzen:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">Port <span style="color: #000000;">8090</span>
<span style="color: #666666; font-style: italic;"># bind to all IPs aliased or not</span>
BindAddress 0.0.0.0
<span style="color: #666666; font-style: italic;"># max number of simultaneous clients</span>
MaxClients <span style="color: #000000;">1000</span>
<span style="color: #666666; font-style: italic;"># max bandwidth per-client (kb/s)</span>
MaxBandwidth <span style="color: #000000;">10000</span>
<span style="color: #666666; font-style: italic;"># Suppress that if you want to launch ffserver as a daemon.</span>
NoDaemon
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>feed feed1.ffm<span style="color: #000000; font-weight: bold;">&gt;</span>
File <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>feed1.ffm
FileMaxSize 5M
<span style="color: #000000; font-weight: bold;">&lt;/</span>feed<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>stream test.swf<span style="color: #000000; font-weight: bold;">&gt;</span>
Feed feed1.ffm
Format swf
VideoCodec flv
VideoFrameRate <span style="color: #000000;">2</span>
VideoBufferSize <span style="color: #000000;">80000</span>
VideoBitRate <span style="color: #000000;">100</span>
VideoQMin <span style="color: #000000;">1</span>
VideoQMax <span style="color: #000000;">5</span>
VideoSize 352x288
PreRoll <span style="color: #000000;">0</span>
<span style="color: #666666; font-style: italic;">#Noaudio</span>
AudioCodec mp3
AudioBitRate <span style="color: #000000;">32</span>
AudioChannels <span style="color: #000000;">1</span>
AudioSampleRate <span style="color: #000000;">44100</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>stream<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>Jetzt nur noch speichern und den Server starten</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ffserver</pre></div></div>

<p>4) Mit FFmpeg den Stream an den Streamingserver senden.</p>
<blockquote><p>ffmpeg -s 352&#215;288 -f video4linux -i <strong>/dev/video1</strong> -f audio_device -i /<br />
<strong>dev/dsp1</strong> http://<strong>&lt;ip vom server&gt;</strong>:8090/feed1.ffm</p></blockquote>
<p>hierbei ist /dev/video1 die Webcam. Bei Rechnern ohne eingebaute Webcam wird das wahrscheinlich /dev/video0 sein.</p>
<p>/dev/dsp1 ist in meinen fall das Mikrofon der Webcam.</p>
<p>Jetzt nur noch die IP vom Streamserver eintragen und schon sollte das ganze laufen.</p>
<p>Den Stream erreicht man jetzt unter: <strong>http://&lt;ip vom server&gt;:8090/test.swf</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.burntimeblog.de/2009/04/22/flash-livestream-mit-ffmpeg-und-ffserver/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

