Archive for the 'tips' Category

Encoding Tip: Windows Compatibility

Saturday, March 22nd, 2008

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/www/ on line 83

The support that Microsoft Windows provides for Video Codecs per default is pathetic, fortunatly ffmpeg can create files that work with Windows out of the Box:

ffmpeg -i input.avi -f asf -vcodec wmv2 -b 8000k -acodec wmav2 -ab 192k output.wmv

Those settings should create a file with resonable quality that should play back under any recent Windows machine.

If you want to convert DV video created from a standard camcorder, you can use the following command line, which also deinterlaces and scales the image to compensate for the slightly non-square pixels of DV. (This example works for PAL, NTSC has a slightly different resolution)

ffmpeg -i input.avi -deinterlace -f asf -vcodec wmv2 -b 8000k -acodec wmav2 -ab 192k -cropleft 10 -cropright 10 -s 768x576 output.wmv