[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Command Line and Video Capture/Tuner Cards

Martin McCormick wrote:

	In Linux, is it possible to use the command line to
command one of those video capture/tuner cards to begin recording
to a file?

	I was discussing the virtues of Linux with a friend and
said that if these cards can at least be commanded to start and
stop recording via the command line, all the power of at and cron
are available.  It would also be easier to remotely control a
system if the CLI works kind of like the sound commands of aplay
and arecord commands do.

Thanks for any replies.

Martin McCormick WB5AGZ Stillwater, OK Systems Engineer
OSU Information Technology Department Network Operations Group

Hi martin,
I do this often with my pixelview. I have some scripts with the commands below, maybe they can help you. Its easy, actually.

(this is all one line command)
mencoder -oac lavc -lavcopts acodec=mp3 -ovc lavc -lavcopts vbitrate=1800 -ffourcc divx -tv driver=v4l2:norm=pal-m:input=1:adevice=/dev/dsp:width=640:height=480 -vf pp=lb -o /backup/filme-`date +%H:%M-%d-%m-%Y`.avi tv://

the ffourcc thing is supposed to improve win compatibility.

streamer can also be used, as already said.
streamer -t 00:05:00  -s 640x480 -r 24 -o ~file.avi -f mjpeg -F stereo

Search google for other examples with mencoder. Its a great software.

Reply to: