[[PageOutline]] = How do I add video to my Website? = Thanks to Anna at [http://engagemedia.org Engage Media] for help in figuring this out. == Resources == Useful sites: * [http://en.linuxreviews.org/HOWTO_Convert_video_files How to convert video files] * [http://www.engagemedia.org/help/tutorial-encoding-on-a-mac An encoding example for Mac] * [http://transmission.cc/ Transmission, network of social justice online video makers] * [http://flossmanuals.net/ Flossmanuals - resource for documentation] == Concepts == Below are the conceptual steps to take when publishing video on the Internet. * Export in your video editing software's native format * Convert your file to a format that will make a file small enough to upload to your web site (for example, the xvid format). Linux users, you can use [http://ffmpeg.mplayerhq.hu/download.html ffmpeg]; Linux, Mac, or Windows users can download [http://www.mplayerhq.hu/design7/dload.html mplayer] and use the mencoder tool it provides. See [http://www.engagemedia.org/help/how-to-compress-video Engage Media tutorial] for details on the settings. * At this point, ideally your web site would be configured to accept xvid files and convert them on the fly to a flash format. However, you can also manually do that using Mplayer, which can convert your xvid file to an ogg file or an flv (flash) file or to another format suitable for displaying in a web browser. * Your web site should include a flash player ([http://flowplayer.org/ Flow Player] is a free software option). == Real working examples == === Linux === Here's an example of using mencode on an m4v file: {{{ mencoder -oac mp3lame -lameopts abr:br=92 -ovc xvid -xvidencopts bitrate=150 video-file.m4v -o video-file.avi }}} Given the complexity of mplayer/mencoder (it does a lot of things), I found ffmpeg to be much simpler to use. Here's an example of converting a file created by the [http://www.theflip.com/ flip video camcorder] into a playable flash file. The flip video camcorder uses a wide aspect ratio (1280 x 720) - with the -s 640x360 option I'm preserving the aspect ratio, but cutting it in half to make it smaller. In addition, the flip video camcorder by default has a high bit rate of 10,455 kb per second. I'm reducing the bit rate to 1,500 kbits (with -b 1500k) after experimenting with the best quality to size ratio. {{{ ffmpeg -i in.mp4 -s 640x360 -b 1500k out.flv }}} I was not able to get ffmpeg to produce a patents-free theora ogg file, so instead I used [http://v2v.cc/~j/ffmpeg2theora/ ffmpeg2theora], which sadly has completely different arguments. The following produced a patent free video file: {{{ ffmpeg2theora --width 640 --height 360 -V 1500k -o out.ogg in.mp4 }}} === Macintosh === Please contribute! === Windows === Please contribute!