The current recording will always be stopped when the map ends.
That's actually not true. It happens on match servers because of the autorecord, but you can record past map changes with a normal record.As for converting demos to avi, you'd probably be best off using some sort of recording software like fraps.