Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 3 down vote accepted

Try

--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
1  
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.