Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use VLC media player to record from an USB TV receiver. I would like to schedule when to record, but calling vlc from the command line:

vlc -Idummy dshow:// --sout=#transcode{vcodec=mp2v,audio=mp2a}:standard{access=file,dst=fromtv.mpg}

What I'm missing is a way to limit the time this command will run. I understand dshow:// is an entry on the playlist, and that VLC is working it's way down the playlist, but it will reading from dshow:// because it is an input device.

Is there a way to limit the runtime length of dshow:// on the command line?

share|improve this question
up vote 3 down vote accepted


--run-time=<float>        Run time
    The stream will run till this position (in seconds).

and perhaps set vlc:\\quit as the next command.

share|improve this answer
I'm not sure what the time displayed for a dshow stream is, but it makes --stop-time unusable, --run-time works though, so I accept this answer. Thank you. – Stijn Sanders Aug 27 '11 at 19:07
@Stijn: Aangepast! Veel plezier... :) – Tom Wijsman Aug 27 '11 at 19:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .