As usual, just brief list of commands.
First of all you have to re-code your video to FLV format. There are number of tools around, but the simplest one is ffmpeg.
To recode we need one simple command:
ffmpeg -i SouthPark-10x08-MakeLoveNotWarcraft.avi -ab 64 -ar 11025 -b 200K -s 320x240 SouthPark.flvWhere:
-ab 64 --- audio bitrate
-ar 11025 -- audio sampling frequency. Could be (44100, 22050, 11025)
-b 200k -- video bitrate
-s -- output video size
As the result we got our SouthPark.flv file.
Update: There are a lot of switches to be used to improve the quality, but the simplest way to do it, is discard -b and use -qscale N. N could be number between 1 and 31. Choosing it from the 5 to 10 is a good choice. Just make some experiments with it.
Now we have to make html page with player to show this file to our friends.
Time to go to the JW Media Player, and download it.
Later we will need only two files from this package:
swfobject.js and mediaplayer.swf
Then we making html page for our movie with following content:
<html>
<body>
<script type="text/javascript" src="swfobject.js"></script>
<p id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get Flash</a> to see this player.</p>
<script type="text/javascript">
var so = new SWFObject('mediaplayer.swf','mpl','320','240','7');
so.addParam("allowfullscreen","true");
so.addVariable("file","SouthPark.flv");
so.addVariable("displayheight","240");
so.addVariable("showstop","true");
so.addVariable("autostart","true");
so.addVariable("allowfullscreen","true");
so.write('player');
</script>
</body>
</html>
</code>
Save it with some good name, like SouthPark.html.
Now we have everything to show our file to others. All what you need is upload 4 files:
SouthPark.html, swfobject.js, mediaplayer.swf and SouthPark.flv
to your website and point your browser to the correct URL.
If you want to check the result, you can follow next link:
FLV Movie Example.
That's all, folks!
Comments
Post new comment