Debugging HW decoding problems - MX Player

I'm a software developer working on a network streaming solution, and I'm serving up a network stream to MX player over HTTP. The content plays fine if I save it to a file and play it locally, but if I try to play it back over an HTTP stream it always falls back to S/W mode.
S/W mode isn't going to work with a 720p stream at more than 10 Mbit/sec (H.264/AAC in an mpegts container). Any attempt to toggle over to H/W decoder always comes back with a popup that says "Cannot play this video with the H/W decoder" (with no more detailed info as to the nature of the problem).
I'm more than happy to dig through the logs (I've downloaded the MX log collector), but it would be great if you could offer any guidance on things to look for. It's entirely possible that the problem is somehow related to how I'm serving up the stream but I don't see anything obvious that would cause MX Player to fall back to SW mode.
Any suggestions on what to look for in the logs would be greatly appreciated. Alternatively, does the author offer any form of source license for commercial parties? I suspect if I could recompile the app and add some more logging I would be much more likely to isolate the underlying problem.
Devin

Me too. Im having the same problem when i try to use h/w decoder on a mkv format. Can somebody help us?

In which device you are facing the problem?
I can reproduce the same in mediatek based devices. But, the problem is not only with MX Player. I have tried other players like Dice player. It also has the same problem.
Can anyone conform the same with Qualcomm devices?
Sent from my Micromax A116 using Tapatalk
---------- Post added at 01:04 PM ---------- Previous post was at 01:01 PM ----------
Anyhow I will inform to to the developer regarding this issue.
Sent from my Micromax A116 using Tapatalk

@bleu8888 could you look into both issues? (logging + commercial use)

Related

[Bug Report] No Audio on H/W Decoder ( Even with S/W audio )

Hi KTSamy,
I installed latest player and ARMv7 NEON codecs as it was advised by the player. However, it still not works properly.
I use a file manager capable to connect to my SMB shares and I initiate the playback from there. I tried to use HW+ decoder but I got a message stating that it is not supported. Using the recommended settings for HW decoder (software audio) I am still missing the sound. It worth to notice that audio channel selection contains 6 entries with some strange characters in them when in reality there are only two audio channels. As I found, others maybe some built-in subtitles, but there is nothing to do for them among audio channels. In this situation playback of a HD video is smooth enough, but there is no sound.
Switching to S/W decoder during playback solves problems with sound, and audio channel list shows the correct number and names of really existing audio channels. But in this mode even a SD video is painfully lagging. Impossible to see... If i switch back to HW decoder than sound remains and audio channel selection is also OK if the software audio decoding is selected. But the video still lagging. Not so much as in case of S/W decoding, but all my HD videos are rendered useless by that. Disabling sound in audio channel selection improves much the video playback, but again, without sound.
I think that the PAD2411 is a quite powerful device at least it should cope with HD video playback. Unfortunately it has numerous compatibility issues with almost all other video players due to the absence of its' own display. (Playback must go directly to the HDMI output.) MX Player is my unbeatable favorite and I use it on all my other devices without any problem. Do you have any idea how could I optimize the playback? Maybe the codec or the app should be adapted?
Thansk in advance!
Bithajcsar
bithajcsar said:
Hi KTSamy,
I installed latest player and ARMv7 NEON codecs as it was advised by the player. However, it still not works properly.
I use a file manager capable to connect to my SMB shares and I initiate the playback from there. I tried to use HW+ decoder but I got a message stating that it is not supported. Using the recommended settings for HW decoder (software audio) I am still missing the sound. It worth to notice that audio channel selection contains 6 entries with some strange characters in them when in reality there are only two audio channels. As I found, others maybe some built-in subtitles, but there is nothing to do for them among audio channels. In this situation playback of a HD video is smooth enough, but there is no sound.
Switching to S/W decoder during playback solves problems with sound, and audio channel list shows the correct number and names of really existing audio channels. But in this mode even a SD video is painfully lagging. Impossible to see... If i switch back to HW decoder than sound remains and audio channel selection is also OK if the software audio decoding is selected. But the video still lagging. Not so much as in case of S/W decoding, but all my HD videos are rendered useless by that. Disabling sound in audio channel selection improves much the video playback, but again, without sound.
I think that the PAD2411 is a quite powerful device at least it should cope with HD video playback. Unfortunately it has numerous compatibility issues with almost all other video players due to the absence of its' own display. (Playback must go directly to the HDMI output.) MX Player is my unbeatable favorite and I use it on all my other devices without any problem. Do you have any idea how could I optimize the playback? Maybe the codec or the app should be adapted?
Thansk in advance!
Bithajcsar
Click to expand...
Click to collapse
Regarding audio issue on H/W decoder with S/W audio, Kindly collect the log immediately after playing the video & Upload here.
Regarding S/W issue, Your processor (Cortex A9 Dual Core) is a very old processor & not a powerful one. So, it can't handle many videos smoothly.
Note:
Kindly create a separate threads for your issues.
General issues are not to be reported on Custom Codec thread
ktsamy said:
Regarding audio issue on H/W decoder with S/W audio, Kindly collect the log immediately after playing the video & Upload here.
Regarding S/W issue, Your processor (Cortex A9 Dual Core) is a very old processor & not a powerful one. So, it can't handle many videos smoothly.
Note:
Kindly create a separate threads for your issues.
General issues are not to be reported on Custom Codec thread
Click to expand...
Click to collapse
Thanks for your attention to my problem!
The log is attached.
bithajcsar said:
Thanks for your attention to my problem!
The log is attached.
Click to expand...
Click to collapse
Hi KTSamy,
It has been quite some time ago when I uploaded the log you requested. Were you able to review that? Did the log provide the necessary information? Should I do anything else to move things forward?
Regards,
Bithajcsar
bithajcsar said:
Hi KTSamy,
It has been quite some time ago when I uploaded the log you requested. Were you able to review that? Did the log provide the necessary information? Should I do anything else to move things forward?
Regards,
Bithajcsar
Click to expand...
Click to collapse
I was busy with my work. So, I was not much active in XDA from the last few weeks.
Actually, In network playback MX Player won't use software audio with H/W decoder to avoid authentication issue.
If you H/W+ is working on your device, you can use it as alternative.
If you still wish to use H/W decoder, if Switch to H/W+ & Revert Back to H/W decoder it will bring the audio back.
According to the information provided by the developer, MXPlayer major upgrade v1.8 will resolve network authentication issues.

