UserProg
UserProg

Reputation: 639

Using ffmpeg To Convert wav file to g729 file

I am using ffmpeg in my Windows laptop to convert .wav to .g729 format. I have spent some times on the documentation, tutorials, and some threads with no success till now.

Below is my ffmpeg version details:

ffmpeg version N-89674-g57d0c24132 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7.2.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx libavutil 56. 7.100 / 56. 7.100 libavcodec 58. 9.100 / 58. 9.100 libavformat 58. 3.100 / 58. 3.100 libavdevice 58. 0.100 / 58. 0.100 libavfilter 7. 8.100 / 7. 8.100 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100

I have tried ffmpeg -i testA.wav -c:a libavformat -f g.729 output.g729 and ended up with error saying [NULL @ 0000022aa639dd80] Requested output format 'g.729' is not a suitable output format output.g729: Invalid argument.

I did try some different format names with no success still.

Appreciate some guidance on this. Thanks.

Upvotes: 1

Views: 7212

Answers (2)

Rafael Diego Nicoletti
Rafael Diego Nicoletti

Reputation: 463

If I understood correctly, this repositories doesn't contains executable files, only library for that codec. Can't find a way to correctly use this codec the same way as ffmpeg encoding/decoding process.

Upvotes: 0

Business Tomcat
Business Tomcat

Reputation: 1051

Like Mulvya said, ffmpeg does not support G729 encoding, only decoding. Have a look here: http://ffmpeg.org/general.html#Audio-Codecs

2.4 Audio Codecs
Name Encoding Decoding
...
G.729 X

But instead of ffmpeg you can use the suggested implementation of the bcg729 en-/decoder.

Download the sources from here https://www.linphone.org/technical-corner/bcg729 via git and compile it by yourself.

Because you have windows (linux would be a better choice for this case ;)) you need a working compiler. Try Cygwin with GCC, there are many tutorials.

A good start could be this one: https://warwick.ac.uk/fac/sci/moac/people/students/peter_cock/cygwin/

Upvotes: 1

Related Questions