How do I encode or convert only a few minutes of a divx or mpeg1 file in ffmpegx?

I want to tinker with the quality settings before processing an entire 1 hour vid file.

The avi splitter in ffmpeg doesn't work for me. Just generates errors.