[Q] Video never starts playing

I just purchased MX Player Pro from the Google Play store and have v1.7.40 (neon)installed on my Nexus 6. Since I have a lot of video files with AC3 audio, I installed the custom AC3 codec found here on XDA (automatic restart applied). After that, I configured MX Player Pro to use HW+ decoding and failover to HW decoding.
I can't seem to get videos to play at all. I open a video and it sits there like it's on pause. I've tried multiple video files and get the same result. Most are x.264, one is x.265. I've tried changing it to HW decoding as well as SW decoding but get the same result. I've force stopped the app and tried again after clearing the app data and telling it NOT to use the custom codec but still get the same result. Am I doing something wrong? I really like MX Player Pro but I'm going to need to refund it if I can't get it to work.
EDIT: On some videos that I start, if I manually fast forward, I don't see any video at all. On the x.265 video, I can manually fast forward and see the video frame of where it's at in the timeline but it just never plays.
END EDIT
On a side note, after launching MX Player Pro for the first time, I was not prompted to install the codec package so I installed it manually.
Thanks so much to anyone who takes the time to read this and/or assist with this matter.
Well, assuming by "codec package" you mean the ARMv7 Codec package on the Play Store, you don't need these codec packages by default. On the contrary, the fact that you installed the custom codec may be what's causing the playback issue.
The Custom Codec on XDA here is purely for AC3 and DTS audio compatibility, and generally shouldn't affect video playback.
To be certain, are you using the stock Nexus 6 ROM? If yes then which build in particular?
Also, if you could collect an error log after it freezes, that would help.
How-to MX Log Collector - Error Logs
@phoney_stuff
H/W+ may cause issues with certain videos. I don't recommend it to use it as default.
Just try to start the video in S/W decoder (log press the video & from menu > play using > SW decoder.)
Don't resume if it asks.
Let me know the results.
If you still have issues, kindly collect the logs immediately after playing the video & upload here.
@CDB-Man
As you know Custom codec is same as the inbuilt ffmpeg which comes with mx player itself. But, ac3 & dts support is enabled. So, it may not be the issue.
Both H/W+ & S/W decoders use ffmpeg. If the issue is there in S/W it might be an issue related to ffmpeg itself.
Gentlemen,
Thanks for the reply!
I'm running stock Android 5.1.1 on a non-rooted device, latest version, screenshot attached.
My first attempt was without the codec that's is available on the Play store, but with the custom AC3 codec. When that failed, I installed the codec from the Play store and got the same result. Then I tried it again after removing the custom AC3 codec (leaving the codec available from the Play store in place) and, again, got the same result. In a past experience of playing videos in MX Player with AC3 audio without the custom codec, the video would play without audio which is what I was hoping to achieve as a troubleshooting step (to see if the custom codec was causing a problem).
Currently, I have MX Player Pro installed with the codec that is available on the Play store as well as the custom codec to play AC3 audio. This is the config which we're basing our tests on as of now. Please let me know if I should remove the codec that I downloaded from the Play store. Also, I deleted the x.265 video that I mentioned in my previous post and obtained another video encoded in x.264. Regardless of this, it's important to note that I get the same result with ANY video I attempt to play. I'm attaching my loss for your review as requested. In this test, I have HW+ fully disabled in settings and SW decoding fully enabled. I also choose to start the video from the beginning rather than resume. Again, thanks so much for the help. Please let me know if there is anything else I can provide to help troubleshoot this issue.
@phoney_stuff
The issue is not with MX Player.
MX Player is not getting audio focus.
Looks like some other app is trying to keep the audio focus. That's why mx player is not playing any video.
Goto Settings > Player & Disable "Play Alone"
Then try again.
Note:
If you disable the option "Play Alone" MX Player will keeps on playing the video regardless of the status. For e.g it won't pause if you receive a call. So, best solution is that find the app that is stealing the audio focus & uninstall it or if there is any particular Settings in that app kindly adjust it.
Sent from my SM-G900H using Tapatalk
@ktsamy
That did the trick, or it could be that I'm not currently using the phone that did the trick.... or both. VIC works while I'm on the phone so I guess I was expecting MX Player to do the same.
I'm going to leave Play Alone disabled since I like the option of playing audio our video when I'm on the phone.
Would it be too much for me to request an feature (toggle-able) to have MX Player to pause when it loses audio focus?
ktsamy said:
@CDB-Man
As you know Custom codec is same as the inbuilt ffmpeg which comes with mx player itself. But, ac3 & dts support is enabled. So, it may not be the issue.
Both H/W+ & S/W decoders use ffmpeg. If the issue is there in S/W it might be an issue related to ffmpeg itself.
Click to expand...
Click to collapse
Hmm yeah, which is what I meant by:
CDB-Man said:
The Custom Codec on XDA here is purely for AC3 and DTS audio compatibility, and generally shouldn't affect video playback
Click to expand...
Click to collapse
As in, using your version shouldn't in and of itself cause playback issues! As in, the issue is likely not caused by the fact that you are using the custom codec, but probably something else!
phoney_stuff said:
Would it be too much for me to request an feature (toggle-able) to have MX Player to pause when it loses audio focus?
Click to expand...
Click to collapse
Enabling "Play Alone" does precisely just that? As in, make MX stop playing when it loses audio focus if another app plays...
@CDB-Man enabling Play Alone also prevents it from playing when it doesn't have a audio focus to begin with.
phoney_stuff said:
@CDB-Man enabling Play Alone also prevents it from playing when it doesn't have a audio focus to begin with.
Click to expand...
Click to collapse
This is what the issue is.
Just find out the app that steals/keeps audio focus. Disable it or uninstall it.
You can now play even when "Play Alone" is enabled.
This is used to pause MXPlayer when you loose audio focus (like call or notification or alarm or Playback from another player). That's why it's enabled by default.
It's not the fault of MX Player.
Sent from my SM-G900H using Tapatalk
@ktsamy
Thanks be to you, I found the app that's keeping audio focus is the phone. I like the feature of Play Alone that pauses MX Player when it loses audio focus. However, I it would also be nice if MX Player allowed me to play audio our video) while I'm currently in a call without having to toggle Play Alone on/off all of the time.

