Liquidsoap

Crazy powerful yet really hard for me to understand streaming media scripting language.

%ffmpeg

You can give %ffmpeg(%video) scaling and framerate settings. Here's a 640×480 video with a 900kbps bitrate at 29.97fps:

%ffmpeg(
  %video(codec="libtheora",b="900k",width=640,height=480,framerate=29.97)