Code: Select all
vlc.exe --input-repeat 9 C:\Temp\File.mp3 vlc://quit
Code: Select all
"C:\Program Files\VideoLAN\VLC\vlc.exe" --input-repeat 9 C:\Temp\File.mp3 vlc://quit
shutdown -s -t 0
Nice, glad it worked.Hey, it worked! Thanks!
The reason 194 works is because the range of VLC's volume is from 0 to 1024. 1024 corresponds to 400%, hence 100% is 256. Therefore 192 is 75% (as 256*0.75 = 192).I had to keep experimenting with the number I put after --volume to get it to set VLCs volume to 75%, as 75% was the volume percentage I wanted VLC to start out with when playing this batch file. I would have thought I could just put 75 after --volume and it would set the volume to 75%, but that was not the case. I'm still unsure as to why setting it to 194 would result in 75%, but it works, so who am I to complain. Perhaps someone could enlighten me about how the --volume command works.
Hi, Arite. I got a question about the command line you suggested to shut down the PC after VLC stops playing a file. Let's say that I run your script. But after say a month, I want my PC to return to normal. What script do I run to make my PC not shut down after playing a file in VLC?If you wanted to shutdown you PC you could write a Batch script with a shutdown command after the VLC one. For example:Where "C:\Program Files\VideoLAN\VLC" is the location of VLC.Code: Select all
"C:\Program Files\VideoLAN\VLC\vlc.exe" --input-repeat 9 C:\Temp\File.mp3 vlc://quit shutdown -s -t 0
That should play the file 10 times in VLC, close VLC and then shutdown your computer. You can just write something like into e.g. Notepad, and then save it as a *.bat file (e.g. "night-music.bat"). Then just double click it to run the script.
Cheers, Arite.
Code: Select all
shutdown -s -t 0
Code: Select all
"C:\Program Files\VideoLAN\VLC\vlc.exe" --input-repeat 9 C:\Temp\File.mp3 vlc://quit
Return to “General VLC media player Troubleshooting”
Users browsing this forum: No registered users and 16 guests