[Q] MX Player Network Stream

Hello,
I hope someone knows a solution for the following.
I am using MX player on my NVIDIA Shield TV.
And I mainly use MX player to play video files that are stored on my network disk.
I am required to use the HW+ mode to get Dolby Atmos audio working.
This is all working fine, the only thing that is not working is fast forwarding and rewinding.
When I am using the same file on a USB stick it works fine, so it seems to be a issue when playing the files with the HW+ decoder over the network.
Does someone know a solution for this ?
I already installed the customer codecs btw.
Thanks in advance !
http://forum.xda-developers.com/showpost.php?p=51915844&postcount=1
Network playback buffering in general is a known issue, not specific to any of the playback methods. The developer aims to fix it in version 1.8 whenever that's ready.
Can you collect the logs immediately after reproducing the problem & upload here.?
Sent using XDA One
ktsamy said:
Can you collect the logs immediately after reproducing the problem & upload here.?
Sent using XDA One
Click to expand...
Click to collapse
Sorry for the late reply, I was very busy with some family matters.
I made one mistake in my first post, I was using the normal HW decoder.
The HW+ decoder does fast forward and rewind, but does not give me the dolby Atmos sound I described earlier.
I don't know if this changes the situation or answer ?
I will reproduce the issue and upload the logs when I'm back home from work.
Thanks for all the help !
PS. I already tried the alpha version (1.8.0) of MX Player, but the issue persisted.
triphoenix1991 said:
Sorry for the late reply, I was very busy with some family matters.
I made one mistake in my first post, I was using the normal HW decoder.
The HW+ decoder does fast forward and rewind, but does not give me the dolby Atmos sound I described earlier.
I don't know if this changes the situation or answer ?
I will reproduce the issue and upload the logs when I'm back home from work.
Thanks for all the help !
PS. I already tried the alpha version (1.8.0) of MX Player, but the issue persisted.
Click to expand...
Click to collapse
HW uses android's native mediaplayer api.
Seems that your system doesn't have native dolby decoders. But, your audio system supports dolby decoding. In HW decoder audio might be passed to audio system. But, in H/W+ it will use system decoders to decode. So, if your device doesn't support that codec, it will use ffmpeg to decode (i.e, SW audio). If you use cutom codec you will get stereo output. Else you won't get any audio.
Only solution is to get audio pass through feature. It's expected in further minor updates to 1.8. (i.e 1.8.x).
Sent from my SM-G900H using Tapatalk
ktsamy said:
HW uses android's native mediaplayer api.
Seems that your system doesn't have native dolby decoders. But, your audio system supports dolby decoding. In HW decoder audio might be passed to audio system. But, in H/W+ it will use system decoders to decode. So, if your device doesn't support that codec, it will use ffmpeg to decode (i.e, SW audio). If you use cutom codec you will get stereo output. Else you won't get any audio.
Only solution is to get audio pass through feature. It's expected in further minor updates to 1.8. (i.e 1.8.x).
Sent from my SM-G900H using Tapatalk
Click to expand...
Click to collapse
Thanks, that is a very good explanation !
I did not really understand the difference between the 3 different decoders, but now I do, so thank you very much for that !
I noticed when I use the native video player on my Shield TV it does play Dolby atmos, but it has the same issue with rewinding/fast forwarding.
So because HW on MX Player uses the native media player API the buffering is not working ?
I suppose I just have to wait till audio passthrough is available in 1.8.
Or buffering will be available in the native media player.

