[FFmpeg-user] how to encode wav file to mp2 Audio
Tobias Rapp
t.rapp at noa-archive.com
Wed Dec 21 12:37:45 EET 2022
On 21/12/2022 09:09, a b wrote:
> Hello,
> using ffmpeg I want to Encode a wave file recorded from a cd to mpeg Audio.
> I want to encode it to MPEG 1 and MPEG 2 with all Layer 1 and layer 2
> and Layer3 modes separately.
> mp1 and mp2 layer3 is same as MP3 which is easy to encode, but the problem
> is with layer1 and layer2 , and I want to know how to set the command and
> related options to do so.
> what is the command to Encode the wave file to above coding modes and
> options.
> thanks much
For MPEG1 Layer2 the "twolame" encoder would be recommended. Example:
ffmpeg -i $INPUT -codec:a libtwolame -b:a 128k $OUTPUT
See https://ffmpeg.org/ffmpeg-codecs.html#libtwolame for encoder options.
Not sure about FFmpeg support for MPEG1 Layer1 audio.
Regards,
Tobias
More information about the ffmpeg-user
mailing list