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?
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?
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ā?