Search code examples
linuxvlcorange-pi

Play video in VLC in CLI Linux


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:

correct video

But when I create file run.sh with

vlc video.mp4

and then run it

./run.sh

the video is not playing correctly:

bad video

What am I doing wrong with playing the video from run.sh script?


Solution

  • thanks dafnahaktana, with your reply after some googling I found a solution

    xinit -- /usr/bin/vlc-wrapper video.mp4