Mx player pro fire tv problem

Hi all,
My problem is when I go to watch something through mx player pro on my fire tv box it plays for around 10 seconds the the blue circle comes on and it changes the codec to hw if it was on hw+ to begin with and it does the same the other way round.
If I leave it to play after this happens then it crashes around the 30 minute mark?
I have mx player pro installed on my fire stick and it works fine.
Are there any known issues when using a fire tv box with mx player or is it just something I need to change in the settings?
Any help greatly appreciated
Tia
Wolfie71 said:
My problem is when I go to watch something through mx player pro on my fire tv box it plays for around 10 seconds the the blue circle comes on and it changes the codec to hw if it was on hw+ to begin with and it does the same the other way round.
Click to expand...
Click to collapse
MX Player Pro is not available for the fire stick devices. From where you have purchased? If you are using a patched version, the issue could have caused by the improper patching.
HW decoder just uses the Android MediaPlayer API implemented on the device. When It fails with an error, it will try the next decoder (i.e HW+). HW+ Decoder basically uses the same system decoder but on the MX Player's media framework. Since both fails, either it could be an issue with the decoders implemented on the device or it could be an issue with the content. Kindly collect a bug report and share with us. It will help us to investigate further.
Thanks for that info
Do you have a Bluestacks? If not then you must install it first in order for the apps will run faster and better.
MX player equalizer not working in smart TV
MXPlayer said:
MX Player Pro is not available for the fire stick devices. From where you have purchased? If you are using a patched version, the issue could have caused by the improper patching.
HW decoder just uses the Android MediaPlayer API implemented on the device. When It fails with an error, it will try the next decoder (i.e HW+). HW+ Decoder basically uses the same system decoder but on the MX Player's media framework. Since both fails, either it could be an issue with the decoders implemented on the device or it could be an issue with the content. Kindly collect a bug report and share with us. It will help us to investigate further.
Click to expand...
Click to collapse
Dear Sir,
I have installed MX player in my Smart TV , but unfortunately equalizer option in not showing in the app, like mobile,
If you have any solution then please revert Sir , I am looking for the solution from last 6 month,, plzz help

