Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,619 Members 51,613 Now Online
XDA Developers Android and Mobile Development Forum

[Resolved] Low sampling rate compatibility issue on Android 4.4.2

Tip us?
 
yuffany
Old
(Last edited by yuffany; 11th June 2014 at 04:49 PM.) Reason: Bug reopen and error correction
#1  
Junior Member - OP
Thanks Meter 1
Posts: 17
Join Date: Nov 2011
Thumbs up [Resolved] Low sampling rate compatibility issue on Android 4.4.2

I have a number of old Canon camera MJpeg movies. MX Player plays them flawlessly on my Defy (cm7 android 2.3.7) and on Sony lt22i (stock android 4.1.2) but on my HTC One (M7 stock android 4.4.2) they have no sound and the sound track cannot be selected. The sound tracks are recorded in 11024hz 8-bit PCM. I tried software decoding but it didn't work either.

I have a MJpeg movie sample file here.
 
ktsamy
Old
(Last edited by ktsamy; 12th June 2014 at 01:59 PM.)
#2  
ktsamy's Avatar
Senior Member
Thanks Meter 1185
Posts: 360
Join Date: Sep 2011
Location: Palani / Surat

 
DONATE TO ME
Quote:
Originally Posted by yuffany View Post
I have a number of old Canon camera MJpeg movies. MX Player plays them flawlessly on my Defy (cm7 android 2.3.7) and on Sony lt22i (stock android 4.1.2) but on my HTC One (M7 stock android 4.4.2) they have no sound and the sound track cannot be selected. The sound tracks are recorded in 11025khz 8-bit PCM. I tried software decoding but it didn't work either.

I have a MJpeg movie sample file here.

Edit:

I have checked your file. I can reproduce the issue. In HW mode It can play audio. But, not getting any video since it's not nativity supported. But, In SW mode video playback is smooth. But, unable to select the audio track. That's why audio is not played. Otherwise ffmpeg can play the same. I have checked with the other ffmpeg based players & it's working fine.

Media Info of your file:

===================== General =====================
Complete name : T:\Downloads\DTS\MVI_2115.AVI
Format : AVI
Format info : Audio Video Interleave
File size : 17.3 MB
Duration (ms) : 19s 167ms
Total bitrate : 7 567 Kbps
Mastered_Date : 2008-07-10 19:49:31
Encoded application : CanonMVI06

===================== Video =====================
Id : 0
Format : JPEG
Codec Id : MJPG
Duration (ms) : 19s 166ms
Bitrate : 7 474 Kbps
Width : 640 pixels
Height : 480 pixels
Height_Original/String : 960 pixels
Aspect ratio : 4:3
Framerate : 30.000 fps
Colorimetry : YUV
Colos space : 4:2:2
Bit depth : 8 bits
Scan type : Interlaced
Compression_Mode/String : Lossy
Bits/(Pixel*Frame) : 0.811
Stream size : 17.1 MB (99%)

===================== Audio =====================
Id : 1
Format : PCM
Format_Settings_Endianness : Little
Format_Settings_Sign : Unsigned
Codec Id : 1
Duration (ms) : 19s 167ms
Bitrate mode : Constant
Bitrate : 88.2 Kbps
Channel(s) : 1 channel
Sampling rate : 11.024 KHz
Bit depth : 8 bits
Stream size : 206 KB (1%)
Alignement : Aligned on interleaves
Interleave duration : 958 ms (28.75 video frames)
Interleave preload : 1000 ms

Regards,
KTSamy


Hit Thanks if I helped
We are spending our valuable time for you without any cost.
 
yuffany
Old
#3  
Junior Member - OP
Thanks Meter 1
Posts: 17
Join Date: Nov 2011
You must have mistaken it with another movie file. My sample file is a mjpeg movie with pcm 8-bit 11024hz audio. Yes the sampling rate is the strange 11024.

If I convert its audio part to aac 11025hz, it plays well.
 
