2008-09-16 03:28:04     how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2008-09-16 03:28:04     how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Bill Xie (CHINA)

Message: 62211   

 

 

 

I use uclinx lib libbfgdots g729a  to encode 16bit mono PCM data  file to bitstream file ,the part of bitstream is:

 

21 6B 50 00 BA 0D 36 4C A2 17 DA 72 C1 0A 21 6B 50 00 B6 2D 56 59 68 2E 8E 32 C7 A3 21 6B 50 00 F7 68 BA CC 4F 48 F8 72 9A 8E 21 6B 50 00 D9 23 CF 66 73 3D B4 10 98 BD 21 6B 50 00 67 08 62 CC 12 EE 38 30 C1 0E 21 6B 50 00 B2 0D 18 59 3E C0 BE 32 57 8F 21 6B 50 00 B4 2D 93 59 97 EE C1 72 C7 40 21 6B 50 00 66 0D 58 19 E2 EE 19 72 91 90 21 6B 50 00 B0 0D 40 19 5B AE E6 31 4B D5

 

In uclinux can decode bitstream to  pcm file to play,but I want to decode this encoded files in winows.

 

in widow xp I down G729AnexA.G729AnexA using unpakced.0x007f ->0 bit 0x0081->1 bit ,transform the packed bitstrem to upakceted bitstream

 

For example:

 

  transform: 21 6B 50 00 9B 33 A0 40 FA 00 7A C2 AC 45

 

TO:

 

21 6B 50 00 81 00 7F 00 7F 00 81 00 81 00 7F 00 .

81 00 81 00 7F 00 7F 00 81 00 81 00 7F 00 7F 00

81 00 81 00 81 00 7F 00 81 00 7F 00 7F 00 7F 00

7F 00 7F 00 7F 00 81 00 7F 00 7F 00 7F 00 7F 00

7F 00 7F 00 81 00 81 00 81 00 81 00 81 00 7F 00

81 00 7F 00 7F 00 7F 00 7F 00 7F 00 7F 00 7F 00

7F 00 7F 00 7F 00 81 00 81 00 81 00 81 00 7F 00

81 00 7F 00 81 00 81 00 7F 00 7F 00 7F 00 7F 00

81 00 7F 00 81 00 7F 00 81 00 7F 00 81 00 81 00

7F 00 7F 00 7F 00 81 00 7F 00 7F 00 7F 00 81 00

7F 00 81 00

 

but the using G729AnexA  cann't decode unpacket  bitstream which is encode by g729a in uclinux. In window bitstream encoded by   G729AnexA  ,then can  decoded this bistream right.

 

 

 

Pls help me to solve this problem,thank you.

 

                   

 

          

QuoteReplyEditDelete

 

 

2008-09-16 03:41:24     Re: how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Bill Xie (CHINA)

Message: 62212   

 

  I download g729 from this   www.itu.int/rec/T-REC-G.729-200701-I/en

QuoteReplyEditDelete

 

 

2008-09-16 07:01:41     Re: how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Robin Getz (UNITED STATES)

Message: 62239   

 

Bill:

 

We have shown that the G729 lib is compatible with various other G729 phones.

 

Did you verify that the Windows software works with other 729 implmentations before trying the Blackfin version?

 

-Robin

QuoteReplyEditDelete

 

 

2008-09-17 04:47:33     Re: how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Bill Xie (CHINA)

Message: 62299   

 

   Hi Robin

 

        Thank you replay  my question,  I add some files as accessory.

 

            source.wav ---------------------------    source pcm file

 

           bitstream.bit  -----------------------------   encoded by uclinux+g729a

 

         uclinux-decoded.wav  ---------------   decoded by uclinux+9729a

 

          g729Annexa.rar   ------------------- -     source g729a code

 

        convert_file_bitstream.cpp  ----------  code which convert  bitstream.bit  to  unpacked bit file

 

 

 

     maybe the g729Annexa.rar is not  compatible with uclinux g729

 

 

 

convert_file_bitstream.cpp

bitstream.bit

source.wav

uclinux-decoded.wav

g729Annexa.rar

QuoteReplyEditDelete

 

 

2008-09-17 20:00:38     Re: how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Robin Getz (UNITED STATES)

Message: 62343   

 

Bill:

 

I don't have the expertise to look at the files.

 

We have tested things with other G.729 phones (hardware) and it works. I don't know if the code that you have is the problem or not, and don't have the time/understanding of 729 to look.

 

-Robin

QuoteReplyEditDelete

 

 

2008-09-17 22:54:37     Re: how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Bill Xie (CHINA)

Message: 62351   

 

 

 

  Thank you. It is no problem when  G729  is used at uniform platform to decode and encode . Do you test G729 at  different platform,for instance PCM wave file is encoed in uclinux, and decode this encoded file in window? I cann't make sure that g729 is compatible with different platform.

QuoteReplyEditDelete

 

 

2008-09-18 09:57:16     Re: how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Robin Getz (UNITED STATES)

Message: 62385   

 

Bill:

 

We have tested with external phones - polycom IP300SIP (and others)

 

  www.amazon.com/Polycom-2200-11330-001-Soundpoint-Protocol-Desktop/dp/B00069TYNE

 

-Robin

QuoteReplyEditDelete

 

 

2008-09-19 06:33:44     Re: how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Bill Xie (CHINA)

Message: 62436   

 

 

 

 

 

  Thank you !

QuoteReplyEditDelete

 

 

2010-05-13 05:05:10     Re: how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Bill Xie (CHINA)

Message: 89366   

 

  Just search about G729 topic.No answer to solve this problem.

 

   I continue to finish the topic that the answer is to exchange high and low bytes order.

QuoteReplyEditDelete

 

 

2010-05-13 10:18:08     Re: how to decode voice file which is encoded by G729a Bf531+uclinux in window os

Robin Getz (UNITED STATES)

Message: 89371   

 

Bill:

 

I think we fixed the issue. Lots of people are using the libbggdots without issue.

 

-Robin

Outcomes