Dietpi as vlc playetr

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
LuPoX
Posts: 19
Joined: Wed Dec 14, 2016 4:52 pm

Dietpi as vlc playetr

Post by LuPoX »

Hello, I want to use the raspberry to play a video in a loop in an exhibitor, I have the vlc installed but I have a couple of problems, to see if you can help me. I dont have desk installed, all on terminal

When playing a video, it goes very slow, at 1 fps and stops.
I want the video to play as soon as I start the raspberry and play in a loop

Can someone help me set it up?
User avatar
WarHawk
Posts: 608
Joined: Thu Jul 20, 2017 8:55 am

Re: Dietpi as vlc playetr

Post by WarHawk »

try

Code: Select all

export DISPLAY=:0
vlc --fullscreen [file] 
or

Code: Select all

export DISPLAY=:0
vlc -f [file]
The above will only play it thru once
to have it loop try

Code: Select all

export DISPLAY=:0
vlc --loop video.avi 
To make it full screen, loop and be on top try

Code: Select all

export DISPLAY=:0
vlc --video-on-top --fullscreen --repeat video.avi
Pulled from man vlc
https://linux.die.net/man/1/vlc
Synopsis
vlc [OPTIONS] [ITEMS]...
Description
This manual page documents briefly the VLC multimedia player and server.
Options
VLC follows the usual GNU command line syntax, with long options starting with two dashes ('-'). For a precise description of options, please use "vlc --help".

The complete list of VLC options depends on what plugins are installed because they automatically add their own options. Please use "vlc --longhelp --advanced" for a complete list of available options.
Here too
https://wiki.videolan.org/Documentation:Command_line/


Then if you want it to start a boot time...might put that command in /etc/rc.local
LuPoX
Posts: 19
Joined: Wed Dec 14, 2016 4:52 pm

Re: Dietpi as vlc playetr

Post by LuPoX »

Thx @WarHawk , i know about this comands, now the problem is that the video start and in less than one sec it stops and doesnt work, how can i fix this ?
Post Reply