Page 1 of 1

shutdown at 1 minut??

Posted: 10 Oct 2006 18:42
by patxisolutions
Hello!

It's possible quit VLC when pass 1 minut that is on (it's grabbing only a moment)....???

I'm working in Ubuntu Desktop 6.06... with this script:

#!/bin/sh
# VLC Daemon

TODAY=$( date +%Y%m%d )
NOW=$( date +%H-%M )

rmmod bt878
rmmod bttv
modprobe bttv card=100 tuner=38

vlc -vvv -I http v4l:/dev/video0:adev=/dev/dsp:norm=0:frequency=-1:caching=300:chroma="":fps=-1.000000:samplerate=44100:channel=1:tuner=-1:audio=-1:stereo:width=0:height=0:brightness=-1:colour=-1:hue=-1:contrast=-1:no-mjpeg:decimation=1:quality=1 --sout '#transcode{vcodec=mp4v,vb=1024,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst="/home/karles/videos/out-${TODAY}-${NOW}.mpg}}' --ttl 12

exit 0

But another problem is the name of file. I think that with TODAY and NOW but isn't the form of variables with this.....
Please, can you help me??

Thanks...
dear

an example...

Posted: 10 Oct 2006 18:56
by patxisolutions
an example, but with ffmpeg..... is -t 60 and grabb only 1 minut (60 segs)... but with VLC????

Thanks!! bye