Dies ist eine alte Version des Dokuments!
Zielpfad: /srv/www/htdocs/bgweiz.at/cms/images/stories/videos/
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>
ffserver &
killall ffserver
<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>
mplayer http://193.170.221.1:31337/stream.asf
mencoder -o /media/d4e-data/film.avi -ovc lavc -tv noaudio tv: mplayer film.avi *oder mencoder tv: -tv driver=v4l:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -o webcam.avi
mplayer webcam.avi
mplayer -dumpstream mms://orf.at/was/weiss/ich/zib.wmv -dumpfile zib.wmv
.MTS (AVCHD/H.264) conversion?
for f in *.mts;do mencoder "$f" -o "${f%.MTS}.avi" -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000 -fps 50 -vf scale=800:450; done
ffmpeg -i 00007.mts -sameq -f mp4 -vcodec mpeg4 outfile.mp4
mplayer dvd://1 -dumpstream -dumpfile myvideo.vob
mencoder myvideo.vob -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=150 -ofps 25 -oac mp3lame -lameopts abr:br=32 -srate 44100 -vf scale=720 -o outputfile.flv
flv The URL of the FLV video to be played. width Forces the video width. height Forces the video height. autoplay 1 to auto-play autoload 1 to automatically load buffer The number of seconds to buffer. By default set to 5. config The URL of the configuration text file, similar to flv_config.txt configxml The URL of the configuration XML file, similar to flv_config.xml title The title shown before loading the video margin The margin of the video with respect to the Flash object. (useful for skins). srt 1 to use SRT subtitles (the file must be at the same place as the video and have the same name, with .srt extension) showstop 1 to show the STOP button. showvolume 1 to show the VOLUME button. showtime 1 to show the TIME button loop 1 to loop. startimage The URL of the JPEG file (not progressive) to be shown before loading the video skin The URL of the JPEG file (not progressive) to load playercolor The background color of the player bar (not the flash) loadingcolor The color of loading bar bgcolor The background color bgcolor1 The first color of the background gradient bgcolor2 The second color of the background gradient buttoncolor The color of the buttons buttonovercolor Hover color of buttons slidercolor1 The first color of the bar gradient slidercolor2 The second color of the bar gradient sliderovercolor Hover color of the bar loadonstop 0 to stop the video loading by cliking on STOP button phpstream 1 to use php stream
ffmpeg -i input.mov -ar 22050 -ab 56 -aspect 4:3 -b 200 -r 12 -f flv -s 320x240 -acodec mp3 -ac 1 output.flv
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>FILM</title> </head> <body> <center> <object class="playerpreview" type="application/x-shockwave-flash" data="player.swf" width="320" height="240"> <param name="movie" value="player.swf" /> <param name="allowFullScreen" value="true" /> <param name="FlashVars" value="flv=mikrowelle.flv&title=Zum Start Play drücken&width=320&height=240&showstop=1&showvolume=1&showtime=1&showfullscreen=1&bgcolor1=189ca8&bgcolor2=085c68&playercolor=085c68" /> <p>Bitte Flash installieren</p> </object> </center> </body> </html>