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
    63
    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
    63
    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
    63
    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
    55
    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,062
    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
    63
    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


    Write your reply...

    Similar threads

    i love how subtitles are implemented in the MP2 videoplayer, this is just perfect. 1080p playback is also very good. But video playback in MP2 is buggy when playing 4k material. Therefore: PLEASE add an option for an external video player! I'd LOVE to have VLC back as videoplayer, like in MP1! This works perfectly. You will make a...
    i love how subtitles are implemented in the MP2 videoplayer, this is just perfect. 1080p playback is also very good. But video...
    i love how subtitles are implemented in the MP2 videoplayer, this is just perfect. 1080p playback is also very good. But video...
    Replies
    0
    Views
    532
    You can find ton of guide here: https://www.avsforum.com/threads/madvr-player-support-thread.2215490/?post_id=39123050#post-39123050
    You can find ton of guide here: https://www.avsforum.com/threads/madvr-player-support-thread.2215490/?post_id=39123050#post-39123050
    Hi, I have a problem if I set madVR as Video Render. When I try to play my .mkv files I have an 'Unable to play. Video COdec...
    Replies
    3
    Views
    1K
    You could use a different player that handles HDR content but thats more hassle then installing MadVR
    You could use a different player that handles HDR content but thats more hassle then installing MadVR
    I searched several days now but could only find non-working ideas and mostly based on MadVR. Is there a way to play HDR content...
    Replies
    1
    Views
    427
    This is for the tvserver, the iptv part. It used to only support m3u files containing all the channels, but now you can use a m3u8 too. Usually you get an m3u8 from your iptv provider, but there are also some that can be found on the internet
    This is for the tvserver, the iptv part. It used to only support m3u files containing all the channels, but now you can use a m3u8...
    Hi! I read about [MP1-5236] - Add support for m3u8 files, but I can't find info on how to use this. So, where and how can I use...
    Replies
    1
    Views
    588
    I suspected that might be the case, It was a process, and plenty of opportunities with mobo upgrade/cloning system drive, increasing share drive capacities and OS upgrade, all going on. I did a reinstall and restored user files, after everything settled in, and the issue seems to have gone away. Thanks!
    I suspected that might be the case, It was a process, and plenty of opportunities with mobo upgrade/cloning system drive...
    Title says it all .... made several attempts with the update, TvPlugin did not appear in the install screen. MP will not start...
    Replies
    7
    Views
    1K
    Top Bottom