Can't play G726 in MP4 with WMP

2 posters

Go down

Can't play G726 in MP4 with WMP Empty Can't play G726 in MP4 with WMP

Post by ysong Wed Oct 29, 2014 9:38 am

Hi,
I'm struggling to play G726 in MP4 with WMP and hope someone here could provide some ideas on it.
The MP4 is created by our code from frame data recorded from a camera. Currently when I play the MP4 with WMP, VLC or QT, I got video, but no audio (G726).
I'm testing it on WIN-7. I tried to install the K-Lite Mega codec pack, but it made no difference.
I also tried to install the Sharp G.726 Audio Codec 1.1.0.1, but WMP still plays the MP4 without audio.
MP4 files created by our code with other audio codec were played OK without any problem.
I can convert the mp4 file to an AVI file which can be played OK with WMP/VLC/QT without any issue (I did get audio!).

Here is what I got from WMP Technical Support Information page (only audio codec part):
------------------------------------------+
Type   Name                                                                   Format                                 Binary                    Version
ACM   Microsoft IMA ADPCM CODEC                              0011
ACM   Microsoft CCITT G.711 A-Law and u-Law CODEC    0007
ACM   Microsoft GSM 6.10 Audio CODEC                         0031
ACM   Microsoft ADPCM CODEC                                      0002
ACM   Fraunhofer IIS MPEG Layer-3 Codec (decode only)     0055
ACM   Messenger Audio Codec                                          028E
ACM   Fraunhofer IIS MPEG Layer-3 Codec (professional)     0055
ACM   SHARP G.726 ACM Audio Decoder                           0045
ACM   AC-3 ACM Codec                                                     FFFE
ACM   Microsoft PCM Converter                                           0001
DMO   WMAudio Decoder DMO                                           0160, 0161, 0162, 0163    WMADMOD.DLL      6.1.7601.17514
DMO   WMAPro over S/PDIF DMO                                      0162                                WMADMOD.DLL      6.1.7601.17514
DMO   WMSpeech Decoder DMO                                        000A, 000B                     WMSPDMOD.DLL    6.1.7601.17514
DMO   MP3 Decoder DMO                                                  0055                                mp3dmod.dll            6.1.7600.16385
------------------------------------+

I also got the mediaInfor from the MP4 as follows:
=================+
General
Complete name                            : \pathtomp4\videoaudio.mp4
Format                                        : MPEG-4
Format profile                               : QuickTime
Codec ID                                     : qt
File size                                      : 62.3 MiB
Duration                                       : 4mn 58s
Overall bit rate mode                    : Variable
Overall bit rate                             : 1 750 Kbps
Encoded date                             : UTC 1970-01-01 00:00:00
Tagged date                              : UTC 1970-01-01 00:00:00
Writing application                      : Lavf52.31.0

Video
ID                                            : 1
Format                                    : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.0
Format settings, CABAC           : No
Format settings, ReFrames        : 1 frame
Format settings, GOP                : M=1, N=15
Muxing mode                            : Container profile=Unknown@0.0
Codec ID                                  : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                   : 4mn 58s
Bit rate mode                            : Variable
Bit rate                                     : 1 716 Kbps
Maximum bit rate                      : 16.4 Mbps
Width                                      : 800 pixels
Height                                     : 600 pixels
Display aspect ratio                 : 4:3
Frame rate mode                     : Variable
Frame rate                              : 15.000 fps
Original frame rate                   : 14.985 fps
Minimum frame rate                : 14.286 fps
Maximum frame rate               : 100.000 fps
Standard                                : NTSC
Color space                           : YUV
Chroma subsampling             : 4:2:0

Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                    : 0.238
Stream size                              : 61.1 MiB (98%)
Language                                 : English
Encoded date                           : UTC 1970-01-01 00:00:00
Tagged date                              : UTC 1970-01-01 00:00:00

Audio
ID                                           : 2
Format                                   : ADPCM
Codec ID                                : 45
Codec ID/Info                          : G.726
Codec ID/Hint                         : Microsoft
Duration                                 : 4mn 58s
Duration_LastFrame                : -40ms
Bit rate mode                         : Constant
Bit rate                                  : 32.0 Kbps
Channel(s)                            : 1 channel
Sampling rate                         : 8 000 Hz
Stream size                          : 1.14 MiB (2%)
Language                             : English
Encoded date                       : UTC 1970-01-01 00:00:00
Tagged date                         : UTC 1970-01-01 00:00:00
=================+