MX Nightmare ( seeking and audio passthrough )

I am facing a frustrating problem as whatever option I choose I face one problem!
I am using MX Player to watch my movies on my Nvidia shiled from a local server
(Emby) on my PC. The file is a DTS-HD.MA.5.1.X264.MKV
If I choose HW+ the image is perfect, I can seek and go backward
and forward on the video with no problem, but the DTS sound dose not passthrough
to my home theater.
If I choose HW then audio passthrough works perfect but seeking dose not work! I can
no longer go back and forth on the video file
Can anyone tell me if this is a normal (Known) restriction or if there is anyway to fix at
least one of the options to work (HW or HW+). It would also be kind if you tell me which
decoder would give the best result on a Nvidia shield as I with no knowledge tend to
believe that HW+ is the best option!
Seems there is no support on the forum from developers maybe should try on playstore?!
In the faq they mention:
Video position is not changing and resets to the start whenever I return to video.
Some videos can not be "sought" properly. This may happen due to one of the following reasons;
Corrupted File - File can be damaged during copy process to the device even if original file is not corrupted.
File Configuration - Some video files do not have position information, which is need for changing position. Seeking these files may take longer or not even possible.
Decoder Bug - Both HW and SW codec have more bugs than their desktop siblings. Many people are working on improving Android codecs.
My problem is certainly Decoder Bug and not the other two!
So in my case mx player become worthless as I don't get audio passthrough on SW and HD+ and if I use HD which dose the audio passthrough
correctly then I better not decide to seek and go back or forth in a movie else I need to restart from beginning!
Let's hope I am doing something wrong and there is a workaround to get both audio passthrough + seeking to work at the same time!
rezpower said:
Seems there is no support on the forum from developers maybe should try on playstore?!
In the faq they mention:
Video position is not changing and resets to the start whenever I return to video.
Some videos can not be "sought" properly. This may happen due to one of the following reasons;
Corrupted File - File can be damaged during copy process to the device even if original file is not corrupted.
File Configuration - Some video files do not have position information, which is need for changing position. Seeking these files may take longer or not even possible.
Decoder Bug - Both HW and SW codec have more bugs than their desktop siblings. Many people are working on improving Android codecs.
My problem is certainly Decoder Bug and not the other two!
So in my case mx player become worthless as I don't get audio passthrough on SW and HD+ and if I use HD which dose the audio passthrough
correctly then I better not decide to seek and go back or forth in a movie else I need to restart from beginning!
Let's hope I am doing something wrong and there is a workaround to get both audio passthrough + seeking to work at the same time!
Click to expand...
Click to collapse
We regret the inconveniences caused by the delay in our response. Some of the items in our FAQs may not be up to date.
HW decoder heavily relies on the android mediaplayer framework implementation on your device. MX Player doesn't have much control over it. If you can seek with HW+ and SW, then it must be a bug on mediaplayer framework implementation on your device. If you are on a TV device, HW decoder may automatically use the passthrough mode based on the configuration done by the manufacturer. Whereas in HW+ and SW decoders, MX Player depends on the Android APIs to detect the capabilities of the connected audio device. So, audio passthrough mode will be used only when it is reported by the system.
Thank you very much for you reply. however I am still hoping that there could be a way the get around this problem. I do not have
enough knowledge on this subject but the question I have is that the default player for Kodi can play all my video files and the
passthrough is working on everyone of these files and there is no seeking problem either! The same thing with VLC. So MXPlayer
should certainly be able to do as much on the same system. It would really bee nice if you could check this and see if there is a
workaround. MX is a great player and for me a must have player on andoid TV and it's certainly worth making it more compatible.
I just replace MXPlayer with VLC and everything works perfectly fine. I can seek through movies and audio passthrough is working
as well with no problems. So please stop blaming Android OS everytime a user report a problem and fix your software!
Almost a year later I still have this issue with a shield 2017, and 2019.. VLC works fine.
MX player pro wont seek, or wont passthrough. wasted $6
Same issue
Reported this issue 3 years ago and I can't believe you have fixed it...I have to use VLC on my main TV to watch a movie on surround sound! MX has it beat on smoothness but that's pointless without surround sound.
Come, on give us Pro purchasers a simple pass through function like everyone one elses media player!

Categories

Resources