Command Parameters for your external players - PLEASE ADD

Command Parameters for your external players - PLEASE ADD

Postby helsoasp » Thu Sep 03, 2009 1:13 pm


I'm locking and stickying this, this information belongs on the KB


http://community.mediabrowser.tv/permal ... al-players

Please help us migrate it over!
Last edited by helsoasp on Thu Sep 03, 2009 5:21 pm, edited 4 times in total.
helsoasp
 
Posts: 88
Joined: Sun Apr 26, 2009 7:08 pm

COMMAND LINE PARAMETERS for different players

Postby helsoasp » Thu Sep 03, 2009 4:58 pm

Windows Media Player

The Windows Media Player has several command line options:
/open = Open the file, don't automatically start playing.
/play = Start playing the file as soon the player is launched.
/close = Close the player after playback (only works when used with /play).
/fullscreen = Start the file in full-screen mode.
/new = Use a new instance of the player.


source: http://support.microsoft.com/kb/241422
___________________________________________________________


Media Player Classic:

Command Line Parameters
For full list - Open Media Player Classic, select the Help Menu + select "Command Line Switches".

/open = open file, don't automatically start playing
/play = start playing file as soon as player is launched
/close = close player after playback (only works when used with /play)
/fullscreen = start in full-screen mode
/minimized = start in minimized mode
/new = new instance of player

___________________________________________________________

BSPLAYER

Command Line Parameters

* -fs Start in full screen
* -asx Start with x audio stream
+ x=1-> 1st audio stream
+ x=2-> 2nd audio stream
+ x=n-> n audio stream
+ x=0-> Semi's Directsound 3D
* -stime=x Start movie at x seconds
* -nsub Don't show subtitles even if subtitle file exists
* -skin=s s=skin name
* -lang=l l=language file without extension
* -eend Exit when movie is finished
* -pan Use Pan-scan
* -res=WxHxD Start in specified resolution
+ W=width, H=height, D=color depth
+ Ex.: -res=1024x768x16
* -ar=x:y Aspect ratio, Ex.: -ar=16:9
* -hide Hide controls *
* -deskmode Start in desktop mode *
* -sdown Shutdown when movie is finished *


source: http://hwmaker.dragonfighter.gr/html/command_line.html
___________________________________________________________
KMPlayer

Command Line Parameters
Full list can be found by: Opening KMPlayer, then Right-click -> Options -> About


___________________________________________________________

ZOOM Player

Command Line Parameters
Full List can be found here: http://www.inmatrix.com/zplayer/parameters.shtml
/F - Start in Fullscreen mode (/F:2 will fullscreen on the second monitor)
/M - Start Minimized
/MAX - Start Maximized
/CLOSE - Close any currently running instance of Zoom Player


___________________________________________________________

VLC Media Player


Command Line Parameters
Full List can be found here: http://wiki.videolan.org/VLC_command-line_help

--fullscreen = sets fullscreen video.
--play-and-exit = Plays files and exits
--no-one-instance = Open in new instance of the player


___________________________________________________________

GOM Player

Command Line Parameters
Can not find a published list anywhere, only found these 2:

/fullscreen
/maximize


