Play Specific Files with external Player

Discussion in 'Codecs, External Players' started by grapitas, December 13, 2011.

  1. grapitas Portal Member

    Hello.
    I have read several posts that you can configure the external player to play only specific files, but I have not found is how.
    Someone can help me?

    Thank you.:D
  2. KeithP Portal Member

    I am also looking to do this as it seems that it is the only way to play protected .m4v files (ie to configure iTunes to play them). But I don't want to use iTunes for general movie or video playback.

    Can anyone help here? thx
    • Team MediaPortal

    Wo0zy Documentation Group

    Hi guys,

    Deda coded this feature quite a while ago. I had a patch file for it before the source moved to git. Now the feature seems to be in a couple of branches I've built but not in master or the 1.2x branch.

    Don't know if this is deliberate or an oversight. Will have to PM Deda to ask.

    Cheers,

    Mick.
  3. emueyes Portal Member

    System Specs
    Did this get sorted out? I'd like to use different players for different filetypes too, for example m2ts files and low-res divx files need to be treated differently.
  4. emueyes Portal Member

    System Specs
    OK, I decided to fix this myself.

    My situation is thus:

    I have a bunch of old-ish avi files, which I like/need to do a bit of processing on (deblocking etc) to make them look ok
    I also have some more pristine files, m2ts and mkv mainly

    I use MPC-HC for the first, with its video filters set up for the processing needed
    I use SplahPro for the second, it is one of the few things that can use the Intel graphics core in an i3 processor

    Here's a little AutoHotKey script, which should be referenced in the External Player field in MediaPortal, with the parameter set to %filename%

    That is, copy the code block, paste it into notepad and save it as (for example) start-video.ahk
    Then put start-video.ahk in the external player field in MP, using its full path as needed

    Code (text):
    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
    DetectHiddenWindows, On
    DetectHiddenText, on

    var=%1%
    if (var="")
    {
        msgbox No file specified
        exit
    }
    SplitPath, var,,,type

    if type in avi,ifo
    {
        ; msgbox using MPC-HC
        Run "D:\Program Files (x86)\MPC-HomeCinema.1.5.2.3456.x86\mpc-hc.exe" %var%
    }

    if type in mkv,m2ts,mp4,ts
    {
        ; msgbox using Splash
        Run "D:\Program Files (x86)\Mirillis\Splash PRO\SplashProEx.exe" %var% 
    }
     
    the list of file extensions, as well as the locations of the exe files are up to individuals, but the basic idea works just fine



    Rob
  5. grapitas Thread Starter Portal Member

    Hello.
    They could edit this script to be included in the Mediaportal internal player?

    Thank you.
  6. emueyes Portal Member

    System Specs
    HI grapitas

    I'm not sure what you mean. The choice to use the internal player or an external one is made is the MP config program. All this script does is to handle a list of players, and the types of files that the user wants to play on them. It could, I guess, have a whole page in the config utility to link file types and players, after all it's just a list, but the problem is making the list accessible to people.

    *Please note*, I am not in any way associated with the development of MediaPortal, and I certainly connot speak on the developer's behalf. As a rule of thumb though, coding the gui for something like that would be quite time consuming. (yes, i used to programme for a living) .

    I can definitely say though, that AutoHotKey is an incredibly useful tool, and allows me (or anyone else) to create little 'glue' programmes like this one. It'll compile the script into an exe, too, if needed; might make it a little quicker, but not even noticeable running on a machine you're playing 1080p videos on :). And it lets people customise their systems to do what they want.


    Rob
  7. Bradley Kersh New Member

    thanks emueyes for your help :) i had to remove all the code above var=%1% to get it going but it really helped me out. seems they're implementing this facility in the next release anyway but thanks for your script it got the job done :)
    • Team MediaPortal
    • Administrator

    Paranoid Delusion Moderation Manager

    System Specs
    Excuse the dumb question, but is that QuickSync" if so LAV filters have implemented that feature.
  8. emueyes Portal Member

    System Specs
    Paranoid Delusion
    Yep, it is the QuickSync hardware in the Intel Sandybridge chips. Software to use it has been emerging too, as you point out LAV filters, also the ffdshow-egur build - ffdshow filters that'll work in anything that uses them, and in PotPlayer, another great, free player which I think is like MPC-HC player was a few years ago, a pretty much universal easy to use player. Just as we're getting comfortable with QuickSync tho', Intel are getting ready to release IvyBridge on us, with modified graphics architecture. Ah, it's all good :)

    Bradley Kersh
    You're welcome. I don't understand why the directives in the first few lines don't work, different versions of AHK possibly, but if it works don't mess with it :) I didn't know about the new release, I'll have to go have a look.

Share This Page

Users Viewing Thread (Users: 0, Guests: 0)

Running the latest version?

V1.3.0 FINAL - released March 2013
Releasenews | Download
Changelog
 | Requirements
HTPC
Team-MediaPortal
 
About
Contact |  Press
Partners