I realize this is an old post, but it came up for me a few times in Google so I figured it was worth updating. I tried using: --run-time 20 vlc://quit at the end of my command line, and indeed it would stop recording/writing after 20 seconds, but it would leave VLC open for at least a minute or two ...