REL 1.0
Page 66 of 69
iWave Systems Technologies Pvt. Ltd.
iW-RainboW-G15D Linux User Manual
5.10.3
Gstreamer Test
The given BSP supports the Gstreamer framework. This section explains how to play a multimedia file using
Gstreamer framework in the iW-RainboW-G15M platform.
To play a video/audio file using gplay, execute the below command.
root@iWave-G15~$gplay-1.0 /<path to file>/<file_name>
Example
root@iWave-G15~$gplay-1.0 /iwtest/tfr.mp4
To list the available plug-ins, execute the below command.
root@iWave-G15~$gst-inspect-1.0
To play a video file using a particular audio and video device, execute the below command.
root@iWave-G15~$gst-launch-1.0
playbin
uri=file:////<video
file>
audio-sink="alsasink
device=plughw:<card>,<subdevice>" video-sink="imxv4l2sink device=/dev/<video device>"
Example
root@iWave-G15~$gst-launch-1.0
playbin
uri=file:////iwtest/tfr.mp4
audio-sink="alsasink
device=plughw:1,0" video-sink="imxv4l2sink device=/dev/video19"
To play an audio file using a
particular
audio device, execute the below command.
root@iWave-G15~$gst-launch-1.0
playbin
uri=file:////<audio
file>
audio-sink="alsasink
device=plughw:<card>,<subdevice>"
Example
root@iWave-G15~$gst-launch-1.0
playbin
uri=file:////unit_tests/audio8k16S.wav
audio-
sink="alsasink device=plughw:1,0"
Note: In gplay, the video/audio files will be played on the default display/audio device only. After playing video,
image may not dump properly since Gstreamer changes display bpp value.