Page 1 of 1

FIXED: Can't get G.726 file to play in VLC

Posted: 25 Jun 2009 11:24
by xyz000
Hi,

I have an 8kHz WAV file encoded as G.726 mono 32kb/s. Windows Media Player can play the file using the "Sharp G.726 Audio Codec". If I try to play the same file in VLC using the GUI and Media->Open File... I get "wav error: unsupported codec (g726)". I've tried various combinations of VLC versions on various operating systems but the message window gives pretty much the same output in all versions. Here's a snip of the output from 1.0.0-rc:

Code: Select all

main debug: creating demux: access='' demux='' path='C:\temp\sample-32k-mono-g726.wav' main debug: looking for demux module: 49 candidates wav debug: chunk: fcc=`fmt ` size=16 wav debug: format: 0x0045, fourcc: g726, channels: 1, freq: 8000 Hz, bitrate: 3Ko/s, blockalign: 1, bits/samples: 4, extra size: 0 wav error: unsupported codec (g726)
Any ideas what's going wrong?

Re: Can't get G.726 file to play in VLC

Posted: 25 Jun 2009 12:19
by Jean-Baptiste Kempf
Can you share it?

Re: Can't get G.726 file to play in VLC

Posted: 25 Jun 2009 12:57
by xyz000
With pleasure. There should be a suitable sample now at http://hsb.awardspace.com/share/sample- ... s-g726.wav

Re: Can't get G.726 file to play in VLC

Posted: 25 Jun 2009 14:17
by Jean-Baptiste Kempf
Will be fixed in VLC 1.1.

Re: Can't get G.726 file to play in VLC

Posted: 25 Jun 2009 15:14
by xyz000
Thanks j-b and nice to know that at least the audio file is correct. I have the source of 1.0.0-rc3. Can I patch it in any way?

Re: Can't get G.726 file to play in VLC

Posted: 25 Jun 2009 15:18
by Jean-Baptiste Kempf
git.videolan.org

Re: Can't get G.726 file to play in VLC

Posted: 26 Jun 2009 15:34
by xyz000
Agreed. Latest source code (1.1.0-Git) built under Linux plays the G.726 file. Thank you.

Re: FIXED: Can't get G.726 file to play in VLC

Posted: 26 Jun 2009 16:07
by Jean-Baptiste Kempf
You are welcome.