Convert Videos (MP4, MPEG, or MOV) to WEBM
In an effort to make the web and media more efficient, developers and corporations everywhere are investing effort in creating better file formats and delivery streams. One of the more impressive video formats I've seen is the WEBM file format. WEBM files are quite small but the quality is still impressive. If you're ready to support and serve WEBM, here's how you can convert your traditional file format videos to WEBM!
You're going to use ffmpeg, as you could probably guess. Thanks to a tip from the Theme Foundry, here's the shell command magic that will convert your video to WEBM:
ffmpeg -i trailer.mov -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis trailer.webm
A comparison of quality is the same but the comparison in file size is fractional.
Supporting WEBM on Apache Servers
You may need to add support to your Apache server for WEBM since it's a newer format. Here's how I added WEBM support via .htaccess:
AddType video/webm webm
WEBM will be a great format moving forward and I look forward to seeing our legacy formats leave while new formats take over. It's a true sign that the future is mobile!
Fellow DZone Zone Leader Boyan Kostadinov wrote a very useful article detailing how you can add a...
There are numerous websites around the internet, RapidShare for example, that make you wait an allotted amount of time before presenting you with your reward. Using MooTools, I've created a CountDown plugin that allows you to easily implement a similar system.
The CountDown class...