Sensoray 911 Quick Start User Manual
Page 5

$ gst-launch-0.10 alsasrc device=hw:2,0 ! wavenc ! \
filesink location=./audio-ch2.wav
( capturing raw audio, from audio Channel-2,
and saving the data into a .wav file )
$ gst-launch-0.10 alsasrc device=hw:3,0 ! audioconvert ! \
vorbisenc ! oggmux ! filesink location=./audio-ch3.ogg
( capturing audio, from audio Channel-3, encoding with
vorbis and saving the data into an .ogg file )
$ gst-launch-0.10 alsasrc device=hw:4,0 ! audio/x-raw-int,rate=\
32000,channels=2,depth=16 ! audioconvert! avimux ! \
filesink location=./audio-ch4.avi
( capturing raw audio, from audio Channel-4, using avi
muxer and saving the audio data into an .avi file )
13) A/V capturing/recording using “
GStreamer
”, with Fedora Core 12 Linux
distro:
$ gst-launch-0.10 –v v4l2src device=/dev/video0 ! queue ! \
ffmpegcolorspace ! videoscale ! video/x-raw-yuv,\
width=640,height=480 ! queue ! mux. \
alsasrc device=hw:1,0 ! audio/x-raw-int,rate=32000,\
channels=2,depth=16 ! queue ! audioconvert ! mux. \
avimux name=mux ! filesink location=./avtest-ch1.avi
( capturing raw video+audio, from Channel-1,
and saving the A/V data into an .avi file )
$ gst-launch-0.10 avimux name=mux ! filesink location=avcapCh2.avi \
v4l2src device=/dev/video1 ! video/x-raw-yuv,width=320,
height=240,framerate=\(fraction\)30000/1001 ! \
ffenc_mpeg4 ! queue ! mux. alsasrc device=hw:2,0 ! \
audio/x-raw-int,rate=32000,channels=2,depth=16 !
audioconvert ! lame ! mux.
( capturing video+audio, from Channel-2, compressing
the A/V in MPEG4+MP3, and saving the compressed data
into an .avi file )
14) In addition to the 3
rd
-party OSS tools/utilities introduced above,
Sensoray provides a “Linux-811-1.0.zip” package to the Model 810/811/911
Linux customers, to help the customers get quick-started and/or follow
the supplied demo/sample programs to develop their own program(s) for
their particular applications.
15) In the package, you will find following files:
sx1xCapV4L2.c A demo application program to demonstrate capturing
raw frames from one channel on the Sensoray Model
810/811/911, using saa7134 driver and v4l2 API
avcapture.c A demo application program to demonstrate capturing
both Video+Audio from a channel on the Model 810/
811/911, and save the raw A/V data into an .avi file