I'm trying to play video in VLC in CLI Armbian on OrangePi. In a fresh install of Armbian, I installed VLC and downloaded a sample video. When I play video
vlc video.mp4
everything seems working correctly:
But when I create file run.sh with
vlc video.mp4
and then run it
./run.sh
the video is not playing correctly:
What am I doing wrong with playing the video from run.sh script?
thanks dafnahaktana, with your reply after some googling I found a solution
xinit -- /usr/bin/vlc-wrapper video.mp4