ktsamy
Old
(Last edited by ktsamy; 12th June 2014 at 02:01 PM.)
#4  
ktsamy's Avatar
Senior Member
Thanks Meter 1185
Posts: 360
Join Date: Sep 2011
Location: Palani / Surat

 
DONATE TO ME
Quote:
Originally Posted by yuffany View Post
You must have mistaken it with another movie file. My sample file is a mjpeg movie with pcm 8-bit 11024hz audio. Yes the sampling rate is the strange 11024.

If I convert its audio part to aac 11025hz, it plays well.
It seems that the issue appears only with kitkat. I have tried in my ACE with 2.3.6. There is no problem at all. But, It appears in S5 with 4.4.2. Something is broken.


I have attached the logcat collected using adb.
@bleu8888
Can you look at this issue
Attached Files
File Type: txt PCM unsigned 8 bit Audio.txt - [Click for QR Code] (38.0 KB, 4 views)
Regards,
KTSamy


Hit Thanks if I helped
We are spending our valuable time for you without any cost.
The Following User Says Thank You to ktsamy For This Useful Post: [ Click to Expand ]
 
bleu8888
Old
#5  
Member
Thanks Meter 86
Posts: 83
Join Date: Mar 2011
Hi,

This may be fixed on latest beta version.
I just setup Google play beta testing feature.
Please visit following link to become a beta tester and try beta version.
https://sites.google.com/site/mxvpen...ion/test-build

Thanks.
MX Player Developer
The Following User Says Thank You to bleu8888 For This Useful Post: [ Click to Expand ]
 
CDB-Man
Old
(Last edited by CDB-Man; 13th June 2014 at 08:02 AM.)
#6  
CDB-Man's Avatar
Senior Member
Thanks Meter 45
Posts: 229
Join Date: May 2013
Quote:
Originally Posted by CDB-Man View Post
Question, could this be related to the HTC One issue we identified more than a year ago?

EDIT: have a direct link to the beta page? Usually, you have to link to a Google+ community page or something if you want people to join the beta.
Be sure to hit Thanks when someone helps you out!

MX Player sub-forum Moderator; Primary User Support: http://forum.xda-developers.com/apps/mx-player

The Developer/Owner of MX Player is bleu8888. Please post a thread in the MX Player sub-forum for support.

I do not answer MX Player questions in PM. Post a thread in the MX Player sub-forum if you need support.

 
bleu8888
Old
#7  
Member
Thanks Meter 86
Posts: 83
Join Date: Mar 2011
Quote:
Originally Posted by CDB-Man View Post
Question, could this be related to the HTC One issue we identified more than a year ago?

EDIT: have a direct link to the beta page? Usually, you have to link to a Google+ community page or something if you want people to join the beta.
Actually I abandoned using Google play beta app with MX Player 1.x, instead uploaded apk directly.
This feature will be used from MX 2.0 beta testing because of caveats found while testing beta app feature.
MX Player Developer
The Following User Says Thank You to bleu8888 For This Useful Post: [ Click to Expand ]
 
ktsamy
Old
#8  
ktsamy's Avatar
Senior Member
Thanks Meter 1185
Posts: 360
Join Date: Sep 2011
Location: Palani / Surat

 
DONATE TO ME
Quote:
Originally Posted by yuffany View Post
I have a number of old Canon camera MJpeg movies. MX Player plays them flawlessly on my Defy (cm7 android 2.3.7) and on Sony lt22i (stock android 4.1.2) but on my HTC One (M7 stock android 4.4.2) they have no sound and the sound track cannot be selected. The sound tracks are recorded in 11024hz 8-bit PCM. I tried software decoding but it didn't work either.

I have a MJpeg movie sample file here.
I can confirm that the problem is fixed in the beta version.

Sent from my Galaxy S5 using Tapatalk
Regards,
KTSamy


Hit Thanks if I helped
We are spending our valuable time for you without any cost.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes