futeko.com FORUM
Product Support => HiMedia Q10 Pro, Q5 Pro => Topic started by: newsea on September 20, 2019, 04:15:51 PM
-
-
<rule filetypes="avi" player="DVDPlayer">
<rule filename=".*.avi" player="DVDPlayer"/>
But what old version are you using? What Firmware and what KODI?
DVDPlayer used in KODI 16.1 and earlier. Now it's own player named "VideoPlayer" in the corefactory file.
-
FW is 2.1.4 from here:
https://www.mediafire.com/?wwxwpvnc0u890#qd5cx12biqoyy
and Kodi 18.4 (if my memory serves me right).
Thank you for your advice. Will try to change. Important note!
-
Unfortunately, it doesn't work
Replaced "DVDPlayer" to "VideoPlayer" in playercorefactory file and rebooted device but no Kodi player for "avi" :-( Wrapper still liked to "AVI" files by default.
<?xml version="1.0" encoding="UTF-8"?><playercorefactory>
<players>
<player name="Wrapper" type="ExternalPlayer" audio="false" video="true">
<filename>com.himedia.xbmcwrapper</filename>
<playcountminimumtime>120</playcountminimumtime>
</player>
<player name="VideoPlayer" audio="true" video="true"/>
</players>
<rules action="prepend">
<rule internetstream="true" player="VideoPlayer"/>
<rule protocols="smb|nfs|webdav">
<rule video="true" player="Wrapper"/>
<rule dvd="true" player="Wrapper"/>
<rule dvdimage="true" player="Wrapper"/>
<rule dvdfile="true" player="Wrapper"/>
<rule filename=".*BDMV.*" player="Wrapper"/>
<rule filename=".*bdmv" player="Wrapper"/>
<rule filename=".*.ISO" player="Wrapper"/>
<rule filename=".*.iso" player="Wrapper"/>
<rule action="append" name="AVI" protocols="avi" filetypes="avi" player="VideoPlayer"/>
</rule>
<rule video="true" remote="false">
<rule video="true" player="Wrapper"/>
<rule dvd="true" player="Wrapper"/>
<rule dvdimage="true" player="Wrapper"/>
<rule dvdfile="true" player="Wrapper"/>
<rule filename=".*BDMV.*" player="Wrapper"/>
<rule filename=".*bdmv" player="Wrapper"/>
<rule filename=".*.ISO" player="Wrapper"/>
<rule filename=".*.iso" player="Wrapper"/>
<rule action="append" name="AVI" protocols="avi" filetypes="avi" player="VideoPlayer"/>
</rule>
</rules>
</playercorefactory>
-
Backup your current playercorefactory.xml file and replace completely:
<playercorefactory>
<players>
<!-- himedia player for video -->
<player name="Wrapper" type="ExternalPlayer" audio="false" video="true">
<filename>com.himedia.xbmcwrapper</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<!--network protocol rules-->
<rule protocols="http|https|rtmp|sop" player="VideoPlayer" /> <!--all http-->
<rule protocols="nfs|smb" player="Wrapper" /> <!--all nfs|smb-->
<!--internet streams rules-->
<rule protocols="pvr" player="VideoPlayer" /> <!--all pvr-->
<rule internetstream="true" player="VideoPlayer" /> <!--all streams-->
<!--video audio channels rules-->
<rule video="true" audiochannels="6" player="Wrapper" /> <!--5.1 audio-->
<rule video="true" audiochannels="8" player="Wrapper" /> <!-- 7.1 audio-->
<!--video resolution rules-->
<rule video="true" videoresolution="480" player="VideoPlayer" />
<rule video="true" videoresolution="540" player="VideoPlayer" />
<rule video="true" videoresolution="576" player="VideoPlayer" />
<rule video="true" videoresolution="720" player="Wrapper" />
<rule video="true" videoresolution="1080" player="Wrapper" />
<rule video="true" videoresolution="2160" player="Wrapper" /> <!--4K-->
<!--audio / music rules-->
<rule audio="true" player="PAplayer"/> <!--all audio to kodi internal music player-->
<!--specific codecs rules-->
<rule video="true" audiocodec="truehd|true-hd|dtshd|dts-hd|dts" player="Wrapper"/>
<rule filename=".*.3D.*|.*.3D.iso|3D.*|*.m2ts|.*.m2ts" player="Wrapper"/>
<rule filename=".*.avi|*.avi" player="VideoPlayer"/>
<rule filetypes="iso|bdmv|mpls|m2ts" player="Wrapper"/>
<rule filetypes="avi" player="VideoPlayer"/>
<rule videocodec="xvid|divx|div3|div4|div5" player="VideoPlayer"/>
<rule video="true" player="Wrapper"/>
</rules>
</playercorefactory>
Lines with video resolution might be unnecessary, try to remove them if otherwise the filetype, filename and the videocodec rules are working.
Also the line <rule video="true" audiochannels="6" player="Wrapper" /> <!--5.1 audio--> might be confront the avi rules if the avi video file contains 5.1 channel audio. Might have to be also removed. But try it first.
-
Thank you very much!
Will test tomorrow and reply.
-
Replaced my playercorefactory file with the new one. Unfortunately, avi files still linked to wrapper by default ? Not to Kodi VideoPlayer. Looks like it will be easier to recode Dvix files to Xvid than tune players up correctly.
-
Reencode is always with quality loss. Besides Xvid also uses the avi container.
Try this and modify just these lines:
<!--specific codecs rules-->
<rule video="true" audiocodec="truehd|true-hd|dtshd|dts-hd|dts" player="Wrapper"/>
<rule video="true" videocodec="xvid|divx|div3|div4|div5" player="VideoPlayer"/>
-
-
i changed mine so that Wrapper opens videos with surround sound and image files (BR/DVD isos) and MX player free is used for streams, since KODI's internal player is strugling with some hq streams (e.g. Twitch addon).
if you want .avi files to be opened by a specific player,
just specify it with the "rule filename" line.
<playercorefactory>
<players>
<!-- himedia player for video -->
<player name="Wrapper" type="ExternalPlayer" audio="false" video="true">
<filename>com.himedia.xbmcwrapper</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>
</players>
<rules action="prepend">
<!--network protocol rules-->
<rule protocols="nfs|http|rtmp|sop" player="VideoPlayer" /> <!--all nfs-->
<!--internet streams rules-->
<rule protocols="pvr" player="VideoPlayer" /> <!--all pvr-->
<rule internetstream="true" player="VideoPlayer" /> <!--all streams-->
<!--video audio channels rules-->
<rule video="true" audiochannels="6" player="Wrapper" /> <!--5.1 audio-->
<rule video="true" audiochannels="7" player="Wrapper" />
<rule video="true" audiochannels="8" player="Wrapper" /> <!-- 7.1 audio-->
<!--video resolution rules-->
<rule video="true" videoresolution="2160" player="Wrapper" /> <!--4K-->
<!--audio / music rules-->
<rule audio="true" player="PAplayer"/> <!--all audio to kodi internal music player-->
<!--specific codecs rules-->
<rule video="true" audiocodec="truehd|true-hd|dtshd|dts-hd|dts" player="Wrapper"/>
<rule filename=".*.3D.*|.*.3D.iso|3D.*" player="Wrapper"/>
<rule filetypes="iso|bdmv|mpls|m2ts|img" player="Wrapper"/>
</rules>
</playercorefactory>--specific codecs rules-->
<rule video="true" audiocodec="truehd|true-hd|dtshd|dts-hd|dts" player="Wrapper"/>
<rule filename=".*.3D.*|.*.3D.iso|3D.*" player="Wrapper"/>
<rule filetypes="iso|bdmv|mpls|m2ts" player="Wrapper"/>
<rule video="true" player="Wrapper"/>
</rules>
</playercorefactory>
-
-
If you're stream from NFS share, than modify this:
<!--network protocol rules-->
<rule protocols="nfs|http|rtmp|sop" player="VideoPlayer" /> <!--all nfs-->
To this:
<!--network protocol rules-->
<rule protocols="http|https|rtmp|sop" player="VideoPlayer" /> <!--all http-->
<rule protocols="nfs|smb" player="Wrapper" /> <!--all nfs|smb-->
-
Yes, you are right, I stream them from NFS share.
I modified playercorefactory according to your tips and mkv files and 4K discs start in Wrapper but avi starts too, as far as they are shared by the same protocol. How to make exclusion for them (in nfs/samba)? Could you please advise?
-
Not surely so deep in to this playercore modification stuff, but maybe try to place the </playercorefactory>--specific codecs rules--> section over the <!--network protocol rules--> section in order.
BTW here's a short and a bit info lacking description (https://kodi.wiki/view/HOW-TO:Use_external_players_on_Android) and you could also ask it on the official KODI Forum (https://forum.kodi.tv/forumdisplay.php?fid=164).
-
Interesting... my message disappeared...
I just said "thanks" and moved this thread to the kodi forum:
https://forum.kodi.tv/showthread.php?tid=347671
but looks like no expert there also.