3

After having used OMXPlayer for many years, I am now trying to install vlc for command line on a Raspberry Pi B+ (Buster Lite) without X:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install vlc-bin

Testing vlc with cvlc /opt/vc/src/hello_pi/hello_video/test.h264 or another video gives no video output or error, only

VLC media player 3.0.12 Vetinari (revision 1.0.6-1618-g917488b78)

Testing on a Raspberry Pi 3+ (Stretch Lite) without X gives the same result.

goldilocks
60.4k17 gold badges117 silver badges236 bronze badges
asked Jun 5, 2021 at 8:28
2
  • try -V aa or -V fb Commented Jun 7, 2021 at 2:04
  • -V aa or -V fb makes no difference. Commented Jun 7, 2021 at 6:21

2 Answers 2

3

I have found out that in addition to vlc-bin, installing vlc-plugin-base (~500 Mbyte) solves my problem. Writing cvlc /opt/vc/src/hello_pi/hello_video/test.h264 now displays the video.

But isn't there a more minimal VLC install (< 500 MByte) as a substitute for OMXPlayer?

answered Jun 5, 2021 at 19:36
1
  • 1
    perhaps vlc is capable of playing more formats that omxplayer, which is why you need to install more libraries - run apt-cache depends omxplayer vs apt-cache depends vlc-plugin-base Commented Jun 6, 2021 at 0:41
1

You need to use the ncurses interface.

vlc -I ncurses ... 
answered Jun 5, 2021 at 14:37
5
  • vlc -I ncurses ... makes no difference. No video output. Commented Jun 5, 2021 at 16:31
  • @EddySorngard: It's typically understood that you get no video with the Lite distro. One distro is called desktop - it weighs in at 1.18GB ; the other distro is called Lite - it weighs in at 0.44GB. Perhaps you'd be better off with the desktop version??? Commented Jun 6, 2021 at 16:25
  • 1
    @Seamus There can be graphics (eg. the raspberr[y|ies] at boot), including video, on the framebuffer. OMXplayer can do this, and supposedly so can mplayer and vlc. I've only tried the first one (the command above is in online vlc documentation). Generally the rest of the interface is either very minimal or using TUI libs like ncurses, because there are no full fledged GUI libs to use (Qt used to have a framebuffer port but I think it has been abandoned). Commented Jun 6, 2021 at 17:21
  • Do you mean that you can replay MP4 video on a headless system with something less than 500MB of "add-ons"? Commented Jun 6, 2021 at 18:15
  • Looks like omxplayer is only available in the repo for 32-bit; apt install omxplayer on a 32-bit lite system reveals "672 MB of additional disk space will be used" which does include some X lib stuff. A source build would probably be lighter: github.com/popcornmix/omxplayer presuming you already have build tools (they are a few hundred MB). From that github page it looks like it isn't in active development. Commented Jun 6, 2021 at 18:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.