•   
  • 1
  • 101
  • 102
  • 103
  • 104
  • 105(current)
[WINDOWS] External Player Support Thread
@PatK 

The context menu option is a good idea, although in this instance I wouldn't be able to make use of it. You see, the file I'm trying to assign to Kodi's internal player is a trailer inside the corresponding movie's folder. Last I checked, you cannot choose players when opening a trailer from within the movie info screen. It'll default to mpc-BE in my case since I set this up to be the standard video player in playercorefactory.xml. But I would like to open this specific file with Kodi's internal player.
Setup | Kodi Leia 18.7 | Aeon MQ8 | madVR | MPC-BE | EVGA RTX 3080 XC3 Black | i9 9900K | LG C7 OLED
Reply
(2020-09-18, 02:51)Cinephile Wrote: a trailer inside the corresponding movie's folder
Before the add-on 'Extras' was available and the -trailer designation for the advanced settings, I was plagued with dual media listings for the trailers and any extra media, some of those listing still exist on my set-up (yes dust bunnies in my library) and of course I can re-title the name as 'movie-name trailer' and have whatever play them. Ok; it's not the fix you want, but it's a work-round.
Reply
I don't understand why the following plays everything with MPC-HC when I'm trying to only play HDR files with it.  as I have files named such as A Star Is Born (2018) - BLURAY-2160P.TRUEHD.ATMOS.7.1.X265.10Bit.HDR.[tt1517451][332562].mkv, I figured this file would trigger the rule and open mpc.hc.  I can not for the life of me figure out why it opens every file with mpc-hc.   another example would be 4.3.2.1 (2010) - BLURAY-1080P.DTS.5.1.H265.8Bit.[tt1514041][44877].mkv and I would figure this would be played by VideoPlayer, but it loads up with MPC-HC...
<playercorefactory>
    <players>
        <player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\Program Files\MPC-HC\mpc-hc64.exe</filename>
            <args>"{1}" /fullscreen /close</args>
            <hidekodi>true</hidekodi>
            <hideconsole>true</hideconsole>
            <forceontop>false</forceontop>
            <playcountminimumtime>2700</playcountminimumtime>
        </player>
    </players>
    <rules action="prepend">
        <rule filetypes="mkv" filename="*HDR*.*" player="MPC-HC"/>
    </rules>
</playercorefactory>
Reply
Use this:

<playercorefactory>
    <players>
        <player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
            <filename>C:\Program Files\MPC-HC\mpc-hc64.exe</filename>
            <playcountminimumtime>2700</playcountminimumtime>
        </player>
    </players>
    <rules action="prepend">
       <rule filename=".*HDR*" player="MPC-HC"/>
    </rules>
</playercorefactory>

Both of your files open with MPC-HC because both of them are .mkv's.
You told the script to open all .mkv file extensions with MPC-HC by adding
<rule filetypes="mkv"

The above code is directing the script to only open files that have "HDR" in the file name with MPC-HC.  All other files that do not contain "HDR" in the file name will open with the default VideoPlayer.
HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players
W10/20H2 MPC-BE\HC PDVD19 DVDFab3,5&6 KODI 19 PotPlayer 960-4GB/RGB 4:4:4/Desktop=60Hz/Video=Matched Refresh rates 8/12bit/Samsung 82" Q90R
Reply
(2020-11-02, 02:31)brazen1 Wrote: Both of your files open with MPC-HC because both of them are .mkv's.
You told the script to open all .mkv file extensions with MPC-HC by adding
<rule filetypes="mkv"
So this line:

<rule filetypes="mkv" filename="*HDR*.*" player="MPC-HC"/>

works as if an OR logical operator was present, not an AND operator. Correct?
For troubleshooting and bug reporting please make sure you read this first.
Reply
I put  

<rule filename=
<rule filetypes=

on two different lines.  I have no problems.

It does appear trying to combine the lines that not only does the file have to be an .mkv, it must also have "HDR" in the file name in order for the player task be passed to MPC-HC does not work.  Perhaps this is because there is no indent separating the two codes so the PCF.xml simply responds to what is indented and ignores what isn't which is exactly how your code indeed responds.  Is there a reason you don't use two lines of code?
HOW TO - Kodi 2D - 3D - UHD (4k) HDR Guide Internal & External Players
W10/20H2 MPC-BE\HC PDVD19 DVDFab3,5&6 KODI 19 PotPlayer 960-4GB/RGB 4:4:4/Desktop=60Hz/Video=Matched Refresh rates 8/12bit/Samsung 82" Q90R
Reply
Thank you.  trying to combine them was the problem.  I just got rid of the mkv part altogether, and it all works as intended now!  Thank you so very much!
Reply
How do you make kodi pass on substituted paths to external players(MPV)?

I have path substitution turned on for my video files, and while it works for the inbuilt player,  MPV still gets the original paths.
Reply
  •   
  • 1
  • 101
  • 102
  • 103
  • 104
  • 105(current)



Logout Mark Read Team Forum Stats Members Help
[WINDOWS] External Player Support Thread11
This forum uses Lukasz Tkacz MyBB addons.