Source Recorder Crashes Gmod

Once I try to capture a video using the “startmovie moviename avi” command, it crashes gmod right as its about to start the demo.