Template:FriendlyCoreS5Pxx18
From FriendlyELEC WiKi
Revision as of 07:16, 22 December 2017 by Tzs (Talk | contribs) (Created page with "===Run Qt5.9 Demo with GPU acceleration=== Run the following command<br /> <syntaxhighlight lang="bash"> $ sudo qt5demo </syntaxhighlight> File:S5pxx18-qt5.9demo.png|framele...")
Contents
1 Run Qt5.9 Demo with GPU acceleration
Run the following command
$ sudo qt5demo
2 Run Qt5.9 Demo with OpenGL
Run the following command
. setqt5env cd $QTDIR cd /examples/opengl/qopenglwidget ./qopenglwidget
For more Qt5.9 examples, please go to:
cd $QTDIR/examples/
3 Play HD Video with Hardware-decoding
gst-player is console player, it base on GStreamer, support VPU with Hardware-decoding:
sudo gst-player /home/pi/demo.mp4
The equivalent gsteamer command is as follows:
sudo gst-launch-1.0 filesrc location=/home/pi/demo.mp4 ! qtdemux name=demux demux. ! queue ! faad ! audioconvert ! audioresample ! alsasink device="hw:0,DEV=1" demux. ! queue ! h264parse ! nxvideodec ! nxvideosink dst-x=0 dst-y=93 dst-w=1280 dst-h=533
4 Connect to DVP Camera CAM500B
The CAM500B camera module is a 5M-pixel camera with DVP interface. For more tech details about it you can refer to Matrix - CAM500B.
Under Debian/Ubuntu a camera utility "nanocams" is available for previewing 40 frames and picture taking. You can try it by following the commands below
sudo nanocams -p 1 -n 40 -c 4 -o IMG001.jpg
For more details about the usage of the nanocams run "nanocams -h". You can get its source code from our git hub:
git clone https://github.com/friendlyarm/nexell_linux_platform.git