Encoding Videos
There's not an abundance of tools to encode videos in the Theora format, so here you can read our recommended tools and techniques for encoding videos.
First of all, libtheoraplayer supports multiple codecs, not just Theora, depending on which plugins you use, read more here: Codecs.
ffmpeg2theora
ffmpeg2theora is a command line tool available for all the major OS's and is the recommended way to encode Theora videos. As the name suggests, it uses ffmpeg to read the source files which means it can pretty much read any format. Make sure you encode only from uncompressed sources as described on the Best Practices page. Uncompressed sources are either a series of images or an uncompressed video file (AVI, uncompresed MOV etc).
This tool supports a lot of fancy methods, be sure to read the documentation. The simplest way to encode a video with it is by this command:
ffmpeg2theora uncompressed_source.avi -v 8 -o output.ogv
- -v 8 indicates the level of quality. values between 6 and 8 are usually the best compromise. For mor control use the -V option to specify bitrate
if you have multiple images, use this:
ffmpeg2theora image_%05d.bmp -v 8 -o output.ogv
- the source string is formatted similarly to the way C printf() function works.