The following example extracts from second -ss 300(5min) to second -t 600(10min). -i is the input file and -qscale 0 tells it to keep the original quality. And the last parameter, is the output file.
You can also use: -ss 00:20:00 -t 00:05:00 to extract 5 minutes from minute 20.