Video looper and Waveshare-DSI-LCD

But username is typed correct.
I havent changed user and password. Its default given by dietpi.

How SSH client will help me with the script amd the problem I have?

Local access is also fine, the advantage is that you can copy and paste stuff.

But the script you posted also looks not right

#!/bin/bash
# DietPi-AutoStart custom script
# Location: /var/lib/dietpi/dietpi-autostart/custom.sh
VIDEOPATH="--drm-connector=DSI-1 /mnt/radarf1/*.*
SERVICE="mpv"


while true; do
  echo "playing "+$VIDEOPATH
  $SERVICE --fs --start=00:00:00 $VIDEOPATH
done
exit 

The video path is not a path and missing a " again, also again no absolute path used for calling mpv. The echo statement is also not correct, see my post above for a corrected script.

What will be the correct script? And how I can call mpv player to play the path I wrote?
Also, How can I make mpv player loop the videos in this path?

Please just read, I posted it earlier.
Here is a manpage for mpv with all features explained:
https://man.archlinux.org/man/mpv.1

!/bin/bash
# DietPi-AutoStart custom script
# Location: /var/lib/dietpi/dietpi-autostart/custom.sh
VIDEOPATH="--drm-connector=DSI-1 /mnt/radarf1/*.*"
SERVICE=mpv


while true; do
  echo "playing $VIDEOPATH"
  $SERVICE --fs --start=00:00:00 "$VIDEOPATH"
done
exit

what about now?

Did you try and run it?

And it runs again and again the same text. I cant stop it

that would be the moment to login via SSH and to kill the process or reboot. Another option could be to cancel the process by hitting Ctrl+C

Looks mpv is called incorrectly.

Thank you. I’ve stopped it with Ctrl+c

How to fix it and mpv run correct the path I’ve written?

For SSH I’ve spend all night trying to find the password. I’ve even made changes to dietpi config but nothing.

Access denied.

User i am writing ā€œrootā€
Password ā€œdietpiā€

Thats the default as I know. I haven’t changed that.

This is because you created a endless loop in the script with while true; do.
Also I provided the link to the docs of mpv, I have no idea how this software works in detail.
You can login locally with ā€œrootā€ and ā€œdietpiā€ but not via SSH?

Correct.
In root i use the username and password I’ve typed above. But in SSH i get access denied.

did you changed password during first initial setup?

No. I kept the same.

I’ve changed the path and left it " /mnt/radarf1/radar1,mp4"
and the script runned ok, and the video.

Only problem was that the video was running in my Windows HDMI monitor and not the DSI-1 LCD

I had to delete the command --drm-connector=DSI-1 in the path.
How can add this command, so the video will play in the DSI-1 LCD monitor and not the HDMI output?

mpv --drm-connector=DSI-1 --start=00:00:00 /mnt/radarf1/radar1.mp4

In what line of the script I will write that?

!/bin/bash
# DietPi-AutoStart custom script
# Location: /var/lib/dietpi/dietpi-autostart/custom.sh
VIDEOPATH=" /mnt/radarf1/radar1.mp4"
SERVICE=mpv

while true; do
echo "Playing $VIDEOPATH"
$SERVICE --fs --start=00:00:00 "$VIDEOPATH"
done
exit

best to use full path to mpv

#!/bin/bash
# DietPi-AutoStart custom script
# Location: /var/lib/dietpi/dietpi-autostart/custom.sh
MPVPATH=which mpv
VIDEOPATH=/mnt/radarf1/radar1.mp4

while true; do
echo "Playing $VIDEOPATH"
"$MPVPATH" --drm-connector=DSI-1 --fs --start=00:00:00 "$VIDEOPATH"
done
exit

Where will I write this?

In the SERVICE=mpv?
Or in the VIDEOPATH?

And what is ā€œMPVPATH=which mpvā€?