3.1.6
LVDS/HDMI/VGA Test
3.1.6.1
Testing through gplay (for default single display)
Step 1: #gplay /tools/Advantech.avi
Step 2: Then you can see the video demo on the default display screen.
3.1.6.2
Testing through gst-launch (for multi-display)
If you'd like to have multiple displays such as dual LVDS, VGA and HDMI output , you
should set parameter in uboot first. Please refer to section 3.7.5.3 for more detail.
Once the display method is set up, please follow the below instructions to run gst-
launch to play video.
Step1: Turn ON the HDMI display, please type as below
#gst‐launch
sink="mfw_v4lsink device=/dev/video16"&
Step2: Turn ON VGA display at the same time, please type..
#gst‐launch
sink="mfw_v4lsink device=/dev/video18"&
You can see independent displays both show Advantech.avi at the same time.
If you'd like to set the output audio as HDMI out or speaker out, please add the
parameter of plughw:
A. Plughw:0 Output the audio through audio jack (AUDIO1)
#gst‐launch
sink="mfw_v4lsink
device=plughw:0"
B. Plughw:1 Output the audio through HDMI.
#gst‐launch
sink="mfw_v4lsink
device=plughw:1"
playbin2
uri=file:///tools/Advantech.avi
playbin2
uri=file:///tools/Advantech.avi
playbin2
uri=file:///tools/Advantech.avi
device=/dev/video17"
playbin2
uri=file:///tools/Advantech.avi
device=/dev/video17"
13
video‐
video‐
video‐
audio‐sink="alsasink
video‐
audio‐sink="alsasink
ROM-3420 User Manual