Extended cmdline version to support vdr file input