I would like to apologize if I write something wrong. I am new to all this. Begginer.
Recently I bought a 4 inch
Waveshare DSI-LCD display. I want to use it with a video looper.
I have a problem and the screen is black eveytime i install video looper. Before that, screen is working perfect. I have installed LCD drivers like waveshare says in their wiki and instructions.
After a long time, I have found a solution to use the mpv player. Problem is that I want to run it automatically without typing the command, and also play in loop some videos I have in a USB flash drive folder that I have mount.
The error message indicates that there is a " to much in you script or you maybe mixed straight quotes with curly ones " vs “
Can you post the full script, exactly how it is written in the file, you can get the output with: cat /var/lib/dietpi/dietpi-autostart/custom.sh
You also don’t need to write variables in quotes (but sometimes you need e.g. when you have spaces in the path or file name), and the concat is also wrong, here a output of corrected version:
cat /var/lib/dietpi/dietpi-autostart/custom.sh
No such file or directory ← that was the message i got.
#!/bin/bash
VIDEOPATH="/home/pi/Desktop/my-movie.mkv"
SERVICE="mpv"
while true; do
echo "playing "+$VIDEOPATH
$SERVICE --fs --start=00:00:00 $VIDEOPATH
done
This is how I’ve found the script…
I have just copied and written it as I have seen it.
The command that I was typing manually every time was
mpv drm-connector=DSI-1 /mnt/radarf1/radar1.mp4
and the video was playing.
I want to make a script to auto start, run the mpv player and run some videos I have in the /mnt/radarf1 folder.
After those videos are done, I want to replay all of them like a loop.
I am beginner and I don’t understand much or how to do them all.
probably your local console has a different keyboard layout? By default we use English keyboard locally if not changed. This might have an effect for some character you used on your password.