[vlc] Re: limiting vlc streaming duration

Marcel J.E. Mol marcel at mesa.nl
Fri Feb 11 10:21:20 CET 2005


On Fri, Feb 11, 2005 at 08:38:05AM +0100, Philippe Van Hecke wrote:
> On Thursday 10 February 2005 22:51, Marcel J.E. Mol wrote:
> > Hi,
> >
> > Streaming using vlc in my home linux network works fine. The thing I like
> > to do is limit the duration of a stream, e.g. play a stream for 20
> > minutes and the quit. I searched the web and the docs but can't seem to
> > find an (command line) option for it.
> >
> > Is this at all possible or do I have to kill vlc from some background
> > process...?
> >
> > Thanks
> >
> > -Marcel
> You can try using the command line  --stop-time argument 
> see vlc -H --advanced to know all param.

Thanks for the reply Philippe. Unfortunately it does not seem to work.
Here is an exampe I use to record a tv program:

   vlc v4l:/dev/video0:norm=pal:channel=0:size=352x288:audio=/dev/dsp --sout '#transcode{vcodec=mpgv,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=file,mux=ts,url=/data/tv.ts}}'

The vlc window pops up and it goes on recording until I kill vlc.
(is there a way to not get the popup window?)

When I add '--stop-time 100' to the command line, the vlc window popups again
but it immediately stops recording. When I quit vlc I see that the tv.ts file 
is 0 bytes long...

-Marcel
-- 
     ======--------         Marcel J.E. Mol                MESA Consulting B.V.
    =======---------        ph. +31-(0)6-54724868          P.O. Box 112
    =======---------        marcel at mesa.nl                 2630 AC  Nootdorp
__==== www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
 They couldn't think of a number,           Linux user 1148  --  counter.li.org
    so they gave me a name!  -- Rupert Hine  --  www.ruperthine.com

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list