[SOLVED] How to install vlc? no DE, just console. Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Neodämmerung
Posts: 2
Joined: Fri Jul 30, 2021 12:49 am

[SOLVED] How to install vlc? no DE, just console.

Post by Neodämmerung »

So I just want to have VLC running on boot. But I encountered an issue and don't know what to do.

Using RaspiOS Lite I have no issue. But with Diet Pi there is something else to do and I'm not sure what it is.

Im using the Raspberry pi 4. Diet Pi 7.4. Using a user created by me:

Code: Select all

sudo useradd -m username
usermod -aG sudo username
This is the output of cvlc:
[b21459b0] main video output error: video output creation failed
[b26235f8] main decoder error: failed to create video output
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
[aa8056b8] gles2 generic error: parent window not available
[aa807048] mmal_xsplitter vout display error: Failed to open Xsplitter:opengles2 module
[aa8056b8] xcb generic error: window not available
[aa807048] mmal_xsplitter vout display error: Failed to open Xsplitter:xcb_x11 module
[aa8056b8] mmal_vout generic error: VCSM init fail
[aa807048] mmal_xsplitter vout display error: Failed to open Xsplitter:mmal_vout module
[aa807048] mmal_xsplitter vout display: No valid output found for vout (VDV0/VDV0)
Any help is appreciated.


SOLUTION:

adding the user to the 'video' group is enough.
Last edited by Neodämmerung on Sun Aug 01, 2021 2:24 am, edited 1 time in total.
User avatar
Joulinar
Posts: 5998
Joined: Sat Nov 16, 2019 12:49 am

Re: How to install vlc? no DE, just console.

Post by Joulinar »

I guess you would need to add the user to the video user group
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3357
Joined: Sat Nov 18, 2017 6:21 pm

Re: How to install vlc? no DE, just console.

Post by MichaIng »

Just in case VLC uses DRM and direct audio card access:

Code: Select all

usermod -aG video,render,audio username
Neodämmerung
Posts: 2
Joined: Fri Jul 30, 2021 12:49 am

Re: How to install vlc? no DE, just console.

Post by Neodämmerung »

Wow... its funny because I had an issue with the audio and solved it adding the user to the audio group but this time didn't thought adding the user to the video group xD

Yeah that worked. Thanks!!

Now I just need to figure out how to make VLC use mmal decoder. Will mark this as solved.
Post Reply