This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

Help with command line basics please...

Problems, bugs, suggestions... anything related to SMPlayer.

Help with command line basics please...

Postby KnowFear » Wed Nov 28, 2018 9:38 pm

Goal:
Start up SMplayer
Load up a .xspf playlist file
Shuffle mode (sometimes - selectable ahead of time)
Start Playing


Works:
Starts up SMPlayer

No Worky:
No load of .xspf
No change in Shuffle mode (judging by the icon not changing highlight)
No Run - just "unexpectedly quite" message in the open SMPlayer window


Windows 7 and Windows 10 Machines
Latest SMPlayer 18.10.0-win32 - ditto for earlier version 18.6.0-win32


Please point me to any latest valid info on "how to use the command line for dummies" - I see a few when I do a search, but the ones I have studied are incomplete and contradictory. Or not for Windows. I can not make sense of the error messages I sometimes see in the logfile, but can post if you think that would help.


Latest command line that I tried (and I have tried several, but this one is very similar to the one that works to start up and play from VLC) ===>
C:\Program Files\SMPlayer\SMPlayer.exe file:///C:\Users\UWB\Documents\Classic TV 29.xspf --shuffle


Note: I can drag-n-drop "Classic TV 29.xspf" onto the SMPlayer desktop shortcut, and all starts up properly and plays.


Thanks
KnowFear
 
Posts: 3
Joined: Mon Nov 12, 2018 2:41 am

Re: Help with command line basics please...

Postby KnowFear » Sat Dec 01, 2018 12:01 am

Ok, after futzing some more - the command line that work to start up SMPlayer using an xspf playlist file must apparent contain NO spaces in the file nae. Go figure.

No Worky :(
C:\Program Files\SMPlayer\SMPlayer.exe file:///C:\Users\UWB\Documents\Classic TV 29.xspf --shuffle

Worky 8-)
C:\Program Files\SMPlayer\SMPlayer.exe file:///C:\Users\UWB\Documents\ClassicTV29.xspf --shuffle


After staring at the log file a while, it appears that SMPlayer counts everything after a <space> character as a "new argument".


Now, next Q - can not get shuffle and repeat to fire up in the player once it starts up via the prev command line..

Any advice on how to get shuffle and repeat working? How to turn them off (if needed) next time I start up SMPlayer?


Win7 Win10
KnowFear
 
Posts: 3
Joined: Mon Nov 12, 2018 2:41 am

Re: Help with command line basics please...

Postby rvm » Sat Dec 01, 2018 10:41 am

If a filename contains spaces you should use quotes: "file:///C:\Users\UWB\Documents\Classic TV 29.xspf"

To turn on shuffle and repeat in the playlist: -actions "pl_shuffle true pl_repeat true"
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Help with command line basics please...

Postby KnowFear » Sun Dec 02, 2018 1:07 am

thanks much - that did it.
KnowFear
 
Posts: 3
Joined: Mon Nov 12, 2018 2:41 am


Return to General

Who is online

Users browsing this forum: Bing [Bot] and 33 guests

cron