What is the ffmpeg command to convert 3gp to ulaw?
10,999
The simplest example is:
$ ffmpeg -i input -codec:a pcm_mulaw output.wav
Refer to ffmpeg -encoders
to see a list of available encoders.
Related videos on Youtube
![meda](https://i.stack.imgur.com/ARiD0.gif?s=256&g=1)
Comments
-
meda almost 2 years
I am able to convert it to
wav
using:ffmpeg -i audio.3pg audio.wav
but I need the command to convert it to
ulaw
.Anyone?
-
meda over 10 yearsthanks, but I would like to have the ulaw extension instead, when I change the extensions I get
[NULL @ 0250ef00] Unable to find a suitable output format for 'output.ulaw' output.ulaw: Invalid argument
-
meda over 10 yearswhat do you mean, sorry I did not get it
-
slhck over 10 years@meda If you use
.wav
as an extension, ffmpeg automatically guesses that you want a WAV container wrapping your PCM audio. If you do not want that, and instead need raw audio data in a.ulaw
file, you need to use-f mulaw
to force ffmpeg to use the PCM mu-law output format. -
meda over 10 yearsOk that worked, eventhough the quality is terrible, thanks anyway