(listed in change log here: http://www.filehippo.com/download_gom_p ... elog/2096/)
Last edited by helsoasp on Sun Sep 06, 2009 6:57 am, edited 11 times in total.
helsoasp
 
Posts: 88
Joined: Sun Apr 26, 2009 7:08 pm

Re: HELP PLEASE - Surely someone can shed some light.

Postby helsoasp » Thu Sep 03, 2009 5:12 pm

- In External Player of Media Browser Configuration Tool under "Optional Parameters" add the commands you want to specify.

eg for Media Center Classic to play full screen add /fullscreen after "{0}"
so the field should look like this:
Code: Select all
"{0}" /fullscreen


The parameters you add don't require quotations. Works with a space between each parameter.

- Restart Media Browser.


Each Media Player has UNIQUE parameters. So find the parameters for your Media Player
(not sure how to best find them, found those above from searching google for Command Parameters and the player name, had to weed through some results).


Thought fullscreen might make it play on top as well but didn't work.
Don't know what "{0}" stands for?
helsoasp
 
Posts: 88
Joined: Sun Apr 26, 2009 7:08 pm

Re: Command Parameters for your external players - PLEASE ADD

Postby rexian » Fri Sep 04, 2009 2:23 pm

{0} is the name of the file that MB passes to the player to play it. But do these players work current version of MB?
rexian
 
Posts: 5
Joined: Fri Aug 28, 2009 4:09 pm

Re: Command Parameters for your external players - PLEASE ADD

Postby <>< » Fri Sep 04, 2009 4:02 pm

This is an excellent post and should definitely be added to the Wiki.

One thing to note is people trying to launch players that do not support command line parameters (powerdvd 8 for example). If the player does not support any command line parameters all that will happen is that media browser will launch the external app but the movie will NOT play.

Another thing to note that only the VALID ITEMS items listed in the Configuring External Players will work, you cannot add your own extensions. It is also CaSe SeNSiTiVe.
<><
 
Posts: 1987
Joined: Mon Dec 22, 2008 2:31 pm
Location: Atlanta, Ga

Re: Command Parameters for your external players - PLEASE ADD

Postby helsoasp » Sun Sep 06, 2009 2:26 am

rexian wrote:{0} is the name of the file that MB passes to the player to play it. But do these players work current version of MB?


Oh I see, thank you.

+ Good question, I assumed they all work.
I have the latest version (2.1.1) installed, and I have tested Media Player Classic + Windows Media Player - both work. Will double check BSplayer works also.

<>< wrote:This is an excellent post and should definitely be added to the Wiki.

One thing to note is people trying to launch players that do not support command line parameters (powerdvd 8 for example). If the player does not support any command line parameters all that will happen is that media browser will launch the external app but the movie will NOT play.

Another thing to note that only the VALID ITEMS items listed in the Configuring External Players will work, you cannot add your own extensions. It is also CaSe SeNSiTiVe.


Awesome, thanks for adding that - great info.

:D
helsoasp
 
Posts: 88
Joined: Sun Apr 26, 2009 7:08 pm

Re: Command Parameters for your external players - PLEASE ADD

Postby Montevideo » Sun Sep 06, 2009 4:40 pm

Thinking about using Media Player Classic so that I can get subtitles without too much faffing...

Am I right in thinking:

"{0}" /fullscreen /play /close

is what I need to open MPC, play the file, close MPC and return to Media Browser? Or is there no way to get back to Media Browser automatically after doing this?

Sorry, can't test it at the moment cos the wife is watching Angels & Demons :D
Montevideo
 
Posts: 9
Joined: Mon Aug 03, 2009 6:29 am

Re: Command Parameters for your external players - PLEASE ADD

Postby helsoasp » Sun Sep 06, 2009 6:55 pm

Montevideo wrote:Thinking about using Media Player Classic so that I can get subtitles without too much faffing...

Am I right in thinking:

"{0}" /fullscreen /play /close

is what I need to open MPC, play the file, close MPC and return to Media Browser? Or is there no way to get back to Media Browser automatically after doing this?

Sorry, can't test it at the moment cos the wife is watching Angels & Demons :D



That's right, but at the moment there is a bug that prevents the external player from opening 'on top' of MediaBrowser/ WindowsMediaCenter (when it is maximised).

The external player will open fullscreen but underneath WMC, so you need minimize WMC to see it. Because WMC was minimized to view the external player it will still be minimized when the external player finishes, as such won't return to where you took off from in MediaBrowser.

I am assuming that if the external player was able to open on top of MediaBrowser, then when the file finishes and closes you will be back at the MediaBrowser screen.

There is no word on whether this bug will be fixed or not. Hopefully some time in the future.
helsoasp
 
Posts: 88
Joined: Sun Apr 26, 2009 7:08 pm

Re: Command Parameters for your external players - PLEASE ADD

Postby roostaar » Tue Oct 20, 2009 12:22 pm

Is the bug in MB itself? This bug does not arise when using TMT3 as an external Blu-ray player.
roostaar
 
Posts: 43
Joined: Fri May 08, 2009 7:23 pm

Re: Command Parameters for your external players - PLEASE ADD

Postby pacoppes » Thu Oct 29, 2009 10:53 pm

Montevideo wrote:Thinking about using Media Player Classic so that I can get subtitles without too much faffing...

Am I right in thinking:

"{0}" /fullscreen /play /close

is what I need to open MPC, play the file, close MPC and return to Media Browser? Or is there no way to get back to Media Browser automatically after doing this?

Sorry, can't test it at the moment cos the wife is watching Angels & Demons :D



A possible solution temporary.

You have to edit a file. Bat like this

Code: Select all
TASKKILL /F /IM "ehshell.exe"
"c:\Program Files\MPC\mpc-hc.exe" %1 /fullscreen /play /close
"c:\windows\ehome\ehshell.exe"


I called mpc.bat and I've stored in mpc-hc directory in c:\Program Files\MPC

I configured the Media Browser to the external player is c:\Program Files\MPC\mpc.bat (as only shows you exe I have had to be thrown by hand).

Operation is simple, when Media Browser calls the player, the bat kills the Media Center plays the video and then when you close, reload the media center.

A greeting
pacoppes
 
Posts: 3
Joined: Thu Oct 29, 2009 10:45 pm

Next

Return to General Discussions



Who is online

Users browsing this forum: No registered users and 1 guest