Recording a YouTube live stream using VLC
For livestreams I would recommend using livestreamer instead of VLC. Recording with livestreamer
is a breeze, e.g.:
livestreamer <livestream-url> best -o vod.mp4
livestreamer supports dozens of different streaming providers and works very reliably, even with spotty streams.
For installation instructions check out this answer by @henry.