Play Specific Files with external Player (1 Viewer)

grapitas

Portal Pro
January 10, 2008
59
12
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
 

KeithP

Portal Member
November 11, 2010
31
0
Home Country
United Kingdom United Kingdom
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
 

Wo0zy

Retired Team Member
  • Premium Supporter
  • April 30, 2008
    394
    134
    Home Country
    United Kingdom United Kingdom
    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.
     

    emueyes

    Portal Member
    January 16, 2012
    15
    3
    64
    Home Country
    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.
     

    emueyes

    Portal Member
    January 16, 2012
    15
    3
    64
    Home Country
    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:
    #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
     

    emueyes

    Portal Member
    January 16, 2012
    15
    3
    64
    Home Country
    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
     

    Bradley Kersh

    New Member
    March 23, 2012
    4
    0
    56
    Manchester, United Kingdom
    Home Country
    United Kingdom United Kingdom
    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 :)
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,052
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    use SplahPro for the second, it is one of the few things that can use the Intel graphics core in an i3 processor

    Excuse the dumb question, but is that QuickSync" if so LAV filters have implemented that feature.
     

    emueyes

    Portal Member
    January 16, 2012
    15
    3
    64
    Home Country
    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.
     

    Users who are viewing this thread

    Similar threads

    I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve this would be to use an auto-resume feature in your external player itself. (MPC-HC can do that, I don't know about VLC)
    I don't think so, because MP has no way of knowing at which timestamp the external player stopped playback. Best way to achieve...
    Hello Folks, Is it possible to enable MP to resume in an External Player, where it left off ? I guess the question also is, can...
    Replies
    2
    Views
    2K
    PS: But maybe the MP2 team will be back tomorrow, and development and bug fixes will continue. Time will tell.
    PS: But maybe the MP2 team will be back tomorrow, and development and bug fixes will continue. Time will tell.
    Hi, Help Please. I've got several FLAC audio files that play OK on my PC, and my HTPC, via: Media Player / Windows Media Player /...
    Replies
    8
    Views
    718
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    790
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Thankyou High_Five, that worked perfectly, I now remember doing that 10 years ago, thanks for jogging my old memory. Cheers Tony
    Hi everyone, I have been using it For 16 years now (from V1.1.1) and it has worked flawlessly. I only use TV Series and Moving...
    Replies
    2
    Views
    337
    Hi. I was probably being a bit fast and loose with my terminology. I meant "somewhere within the files that MP2 uses in its database". Anyway, I found a way to do this which was far from automated but relatively low effort. I found what looked like all the images (CD covers, DVD covers, backgrounds etc all lumped together in...
    Hi. I was probably being a bit fast and loose with my terminology. I meant "somewhere within the files that MP2 uses in its...
    I am in the process of setting up a legacy media player (Mede8er) which I happened to have laying around into my home cinema setup...
    Replies
    2
    Views
    411
    Top Bottom