#!/bin/sh export DISPLAY=:0.0 #export GST_DEBUG=*:5 #export GST_DEBUG_FILE=/tmp/2.txt #Gstreamer Display: kmssink(qt eglfs),rkximagesink(x11), waylandsink(wayland) export mpp_syslog_perror=1 case "$1" in rk3036) ###default the rk3036 use kmssink. echo "rk3036: don't support qtmultimedia with X11, please use https://github.com/rockchip-linux/meta-rockchip-extra/tree/master/demo/meta-player-qt." ;; arm64) # QT built without gles by default on arm64 unset QT_XCB_GL_INTEGRATION # export QT_GSTREAMER_WIDGET_VIDEOSINK=rkximagesink export QT_GSTREAMER_WIDGET_VIDEOSINK=xvimagesink /usr/lib/aarch64-linux-gnu/qt5/examples/multimediawidgets/player/player /usr/local/test.mp4 ;; *) # export QT_GSTREAMER_WIDGET_VIDEOSINK=rkximagesink export QT_GSTREAMER_WIDGET_VIDEOSINK=xvimagesink /usr/lib/arm-linux-gnueabihf/qt5/examples/multimediawidgets/player/player /usr/local/test.mp4 ;; esac