The FOURCC code for the audio is 0x6D730045 (ie "ms" plus the WMP code "0045".
Anyone any idea why I can't play G726 in the MP4 file?
Has anyone got an mp4 sample with G726 audio plus any video (H264/Mjpeg/...) that could share with me? I have tried to find a MP4 sample with G726 audio from the internet but was't successful so far. I'd like to see how an working MP4 with G726 look like and if I can play this sample.

Please let me know if you need any more information.

Many thanks,
Song

ysong

Posts : 5
Join date : 2014-10-29

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by Admin Wed Oct 29, 2014 4:17 pm

WMP12 uses Media Foundation codecs for playback of MP4 files. You can disable that with the Codec Tweak Tool. Then it will use the codecs from the pack.

It is strange that VLC and QT are also failing. I would expect them to be able to handle this kind of file. Can you upload the file for me?

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by ysong Wed Oct 29, 2014 4:22 pm

Thanks for the quick reply. Sorry I'm new here. How to upload a file?

ysong

Posts : 5
Join date : 2014-10-29

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by ysong Thu Oct 30, 2014 11:41 am

I played with the Codec Tweak Tool and tried to disable the Media Foundation codec. I'm not sure if I did it correctly as this is my first time to use it.
What I did with the Codec Tweak Tool didn't make a difference. I'm still not able to play the G726 audio in the MP4.

I have uploaded a sample MP4 file to the dropbox under the following link, please have a look and see if you could play the g726 audio (don't worry about the video which is still):
https://www.dropbox.com/s/rwgh1ts1so62sq1/videoWithg726Audio.mp4?dl=0

Here is what I did with the Tweak tool (please let me know if I did wrong or missed something):
click the "DirectShow Filters" in the "Configuration" section under the main window.
click "ffdshow audio decoder" and/or "LAV Audio decoder"
disable MS ADPCM etc. under ffdshow audio decoder
disable mspcm under "format" of "LAV Audio decoder"
all this made no difference.

I also played with the "Media Foundation" under Win7DSFilterTweaker and then disabled all of them. No difference either. WMP still wouldn't play G726 audio in the mp4 file.

If someone happens to have an mp4 with G726 audio, please send me a copy.
Any advice is appreciated.

Song

ysong

Posts : 5
Join date : 2014-10-29

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by Admin Thu Oct 30, 2014 5:51 pm

The audio data does not seem to conform to the official G.726 audio specification. That is why playback fails.

You may be able to get playback software from the manufacturer of the recording device.

I may be able to provide a playback workaround for this file in the future.

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by ysong Thu Oct 30, 2014 7:09 pm

Thanks for the information again.
Is it convenient to provide me some details on what is not conformed to the official G.726 audio specification? We recorded raw frames from a Panasonic camera and then created the mp4 by a GStreamer plugin. We have a playback software to play the mp4, but we would also like our mp4 be playable by the WMP. I'd like to know where the problem is and if we can make it conform to the official G726. I'm not sure what makes ths conform problem, is it the camera, recording, or the GStreamer plugin.

Do you have a sample MP4 with official G726 audio? If so, could you upload or send a copy to me please?

Many thanks,
Song

ysong

Posts : 5
Join date : 2014-10-29

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by Admin Thu Oct 30, 2014 8:47 pm

It is possible that something goes wrong when muxing to MP4. The container seems to signal that the audio uses 16 bits per sample, while the correct value is 4.

You can test playback with FFmpeg:
http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20141030-git-7f24e1e-win32-static.7z

The code from the FFmpeg project is used by many multimedia tools, including LAV Filters (used by the codec pack) and VLC Player. For your current file it indicates the problem mentioned above. If you succeed in creating a file that is playable with FFmpeg, then it should work in WMP too.

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by Admin Mon Nov 03, 2014 3:41 pm

Your files were muxed using FFmpeg as well. It had a bug that created files that give this decoding problem. A fix was committed today in the FFmpeg project that solves that problem. So if you update your GStreamer plugin, you should be able to create playable files and compare the MP4 atoms with the broken ones.

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by Admin Mon Nov 03, 2014 3:41 pm

Your files were muxed using FFmpeg as well. It had a bug that created files that give this decoding problem. A fix was committed today in the FFmpeg project that solves that problem. So if you update your GStreamer plugin, you should be able to create playable files and compare the MP4 atoms with the broken ones.

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by ysong Wed Nov 05, 2014 3:57 pm

Thanks a lot for pointing me to the audio sample size issue in which the G726 audio sample size is wrongly set to 16bits instead of 4bits. I just modified the ffmux_mov GStreamer plugin to set the audio sample size to 4bits. After the change the MP4 (with G726 audio) was played OK with WMP + Sharp G726 Audio codec 1.1.0.1.
I am not sure if our G726 Audio track in the MP4 fully conform to the official G726, but as long as it is playable by WMP we will live with it at the moment.
I really appreciate your help.

ysong

Posts : 5
Join date : 2014-10-29

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by Admin Wed Nov 05, 2014 4:26 pm

If it plays with WMP, then it should be fine.

Admin
Admin

Posts : 7632
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Can't play G726 in MP4 with WMP Empty Re: Can't play G726 in MP4 with WMP

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum