Sensoray 911 Quick Start User Manual
Page 4

filesink location=./video-ch2.mjpeg
( capturing video from Channel-2, compressing in mjpeg,
and saving the video into a .mjpeg file;
Note: Playbackable with
MPlayer
directly.
Or, with
VLC
, after converting using
FFMPEG
command “ffmpeg –i ./video-ch2.mjpeg –sameq
./video-ch2.avi” )
$ gst-launch-0.10 v4l2src device=/dev/video2 ! ffmpegcolorspace ! \
video/x-raw-yuv,width=640,height=480 ! clockoverlay \
halign=left valign=top text=”2011-12-08:” \
shaded-background=true ! theoraenc quality=32 ! \
oggmux ! filesink location=./video-ch3.ogg
( capturing video from Channel-3, with clockoverlay,
compressing with
Theora
encoder, and saving
the video into an .ogg file )
$ gst-launch-0.10 v4l2src device=/dev/video3 ! ffmpegcolorspace ! \
video/x-raw-yuv,width=640,height=480 ! clockoverlay \
halign=left valign=top text=”2011-12-08:” ! y4menc ! \
filesink location=./video-ch4.yuv
( capturing video from Channel-4, with clockoverlay,
and saving the video in y4m format to an .yuv file )
Note: Playbackable with
MPlayer
directly.
Or, with
VLC
, after converting using
FFMPEG
command “ffmpeg –i ./video-ch4.yuv –sameq
./video-ch4.avi” )
11) Audio capturing/recording using “
arecord
” and “
aplay
” applications:
$ arecord -D hw:1,0 | aplay
(pre-listening, from audio channel-1)
$ arecord -D hw:2,0 | aplay
(pre-listening, from audio channel-2)
$ arecord -D hw:3,0 | aplay
(pre-listening, from audio channel-3)
$ arecord -D hw:4,0 | aplay
(pre-listening, from audio channel-4)
$ arecord -d 30 -f cd -t wav -r 32000 -D hw:1,0 audio-raw-ch1.wav
(capturing and recording raw audio from audio channel-1,
and saving the data into a .wav file; duration = 30sec )
$ arecord -d 300 -f cd -t wav -r 32000 -D hw:2,0 audio-raw-ch2.wav
(capturing and recording raw audio from audio channel-2,
and saving the data into a .wav file; duration = 5min )
$ arecord -d 1800 -f cd -t wav -r 32000 -D hw:3,0 audio-raw-ch3.wav
(capturing and recording raw audio from audio channel-3,
and saving the data into a .wav file; duration = 30min )
$ arecord -d 3600 -f cd -t wav -r 32000 -D hw:4,0 audio-raw-ch4.wav
(capturing and recording raw audio from audio channel-4,
and saving the data into a .wav file; duration = 1 hour )
12) Audio capturing/recording using “
GStreamer
”, with Ubnutu/Mint/Fedora
Linux distro:
$ gst-launch-0.10 alsasrc device=hw:1,0 ! autoaudiosink
or
$ gst-launch-0.10 alsasrc device=hw:1,0 ! audio/x-raw-int,rate=\
32000,channels=2,depth=16 ! audioconvert! autoaudiosink
( pre-listening, from audio Channel-1 )