[Bug] Double Audio on Resume - MX Player

Bug Description:
When resuming playback, double audio occurs (few ms delay on the echo/replay).
It does not happen when playing from the beginning and seeking.
Seeking, play/pause and changing render from hw, hw+, soft do not make a difference.
The only way to avoid the issue is to not resume playback, start from the beginning and seek to where it last was.
Environment:
I run MX Player off a Hisense Android 4.2.2 TV.
I use BubbleUPnP to offer network access to my media, I do not transcode since MX Supports the native formats.
I use Universal Media Server as the UPnP source

htmltag said:
Bug Description:
When resuming playback, double audio occurs (few ms delay on the echo/replay).
It does not happen when playing from the beginning and seeking.
Seeking, play/pause and changing render from hw, hw+, soft do not make a difference.
The only way to avoid the issue is to not resume playback, start from the beginning and seek to where it last was.
Environment:
I run MX Player off a Hisense Android 4.2.2 TV.
I use BubbleUPnP to offer network access to my media, I do not transcode since MX Supports the native formats.
I use Universal Media Server as the UPnP source
Click to expand...
Click to collapse
This looks like a device specific issue, I will try to contact device manufacturer.
Also if you would contact Hisense as a customer, we may have better chances to make them check if it is a device bug.
Thanks

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] Check if the media player in device is playing and if it is buffering

Hello,
I am developing an ANDROID app that is **NOT** going to play any video or audio but wants to listen if any video or audio is playing in the android device.
If yes, then whether the media player is buffering the media (and for how many times and how long each time) and when is the media player is done playing the media so that I can act upon the data collected.
I know there is a method AudioManager.isMusicActive() but it does not always return on all devices. Also, even if I have this information how can I interact with already running MediaPlayer and its Playback states?
Regards,
Ashish

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!

Can screen size change the way a video file is played or handled?

Today my new TV arrived, I bought the xh90 to get myself ready for the upcoming gaming consoles, although the quality of the TV looks great, when I tried playing some files off my hard drive through the nvidia shield TV pro, 1 particular season always chops/screen freezes after a while, (this has only happend with this one series, all of the seasons are choppy) Everything else seems to play fine for now, also when I play the file through VLC everything seems to run smoothly, while with MX media player it does not.
The real kicker is on my previous TV the file is not choppy at all, neither with MX media player or VLC, the only difference seems to be my new TV is slightly bigger, 55 inch compared to my 41 inch previously. Does it perhaps have to do with the way MX media player encodes the file depending on what screen size you have?
bsgapollo said:
Today my new TV arrived, I bought the xh90 to get myself ready for the upcoming gaming consoles, although the quality of the TV looks great, when I tried playing some files off my hard drive through the nvidia shield TV pro, 1 particular season always chops/screen freezes after a while, (this has only happend with this one series, all of the seasons are choppy) Everything else seems to play fine for now, also when I play the file through VLC everything seems to run smoothly, while with MX media player it does not.
The real kicker is on my previous TV the file is not choppy at all, neither with MX media player or VLC, the only difference seems to be my new TV is slightly bigger, 55 inch compared to my 41 inch previously. Does it perhaps have to do with the way MX media player encodes the file depending on what screen size you have?
Click to expand...
Click to collapse
We would like to let you know that MX Player's HW/HW+ decoders make use of the hardware acceleration provided by your device. So, the performance will heavily rely on the multimedia capabilities of your device.
Regarding your issues, could you please specify the decoder used? MX Player's HW decoder directly use the android mediaplayer framework. In case if you noticed glitches with HW decoder, it might be caused by a firmware bug. Please click/tap on the HW button on the playback screen and try HW+ decoder. It may fix the issue.
MXPlayer said:
We would like to let you know that MX Player's HW/HW+ decoders make use of the hardware acceleration provided by your device. So, the performance will heavily rely on the multimedia capabilities of your device.
Regarding your issues, could you please specify the decoder used? MX Player's HW decoder directly use the android mediaplayer framework. In case if you noticed glitches with HW decoder, it might be caused by a firmware bug. Please click/tap on the HW button on the playback screen and try HW+ decoder. It may fix the issue.
Click to expand...
Click to collapse
Switching to HW+ fixed the problem for me, around 90% of my files are able to play through HW+ now, the rest I have to switch back and forth between mostly SW and sometimes HW.
I'm glad there is an option as well to "always play files through HW+ decoder", otherwise I would have to re-select the encoder every time I would want to play a file from HW to HW+.
You're the only person who replied and I'm grateful since that was enough to help me resolve the issue.

Multi-Video track feature ('Video' track selection, not Audio) on MX Player Pro

This is regarding some playback features that are unavailable, but partially visible through information menu.
On one hand, selecting information menu, all Video streams (or tracks), including Audio can be seen for an mkv container. Example as in shared attachment, Stream#1: Whiplash (2014)_FHD versus Stream#2: Whiplash (2014)_4k. However, there seems be no apparent way to select/switch to a specific Video stream. In this case Stream#2 - 4k HDR one over 1080p. It defaults only to main track 1 which is forced flagged. One can readily access/switch between Audio tracks, but is not given any such option for Video tracks.
Players such as KODI for example have this kind of feature for quite some time now. Playback of multi-video tracks is possible as one can seamlessly switch between stream using default keyboard shortcuts or Keymap Editor for custom keys/switches. Video stream switching can be done during playback, while maintaining played timeline status. Example, Stream #1 was playing at 32m:03s:500ms. When switched to Stream #2, it plays from the exact same position seamlessly. Another example of this is using more efficient players like MPC – BE on Windows, which works even more accurately. Both Videos are synced fairly accurately during switching.
I really like the playback efficiency of MX Player Pro over KODI which is bulky for most part. This is just one nagging issue that forces me to use KODI in such scenarios. Here, I am referring to playback from Media Servers such as Jellyfin with External Player support activated for MX Player Pro.
I would like to know if there is any such option or plugin that can make this possible.

Categories

Resources