You are here

MPlayer Command line switches confusion

3 posts / 0 new
Last post
Nathan9222
Nathan9222's picture
Offline
Last seen: 2 years 6 months ago
Developer
Joined: 2007-12-06 22:35
MPlayer Command line switches confusion

Hello, I was wondering if anyone could point me in the right direction on how to send more than one file to MPlayer so it can play them through command line switches. I have seen the following but I try to use it in a similar way and it will say cannot find file and then list the files i tried to play....

mplayer [default options] [path/]filename1 [options for filename1] filename2 [options for filename2] 

I have successfully played one file via command line but I have had no luck with multiple files. I tried something similar to this...

mplayer C:\Documents and Settings\Nathan\Desktop\Example.mpg C:\Documents and Settings\Nathan\My Documents\Example2.mpg

But no luck. So if anyone could offer some help with this I would really appreciate it, ive been tryin to get this to work for a little project I have been doing that i might release here but this stopped my progress. Thanks Wink

Bahamut
Bahamut's picture
Offline
Last seen: 12 years 4 months ago
Joined: 2006-04-07 08:44
Spaces

The shell uses spaces to separate words. You need to use quotes so that the shell doesn't treat the spaces specially.

mplayer "C:\Documents and Settings\Nathan\Desktop\Example.mpg" "C:\Documents and Settings\Nathan\My Documents\Example2.mpg"

Vintage!

Nathan9222
Nathan9222's picture
Offline
Last seen: 2 years 6 months ago
Developer
Joined: 2007-12-06 22:35
i tried this but i still get

i tried this but i still get an error message that the file couldnt be found, and it seems to be joining the two file paths i am trying to play and make it seem like its just one. Ill try different things but idk why this isnt working.

Edit: NVM i just found out that this is due to a problem in NSISPortable not passing the correct parameters to mplayer.exe, cause if you send them directly to mplayer it seems to work just fine but any other way it doesnt work. Thanks for your help Smile

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

Log in or register to post comments