Sensoray 911 Quick Start User Manual
Page 6

“Sensoray Model 810&811&911 Quick-Start Instruction -- Linux.pdf”
This instruction manual .pdf file
16) Compile sample program, “sx1xCapV4L2”, using:
gcc –o s811cap sx1xCapV4L2.c
17) Run demo: “s811cap”
In the demo program s811cap (sx1xCapV4L2), the default capturing channel
is set to the Channel-1, with opening device “/dev/video0”.
If user would like to capture from different channel, simply,
# ./s811cap –d /dev/video0
(for Channel-1)
# ./s811cap –d /dev/video1
(for Channel-2)
# ./s811cap –d /dev/video2
(for Channel-3)
# ./s811cap –d /dev/video3
(for Channel-4)
# ./s811cap –d /dev/video4
(for Chan-1 of 2
nd
810/811/911 board)
# ./s811cap –d /dev/video5
(for Chan-2 of 2
nd
810/811/911 board)
# ./s811cap –d /dev/video6
(for Chan-3 of 2
nd
810/811/911 board)
# ./s811cap –d /dev/video7
(for Chan-4 of 2
nd
810/811/911 board)
18) Any one of the following image viewing/processing utilities like GNOME
image viewer, Kuickshow, imageMagick, GIMP, etc., can be used to
display/process the captured image saved into the output files.
19) Compile sample program, “avcapture”, using:
Ubuntu:
su -c "apt-get install libavformat-dev libasound2-dev" (one time)
make avcapture LDLIBS="-lavformat -lavcodec -lavutil -lasound"
RedHat/Fedora:
su -c "yum install ffmpeg-devel" (one time)
make avcapture LDLIBS="-lavformat -lavcodec -lavutil -lasound \
-lpthread" CFLAGS="-I/usr/include/ffmpeg"
20) Run demo: “avcapture”
Usage: ./avcapture
video_device V4L2 device, ex: /dev/video0 for Channel-1,
/dev/video1 for Channel-2, ......, and
/dev/video3 for Channel-4, etc.
output_file filename, ex: output.avi
duration duration in seconds, or with a time suffix;
ex: 30s 60m 2h ( default=3600s )
clip_length optional clip_length in seconds ( default=600s )
or with a time suffix; ex: 20s 10m 1h
( <30m is suggested, to insure good A/V sync for
all A/V clips )
21) The captured .avi A/V clips can be played back with the Movie Player,