shutdown at 1 minut??

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
patxisolutions
New Cone
New Cone
Posts: 2
Joined: 10 Oct 2006 18:22

shutdown at 1 minut??

Postby patxisolutions » 10 Oct 2006 18:42

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

patxisolutions
New Cone
New Cone
Posts: 2
Joined: 10 Oct 2006 18:22

an example...

Postby patxisolutions » 10 Oct 2006 18:56

an example, but with ffmpeg..... is -t 60 and grabb only 1 minut (60 segs)... but with VLC????

Thanks!! bye


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 50 guests