Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
streaming-server [2011/06/09 13:10] admin |
streaming-server [2011/06/09 13:12] (aktuell) admin |
||
---|---|---|---|
Zeile 96: | Zeile 96: | ||
---- | ---- | ||
- | =====Videostreaming===== | + | |
+ | ==== Streaming-Server (alt) ==== | ||
+ | |||
+ | *Aktuelle ffmpeg Version von Packman: ffmpeg-0.5.21000svn-0.pm.1.5.i586 | ||
+ | |||
+ | */etc/ffserver.conf | ||
+ | <file> | ||
+ | Port 31337 | ||
+ | BindAddress 0.0.0.0 | ||
+ | MaxClients 1000 | ||
+ | MaxBandwidth 100000 | ||
+ | # Comment the following, on production use | ||
+ | NoDaemon | ||
+ | |||
+ | <Feed feed1.ffm> | ||
+ | File /tmp/feed1.ffm | ||
+ | FileMaxSize 100M | ||
+ | #Launch ffmpeg -y -v 9 -f video4linux2 -vc 2 -tvstd PAL -s 480x384 -b 512000 -r 10 -an -i /dev/video0 | ||
+ | Launch ffmpeg -y -v 9 -f video4linux2 -vc 2 -tvstd PAL -s 480x384 -b 256000 -r 15 -an -i /dev/video0 | ||
+ | #Launch ffmpeg -r 10 -s 320x240 -f video4linux2 -i /dev/video0 -vcodec flv http://localhost:31337/feed1.ffm | ||
+ | </Feed> | ||
+ | |||
+ | #<Stream stream.flv> | ||
+ | # Feed feed1.ffm | ||
+ | # Format flv | ||
+ | # VideoCodec flv | ||
+ | # VideoFrameRate 2 | ||
+ | # VideoBufferSize 80000 | ||
+ | # VideoBitRate 256 | ||
+ | # VideoQMin 1 | ||
+ | # VideoQMax 5 | ||
+ | # VideoSize 480x384 | ||
+ | # PreRoll 0 | ||
+ | # Noaudio | ||
+ | #</Stream> | ||
+ | |||
+ | ## SWF output | ||
+ | #<Stream stream.swf> | ||
+ | # Feed feed1.ffm | ||
+ | # Format swf | ||
+ | # VideoCodec flv | ||
+ | # VideoFrameRate 15 | ||
+ | # VideoBitRate 200 | ||
+ | # VideoQMin 5 | ||
+ | # VideoQMin 5 | ||
+ | # VideoSize 320x240 | ||
+ | # PreRoll 0 | ||
+ | # Noaudio | ||
+ | #</Stream> | ||
+ | |||
+ | # ASF compatible | ||
+ | <Stream stream.asf> | ||
+ | Feed feed1.ffm | ||
+ | Format asf | ||
+ | VideoFrameRate 15 | ||
+ | VideoSize 352x240 | ||
+ | VideoBitRate 256 | ||
+ | VideoBufferSize 40 | ||
+ | VideoGopSize 30 | ||
+ | AudioBitRate 64 | ||
+ | StartSendOnKey | ||
+ | Noaudio | ||
+ | </Stream> | ||
+ | |||
+ | |||
+ | # SWF output | ||
+ | <Stream stream.swf> | ||
+ | Feed feed1.ffm | ||
+ | Format swf | ||
+ | VideoCodec flv | ||
+ | VideoFrameRate 15 | ||
+ | VideoBitRate 512 | ||
+ | VideoQMin 5 | ||
+ | VideoQMax 9 | ||
+ | VideoSize 480x384 | ||
+ | PreRoll 0 | ||
+ | Noaudio | ||
+ | </Stream> | ||
+ | |||
+ | </file> | ||
+ | |||
+ | *Zum Starten: | ||
+ | |||
+ | ffserver & | ||
+ | |||
+ | *Zum Stoppen: | ||
+ | |||
+ | killall ffserver | ||
+ | |||
+ | ==== EINSTEIN ==== | ||
+ | |||
+ | */srv/www/htdocs/ball.bgweiz.at/live/index.php | ||
+ | |||
+ | <file> | ||
+ | <html><head> | ||
+ | <title>Live-Streaming</title> | ||
+ | <meta http-equiv="refresh" content="1200" /> | ||
+ | <link rel="stylesheet" href="../style.css" /> | ||
+ | </head> | ||
+ | <body style="background-color: #000000; text-align: center"> | ||
+ | |||
+ | <h1 style="color: #ffffff;">Flash Live Stream</h1> | ||
+ | |||
+ | <p><a href="/">zurück</a></p> | ||
+ | <p><a href="http://193.170.221.1:31337/stream.asf">Windows Media Player Stream</a></p> | ||
+ | <p> | ||
+ | |||
+ | <object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="384" | ||
+ | codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"> | ||
+ | <param name="movie" value="http://193.170.221.1:31337/stream.swf"> | ||
+ | <embed src="http://193.170.221.1:31337/stream.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" width="480" height="384"> | ||
+ | </embed> | ||
+ | </object> | ||
+ | |||
+ | <!-- | ||
+ | <object class="playerpreview" type="application/x-shockwave-flash" data="player.swf" width="480" height="384"> | ||
+ | <param name="movie" value="player.swf" /> | ||
+ | <param name="allowFullScreen" value="true" /> | ||
+ | <param name="FlashVars" value="flv=http://193.170.221.1:31337/stream.flv&width=480&height=384&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor=003d7e&bgcolor1=003d7e&bgcolor2=003d7e&autoplay=1" /> | ||
+ | <p>Bitt Flash installieren.</p> | ||
+ | </object> | ||
+ | --> | ||
+ | |||
+ | </p> | ||
+ | |||
+ | </body></html> | ||
+ | </file> | ||
+ | |||
+ | ===== Client ===== | ||
+ | |||
+ | mplayer http://193.170.221.1:31337/stream.asf | ||
+ | |||
==== Servervoraussetzungen ==== | ==== Servervoraussetzungen ==== | ||