This tool generates an XSPF playlist that preserves directory structure for VLC from one or more root directories. Only mp4 and mkv files are included in the playlist.
Usage:
vlc-playlist-generator --root /path/to/root1 --root /path/to/root2 --skip /path/to/root1/exclude -o /path/to/playlist.xspf