futeko.com FORUM

Old Product Support => HiMedia Q10 Pro, Q5 Pro => Topic started by: Eriol on January 08, 2017, 11:48:32 PM

Title: Replace HiMedia Player with MX Player completely
Post by: Eriol on January 08, 2017, 11:48:32 PM
I'm not really like the fact that HiMedia player is getting worse and worse with every new fw so  I tried and managed to replace HiMedia Player with MX Player recently. What I got so far:

HD Audio passthrough working
10bit HDR working with correct aspect ratio
Subtitles working
Smooth, shuttering free playback (with 23.976fps as well)
SMB playback with subtitles works via Total Commander (needs wrapper via Kodi)
Imprex configurable from MX Player with patch: Unofficial Remote Patch (http://www.futeko.com/newforum/index.php?topic=1259.0)
Optimized playercorefactory.xml:
     Wrapper (HiMediaPlayer) and VideoPlayer (Kodi's player) still selectable in the "Play using..." menu
     VideoPlayer (Kodi's player) automatically plays DVDs, DVD files and ISOs
     Wrapper (HiMediaPlayer) automatically plays Bluray folders and ISOs (In Kodi select: Show Blu-ray menu)

Pros:
Faster and more responsive seeking
Much better subtitle handling and styling (there are fading effects, etc)
Full SSA subtitle support
More flexible and configurable interface
4K HDR "Lucy" problem is solved in the latest version

Cons:
Auto framerate switching not completely implemented (but still got smooth, shuttering free playback)
Direct SMB/NFS playback via Kodi needs XBMC Wrapper (http://www.android-mediaplayer.de/index.php/Thread/4867-MXPlayer-Pro-in-KODI-16-17-XX-als-Standard-Player-einbinden/) to work as with HiMedia Player


How to set up (Kodi 17.x):

1. Installed MX Player Free from store.
2. MX Player settings: Decoder -> Turn off all HW+ and SW video/audio option.
3. Shutdown Kodi if it's running (from within Kodi or you can use the sweeper icon in the main screen)
4. Enabe SAMBA:  Settings -> More -> SAMBA Service (at Personal menu) -> SAMBA
5. Use a computer to open the samba share on the device using it's IP address (eg: \\192.168.1.100)
6. Find and edit \sdcard\Android\data\org.xbmc.kodi\files\.kodi\userdata\playercorefactory.xml on the device as follows:
Code: [Select]
<playercorefactory>
<players>

<player name="MXPlayerFree" type="ExternalPlayer" audio="false" video="true">
<filename>com.mxtech.videoplayer.ad</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>

<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">

<!--Video Rules-->
<rule video="true" player="MXPlayerFree" >
<rule videocodec="mpeg2" player="VideoPlayer" />
<rule filetypes="iso|bdmv" player="Wrapper" />
</rule>

<!--Audio Rules-->
<rule audio="true" player="PAplayer" />

<!--Stream Rules-->
<rule internetstream="true" player="VideoPlayer" />
<rule protocols="http|https|rtmp|sop|pvr" player="VideoPlayer" />

</rules>
</playercorefactory>

For MX Player Pro use the following:

Code: [Select]
<playercorefactory>
<players>

<player name="MXPlayerPro" type="ExternalPlayer" audio="false" video="true">
<filename>com.mxtech.videoplayer.pro</filename>
<hidexbmc>true</hidexbmc>
<playcountminimumtime>120</playcountminimumtime>
</player>

<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">

<!--Video Rules-->
<rule video="true" player="MXPlayerPro" >
<rule videocodec="mpeg2" player="VideoPlayer" />
<rule filetypes="iso|bdmv" player="Wrapper" />
</rule>

<!--Audio Rules-->
<rule audio="true" player="PAplayer" />

<!--Stream Rules-->
<rule internetstream="true" player="VideoPlayer" />
<rule protocols="http|https|rtmp|sop|pvr" player="VideoPlayer" />

</rules>
</playercorefactory>

For Kodi 16 you need to replace all VideoPlayer entries with DVDPlayer.

You either need to play your media from an attached HDD or you need to use mountpoints to access your network shares and configure Kodi to access the library through these mountpoints. Howto can be found here:
Persistent mountpoints for SAMBA / NFS Shares (http://www.futeko.com/newforum/index.php?topic=813.0)

In case of audio issues (this audio format ac3 is not supported) you can download this open source ffmpeg codec (or just use wrapper for that file):
MX Player Custom Codec (https://forum.xda-developers.com/apps/mx-player/mx-player-custom-codec-dts-support-t2156254)
With this codec you can enable HW+ settings as well.

Other useful links:
MX Player shortcuts (https://sites.google.com/site/mxvpen/features/keyboard-shortcuts)
MX Player Pro icon guide (http://www.futeko.com/newforum/index.php?topic=861.msg5987#msg5987)

Title: Re: Replace HiMedia Player with MX Player completly
Post by: honto on January 09, 2017, 05:02:04 AM
But, can MX Player play HDR videos?
As far as I know, only Himedia Player can play HDR videos perfectly, and it also supports 10bit videos. (Any player I found on Google Store is only 8bit, even Kodi)
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 09, 2017, 08:38:43 AM
But, can MX Player play HDR videos?
As far as I know, only Himedia Player can play HDR videos perfectly, and it also supports 10bit videos. (Any player I found on Google Store is only 8bit, even Kodi)

It plays HEVC 10bit perfectly and plays HDR videos as well, however I don't know if its passes the HDR metadata to the TV so it's really HDR or not. You can try it if you want.

And you can still switch in the Kodi menu if you want to play something with HiMedia Player.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: honto on January 09, 2017, 09:34:11 AM
Download this video sample to see the difference:
http://www.mediafire.com/file/5hiymahhqfyzzf3/Spears_Munsil_Quantazation_Test_2160p.mp4  (15 MB)

You must play it in a UHD TV with HDMI Ultra Deep Color feature switched ON

And set the configuration in the box (Q10):
-2160p 60Hz
-YCbCr420 10Bit
-HDR10

Play it with any player (Kodi, MX Player, etc...).
You'll see that only Himedia Player (MediaCenter) can truly display 10Bit.

Title: Re: Replace HiMedia Player with MX Player completly
Post by: looun on January 09, 2017, 09:53:17 AM
Why use MX Player ? it not have any sense  ???
- No auto switch FPS
- No HD audio

If you don't like himedia player , you can use kodi DVDplayer so you have auto switch FPS with HI-addon (http://www.futeko.com/newforum/index.php?topic=1015.0).

PS if you have some issues  try flash last firmware with recovery mod  not OTA. 
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 09, 2017, 01:16:06 PM
- No auto switch FPS

I have smooth playback and didn't saw any shuttering with MX Player so playback is good enough for me.

- No HD audio

DTS/DD passthrough as I wrote before is working perfectly, thats more than enough for me as my Q5 is connected to a AV receiver.

Why use MX Player ? it not have any sense  ???

Because subtitle handling is getting worse and worse in HiMedia player. It does not handle subtitle tags, auto encoding recognition never worked line placement is badly implemented and now it does not show subtitle lines if they are too close in time to each other (not just overlapping but a few ms).

MX player has a more user friendly interface, much more customizable, seeking into video is way faster and more responsive, and the subtitle styles looks much better and handle subtitles perfectly.


I may switch back to HiMedia Player if they can (ever) fix the subtitle handling issues but till then I had enough from their player app.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 09, 2017, 01:28:14 PM
Download this video sample to see the difference:
http://www.mediafire.com/file/5hiymahhqfyzzf3/Spears_Munsil_Quantazation_Test_2160p.mp4  (15 MB)

You must play it in a UHD TV with HDMI Ultra Deep Color feature switched ON

And set the configuration in the box (Q10):
-2160p 60Hz
-YCbCr420 10Bit
-HDR10

Play it with any player (Kodi, MX Player, etc...).
You'll see that only Himedia Player (MediaCenter) can truly display 10Bit.

10bit HEVC: encoding works with MX player, I tried that.
HDR: I can't try that, because I don't have a HDR compatible TV. However it plays HDR videos I tried that.

But you can try it yourself,  just install MX Player to your box and play any video without setting anything else.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: futeko.com on January 09, 2017, 02:34:07 PM
If you don't need 7.1 HD-Audio, 10bit HDR, framerate switching then MX Player is better in some ways (interface / subtitles).

Thanks for posting the instructions on how to change player.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 09, 2017, 03:11:10 PM
If you don't need 7.1 HD-Audio, 10bit HDR, framerate switching then MX Player is better in some ways (interface / subtitles).

Thanks for posting the instructions on how to change player.

7.1 HD-Audio works with passthrough as well, no?

Does someone tried HDR with MX Player at all? I'm just curios.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Fa.Ch on January 09, 2017, 03:22:46 PM
I can try this evening if nobody made the test before
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 10, 2017, 10:09:02 AM
I can try this evening if nobody made the test before

Did you managed to test this?
Title: Re: Replace HiMedia Player with MX Player completly
Post by: dorol on January 10, 2017, 11:58:16 AM
Workaround for subtitles in Mx player?
Playing from a synology, not showing subtitles, must manually copy them on sd card.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 10, 2017, 07:07:15 PM
Workaround for subtitles in Mx player?
Playing from a synology, not showing subtitles, must manually copy them on sd card.

They showing up for me, i rename all my subtitle to have the same name as the move itself.

You may try to use menu button while playing -> Subtitle -> Open
This way you can chose any subtitle you want.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: dorol on January 11, 2017, 07:03:58 AM
Workaround for subtitles in Mx player?
Playing from a synology, not showing subtitles, must manually copy them on sd card.

They showing up for me, i rename all my subtitle to have the same name as the move itself.

You may try to use menu button while playing -> Subtitle -> Open
This way you can chose any subtitle you want.

 Subtitle -> Open point me to sd card.
My subtitles are in the same folder with movies, over samba, in my synology device.

And yes, same name like movie
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 11, 2017, 08:07:04 AM
They are working for me if I rename the subtitle to have the same name as the move itself.

Like this:
2046.2004.BluRay.720p.DTS.x264.mkv
2046.2004.BluRay.720p.DTS.x264.srt
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Fa.Ch on January 11, 2017, 04:36:19 PM
Just finished installing MX Player and launched it.

Sony_4K_HDR_Camp played perfectly and TV Switched to HDR automatically.

Player setted to 2160p60Hz / YcBcR420 10Bits

Video was perfectly smooth

No need to install codecs
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 12, 2017, 09:39:33 AM
First post updated with Fa.Ch's findings.

Playback via Total Commander + SMB with subtitles is perfect so far but I need someone to test SMB playback via Kodi with subtitles because my Q5 box keep refusing to work properly with SMB for me. :(
Title: Re: Replace HiMedia Player with MX Player completly
Post by: pcristi on January 12, 2017, 10:11:02 AM
Please try with HiMedia 24Hz ON, see if at least for 23.976fps is work.

Quote from: Eriol
Auto framerate switching not implemented (but still got smooth, shuttering free playback)
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 12, 2017, 10:25:14 AM
Please try with HiMedia 24Hz ON, see if at least for 23.976fps is work.

Quote from: Eriol
Auto framerate switching not implemented (but still got smooth, shuttering free playback)

I'm using it with 24Hz On and I play several 23.976fps material with it.
I don't see any shuttering with FPS_test_1080p23.976_L4.1.mkv (3 white bars moving from left to right) and with Judder_Test_BD_3 (Cypheros HDTV Testbild) 23.976fps testfile. Also tested 59.940fps and it's looks good as well.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 12, 2017, 02:09:13 PM
Bump
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 18, 2017, 06:21:36 PM
Since there is no fix for the subtitle problem in the 2.0.1 fw I suggest to sticky this thread or at least include it in the Q5/Q10 Pro FAQ thread till HiMedia fixes the subtitle bug in their player.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Henry_NL on January 20, 2017, 06:26:47 PM
I would like to use this way of using MXplayer but I get all the time connection refused. NFS on Qnap NAS is setup properly, suspect android 7 latest firmware issue? Any progress for a SMB solution?
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 20, 2017, 07:06:44 PM
I would like to use this way of using MXplayer but I get all the time connection refused. NFS on Qnap NAS is setup properly, suspect android 7 latest firmware issue? Any progress for a SMB solution?

Did you tried pcristi's / Looun's Auto_Mount_ShortCut patch? It can create NFS/SMB mount points to your device, so you can browse the shares with Kodi via the device's local folders. Pretty handy stuff. If the patch doesn't work for you, I can suggest some modification in it that might help (I got some issues with it myself).
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Henry_NL on January 21, 2017, 05:57:02 PM
Hi Eriol,
I tried the easy way ,after executing tbe bat file the player reboots but no mountpoints. Then the more difficult way, execute script try_mount but access denied, also after changing paths and parameters as described in that post, stripping the command line to the most exential commands. Try later again, maby kodi17 final version has better support for this. I can start MXplayer when browsing to my (smb) shares with for instance X-plorer. Keep with himedia player, when subs are badly I rip them out with MKVExtractGUI2. External subs no problem.
Overall I am very satisfied with this flexible player (Q10 Pro).
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Valterair72500 on January 22, 2017, 06:46:02 PM
Hello. Please help me.
I have problems with 3D subtilte deph on Himedia 10 Pro.
It doesn't appears on correct plane when play 3D iso Movies
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 22, 2017, 09:37:29 PM
Hi Eriol,
I tried the easy way ,after executing tbe bat file the player reboots but no mountpoints. Then the more difficult way, execute script try_mount but access denied, also after changing paths and parameters as described in that post, stripping the command line to the most exential commands. Try later again, maby kodi17 final version has better support for this. I can start MXplayer when browsing to my (smb) shares with for instance X-plorer. Keep with himedia player, when subs are badly I rip them out with MKVExtractGUI2. External subs no problem.
Overall I am very satisfied with this flexible player (Q10 Pro).

There is an install-recovery.sh named file in the patch. You need to edit the 21st line to sleep 20; so it will look like this:

Code: [Select]
#!/system/bin/sh

# mountShortCut.sh ver. 1.1.1
# make busybox symlink if not exist

am start -a android.intent.action.MAIN -e message start -n com.rja.utility/.ShowToast
if [ ! -e /system/bin/cut ];
then
  mount -o remount,rw /system
  ln -s /system/bin/busybox /system/bin/cut
  sync
  mount -o remount,ro /system
fi
# set max. waiting for arp 60 seconds
p=60
# set start mountpoints
mpsmb=1
mpnfs=0
while  [ $p -ne 0 ];
do
sleep 20;
p=$(( p-1 ))
  if [ "`busybox arp | grep on -c`" != "0" ];
  then
   # define path mountShortCut.txt
   filename="/sdcard/mountShortCut.txt"
/system/xbin/sqlite3 /data/data/com.himedia.lan/databases/finalserver.db 'select * from samba' > $filename
/system/xbin/sqlite3 /data/data/com.himedia.nfs/databases/finalserver.db 'select * from nfsclient' >> $filename
   # loop of all rows
   while IFS='' read -r line || [[ -n "$line" ]]; do
var_prtc=`echo $line | cut -d "|" -f1`
var_ip=`echo $line | cut -d "|" -f2`
var_name=`echo $line | cut -d "|" -f3`
var_path=`echo $line | cut -d "|" -f4`

if [ "`echo $var_path | grep / -c`" != "0" ];
then
  var_prtc=nfs
  var_user=''
  var_psw=''
  var_folder=nfs_share$mpnfs
  mnt_path=/mnt
  mpnfs=$(( mpnfs+1 ))
else
  var_prtc=smb
  var_user=`echo $line | cut -d "|" -f5`
  var_psw=`echo $line | cut -d "|" -f6`
  var_folder=mountpoint_0$mpsmb
  mnt_path=/mnt
  mpsmb=$(( mpsmb+1 ))
fi

   if [ "`busybox ping -c 1 -W 1 $var_ip | grep ms -c`" != "0" ];
   then
if [ $var_prtc == "smb" ];
then
# mkdir -p $mnt_path/$var_prtc/$var_folder
# busybox mount -t cifs -o user=$var_user,password=$var_psw,cache=loose //$var_ip/$var_path  $mnt_path/$var_prtc/$var_folder
mkdir -p /mnt/sdcard/$var_name/$var_path
busybox mount -t cifs -o user=$var_user,password=$var_psw,cache=loose //$var_ip/$var_path  /mnt/sdcard/$var_name/$var_path
am start -a android.intent.action.MAIN -e message "$var_name/$var_path: $var_prtc://$var_ip/$var_path"  -n com.rja.utility/.ShowToast
else
mkdir -p $mnt_path/$var_prtc"Share"/$var_folder
busybox mount -t nfs -o nolock,tcp $var_ip:$var_path $mnt_path/$var_prtc"Share"/$var_folder
fi
   fi

   # end loop
   done < "$filename"
  p=0
 fi
done

rm -f $filename

Btw how familiar are you with ADB and/or linux commands?
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 22, 2017, 09:39:48 PM
Hello. Please help me.
I have problems with 3D subtilte deph on Himedia 10 Pro.
It doesn't appears on correct plane when play 3D iso Movies

What player do you use? Himedia Player (Wrapper), Kodi's DVDPlayer or MX Player?
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Henry_NL on January 23, 2017, 10:10:21 PM
Hi Eriol, i am more familar with msdos, vbscript, powershell, say the windows stuff. Little with linux and also adb but that can be found. I gave a try on the modified sh but not working. I tried the http://www.android-mediaplayer.de/index.php/Thread/3325-Tool-New-Auto-Mount-Multimedia-shared-folder-EASY-version-Himedia-V200-pro/ from loun. I executed this with one share on my nas (Video). Checking this on the q10 with the mount command in terminal emulator showed 2 new mountpoints for Video, one smb and one cifs but the directory path to the smb dir on the internal flash memory is wrong, I think based on android 5.11. I will correct this in the .sh file and try again.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 24, 2017, 12:23:14 AM
You can try mounting based on this (replace capital):

Code: [Select]
adb connect IP:5555
adb root
adb remount

adb shell mkdir -p /sdcard/PATH
adb shell chmod 0777 /sdcard/PATH
adb shell mount -t cifs -o user="USER",password=PWD,iocharset=utf8,file_mode=0777,dir_mode=0777,cache=loose //SERVER/SHARE

adb shell mkdir -p /mnt/nfsShare/PATH
adb shell chmod 0777 /mnt/nfsShare
adb shell chmod 0777 /mnt/nfsShare/PATH
adb shell busybox mount -t nfs -o nolock,tcp SERVER:/NFS_SHARE /mnt/nfsShare/PATH
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Henry_NL on January 25, 2017, 06:22:26 PM
Eriol,
I am on android 7 latest firmware with my Q10, my movies are stored on a NAS. When I execute this command:
adb shell busybox mount -t cifs -o user="guest",iocharset=utf8,file_mode=0777,dir_mode=0777,cache=loose //192.168.1.5/Video /sdcard/mountpoints/NASvideo
I get 2 mountpoints
1 - //192.168.1.5/Video on /storage/emulated/0/mountpoints/NASvideo type cifs (rw, etc etc etc
2 - //192.168.1.5/Video on /mnt/runtime/default/emulated/0/mountpoints/NASvideo type cifs (rw, etc etc etc
Both mountpoints are not accessable throug X-plore or through Kodi, in no way. I expected this once as a mount point:
//192.168.1.5/Video on /mnt/sdcard/mountpoints/NASvideo type cifs (rw, etc etc etc
Seems that mounting to SDcard directory gets screwed up, don't know why so I tried something different.

adb shell busybox mount -t cifs -o user="guest",iocharset=utf8,file_mode=0777,dir_mode=0777,cache=loose //192.168.1.5/Video /mnt/media_rw/sda1/mountpoints/NASvideo
this points to my internal hard drive. Mount result:
//192.168.1.5/Video on /mnt/media_rw/sda1/mountpoints/NASvideo type cifs (rw, etc etc etc
That looks better and it works, I can browse this path in X-plore and Kodi.

So I tried this to be independend of my harddrive:
adb shell mkdir -p /mnt/media_rw/MPvideo
adb shell chmod 0777 /mnt/media_rw/MPvideo
adb shell busybox mount -t cifs -o user="guest",iocharset=utf8,file_mode=0777,dir_mode=0777,cache=loose //192.168.1.5/Video /mnt/media_rw/MPvideo
Result mount command:
//192.168.1.5/Video on /mnt/media_rw/MPvideo type cifs (rw, etc etc etc
Looks good, and also accessable. So I copied your modified playercorefactory.xml to the kodi dir, added the mountpoint in kodi as a location for video files and YES finaly I get MXplayerfree to work from kodi.

Well, after reboot this is all gone but I will look into the posted Auto_Mount_Multimedia_2_Q10_v0.2.rar and change install-recovery.sh to the correct directory (notepad++). That will be a job for the weekend, have to think about a one time setup directory structure for me (somethink like /mnt/media_rw/mountpoints/ and all others in that one).

Thanks for your help pointing me to get more knowledge of adb and some linux commands.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 25, 2017, 09:00:37 PM
Yes, I got problems to mount NFS to sdcard as well. I didn't find out the reason but I'm sure pcristi knows.

To get it persistent just insert the command (without adb shell) into an empty file and name it to install-recovery.sh.
After that push it to the device:

Code: [Select]
adb connect IP:5555
adb root
adb remount
adb push install-recovery.sh /system/bin/install-recovery.sh
adb shell chmod 0755 /system/bin/install-recovery.sh
adb shell reboot

You may need to add a sleep xx (for me its 20 sec) to the beginning of the install-recovery.sh script to make it wait for the system to initiate completely.

And that's it.
Welcome. :)
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Henry_NL on January 25, 2017, 09:21:06 PM
Hi Eriol,
Forgot to mention but I was able to do a ls (dir) command from the first 2 mountpoints on my pc through the adb shell command which runs as root. Issue is related to a lack of permissions somewhere in both mountpoints because this did not worked directly on the q10pro which has no root permissions (unrooted device).
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on January 25, 2017, 10:09:33 PM
That's why I chmod 0777 every directory that I made or mount to on the device myself. :)
Title: Re: Replace HiMedia Player with MX Player completly
Post by: dungtv on February 02, 2017, 08:18:47 AM
My device is Q5 pro, Android 7, Kodi 17 rc4, MX Player pro 1.8.15
When I press "back" button on the remote control to stop player I got problem like this:
(http://imageshack.com/a/img923/6074/4Rmyag.png)

How to fix it ??
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on February 02, 2017, 09:52:38 AM
When Kodi calls an external player this info message pops up in the background. You see it only when the external player closes and you are back in Kodi again. Since Kodi can't detect when do you finish using the external player it waits for the user for confirmation.

I should add here that this not always happening, but I couldn't figure out what kind of sorcery do I need to perform to stop these info messages.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: looun on May 02, 2017, 10:49:55 AM
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Henry_NL on May 02, 2017, 08:54:00 PM
Title: Re: Replace HiMedia Player with MX Player completly
Post by: kaosnews on May 03, 2017, 09:01:03 AM
When Kodi calls an external player this info message pops up in the background. You see it only when the external player closes and you are back in Kodi again. Since Kodi can't detect when do you finish using the external player it waits for the user for confirmation.

I should add here that this not always happening, but I couldn't figure out what kind of sorcery do I need to perform to stop these info messages.

I use FTMC (http://freaktab.com/forum/tv-player-support/general-tv-player-dicussions/xbmc-talk/575588-ftmc) and there they fixed that problem (also the reason I switched to this version)

Code: [Select]
[Extra] Disabled External Player confirmation dialog. Like this theirs no more need to press 'OK' every time it starts/stops the play of a video file! ( Thks mo123 for the tip ;) )
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on May 03, 2017, 03:35:48 PM
When Kodi calls an external player this info message pops up in the background. You see it only when the external player closes and you are back in Kodi again. Since Kodi can't detect when do you finish using the external player it waits for the user for confirmation.

I should add here that this not always happening, but I couldn't figure out what kind of sorcery do I need to perform to stop these info messages.

I use FTMC (http://freaktab.com/forum/tv-player-support/general-tv-player-dicussions/xbmc-talk/575588-ftmc) and there they fixed that problem (also the reason I switched to this version)

Code: [Select]
[Extra] Disabled External Player confirmation dialog. Like this theirs no more need to press 'OK' every time it starts/stops the play of a video file! ( Thks mo123 for the tip ;) )

Thanks, will check it out!
Title: Re: Replace HiMedia Player with MX Player completly
Post by: oxanna on May 07, 2017, 11:46:54 AM
I'm not really like the fact that HiMedia player is getting worse and worse with every new fw so  I tried and managed to replace HiMedia Player with MX Player recently. What I got so far:

HD Audio passthrough working
10bit HDR working (thx Fa.Ch for testing)
Subtitles working
Smooth, shuttering free playback (with 23.976fps as well)
SMB playback with subtitles works via Total Commander (needs testing via Kodi)
Imprex configurable from MX Player with patch: Unofficial Remote Patch (http://www.futeko.com/newforum/index.php?topic=1259.0)
Optimized playercorefactory.xml:
     Wrapper (HiMediaPlayer) and DVDPlayer (Kodi's player) still selectable in the "Play using..." menu
     DVDPlayer (Kodi's player) automatically plays DVDs, DVD files and ISOs


Pros:
Faster and more responsive seeking
Much better subtitle handling and styling (there are fading effects, etc)
Better and configurable interface

Cons:
Auto framerate switching not completely implemented (but still got smooth, shuttering free playback)
SMB/NFS playback via Kodi needs testing (I can't right now)


How to set up (Kodi 16.1):

1. Installed MX Player Free from store.
2. MX Player settings: Decoder -> Turn off all HW+ and SW video/audio option.
3. Edit \sdcard\Android\data\org.xbmc.kodi\files\.kodi\userdata\playercorefactory.xml as follows:
Code: [Select]
<playercorefactory>
  <players>
    <player name="MXPlayerFree" type="ExternalPlayer" audio="false" video="true">
      <filename>com.mxtech.videoplayer.ad</filename>
      <hidexbmc>true</hidexbmc>
      <playcountminimumtime>120</playcountminimumtime>
    </player>
    <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">
    <rule video="true" player="MXPlayerFree">
      <rule name="dvd" dvd="true" player="DVDPlayer" />
      <rule name="dvdimage" dvdimage="true" player="DVDPlayer" />
      <rule name="dvdfile" dvdfile="true" player="DVDPlayer" />
      <rule filetypes="iso" name="iso" player="DVDPlayer" />
      <rule filetypes="bdmv" name="bdmv" player="DVDPlayer" />
      <rule filetypes="ifo" name="ifo" player="DVDPlayer" />
    </rule>
    <rule  protocols="hdhomerun|myth|cmyth|mms|mmsh|udp" player="DVDPlayer" />
    <rule name="rtmp" protocols="rtmp" player="DVDPlayer" />
    <rule name="rtsp" protocols="rtsp" filetypes="!(rm|ra)"  player="PAPlayer" />
    <rule name="streams" internetstream="true" player="DVDPlayer">
      <rule name="aacp/sdp" mimetypes="audio/aacp|application/sdp"  player="DVDPlayer"/>
      <rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
    </rule>
  </rules>
</playercorefactory>

For MX Player Pro use the following:

Code: [Select]
<playercorefactory>
  <players>
    <player name="MXPlayerPro" type="ExternalPlayer" audio="false" video="true">
      <filename>com.mxtech.videoplayer.pro</filename>
      <hidexbmc>true</hidexbmc>
      <playcountminimumtime>120</playcountminimumtime>
    </player>
    <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">
    <rule video="true" player="MXPlayerPro">
      <rule name="dvd" dvd="true" player="DVDPlayer" />
      <rule name="dvdimage" dvdimage="true" player="DVDPlayer" />
      <rule name="dvdfile" dvdfile="true" player="DVDPlayer" />
      <rule filetypes="iso" name="iso" player="DVDPlayer" />
      <rule filetypes="bdmv" name="bdmv" player="DVDPlayer" />
      <rule filetypes="ifo" name="ifo" player="DVDPlayer" />
    </rule>
    <rule  protocols="hdhomerun|myth|cmyth|mms|mmsh|udp" player="DVDPlayer" />
    <rule name="rtmp" protocols="rtmp" player="DVDPlayer" />
    <rule name="rtsp" protocols="rtsp" filetypes="!(rm|ra)"  player="PAPlayer" />
    <rule name="streams" internetstream="true" player="DVDPlayer">
      <rule name="aacp/sdp" mimetypes="audio/aacp|application/sdp"  player="DVDPlayer"/>
      <rule name="mp2" mimetypes="application/octet-stream" filetypes="mp2" player="PAPlayer" />
    </rule>
  </rules>
</playercorefactory>

For Kodi 17 you need to replace all DVDPlayer entries with VideoPlayer.

I use mountpoints for access my shares and Kodi is set up to access the library through these mountpoints. If you have problem accessing/playing back from your shares you may need to use mountpoints as well. Howto can be found here:
http://www.futeko.com/newforum/index.php?topic=813.0 (http://www.futeko.com/newforum/index.php?topic=813.0)

MX Player shortcuts:
https://sites.google.com/site/mxvpen/features/keyboard-shortcuts (https://sites.google.com/site/mxvpen/features/keyboard-shortcuts)

SMB playback with Kodi is under testing. I update this post when I'm have more info.
I'm not expert. But how do you change in kodi 16.1
The player with xplayer ???
Especially how do you enter to edit  (3. Edit \sdcard\Android\data\org.xbmc.kodi\files\.kodi\userdata\playercorefactory.xml as follows)
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on May 07, 2017, 05:57:38 PM
I'm not expert. But how do you change in kodi 16.1
The player with xplayer ???
Especially how do you enter to edit  (3. Edit \sdcard\Android\data\org.xbmc.kodi\files\.kodi\userdata\playercorefactory.xml as follows)

Via samba server on the HiMedia box:
1. Stop Kodi (you can use the sweeper icon in the main screen)
2. Enabe SAMBA:  Settings -> More -> SAMBA Service (at Personal menu) -> SAMBA
3. Use your computer to browse the HiMedia box via IP address
4. Find and edit the file
5. Start Kodi
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on June 02, 2017, 03:30:24 PM
It seems latest MX Player are able to play non standard aspect ration HDR videos properly (aka Lucy bug) in all version of the firmware.
Further testing is required.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on June 04, 2017, 11:01:50 PM
Some changes in playercorefactory.xml:
- Cleanup
- Wrapper (HiMediaPlayer) automatically plays 3D ISOs
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on June 07, 2017, 10:54:23 PM
In case of audio issues (this audio format ac3 is not supported) you can download this open source ffmpeg codec:
MX Player Custom Codec (https://forum.xda-developers.com/apps/mx-player/mx-player-custom-codec-dts-support-t2156254)
With this codec you can enable HW+ settings as well.

Added this to the main post as well.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Deadrick on June 19, 2017, 09:54:08 AM
Any lehman steps by steps to install n use mx player for video playing?
I kinda lost at the step 3 n beyond.
The coding need to use a pc to edit or enter in?
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on June 19, 2017, 01:19:07 PM
Any lehman steps by steps to install n use mx player for video playing?
I kinda lost at the step 3 n beyond.
The coding need to use a pc to edit or enter in?

Edited the first post to make it more clear.
But basically:
You need to shutdown Kodi, use your PC to open the SAMBA share on the device (using the device's IP), find the file and edit it.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Deadrick on June 19, 2017, 04:36:00 PM
ok thanks, now i starting to uinderstand what is file sharing! Samba is file sharing..

 now im stucked at the
5. Use a computer to open the samba share on the device using it's IP address (eg: \\192.168.1.100)
6. Find and edit \sdcard\Android\data\org.xbmc.kodi\files\.kodi\userdata\playercorefactory.xml on the device as follows:

I managed to access  himedia under computer - > Network -> Android blabblah -> Share - > sdcard . .. . .. .
But the last playercorefactory.xml  is not opening or working. error show: window cannot access, check the spelling etc.
diagnosing the error doesnt help anything.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on June 19, 2017, 06:25:14 PM
Go to this folder on the device:
\sdcard\Android\data\org.xbmc.kodi\files\.kodi\userdata\

Then look for a file called playercorefactory.xml
Right click on the file and select Edit from the menu
Now you need to delete the whole content of the file and paste the code from the first post. If you using Kodi 17, you need to replace all DVDPlayer entries with VideoPlayer
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Deadrick on June 20, 2017, 01:43:43 AM
This is the problem, im not seeing any playercorefactory.xml file.. theres a bunch of files in there but not this file.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on June 20, 2017, 07:04:53 AM
Then create one.  :)
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Deadrick on June 20, 2017, 01:22:07 PM
haha done! now i watch in mx player in Kodi app.

Thanks for follow up and assistance!
and wow mx player is pretty good!

Subtitle online downloading,
HDR is playing without issues.
2 important issues himedia did not solve.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on June 20, 2017, 02:39:18 PM
Welcome! I'm glad that you like it.  ;D
Title: Re: Replace HiMedia Player with MX Player completly
Post by: oxanna on June 22, 2017, 03:33:10 AM

ERIOL
Unfortunately also mxplayer does not read the new 4k full 1.1 movies, that is, the 4 titles  without AACS2 protection: puffs 2, patriot days, inferno, LA LA LAND
Title: Re: Replace HiMedia Player with MX Player completly
Post by: mihailuican on June 22, 2017, 04:57:01 AM
What is PUFFS2, because I could not find it on IMDB? I will play Inferno today and bring back an answer. Maybe SMURFS 2?
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on June 22, 2017, 07:18:45 AM

ERIOL
Unfortunately also mxplayer does not read the new 4k full 1.1 movies, that is, the 4 titles  without AACS2 protection: puffs 2, patriot days, inferno, LA LA LAND

That's correct, MX Player doesn't play bluray/dvd menus, it's only plays the m2ts files from the folder structure.
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Deadrick on June 24, 2017, 05:28:19 AM
anyway to use the next chapter buttom during playback with mx player?
cant seem to fwd to next chapter
Title: Re: Replace HiMedia Player with MX Player completly
Post by: Eriol on June 24, 2017, 08:16:35 AM
anyway to use the next chapter buttom during playback with mx player?
cant seem to fwd to next chapter

MX Player unfortunately has zero support for any of the MKV chapter specification.
Title: Re: Replace HiMedia Player with MX Player completely
Post by: Eriol on July 20, 2017, 01:07:53 AM
Better DVD / Bluray detection in playercorefactory.xml implemented. Also updated to default code for Kodi 17.
Update your config if you wish to.
Title: Re: Replace HiMedia Player with MX Player completely
Post by: Eriol on July 31, 2017, 01:14:23 PM
Refreshing to MX Player 1.9.3 is not recommended because of a new seeking bug introduced in that version. Already reported on MX Player's forum:
https://forum.xda-developers.com/apps/mx-player/short-seeking-goes-to-beginning-video-t3647737 (https://forum.xda-developers.com/apps/mx-player/short-seeking-goes-to-beginning-video-t3647737)
Title: Re: Replace HiMedia Player with MX Player completely
Post by: Eriol on August 29, 2017, 08:11:45 AM
Refreshing to MX Player 1.9.3 is not recommended because of a new seeking bug introduced in that version. Already reported on MX Player's forum:
https://forum.xda-developers.com/apps/mx-player/short-seeking-goes-to-beginning-video-t3647737 (https://forum.xda-developers.com/apps/mx-player/short-seeking-goes-to-beginning-video-t3647737)

MX Player 1.9.5 fixes the seeking issue.
Title: Re: Replace HiMedia Player with MX Player completely
Post by: Mount81 on August 30, 2017, 06:48:15 AM
Hello!

Have here anyone tried MX Player for DVD playback?! I would have a few questions:

Does it playback DVD iso and extracted TS folders/.vob files as well?! Does it have correct fps switching for 25fps->50Hz and 30fps->60Hz DVDs?! Does it have correct deinterlacing for these interlaced DVDs?! You can check the fps switching on your TV's info and the deinterlacing by the PQ: if it's not correctly deinterlaced than it would have some PQ degrading "comby and rough edges" effect specially on the moving objects.

Thanks for the replies!
Title: Re: Replace HiMedia Player with MX Player completely
Post by: Eriol on August 30, 2017, 10:22:09 AM
MX Player is not capable to play DVDs with Menu at all.
Title: Re: Replace HiMedia Player with MX Player completely
Post by: MrQute-n on August 30, 2017, 03:54:42 PM
I bought MX player and its a bad choice. If they only could implement some new features on Himedias player i would be content!
Title: Re: Replace HiMedia Player with MX Player completely
Post by: Eriol on August 30, 2017, 05:19:12 PM
I bought MX player and its a bad choice. If they only could implement some new features on Himedias player i would be content!

Why didn't you tried the free version if it's suits your needs before you bought it?
MX Player is an android player not specifically designed to/for Himedia but what feature do you miss?
Title: Re: Replace HiMedia Player with MX Player completely
Post by: mulderfox on June 14, 2019, 04:34:10 AM
So MXPlayer will not work on local network content unless a auto mount patch is used? and in that case, wouldn't a complete re-scan of the library be required?
Title: Re: Replace HiMedia Player with MX Player completely
Post by: Phil181 on June 15, 2019, 06:28:56 PM
This resurrected thread is 2 years old!  There have been many firmware versions released since the last (dated) post. 
The built-in MediaCenter player has also been updated and bug fixed a few times in the last 2 years (and it does not need Kodi for it to work).  I'd certainly recommend using that first, before any other Android software players that are not optimised for the Q10/Q5 chip.
Title: Re: Replace HiMedia Player with MX Player completely
Post by: Mount81 on June 16, 2019, 04:15:26 AM
So MXPlayer will not work on local network content unless a auto mount patch is used? and in that case, wouldn't a complete re-scan of the library be required?

Rescan what library, KODI? If yes, than I guess so.

I would like to migrate my Library from SMB to NFS share (all the same, even the folders name), but I guess it's impossible without a rescan. 

For auto mount patch:  I didn't tried, but I guess you don't need to patch it. In the case of NFS Shortcuts you make in Media Center the main folder is automatically mounted to mnt/nfsShare/nfs_share0, wheres the number on the end may wary by the order you created the Shortcuts. And if you named the Shortcut's folder like "Videos" than the full path would be:  mnt/nfsShare/nfs_share0/Videos. You can't browse that in with KODI, so you must enter manually.  I guess its quite the same in the case of SMB, dig it up with a File Explorer how that folder's being named (I would guess smbShare/smb_Share0, 1, 2, etc...).
Title: Re: Replace HiMedia Player with MX Player completely
Post by: Mount81 on July 01, 2019, 07:39:43 AM
Hello!

I'm on the run to use MX Player only for 576 and under resolution videos. I have tried with a mod of playercorefactory, but it ins't working at all, see as bellow:

Code: [Select]
<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>

<player name="MXPlayerFree" type="ExternalPlayer" audio="false" video="true">
<filename>com.mxtech.videoplayer.ad</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="MXPlayerFree" />
<rule video="true" videoresolution="576" player="MXPlayerFree" />
<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" player="Wrapper"/>
<rule filetypes="iso|bdmv|mpls|m2ts" player="Wrapper"/>
<rule video="true"  player="Wrapper"/>
</rules>
</playercorefactory>

What am I missing here, any advice for correction?

Thanks!
 
Title: Re: Replace HiMedia Player with MX Player completely
Post by: DMD on July 01, 2019, 09:50:26 AM
Hi I tried to replace the script playercorefactory.xml with that of the first post related to MXPlayer free, but it always starts the Kodi player.
Where am I wrong?
I installed the latest version of MX Player 1.11.6  (https://m.apkpure.com/it/mx-player/com.mxtech.videoplayer.ad)
Thank you